Details
-
Type:
Bug
-
Status: Done
-
Priority:
(None)
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Kanban_Cleanup_2020_06_20
-
Labels:
-
Backlog:yes
Description
With the latest commit in mender-conver there is a problem with RPi0W which does not seem to be tool-chain related..
When you run a converted image on RPi0W it will first resize data to end of SD card and then after reboot board cannot boot because it cannot find devicetree like:
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
and then it is just unusable. Dropping resizing (basically remove init= from cmdline.txt) then it works fine.