All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] raspberrypi0w issue when change cmdline.txt -> FDT_ERR_BADMAGIC
@ 2019-03-28  9:41 Belisko Marek
  0 siblings, 0 replies; only message in thread
From: Belisko Marek @ 2019-03-28  9:41 UTC (permalink / raw)
  To: u-boot

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 at 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

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-28  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-28  9:41 [U-Boot] raspberrypi0w issue when change cmdline.txt -> FDT_ERR_BADMAGIC Belisko Marek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.