Device tree patching fails if SFP module is connected as first module
I connected SFP module as only module to Mox and it fails to start with following error in U-boot.
U-Boot 2018.11 (Dec 03 2018 - 09:33:41 +0000)
DRAM: 512 MiB
Enabling Armada 3720 wComphy-0: SGMII1 1.25 Gbps
Comphy-1: PEX0 5 Gbps
Comphy-2: USB3_HOST0 5 Gbps
MMC: sdhci@d8000: 0
Loading Environment from SPI Flash... SF: Detected w25q64dw with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Model: CZ.NIC Turris Mox Board
Net: eth0: neta@30000
Turris Mox:
Board version: 22
RAM size: 512 MiB
Serial Number: 0000000D3000001B
ECDSA Public Key: 030149fd703bed9cbd664723986eaf76a2e4c1ef45ccb845dda2dab5b21ed0605b5a75abd9577d9bb29f0a88fc9d9c4d034dbb20332152075ede0c7199e0e8d9d2bc70
SD/eMMC version: SD
Module Topology:
1: SFP Module
Hit any key to stop autoboot: 0
gpio: pin GPIO221 (gpio 57) value is 0
gpio: pin GPIO220 (gpio 56) value is 1
SF: Detected w25q64dw with page size 256 Bytes, erase size 4 KiB, total 8 MiB
device 0 offset 0x7f0000, size 0x10000
SF: 65536 bytes @ 0x7f0000 Read: OK
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
403 bytes read in 72 ms (4.9 KiB/s)
## Executing script at 04d00000
9959432 bytes read in 482 ms (19.7 MiB/s)
19292 bytes read in 66 ms (285.2 KiB/s)
## Flattened Device Tree blob at 04f00000
Booting using the fdt blob at 0x4f00000
Loading Device Tree to 000000001bf14000, end 000000001bf1bb5b ... OK
ERROR: board-specific fdt fixup failed: FDT_ERR_NOTFOUND
- must RESET the board to recover.
FDT creation failed! hanging...### ERROR ### Please RESET the board ###