ipq806x: add nor config wpq864 Add the nor flash config to dts

Boot openwrt-ipq806x-generic-compex_wpq864-initramfs-fit-uImage.itb via tftpboot.
run sysupgrade -n openwrt-ipq806x-generic-compex_wpq864-squashfs-nand-sysupgrade.bin
next reboot halted with kernelpanic "Unable to mount root fs"

```
[    3.703628] ubi0: background thread "ubi_bgt0d" started,?[    3.717563] List of all partitions:
[    3.717603] 1f00             256 mtdblock0
[    3.717615]  (driver?)
[    3.724124] 1f01            1280 mtdblock1
[    3.724134]  (driver?)
[    3.730528] 1f02            1280 mtdblock2
[    3.730539]  (driver?)
[    3.737041] 1f03            2560 mtdblock3
[    3.737050]  (driver?)
[    3.743620] 1f04            1152 mtdblock4
[    3.743629]  (driver?)
[    3.750059] 1f05            1152 mtdblock5
[    3.750067]  (driver?)
[    3.756571] 1f06            2560 mtdblock6
[    3.756580]  (driver?)
[    3.763144] 1f07            2560 mtdblock7
[    3.763154]  (driver?)
[    3.769591] 1f08            5120 mtdblock8
[    3.769598]  (driver?)
[    3.776103] 1f09             512 mtdblock9
[    3.776112]  (driver?)
[    3.782669] 1f0a            1280 mtdblock10
[    3.782680]  (driver?)
[    3.789470] 1f0b           65536 mtdblock11
[    3.789477]  (driver?)
[    3.796068] 1f0c             384 mtdblock12
[    3.796077]  (driver?)
[    3.802726] 1f0d            1280 mtdblock13
[    3.802735]  (driver?)
[    3.809262] 1f0e            2560 mtdblock14
[    3.809270]  (driver?)
[    3.815859] 1f0f            1152 mtdblock15
[    3.815868]  (driver?)
[    3.822532] 1f10            1152 mtdblock16
[    3.822541]  (driver?)
[    3.829053] 1f11            2560 mtdblock17
[    3.829061]  (driver?)
[    3.835652] 1f12            2560 mtdblock18
[    3.835662]  (driver?)
[    3.842308] 1f13             384 mtdblock19
[    3.842317]  (driver?)
[    3.848844] 1f14            5120 mtdblock20
[    3.848853]  (driver?)
[    3.855443] 1f15           65536 mtdblock21
[    3.855455]  (driver?)
[    3.862113] 1f16           94208 mtdblock22
[    3.862122]  (driver?)
[    3.868635] 1f17           16384 mtdblock23
[    3.868643]  (driver?)
[    3.875235] 1f18           16384 mtdblock24
[    3.875243]  (driver?)
[    3.881888] fe00            8060 ubiblock0_1
[    3.881896]  (driver?)
[    3.888425] No filesystem could mount root, tried:
[    3.888431]  squashfs
[    3.890684]
[    3.897887] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,23)
```

Fixes: openwrt#15476

Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
This commit is contained in:
Patrick Grimm 2024-09-29 13:52:40 +02:00
parent c45815ff92
commit 9d3a33e78e

View File

@ -413,6 +413,86 @@
&flash {
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
reg = <0>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "1:SBL1";
reg = <0x0 0x20000>;
read-only;
};
partition@20000 {
label = "1:MIBIB";
reg = <0x20000 0x20000>;
read-only;
};
partition@40000 {
label = "1:SBL2";
reg = <0x40000 0x40000>;
read-only;
};
partition@80000 {
label = "1:SBL3";
reg = <0x80000 0x80000>;
read-only;
};
partition@100000 {
label = "1:DDRCONFIG";
reg = <0x100000 0x10000>;
read-only;
};
partition@110000 {
label = "1:TZ";
reg = <0x110000 0x80000>;
read-only;
};
partition@190000 {
label = "1:RPM";
reg = <0x190000 0x80000>;
read-only;
};
partition@2100000 {
label = "1:APPSBL";
reg = <0x210000 0x80000>;
read-only;
};
partition@290000 {
label = "1:APPSBLENV";
reg = <0x290000 0x40000>;
};
partition@2d0000 {
label = "1:ART";
reg = <0x2d0000 0x40000>;
read-only;
};
partition@310000 {
label = "1:HLOS";
reg = <0x310000 0x0400000>;
};
partition@710000 {
label = "1:rootfs";
reg = <0x710000 0x1800000>;
};
/delete-node/ partition@1;
};
};
&sata_phy {