Hi @dzhou, I’m sorry, but using USB with virtualization is going to be nothing but trouble.
I just verified, that Ubuntu 18.04.x works with ravikp7’s directions: (Ubuntu 16.04 is too old, and I have not tried Ubuntu 20.04, but it might be way too new…)
voodoo@zeus:~/node-beagle-boot$ sudo npm start
[sudo] password for voodoo:
> beagle-boot@1.2.1 start /home/voodoo/node-beagle-boot
> node runServer.js
Choose Option:
1. Bootloader Server
2. TCP/IP Proxy Server
1
Bootloader Server started
Connect BeagleBone to get started
{ description: 'ROM ->', complete: 5 }
{ description: 'Interface claimed', complete: 10 }
{ description: 'BOOTP request recieved', complete: 15 }
{ description: 'BOOTP reply done', complete: 20 }
{ description: 'TFTP request recieved', complete: 25 }
{ description: 'u-boot-spl.bin transfer starts', complete: 30 }
{ description: 'ROM TFTP transfer complete', complete: 35 }
{ description: 'SPL ->', complete: 40 }
{ description: 'Interface claimed', complete: 45 }
{ description: 'BOOTP request recieved', complete: 50 }
{ description: 'BOOTP reply done', complete: 55 }
{ description: 'BOOTP request recieved', complete: 60 }
{ description: 'BOOTP reply done', complete: 65 }
{ description: 'TFTP request recieved', complete: 70 }
{ description: 'u-boot.img transfer starts', complete: 75 }
{ description: 'SPL TFTP transfer complete', complete: 80 }
Serial:
CCCCCCC
U-Boot SPL 2018.07-dirty (Jul 30 2018 - 20:03:37 +0530)
Trying to boot from USB eth
Loading Environment from FAT... Card did not respond to voltage select!
** Bad device mmc 0 **
Failed (-5)
usb_ether
Error: usb_ether address not set.
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC b0:d5:cc:fc:03:fc
HOST MAC de:ad:be:ef:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #1: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.1.3 (800 ms)
Using usb_ether device
TFTP from server 192.168.1.9; our IP address is 192.168.1.3
Filename 'u-boot.img'.
Load address: 0x82000000
Loading: #################################################################
###########################
26.4 KiB/s
done
Bytes transferred = 469336 (72958 hex)
U-Boot 2018.07-dirty (Jul 30 2018 - 20:03:37 +0530)
CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Card did not respond to voltage select!
** Bad device mmc 0 **
Failed (-5)
<ethaddr> not set. Validating first E-fuse MAC
Net: cpsw, usb_ether
Hit any key to stop autoboot: 0
UMS: LUN 0, dev 1, hwpart 0, sector 0x0, count 0x720000
\musb-hdrc: peripheral reset irq lost!
voodoo@zeus:~$ journalctl | grep sdb
Jun 29 15:30:08 zeus kernel: sd 6:0:0:0: [sdb] 7471104 512-byte logical blocks: (3.83 GB/3.56 GiB)
Jun 29 15:30:08 zeus kernel: sd 6:0:0:0: [sdb] Write Protect is off
Jun 29 15:30:08 zeus kernel: sd 6:0:0:0: [sdb] Mode Sense: 0f 00 00 00
Jun 29 15:30:08 zeus kernel: sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 29 15:30:08 zeus kernel: sd 6:0:0:0: [sdb] Attached SCSI removable disk
So the eMMC on this BBB is now currently mounted on my Ubuntu 18.04.x test machine as /dev/sdb… I can then use https://www.balena.io/etcher/ to install any BeagleBone image on to the drive…
Regards,