We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
The bare metal debian image is flashed through micro usb. I believe the uboot flashing is a separate process. I really haven’t studied this much. I am wandering what’s the easiest way to flash into eMMC ( I assume it is in the eMMC).
Hi @dzhou , that procedure exports the eMMC as an emulated “usb flash” drive. If you run lsblk you should see a new device. Then just write the two u-boot binaries like normal.
u-boot is flashed without any problems. Thank you very much.
I am also wandering that debian image (e.g. bone-debian-10.4-iot…img.xz) shall be able to flash into eMMC using dd instead of using Etcher program. if so, could you provide with dd command settings, such as count, seek, bs, etc. I think Etcher may be slower then dd, and it seems to be mandatory for verifying the flashing step. I am not sure verifying the flashing is necessary.
The u-boot is flashed into eMMC. I am not sure where is the u-boot environment data stored in the eMMC? NXP IMX SOMs has environment a separate partition (using UBI format for flash partitions). I still don’t have full picture of environment/u-boot under ti-BBB platform. I hope you can give me a quick guide (or good links of resources) to shed some light on this subject.
Thank you. Somehow, I think I remember the eMMC and microSD device number is in reverse order ( eMMC dev as 1, micro SD dev as 0) on BBB. I thought it is a little odd default to that way, so I had it remembered.
$ sudo mount -t ext3 -o loop,offset=0 u-boot.img /mnt/tmp
mount: /mnt/tmp: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
I was wandering what is the file system for the generated u-boot.img or is it possible that u-boot.img can be mounted and edited.
In the case of this project, the *.img in u-boot.img does not reference a archive “image”. In the scope of the U-Boot Project, u-boot.img is simply “A U-Boot image with a mkimage header prepended.” commonly generated from u-boot.bin, which is known as “The raw U-Boot image”.
You can use the mkimage tool to read the header off of u-boot.img:
Hi @dzhou, So BalenaEtcher needs to see a raw usb flash drive. So first you’ll need to get u-boot up and running on the device. Then have the device export the storage medium over usb to the PC running BalenaEtcher.
I guess it may be not easy thing to do. The raw usb flash drive is instantiated ( as rootfs). The device /dev/[sdb] is for u-boot and /dev/[sdb1] is rootfs partition, I believe. But
the BalenaEtcher only selects rootfs (currently). There is no option for
/dev/sdb ?
How to import image files [MLO and u-boot.img] into BalenaEtcher?
Or is there a way to combine and convert image format for Etcher?