I have BeagleBone Black, board_rev=BWA5. In the document, Boot Modes: BBB can boot from USB Port. I am not clear that the USB port refers to which USB. There is micro USB port as USB client and there is USB host ( device as storage). Does it boot from micro USB port? And this port is also used as USB Ethernet under Debian. Does that mean it is booting as tftp?
Thank you for your prompt reply.
I have downloaded source code from BBBlfs, but I have hard time to recompile. I tried on Debian (my virtualbox) and Ubuntu 16.04. Both are not successful. The main reason was some c_8.h (couldn’t remember the system include name exactly at this point). I believe it is a matter of cross compiler toll setup issue. Haven’t spent time on this, yet.
Today, once you get into u-boot, you can pretty much do everything that one would need to program the eeprom and eMMC. You don’t need to boot into the full Linux kernel just to program the eeprom and eMMC.
BTW: I have a different question.
I have downloaded source code for rebuilding Debian. You are the author of he script to create Bootable Image for SD Card.
I saw there is setup_sdcard.sh, which creates 2 partitions: (ID.txt MLO, and u-boot.img), and the other is NTFS. My question is for tftp (or Usb client port boot), it needs u-boot.bin, etc. I don’t see yhr u-boot.bin is created in the deploy folder. How to create the bin and other necessary for tftp booting?
You have patch to create setup_usb.sh from setup_sdcard.sh. I “was hesitated” to create such setup_usb.sh. Because anything wrong in the script will give me much trouble. And also, I found the line number and code lines in the patch file don’t match. Maybe there is a version issue of the files I downloaded. I am not sure do you have a setup_usb.sh and tested working?
Oh this isn’t a pure USB boot. It still relies on U-Boot to be on microSD/eMMC. Instead of u-boot loading the kernel/device-tree from the microSD/eMMC it calls “usb load” (instead of “mmc load”) to load the kernel/device-tree from the usb media.
Once you boot up into an image with the microSD/eMMC, you can run this script to copy the rootfs to a usb flash drive…
Thank you for the script file. I have just built Starterware on my Linux machine. I am going to test out. I’ll take some time to digest your files.
I am thinking to load a version of customized uboot through JTag. Then with this uboot, to boot a version of debian kernel into RAM (from USB drive), and then flash eMMC from USB stick. I think it should be doable. Please advise if it cannot be done by that way.