All of lore.kernel.org
 help / color / mirror / Atom feed
* Run bitbake with progress bar in terminal (Ubuntu 16.04)
@ 2018-09-03 11:48 Salaheldin Ahmed
  2018-09-04 16:43 ` Peter Kjellerstedt
  0 siblings, 1 reply; 3+ messages in thread
From: Salaheldin Ahmed @ 2018-09-03 11:48 UTC (permalink / raw)
  To: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

Hi everyone,

I'm new to bitbake and Yocto Project. I tried to run bitbake to create one
image but it takes too long (around 3 hours till not and yet not finished).
I thought having a progress bar to see how much of the process is finished
is a very useful thing.
I found a couple of links where such progress bar is implemented but never
described how to use it for a newbie. Here is one of these links
https://github.com/openembedded/bitbake/blob/master/lib/progressbar/progressbar.py
As far as I saw (by running bitbake -h), there is no option to run bitbake
with progress bar.
Could someone tell me how to run bitbake with progress bar enabled in
terminal?


Thanks

[-- Attachment #2: Type: text/html, Size: 946 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Run bitbake with progress bar in terminal (Ubuntu 16.04)
  2018-09-03 11:48 Run bitbake with progress bar in terminal (Ubuntu 16.04) Salaheldin Ahmed
@ 2018-09-04 16:43 ` Peter Kjellerstedt
  2018-09-06 13:26   ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Kjellerstedt @ 2018-09-04 16:43 UTC (permalink / raw)
  To: Salaheldin Ahmed; +Cc: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 1758 bytes --]

Bitbake already has very good support for displaying progress bars when building in a terminal (and uses it by default). You need to provide more information about what you have and what you are building:


  *   What image are you building?
  *   Exact bitbake command you use?
  *   Are you using Poky, or some other distribution of layers?
  *   What version? E.g., the latest release of Poky is referred to as Sumo (specifically 19.0.1). It is also referred to as the Yocto Project 2.5.1 release.
  *   What layers are you using?

Oh, and the first build of an image can easily take many hours, all depending on how much is included in the image and of course the speed of the build host. But there should definitely be progress information during the build…

//Peter

From: bitbake-devel-bounces@lists.openembedded.org <bitbake-devel-bounces@lists.openembedded.org> On Behalf Of Salaheldin Ahmed
Sent: den 3 september 2018 13:48
To: bitbake-devel@lists.openembedded.org
Subject: [bitbake-devel] Run bitbake with progress bar in terminal (Ubuntu 16.04)

Hi everyone,

I'm new to bitbake and Yocto Project. I tried to run bitbake to create one image but it takes too long (around 3 hours till not and yet not finished).
I thought having a progress bar to see how much of the process is finished is a very useful thing.
I found a couple of links where such progress bar is implemented but never described how to use it for a newbie. Here is one of these links https://github.com/openembedded/bitbake/blob/master/lib/progressbar/progressbar.py
As far as I saw (by running bitbake -h), there is no option to run bitbake with progress bar.
Could someone tell me how to run bitbake with progress bar enabled in terminal?


Thanks

[-- Attachment #2: Type: text/html, Size: 8722 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Run bitbake with progress bar in terminal (Ubuntu 16.04)
  2018-09-04 16:43 ` Peter Kjellerstedt
@ 2018-09-06 13:26   ` Burton, Ross
  0 siblings, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2018-09-06 13:26 UTC (permalink / raw)
  To: Peter Kjellerstedt; +Cc: Salaheldin Ahmed, bitbake-devel

On 4 September 2018 at 17:43, Peter Kjellerstedt
<peter.kjellerstedt@axis.com> wrote:
> Bitbake already has very good support for displaying progress bars when
> building in a terminal (and uses it by default). You need to provide more
> information about what you have and what you are building:

Just to make this clear, this is what my bitbake is showing me right now:

Currently  5 running tasks (3397 of 3770)  90%
|#####################################################################
       |
0: python3-3.5.5-r1.0 do_compile - 408s (pid 13805)
1: linux-intel-4.14.66+gitAUTOINC+5c089e91b3_dd6a8b48d4-r0 do_deploy -
48s (pid 7249)
2: linux-intel-4.14.66+gitAUTOINC+5c089e91b3_dd6a8b48d4-r0
do_package_write_ipk - 48s (pid 7253)
3: linux-intel-4.14.66+gitAUTOINC+5c089e91b3_dd6a8b48d4-r0
do_package_write_rpm - 48s (pid 7255)
4: glib-2.0-1_2.58.0-r0 do_install - 17s (pid 31839)

The first line is, as should be obvious, a progress bar.

Ross


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-06 13:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-03 11:48 Run bitbake with progress bar in terminal (Ubuntu 16.04) Salaheldin Ahmed
2018-09-04 16:43 ` Peter Kjellerstedt
2018-09-06 13:26   ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.