[meta-ti] u-boot-ti-staging am355x uEnv.txt support booting from eMMC

Katu Txakur katutxakurra at gmail.com
Thu Nov 2 07:07:51 PDT 2017


Hi,

I'm using Yocto Pyro branch with meta-ti layer and beaglebone machine to
build u-boot-ti-staging 2017.01+gitAUTOINC+5861b3bd34-r7 package.

I create an SD card with a FAT partition labelled BOOT containing
MLO
u-boot.img
uEnv.txt
and an ext4 partition labeled ROOT with the root file system.

When I boot a BeagleBone Black with this card, the file uEnv.txt it's read
and used correctly.

When I follow the same logic to flash this image to the NAND flash of the
BeagleBone Black, the uEnv.txt file in the first partition it's not read.
Is there support for this in uEnv.txt?

This is the output of u-boot booting from eMMC:
###############################################
U-Boot 2017.01 (Nov 02 2017 - 13:23:03 +0000)

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
4179616 bytes read in 364 ms (11 MiB/s)
37806 bytes read in 24 ms (1.5 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff3000, end 8ffff3ad ... OK

Starting kernel ...
###############################################


It doesn't seem to be looking for uEnv.txt.
The output booting from SD card is:

###############################################
...
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
969 bytes read in 7 ms (134.8 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
Running uenvcmd ...
37784 bytes read in 61 ms (604.5 KiB/s)
...
###############################################

I've read a bit of the u-boot code and the "Scanning mmc" string in u-boot
output brings me to the file
include/config_distro_bootcmd.h
where there is no mention of uEnv.txt or the CONFIG_EXTRA_ENV_SETTINGS
defined in include/configs/am335x_evm.h that seem to give support for the
uEnv.txt file when the SD card is used.

Is this a known issue or am I doing something wrong?

Regards,
Katu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-ti/attachments/20171102/208d79f1/attachment.html>


More information about the meta-ti mailing list