Building a BBB debian console image using image builder

340 views
Skip to first unread message

Luther Goh Lu Feng

unread,
Mar 21, 2017, 3:43:32 AM3/21/17
to BeagleBoard
I am trying to build an image using image builder[1].


I seek clarity on the correct approach if I intend to only build a console image. The steps I took are based on README.md in the repo


Running ./beagleboard.org_image.sh seems to generate all the images. Can I clarify what is the best way to modify the script to properly generate only a console image?

I have also ran:
./RootStock-NG.sh -c rcn-ee_console_debian_jessie_armhf

The resultant image is bootable but I am unsure if this is the BBB debian console image.

I am also under the impression whichever step I chose, I still need to generate an image file for my microsd card
sudo ./setup_sdcard.sh --img-2gb bone-debian-7.X-201Y-MM-DD --dtb beaglebone \
--enable-systemd --bbb-old-bootloader-in-emmc

Please correct me if any of my assumptions are wrong. Thanks



[1]https://github.com/beagleboard/image-builder

Robert Nelson

unread,
Mar 21, 2017, 10:00:44 AM3/21/17
to Beagle Board
On Tue, Mar 21, 2017 at 2:43 AM, 'Luther Goh Lu Feng' via BeagleBoard
<beagl...@googlegroups.com> wrote:
> I am trying to build an image using image builder[1].
>
>
> I seek clarity on the correct approach if I intend to only build a console image. The steps I took are based on README.md in the repo
>
>
> Running ./beagleboard.org_image.sh seems to generate all the images. Can I clarify what is the best way to modify the script to properly generate only a console image?
>
> I have also ran:
> ./RootStock-NG.sh -c rcn-ee_console_debian_jessie_armhf

Close:

./RootStock-NG.sh -c bb.org-debian-jessie-console-v4.4

>
> The resultant image is bootable but I am unsure if this is the BBB debian console image.
>
> I am also under the impression whichever step I chose, I still need to generate an image file for my microsd card
> sudo ./setup_sdcard.sh --img-2gb bone-debian-7.X-201Y-MM-DD --dtb beaglebone \
> --enable-systemd --bbb-old-bootloader-in-emmc

for jessie, you can drop the --enable-systemd, that was for wheezy..

the default options i usually pass are:

--img-2gb bone-debian-7.X-201Y-MM-DD --dtb beaglebone --rootfs_label
rootfs --hostname beaglebone --enable-cape-universal
--bbb-old-bootloader-in-emmc

if you want it to auto flash the eMMC also add:

--emmc-flasher

Regards,

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

Luther Goh Lu Feng

unread,
Mar 21, 2017, 11:32:25 AM3/21/17
to BeagleBoard


On Tuesday, March 21, 2017 at 10:00:44 PM UTC+8, RobertCNelson wrote:
On Tue, Mar 21, 2017 at 2:43 AM, 'Luther Goh Lu Feng' via BeagleBoard
<beagl...@googlegroups.com> wrote:
> I am trying to build an image using image builder[1].
>
>
> I seek clarity on the correct approach if I intend to only build a console image. The steps I took are based on README.md in the repo
>
>
> Running ./beagleboard.org_image.sh seems to generate all the images. Can I clarify what is the best way to modify the script to properly generate only a console image?
>
> I have also ran:
> ./RootStock-NG.sh -c rcn-ee_console_debian_jessie_armhf

Close:
 
./RootStock-NG.sh -c bb.org-debian-jessie-console-v4.4

In general, what are the differences between the bb.org, rcn-eewiki, machinekit and seeed generated?
 
>
> The resultant image is bootable but I am unsure if this is the BBB debian console image.
>
> I am also under the impression whichever step I chose, I still need to generate an image file for my microsd card
> sudo ./setup_sdcard.sh --img-2gb bone-debian-7.X-201Y-MM-DD --dtb beaglebone \
> --enable-systemd --bbb-old-bootloader-in-emmc

for jessie, you can drop the --enable-systemd, that was for wheezy..

the default options i usually pass are:

--img-2gb bone-debian-7.X-201Y-MM-DD --dtb beaglebone --rootfs_label
rootfs --hostname beaglebone --enable-cape-universal
--bbb-old-bootloader-in-emmc


for the option --img-2gb, how do you arrive at the choice of 2gb instead of say 8gb?
 

Robert Nelson

unread,
Mar 21, 2017, 12:17:51 PM3/21/17
to Beagle Board
>>
>> ./RootStock-NG.sh -c bb.org-debian-jessie-console-v4.4
>>
> In general, what are the differences between the bb.org, rcn-eewiki,
> machinekit and seeed generated?

So the bb.org is for beagleboard.org images.

rcn-ee are the ones i've shoved on elinux

eewiki are the ones used for the eewiki.net guide's

machinekit is the bb.org image customized for xenomai and the machinekit project

seeed is bb.org image plus a few addons for SeeedStudio's out of box
experience (just one extra package)

>> --img-2gb bone-debian-7.X-201Y-MM-DD --dtb beaglebone --rootfs_label
>> rootfs --hostname beaglebone --enable-cape-universal
>> --bbb-old-bootloader-in-emmc
>>
>
> for the option --img-2gb, how do you arrive at the choice of 2gb instead of
> say 8gb?

i know it'll fit, there's no error checking if you specify an img file
too small.. if it's too big you just waste time writing it to the
microSD..

you also don't have to use "--img-Xgb" as the setup_sdcard.sh script
can also directly write the image to a microSD card.
Reply all
Reply to author
Forward
0 new messages