Hi,

To summarize: I am trying to configure my Beaglebone Black to boot from 
eMMC but it looks like the uEnvt.txt file is not read.

What I have done:
1) Build an image using buildroot (with beaglebone_defconfig).
This creates MLO, zImage, u-boot.img and rootfs.tar. It also created an 
sdcard.img which boots just fine.

2) Boot from the SDCard and configure the eMMC using fdisk. I followed the 
instructions shown here 
<https://e2e.ti.com/support/processors/f/processors-forum/344528/u-boot-write-mlo-uboot-uimage-rootfs-on-to-emmc-mnand-of-am335x-evm-j5-echo-based-custom-board/1204926#1204926>
.

3) Edit the uEnv.txt file to point to the eMMC. Contents of the file:










*bootpart=1:1devtype=mmcbootdir=bootfile=zImagebootpartition=mmcblk1p2console=ttyS0,115200n8loadaddr=0x82000000fdtaddr=0x88000000set_mmc1=if
 
test $board_name = A33515BB; then setenv bootpartition mmcblk1p2; 
fiset_bootargs=setenv bootargs console=${console} 
root=/dev/${bootpartition} rw rootfstype=ext4 rootwaituenvcmd=run set_mmc1; 
run set_bootargs;run loadimage;run loadfdt;printenv bootargs;bootz 
${loadaddr} - ${fdtaddr}*

The outcome is that uboot fails and end up in the prompt. If I type "boot" 
in the prompt the board starts up from the eMMC. *I do not know/understand 
what the difference in startup is between the board being powered and me 
typing in boot once it has failed.*

The output on the serial port from power up:









*Hit any key to stop autoboot:  0switch to partitions #0, OKmmc1(part 0) is 
current deviceScanning mmc 1:1...40817 bytes read in 4 ms (9.7 MiB/s)switch 
to partitions #0, OKmmc1(part 0) is current deviceSD/MMC found on device 
1## Error: "bootcmd_nand0" not definedstarting USB...*

It ends up at the uboot prompt. If I then type "boot" the OS loads:
















*=> bootswitch to partitions #0, OKmmc1(part 0) is current deviceSD/MMC 
found on device 1513 bytes read in 1 ms (501 KiB/s)Loaded env from 
uEnv.txtImporting environment from mmc1 ...Running uenvcmd ...## Error: 
"set_mmc1" not defined6090656 bytes read in 392 ms (14.8 MiB/s)40817 bytes 
read in 5 ms (7.8 MiB/s)bootargs=console=ttyS0,115200n8 root=/dev/mmcblk1p2 
rw rootfstype=ext4 rootwait## Flattened Device Tree blob at 88000000   
Booting using the fdt blob at 0x88000000   Loading Device Tree to 8fff3000, 
end 8fffff70 ... OKStarting kernel ...*

I would appreciate any input, material to read etc. I guess I do not 
understand the exact process uboot follows to start the board... what am I 
missing?

Thank you



-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/0db7cf24-cf21-4342-a06c-d7bf648936bcn%40googlegroups.com.

Reply via email to