So now, on the first partition (FAT) I have no /uEnv.txt (nor /boot nor /uboot). I do have:
config-4.14.51-bone-rt-r16
dtbs
initrd.img-4.14.51-bone-rt-r16
MLO
System.map-4.14.51-bone-rt-r16
‘System Volume Information’
u-boot.img
uEnv.txt-old
vmlinuz-4.14.51-bone-rt-r16
On the second partition (EXT4) I have this in /boot/uEnv.txt:
uname_r=4.14.51-bone-rt-r16
enable_uboot_overlays=1
uboot_overlay_addr0=/lib/firmware/PB-I2C1-RTC-6-CLICK.dtbo
loadaddr=0x82000000
fdtaddr=0x88000000
rdaddr=0x88080000
initrd_high=0xffffffff
fdt_high=0xffffffff
#boot is first partition
#root is second partition
mmcroot=/dev/mmcblk0p2
loadximage=load mmc 0:1 ${loadaddr} /vmlinuz-${uname_r}
loadxfdt=load mmc 0:1 ${fdtaddr} /dtbs/${uname_r}/${fdtfile}
loadxrd=load mmc 0:1 ${rdaddr} /initrd.img-${uname_r}; setenv rdsize ${filesize}
loaduEnvtxt=load mmc 0:1 ${loadaddr} /uEnv.txt ; env import -t ${loadaddr} ${filesize};
loadall=run loaduEnvtxt; run loadximage; run loadxfdt;
console=/dev/ttyS0
mmcargs=setenv bootargs console=${console} ${optargs} ${cape_disable} ${cape_enable} root=${mmcroot} rootfstype=${mmcrootfstype} ${cmdline}
uenvcmd=run loadall; run mmcargs; bootz ${loadaddr} - ${fdtaddr};
And now, PXE boot.
U-Boot SPL 2018.03-dirty (Jun 29 2018 - 09:25:36 -0400)
Trying to boot from MMC1
Loading Environment from EXT4…
** Unable to use mmc 0:1 for loading the env **
Failed (-5)
U-Boot 2018.03-dirty (Jun 29 2018 - 09:25:36 -0400)
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
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4…
** Unable to use mmc 0:1 for loading the env **
Failed (-5)
Board: BeagleBone Black
not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net: eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] …
board_rev=[00C0] …
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Bad device 0:2 0x82000000 **
** Bad device 0:2 0x82000000 **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt …
Checking for: /boot.scr …
Checking for: /boot/boot.scr …
Checking for: /boot/uEnv.txt …
gpio: pin 55 (gpio 55) value is 1
911 bytes read in 28 ms (31.3 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt…
gpio: pin 56 (gpio 56) value is 1
Running uname_boot …
Failed to iterate over directory boot
** Invalid partition 6 **
** Invalid partition 7 **
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
** No partition table - mmc 1 **
Checking for: /uEnv.txt …
** No partition table - mmc 1 **
Checking for: /boot.scr …
** No partition table - mmc 1 **
Checking for: /boot/boot.scr …
** No partition table - mmc 1 **
Checking for: /boot/uEnv.txt …
** No partition table - mmc 1 **
** No partition table - mmc 1 **
** No partition table - mmc 1 **
** No partition table - mmc 1 **
** No partition table - mmc 1 **
** No partition table - mmc 1 **
** No partition table - mmc 1 **
starting USB…
USB0: Port not available.
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.17.143 (4 ms)
Using cpsw device
TFTP from server 192.168.1.1; our IP address is 192.168.17.143; sending through gateway 192.168.17.1
Filename ‘vmlinuz-4.14.51-bone-rt-r16’.
Load address: 0x82000000
Loading: T T T