Image builder question ?

18 views
Skip to first unread message

Riko Ho

unread,
May 9, 2017, 9:36:53 PM5/9/17
to Robert Nelson, beagl...@googlegroups.com

Hello everyone,
I have question related with this command in https://github.com/beagleboard/image-builder :

sudo ./setup_sdcard.sh --img-4gb BBB-eMMC-flasher-debian-7.X-201Y-MM-DD \
--dtb beaglebone --enable-systemd --bbb-flasher \
--bbb-old-bootloader-in-emmc
which file is being used related with ./setup_sdcard_sh ?



root@bianchi-HP-Pavilion-dv6-Notebook-PC:/home/bianchi/Documents/image-builder/deploy# ls
debian-7.11-lxde-4gb-armhf-2017-05-09      debian-7.11-lxde-armhf-2017-05-09
debian-7.11-lxde-4gb-armhf-2017-05-09.tar  debian-7.11-lxde-armhf-2017-05-09.tar  <----These ones ?

root@bianchi-HP-Pavilion-dv6-Notebook-PC:/home/bianchi/Documents/image-builder/deploy/debian-7.11-lxde-armhf-2017-05-09# ls -al
total 1272096
drwxr-xr-x 3 root root       4096 May  9 19:59 .
drwxr-xr-x 4 root root       4096 May  9 20:12 ..
-rw-r--r-- 1 root root 1302528000 May  9 18:15 armhf-rootfs-debian-wheezy.tar <-----or these ones ?
drwxr-xr-x 2 root root       4096 May  9 18:14 hwpack
-rw-r--r-- 1 root root         40 May  9 18:14 ID.txt
-rw-r--r-- 1 root root       2823 May  9 18:14 image-builder.project
-rw-r--r-- 1 root root        439 May  9 18:14 post-uEnv.txt
-rwxr-xr-x 1 root root      63503 May  9 18:14 setup_sdcard.sh
-rw-r--r-- 1 root root         15 May  9 18:14 user_password.list
root@bianchi-HP-Pavilion-dv6-Notebook-PC:/home/bianchi/Documents/image-builder/deploy/debian-7.11-lxde-armhf-2017-05-09#
--

Does image-builder make 3 images ? as stated on beagleboard.org_image.sh  , that was why I saw 3 similar loops ?
debian_lxde_stable="debian-7.11-lxde-armhf-${time}"
debian_lxde_4gb_stable="debian-7.11-lxde-4gb-armhf-${time}"
debian_console_stable="debian-7.11-console-armhf-${time}"

/*******/
Sent by Ubuntu LTS 16.04,
谢谢,
Kind regards,
Riko Ho
/*******/

Robert Nelson

unread,
May 9, 2017, 9:42:20 PM5/9/17
to Riko Ho, Beagle Board


On May 9, 2017 8:36 PM, "Riko Ho" <antoni...@gmail.com> wrote:

Hello everyone,
I have question related with this command in https://github.com/beagleboard/image-builder :

sudo ./setup_sdcard.sh --img-4gb BBB-eMMC-flasher-debian-7.X-201Y-MM-DD \
--dtb beaglebone --enable-systemd --bbb-flasher \
--bbb-old-bootloader-in-emmc
which file is being used related with ./setup_sdcard_sh ?



root@bianchi-HP-Pavilion-dv6-Notebook-PC:/home/bianchi/Documents/image-builder/deploy# ls
debian-7.11-lxde-4gb-armhf-2017-05-09      debian-7.11-lxde-armhf-2017-05-09
debian-7.11-lxde-4gb-armhf-2017-05-09.tar  debian-7.11-lxde-armhf-2017-05-09.tar  <----These ones ?


This is the below tarred up..




root@bianchi-HP-Pavilion-dv6-Notebook-PC:/home/bianchi/Documents/image-builder/deploy/debian-7.11-lxde-armhf-2017-05-09# ls -al
total 1272096
drwxr-xr-x 3 root root       4096 May  9 19:59 .
drwxr-xr-x 4 root root       4096 May  9 20:12 ..
-rw-r--r-- 1 root root 1302528000 May  9 18:15 armhf-rootfs-debian-wheezy.tar <-----or these ones ?

That's the file being used..

drwxr-xr-x
x 2 root root       4096 May  9 18:14 hwpack
-rw-r--r-- 1 root root         40 May  9 18:14 ID.txt
-rw-r--r-- 1 root root       2823 May  9 18:14 image-builder.project
-rw-r--r-- 1 root root        439 May  9 18:14 post-uEnv.txt
-rwxr-xr-x 1 root root      63503 May  9 18:14 setup_sdcard.sh
-rw-r--r-- 1 root root         15 May  9 18:14 user_password.list
root@bianchi-HP-Pavilion-dv6-Notebook-PC:/home/bianchi/Documents/image-builder/deploy/debian-7.11-lxde-armhf-2017-05-09#
--

Does image-builder make 3 images ? as stated on beagleboard.org_image.sh  , that was why I saw 3 similar loops ?
debian_lxde_stable="debian-7.11-lxde-armhf-${time}"
debian_lxde_4gb_stable="debian-7.11-lxde-4gb-armhf-${time}"
debian_console_stable="debian-7.11-console-armhf-${time}"


Because in the wheezy erra, we had 3 default images..

We have 5 in the Jessie erra.. I should update that script as it's behind.

Regards,

Robert Nelson

unread,
May 9, 2017, 9:49:48 PM5/9/17
to Riko Ho, Beagle Board


On May 9, 2017 8:47 PM, "Riko Ho" <antoni...@gmail.com> wrote:

Hi Robert, after ./setup_sdcard.sh command :

root@bianchi-HP-Pavilion-dv6-Notebook-PC:/home/bianchi/Documents/image-builder/deploy/debian-7.11-lxde-armhf-2017-05-09# sudo ./setup_sdcard.sh --img-2gb bone-debian-7.11-2017-05-10 --dtb beaglebone \
> ^C

drwxr-xr-x 3 root root       4096 May 10 09:39 .

drwxr-xr-x 4 root root       4096 May  9 20:12 ..
-rw-r--r-- 1 root root 1302528000 May  9 18:15 armhf-rootfs-debian-wheezy.tar
-rw-r--r-- 1 root root 1782579200 May 10 09:39 bone-debian-7.X-201Y-MM-DD-2gb.img  <== is that the file to be burned "dd" to SDcard ?


Yes, setup_sdcard can also write to the sdcard directly --mmc /dev/sdb

Regards,

Robert Nelson

unread,
May 9, 2017, 11:32:17 PM5/9/17
to Riko Ho, Beagle Board
On Tue, May 9, 2017 at 9:16 PM, Riko Ho <antoni...@gmail.com> wrote:
> Hi Robert,
>
> Is that possible that I have "verbose" in "dd", I can not see what it's
> doing when writing ??

No, not with dd directly.. With another tool called "pv" indirectly..
Use google.com to look it up, but it's not accurate as it'll say 100%
yet, sync is still running in the background..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Gary Thomas

unread,
May 10, 2017, 12:56:13 AM5/10/17
to beagl...@googlegroups.com
Recent versions of dd have 'status=progress' which does give an indication
of the transfer. It also suffers from the same problem - reporting 100%
whilst the sync is still taking place.

--
Gary Thomas
Reply all
Reply to author
Forward
0 new messages