BeagleBone Black: Booting from USB

631 views
Skip to first unread message

Daniel Pomrehn

unread,
Sep 10, 2017, 4:30:46 PM9/10/17
to BeagleBone
Hi,
i flashed a Debian 9.1 Image to eMMC of my Beaglebone Black. 

After that I want to move it to a USB harddisk and boot from it.
I used the script /opt/scripts/tools/non-mmc-rootfs/mv_rootfs_dev_sda.sh to move the rootfs from /dev/mmcblk1 to /dev/sda.

But it still boots from eMMC. What do I need to change to boot from USB?

Thank you very much in advance!
Best regards
Daniel

Robert Nelson

unread,
Sep 11, 2017, 3:24:49 PM9/11/17
to Daniel Pomrehn, BeagleBone
On Sun, Sep 10, 2017 at 3:30 PM, Daniel Pomrehn
<daniel....@gmail.com> wrote:
> Hi,
> i flashed a Debian 9.1 Image to eMMC of my Beaglebone Black.
>
> After that I want to move it to a USB harddisk and boot from it.
> I used the script /opt/scripts/tools/non-mmc-rootfs/mv_rootfs_dev_sda.sh to
> move the rootfs from /dev/mmcblk1 to /dev/sda.
>
> But it still boots from eMMC. What do I need to change to boot from USB?

This script was originally written for the x15, however after facing
u-boot bugs with some ssd's i had stopped.

For the BBB, a few things are currently missing in u-boot to make it work.

Regards,

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

Daniel Pomrehn

unread,
Sep 13, 2017, 12:04:25 PM9/13/17
to BeagleBone
Hi,
oh, sad to hear that.
Is there another way to boot BeagleBoneBlack from USB Hard Disk?
Regards
Daniel

Robert Nelson

unread,
Sep 13, 2017, 12:08:46 PM9/13/17
to Daniel Pomrehn, BeagleBone
On Wed, Sep 13, 2017 at 11:04 AM, Daniel Pomrehn
<daniel....@gmail.com> wrote:
> Hi,
> oh, sad to hear that.
> Is there another way to boot BeagleBoneBlack from USB Hard Disk?
> Regards

Oh there is..

on the microSD or eMMC, in /boot/uEnv.txt, set the uuid variable to
the value you found on your host:

root@beaglebone:~# ls -lha /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 60 Sep 13 15:22 .
drwxr-xr-x 7 root root 140 Sep 13 15:22 ..
lrwxrwxrwx 1 root root 15 Sep 13 15:22
3610c900-b634-4aba-9837-6a27a53b036b -> ../../mmcblk0p1

eMMC/microSD (U-Boot/Kernel/Device-tree) -> jump to USB hard Disk (rootfs)..

What i was trying to do:

eMMC/microSD (U-Boot) -> jump to USB Hard Disk (Kernel/Device-tree/rootfs)

but that's not ready..

Ted Kent

unread,
Jan 31, 2022, 2:52:54 PMJan 31
to BeagleBone
On Wednesday, September 13, 2017 at 12:08:46 PM UTC-4 Robert Nelson wrote:


eMMC/microSD (U-Boot) -> jump to USB Hard Disk (Kernel/Device-tree/rootfs)

but that's not ready..

Did this ever become ready?
 
Reply all
Reply to author
Forward
0 new messages