[U-Boot] raspberrypi0w issue when change cmdline.txt -> FDT_ERR_BADMAGIC

Hi,
I'm having strange issue that when update cmdline.txt in boot partition (basically after first boot there is resize of data partition) then I get this: U-Boot 2018.07-g981cc831e3 (Mar 26 2019 - 11:14:55 +0100)
DRAM: 448 MiB RPI Zero W (0x9000c1) MMC: sdhci@7e300000: 0 Loading Environment from FAT... *** Warning - bad CRC, using default environment
Failed (-5) Loading Environment from MMC... OK In: serial Out: serial Err: serial Net: No ethernet found. Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 300 bytes read in 6 ms (48.8 KiB/s) ## Executing script at 02400000 libfdt fdt_check_header(): FDT_ERR_BADMAGIC switch to partitions #0, OK mmc0 is current device 4688856 bytes read in 307 ms (14.6 MiB/s) Kernel image @ 0x080000 [ 0x000000 - 0x478bd8 ] ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree SCRIPT FAILED: continuing... starting USB... USB0: scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found
when checking fdt_addr there was no dtb loaded at all (juts 0xaa on that address). When remove resize from cmdline.txt before booting then board boots fine. Any ideas if broadcom FW can change something in that regard and break things? Thanks for any pointers.
BR,
marek
participants (1)
-
Belisko Marek