I have a FAT partition on a USB stick which is not being read using normal envs. Can't understand why...
envs:-
If i stop autoboot and enter:-
and then run:-
I get:-
uBoot clearly sees the disk:-
What should I change so that /boot/uEnv.txt on this USB stick is read automatically?
envs:-
uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_ready_retry=15
If i stop autoboot and enter:-
setenv load_bsdenv 'usb start; load usb 0:1 0x810000 /boot/uEnv.txt; env import -t 0x810000 $filesize' setenv boot_bsd 'run load_bsdenv; boot'
and then run:-
run boot_bsd
I get:-
reading /boot/uEnv.txt 287 bytes read in 64 ms (3.9 KiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC reading ubldr 295973 bytes read in 90 ms (3.1 MiB/s) CACHE: Misaligned operation at range [01000098, 01030c04] CACHE: Misaligned operation at range [01030c04, 01031707] CACHE: Misaligned operation at range [01031708, 010330f0] CACHE: Misaligned operation at range [010330f0, 0103558b] CACHE: Misaligned operation at range [01035590, 01036c98] CACHE: Misaligned operation at range [01036c98, 01036cf4] CACHE: Misaligned operation at range [01036cf4, 01036d5c] CACHE: Misaligned operation at range [01036d5c, 01036e30] CACHE: Misaligned operation at range [01036e30, 01036e3c] ## Starting application at 0x01000098 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x7b12860 FreeBSD/arm U-Boot loader, Revision 1.2 (Thu Nov 30 14:06:37 GMT 2017 root@Test) DRAM: 128MB Number of U-Boot devices: 2 U-Boot env: loaderdev='usb 0:1' Found U-Boot device: disk Checking unit=0 slice=1 partition=<auto>... good. Booting from disk0s1:
uBoot clearly sees the disk:-
GoFlexHome> usb start
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
GoFlexHome> ls usb 0:1 /
.tmp/
boot/
295973 ubldr
tmp/
12784 typescript.007
12310 typescript.008
314989 ubldr.pie
287 uenv.txt
12005 typescript
12005 typescript.006
7 file(s), 3 dir(s)
What should I change so that /boot/uEnv.txt on this USB stick is read automatically?