All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
@ 2021-01-26  2:39 ` Rob Herring
  0 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2021-01-26  2:39 UTC (permalink / raw)
  To: Russell King, Chris Packham; +Cc: linux-arm-kernel, devicetree, Qi Zheng

Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
Non-existent nodes would mistaken get created with a leading '/'. The
problem was fdt_path_offset() takes a full path while creating a node
with fdt_add_subnode() takes just the basename.

Since this we only add root child nodes, we can just skip over the '/'.

Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Qi Zheng <arch0.zheng@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/boot/compressed/atags_to_fdt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c
index 8452753efebe..31927d2fe297 100644
--- a/arch/arm/boot/compressed/atags_to_fdt.c
+++ b/arch/arm/boot/compressed/atags_to_fdt.c
@@ -15,7 +15,8 @@ static int node_offset(void *fdt, const char *node_path)
 {
 	int offset = fdt_path_offset(fdt, node_path);
 	if (offset == -FDT_ERR_NOTFOUND)
-		offset = fdt_add_subnode(fdt, 0, node_path);
+		/* Add the node to root if not found, dropping the leading '/' */
+		offset = fdt_add_subnode(fdt, 0, node_path + 1);
 	return offset;
 }
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
@ 2021-01-26  2:39 ` Rob Herring
  0 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2021-01-26  2:39 UTC (permalink / raw)
  To: Russell King, Chris Packham; +Cc: devicetree, Qi Zheng, linux-arm-kernel

Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
Non-existent nodes would mistaken get created with a leading '/'. The
problem was fdt_path_offset() takes a full path while creating a node
with fdt_add_subnode() takes just the basename.

Since this we only add root child nodes, we can just skip over the '/'.

Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Qi Zheng <arch0.zheng@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/boot/compressed/atags_to_fdt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c
index 8452753efebe..31927d2fe297 100644
--- a/arch/arm/boot/compressed/atags_to_fdt.c
+++ b/arch/arm/boot/compressed/atags_to_fdt.c
@@ -15,7 +15,8 @@ static int node_offset(void *fdt, const char *node_path)
 {
 	int offset = fdt_path_offset(fdt, node_path);
 	if (offset == -FDT_ERR_NOTFOUND)
-		offset = fdt_add_subnode(fdt, 0, node_path);
+		/* Add the node to root if not found, dropping the leading '/' */
+		offset = fdt_add_subnode(fdt, 0, node_path + 1);
 	return offset;
 }
 
-- 
2.27.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
  2021-01-26  2:39 ` Rob Herring
@ 2021-01-26  2:50   ` Chris Packham
  -1 siblings, 0 replies; 12+ messages in thread
From: Chris Packham @ 2021-01-26  2:50 UTC (permalink / raw)
  To: Rob Herring, Russell King; +Cc: linux-arm-kernel, devicetree, Qi Zheng

Hi Rob,

On 26/01/21 3:39 pm, Rob Herring wrote:
> Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
> call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
> Non-existent nodes would mistaken get created with a leading '/'. The
> problem was fdt_path_offset() takes a full path while creating a node
> with fdt_add_subnode() takes just the basename.
>
> Since this we only add root child nodes, we can just skip over the '/'.
>
> Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
> Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Cc: Qi Zheng <arch0.zheng@gmail.com>
> Cc: Russell King <linux@armlinux.org.uk>
> Signed-off-by: Rob Herring <robh@kernel.org>

Thanks for the quick patch. It doesn't quite seem to work as my system 
can't find it's initrd (it can with my other hacky patch). It does seem 
to get the command line info as I'm getting printk output.

> ---
>   arch/arm/boot/compressed/atags_to_fdt.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c
> index 8452753efebe..31927d2fe297 100644
> --- a/arch/arm/boot/compressed/atags_to_fdt.c
> +++ b/arch/arm/boot/compressed/atags_to_fdt.c
> @@ -15,7 +15,8 @@ static int node_offset(void *fdt, const char *node_path)
>   {
>   	int offset = fdt_path_offset(fdt, node_path);
>   	if (offset == -FDT_ERR_NOTFOUND)
> -		offset = fdt_add_subnode(fdt, 0, node_path);
> +		/* Add the node to root if not found, dropping the leading '/' */
> +		offset = fdt_add_subnode(fdt, 0, node_path + 1);
>   	return offset;
>   }
>   

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
@ 2021-01-26  2:50   ` Chris Packham
  0 siblings, 0 replies; 12+ messages in thread
From: Chris Packham @ 2021-01-26  2:50 UTC (permalink / raw)
  To: Rob Herring, Russell King; +Cc: devicetree, Qi Zheng, linux-arm-kernel

Hi Rob,

On 26/01/21 3:39 pm, Rob Herring wrote:
> Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
> call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
> Non-existent nodes would mistaken get created with a leading '/'. The
> problem was fdt_path_offset() takes a full path while creating a node
> with fdt_add_subnode() takes just the basename.
>
> Since this we only add root child nodes, we can just skip over the '/'.
>
> Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
> Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Cc: Qi Zheng <arch0.zheng@gmail.com>
> Cc: Russell King <linux@armlinux.org.uk>
> Signed-off-by: Rob Herring <robh@kernel.org>

Thanks for the quick patch. It doesn't quite seem to work as my system 
can't find it's initrd (it can with my other hacky patch). It does seem 
to get the command line info as I'm getting printk output.

> ---
>   arch/arm/boot/compressed/atags_to_fdt.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c
> index 8452753efebe..31927d2fe297 100644
> --- a/arch/arm/boot/compressed/atags_to_fdt.c
> +++ b/arch/arm/boot/compressed/atags_to_fdt.c
> @@ -15,7 +15,8 @@ static int node_offset(void *fdt, const char *node_path)
>   {
>   	int offset = fdt_path_offset(fdt, node_path);
>   	if (offset == -FDT_ERR_NOTFOUND)
> -		offset = fdt_add_subnode(fdt, 0, node_path);
> +		/* Add the node to root if not found, dropping the leading '/' */
> +		offset = fdt_add_subnode(fdt, 0, node_path + 1);
>   	return offset;
>   }
>   
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
  2021-01-26  2:50   ` Chris Packham
@ 2021-01-26 14:25     ` Rob Herring
  -1 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2021-01-26 14:25 UTC (permalink / raw)
  To: Chris Packham; +Cc: Russell King, linux-arm-kernel, devicetree, Qi Zheng

On Mon, Jan 25, 2021 at 8:50 PM Chris Packham
<Chris.Packham@alliedtelesis.co.nz> wrote:
>
> Hi Rob,
>
> On 26/01/21 3:39 pm, Rob Herring wrote:
> > Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
> > call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
> > Non-existent nodes would mistaken get created with a leading '/'. The
> > problem was fdt_path_offset() takes a full path while creating a node
> > with fdt_add_subnode() takes just the basename.
> >
> > Since this we only add root child nodes, we can just skip over the '/'.
> >
> > Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
> > Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> > Cc: Qi Zheng <arch0.zheng@gmail.com>
> > Cc: Russell King <linux@armlinux.org.uk>
> > Signed-off-by: Rob Herring <robh@kernel.org>
>
> Thanks for the quick patch. It doesn't quite seem to work as my system
> can't find it's initrd (it can with my other hacky patch). It does seem
> to get the command line info as I'm getting printk output.

That doesn't make sense. Can you enable debug in drivers/of/fdt.c.

Rob

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
@ 2021-01-26 14:25     ` Rob Herring
  0 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2021-01-26 14:25 UTC (permalink / raw)
  To: Chris Packham; +Cc: devicetree, Russell King, linux-arm-kernel, Qi Zheng

On Mon, Jan 25, 2021 at 8:50 PM Chris Packham
<Chris.Packham@alliedtelesis.co.nz> wrote:
>
> Hi Rob,
>
> On 26/01/21 3:39 pm, Rob Herring wrote:
> > Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
> > call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
> > Non-existent nodes would mistaken get created with a leading '/'. The
> > problem was fdt_path_offset() takes a full path while creating a node
> > with fdt_add_subnode() takes just the basename.
> >
> > Since this we only add root child nodes, we can just skip over the '/'.
> >
> > Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
> > Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> > Cc: Qi Zheng <arch0.zheng@gmail.com>
> > Cc: Russell King <linux@armlinux.org.uk>
> > Signed-off-by: Rob Herring <robh@kernel.org>
>
> Thanks for the quick patch. It doesn't quite seem to work as my system
> can't find it's initrd (it can with my other hacky patch). It does seem
> to get the command line info as I'm getting printk output.

That doesn't make sense. Can you enable debug in drivers/of/fdt.c.

Rob

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
  2021-01-26 14:25     ` Rob Herring
@ 2021-01-26 20:16       ` Chris Packham
  -1 siblings, 0 replies; 12+ messages in thread
From: Chris Packham @ 2021-01-26 20:16 UTC (permalink / raw)
  To: Rob Herring; +Cc: Russell King, linux-arm-kernel, devicetree, Qi Zheng

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]

Hi Rob

On 27/01/21 3:25 am, Rob Herring wrote:
> On Mon, Jan 25, 2021 at 8:50 PM Chris Packham
> <Chris.Packham@alliedtelesis.co.nz> wrote:
>> Hi Rob,
>>
>> On 26/01/21 3:39 pm, Rob Herring wrote:
>>> Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
>>> call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
>>> Non-existent nodes would mistaken get created with a leading '/'. The
>>> problem was fdt_path_offset() takes a full path while creating a node
>>> with fdt_add_subnode() takes just the basename.
>>>
>>> Since this we only add root child nodes, we can just skip over the '/'.
>>>
>>> Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
>>> Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>>> Cc: Qi Zheng <arch0.zheng@gmail.com>
>>> Cc: Russell King <linux@armlinux.org.uk>
>>> Signed-off-by: Rob Herring <robh@kernel.org>
>> Thanks for the quick patch. It doesn't quite seem to work as my system
>> can't find it's initrd (it can with my other hacky patch). It does seem
>> to get the command line info as I'm getting printk output.
> That doesn't make sense. Can you enable debug in drivers/of/fdt.c.
I've attached two captures with DEBUG enabled in drivers/of/fdt.c. One 
with your patch and one with mine. I note that in your one we do 
actually pick up initrd_start/initrd_end but then it gets disabled for 
some reason (possibly other changes we have in our kernel).

[-- Attachment #2: console-log-with-cp-chosen-patch.txt --]
[-- Type: text/plain, Size: 14757 bytes --]

Booting Linux on physical CPU 0x0
Linux version 5.8.9-at1 (chrisp@chrisp-dl) (arm-unknown-linux-gnueabi-gcc (crosstool-NG 1.24.0) 8.3.0, GNU ld (crosstool-NG 1.24.0) 2.32) #47 SMP Tue Jan 26 19:53:18 UTC 2021
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: x230
OF: fdt: search "chosen", depth: 0, uname: 
OF: fdt: search "chosen", depth: 1, uname: /chosen
OF: fdt: Looking for initrd properties... 
OF: fdt: Command line is: console=ttyS0,115200 root=/dev/ram0 releasefile=x230-tb233.rel bootversion=3.2.4-devel loglevel=8 extraflash=00000000 mtdoops.mtddev=errlog securitylevel=1 ramdisk=20664 relhdr=1644167168,1647769863
OF: fdt: dt_root_size_cells = 1
OF: fdt: dt_root_addr_cells = 1
OF: fdt: memory scan node memory@0, reg size 8,
OF: fdt:  - 60000000 ,  20000000
Memory policy: Data cache writealloc
cma: Reserved 24 MiB at 0x7e800000
Zone ranges:
  Normal   [mem 0x0000000060000000-0x000000007fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000060000000-0x000000007fffffff]
Initmem setup node 0 [mem 0x0000000060000000-0x000000007fffffff]
On node 0 totalpages: 131072
  Normal zone: 1024 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 131072 pages, LIFO batch:31
OF: fdt:  -> unflatten_device_tree()
OF: fdt: Unflattening device tree:
OF: fdt: magic: d00dfeed
OF: fdt: size: 00002a04
OF: fdt: version: 00000011
OF: fdt:   size is 26732, allocating...
OF: fdt:   unflattening (ptrval)...
OF: fdt: fixed up name for  -> 
OF: fdt: fixed up name for /chosen -> chosen
OF: fdt: fixed up name for cpus -> cpus
OF: fdt: fixed up name for cpu@0 -> cpu
OF: fdt: fixed up name for pmu -> pmu
OF: fdt: fixed up name for mpcore@19000000 -> mpcore
OF: fdt: fixed up name for arm_clk@0 -> arm_clk
OF: fdt: fixed up name for timer@20200 -> timer
OF: fdt: fixed up name for twd-timer@20600 -> twd-timer
OF: fdt: fixed up name for twd-watchdog@20620 -> twd-watchdog
OF: fdt: fixed up name for interrupt-controller@21000 -> interrupt-controller
OF: fdt: fixed up name for l2-cache@22000 -> l2-cache
OF: fdt: fixed up name for clocks -> clocks
OF: fdt: fixed up name for oscillator -> oscillator
OF: fdt: fixed up name for periph_clk -> periph_clk
OF: fdt: fixed up name for axi@18000000 -> axi
OF: fdt: fixed up name for serial@300 -> serial
OF: fdt: fixed up name for serial@400 -> serial
OF: fdt: fixed up name for dma@20000 -> dma
OF: fdt: fixed up name for ethernet@22000 -> ethernet
OF: fdt: fixed up name for nand@26000 -> nand
OF: fdt: fixed up name for gpio@30000 -> gpio
OF: fdt: fixed up name for pwm@31000 -> pwm
OF: fdt: fixed up name for rng@33000 -> rng
OF: fdt: fixed up name for spi@27200 -> spi
OF: fdt: fixed up name for mmc-slot@0 -> mmc-slot
OF: fdt: fixed up name for timer@34000 -> timer
OF: fdt: fixed up name for timer@35000 -> timer
OF: fdt: fixed up name for i2c@38000 -> i2c
OF: fdt: fixed up name for watchdog@39000 -> watchdog
OF: fdt: fixed up name for i2c@3b000 -> i2c
OF: fdt: fixed up name for gpio@00060 -> gpio
OF: fdt: fixed up name for poe-dis -> poe-dis
OF: fdt: fixed up name for nor@20000000 -> nor
OF: fdt: fixed up name for partition@u-boot -> partition
OF: fdt: fixed up name for partition@u-boot-env -> partition
OF: fdt: fixed up name for partition@epi3 -> partition
OF: fdt: fixed up name for partition@ram-config -> partition
OF: fdt: fixed up name for partition@errlog -> partition
OF: fdt: fixed up name for partition@user -> partition
OF: fdt: fixed up name for pcie@18012000 -> pcie
OF: fdt: fixed up name for msi-controller -> msi-controller
OF: fdt: fixed up name for pcie@18013000 -> pcie
OF: fdt: fixed up name for msi-controller -> msi-controller
OF: fdt: fixed up name for cmic -> cmic
OF: fdt: fixed up name for gpio@2000 -> gpio
OF: fdt: fixed up name for memory@0 -> memory
OF: fdt: fixed up name for i2c@22080000 -> i2c
OF: fdt: fixed up name for adt7476a@2e -> adt7476a
OF: fdt: fixed up name for rtc@68 -> rtc
OF: fdt: fixed up name for mux@77 -> mux
OF: fdt: fixed up name for i2c@0 -> i2c
OF: fdt: fixed up name for i2c@1 -> i2c
OF: fdt: fixed up name for i2c@2 -> i2c
OF: fdt: fixed up name for i2c@3 -> i2c
OF: fdt: fixed up name for gpio@27 -> gpio
OF: fdt: fixed up name for eco-button-interrupt -> eco-button-interrupt
OF: fdt: fixed up name for board-reset -> board-reset
OF: fdt: fixed up name for gpio-restart -> gpio-restart
OF: fdt: fixed up name for gpio-leds -> gpio-leds
OF: fdt: fixed up name for fault -> fault
OF: fdt: fixed up name for mmc0-activity -> mmc0-activity
OF: fdt: fixed up name for mmc0-state -> mmc0-state
OF: fdt: fixed up name for __symbols__ -> __symbols__
OF: fdt:  <- unflatten_device_tree()
percpu: Embedded 15 pages/cpu s29836 r8192 d23412 u61440
pcpu-alloc: s29836 r8192 d23412 u61440 alloc=15*4096
pcpu-alloc: [0] 0 
Built 1 zonelists, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/ram0 releasefile=x230-tb233.rel bootversion=3.2.4-devel loglevel=8 extraflash=00000000 mtdoops.mtddev=errlog securitylevel=1 ramdisk=20664 relhdr=1644167168,1647769863
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
Memory: 485536K/524288K available (6144K kernel code, 171K rwdata, 1156K rodata, 1024K init, 111K bss, 14176K reserved, 24576K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: 	RCU event tracing is enabled.
rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e120001
random: get_random_bytes called from start_kernel+0x308/0x494 with crng_init=0
sched_clock: 64 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x2e2049dc38, max_idle_ns: 440795209465 ns
Switching to timer-based delay loop, resolution 5ns
Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
CPU: Testing write buffer coherency: ok
CPU0: Spectre v2: using BPIALL workaround
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x60100000 - 0x60100060
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
SMP: Total of 1 processors activated (400.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: 2, 16384 bytes, linear)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 1024 (order: 1, 12288 bytes, linear)
TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (invalid magic at start of compressed archive); looks like an initrd
workingset: timestamp_bits=30 max_order=17 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler mq-deadline registered
io scheduler kyber registered
gpio-486 (poe-dis): hogged as output/high
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
printk: console [ttyS0] disabled
18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 21, base_baud = 3125000) is a 16550A
printk: console [ttyS0] enabled
brd: module loaded
loop: module loaded
physmap-flash 20000000.nor: physmap platform flash device: [mem 0x20000000-0x21ffffff]
20000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.5.
number of CFI chips: 1
6 fixed-partitions partitions found on MTD device 20000000.nor
Creating 6 MTD partitions on "20000000.nor":
0x000000000000-0x0000000c0000 : "u-boot"
0x0000000c0000-0x0000000e0000 : "u-boot-env"
0x0000000e0000-0x000000100000 : "epi3"
0x000000100000-0x000000120000 : "ram-config"
0x000000120000-0x000000220000 : "errlog"
mtdoops: ready 0, 1 (no erase)
mtdoops: Attached to MTD device 4
0x000000220000-0x000004000000 : "user"
bcm_iproc 18027200.spi: using bspi-mspi mode
tun: Universal TUN/TAP device driver, 1.6
i2c /dev entries driver
PCA9564/PCA9665 at 0x22080000: PCA9665 detected.
PCA9564/PCA9665 at 0x22080000: Clock frequency is 100000Hz
PCA9564/PCA9665 at 0x22080000: clock=1000 mode=STD(0) min_tlow=157 min_thi=134 tlow=165 thi=140
rtc-ds1307 0-0068: registered as rtc0
rtc-ds1307 0-0068: setting system clock to 2021-01-26T18:07:14 UTC (1611684434)
pca953x 0-0027: using no AI
i2c-pca-platform 22080000.i2c: registered.
i2c i2c-0: Added multiplexed i2c bus 1
i2c i2c-0: Added multiplexed i2c bus 2
i2c i2c-0: Added multiplexed i2c bus 3
i2c i2c-0: Added multiplexed i2c bus 4
pca954x 0-0077: registered 4 multiplexed busses for I2C mux pca9544
adt7475 0-002e: ADT7476 device, revision 3
adt7475 0-002e: Optional features: in0 in4 fan4 pwm2 vid
sp805-wdt 18039000.watchdog: registration successful
mmc_spi spi0.0: SD/MMC host mmc0, no DMA, no poweroff, cd polling
OF: fdt:  -> unflatten_device_tree()
OF: fdt: Unflattening device tree:
OF: fdt: magic: d00dfeed
OF: fdt: size: 000003e8
OF: fdt: version: 00000011
OF: fdt:   size is 1800, allocating...
OF: fdt:   unflattening (ptrval)...
OF: fdt: fixed up name for  -> 
OF: fdt: fixed up name for fragment@0 -> fragment
OF: fdt: fixed up name for __overlay__ -> __overlay__
OF: fdt: fixed up name for sfpcage@1 -> sfpcage
OF: fdt: fixed up name for sfpcage@2 -> sfpcage
OF: fdt: fixed up name for __fixups__ -> __fixups__
OF: fdt: unflattened tree is detached
OF: fdt:  <- unflatten_device_tree()
atl_cage sfpcage@1: atl_cage sfp17 successfully probed
atl_cage sfpcage@2: atl_cage sfp18 successfully probed
Registered boardinfo device 00
atl-eco-button eco-button-interrupt: registration successful
IPv4 over IPsec tunneling driver
Initializing XFRM netlink socket
NET: Registered protocol family 10
Segment Routing with IPv6
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
l2tp_core: L2TP core driver, V2.0
l2tp_ip: L2TP IP encapsulation support (L2TPv3)
l2tp_netlink: L2TP netlink interface
l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
8021q: 802.1Q VLAN Support v1.8
Registering SWP/SWPB emulation handler
registered taskstats version 1
RAMDISK: squashfs filesystem found at block 0
RAMDISK: Loading 20661KiB [1 disk] into ram disk... |\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\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-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\bdone.
VFS: Mounted root (squashfs filesystem) readonly on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
Run /sbin/init as init process
  with arguments:
    /sbin/init
  with environment:
    HOME=/
    TERM=linux
    releasefile=x230-tb233.rel
    bootversion=3.2.4-devel
    securitylevel=1
random: real_init: uninitialized urandom read (12 bytes read)
Starting base/first...                                  [  OK  ]

[-- Attachment #3: console-log-with-rh-atags-patch.txt --]
[-- Type: text/plain, Size: 13660 bytes --]

Booting Linux on physical CPU 0x0
Linux version 5.8.9-at1 (chrisp@chrisp-dl) (arm-unknown-linux-gnueabi-gcc (crosstool-NG 1.24.0) 8.3.0, GNU ld (crosstool-NG 1.24.0) 2.32) #45 SMP Tue Jan 26 19:46:36 UTC 2021
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: x230
OF: fdt: search "chosen", depth: 0, uname: 
OF: fdt: search "chosen", depth: 1, uname: chosen
OF: fdt: Looking for initrd properties... 
OF: fdt: initrd_start=0x6236f8f7  initrd_end=0x6379d8f7
OF: fdt: Command line is: console=ttyS0,115200 root=/dev/ram0 releasefile=x230-tb233.rel bootversion=3.2.4-devel loglevel=8 extraflash=00000000 mtdoops.mtddev=errlog securitylevel=1 ramdisk=20664 relhdr=1644167168,1647769847
OF: fdt: dt_root_size_cells = 1
OF: fdt: dt_root_addr_cells = 1
OF: fdt: memory scan node memory@0, reg size 8,
OF: fdt:  - 60000000 ,  20000000
Memory policy: Data cache writealloc
cma: Reserved 24 MiB at 0x7e800000
Zone ranges:
  Normal   [mem 0x0000000060000000-0x000000007fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000060000000-0x000000007fffffff]
Initmem setup node 0 [mem 0x0000000060000000-0x000000007fffffff]
On node 0 totalpages: 131072
  Normal zone: 1024 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 131072 pages, LIFO batch:31
OF: fdt:  -> unflatten_device_tree()
OF: fdt: Unflattening device tree:
OF: fdt: magic: d00dfeed
OF: fdt: size: 00002a48
OF: fdt: version: 00000011
OF: fdt:   size is 26828, allocating...
OF: fdt:   unflattening (ptrval)...
OF: fdt: fixed up name for  -> 
OF: fdt: fixed up name for chosen -> chosen
OF: fdt: fixed up name for cpus -> cpus
OF: fdt: fixed up name for cpu@0 -> cpu
OF: fdt: fixed up name for pmu -> pmu
OF: fdt: fixed up name for mpcore@19000000 -> mpcore
OF: fdt: fixed up name for arm_clk@0 -> arm_clk
OF: fdt: fixed up name for timer@20200 -> timer
OF: fdt: fixed up name for twd-timer@20600 -> twd-timer
OF: fdt: fixed up name for twd-watchdog@20620 -> twd-watchdog
OF: fdt: fixed up name for interrupt-controller@21000 -> interrupt-controller
OF: fdt: fixed up name for l2-cache@22000 -> l2-cache
OF: fdt: fixed up name for clocks -> clocks
OF: fdt: fixed up name for oscillator -> oscillator
OF: fdt: fixed up name for periph_clk -> periph_clk
OF: fdt: fixed up name for axi@18000000 -> axi
OF: fdt: fixed up name for serial@300 -> serial
OF: fdt: fixed up name for serial@400 -> serial
OF: fdt: fixed up name for dma@20000 -> dma
OF: fdt: fixed up name for ethernet@22000 -> ethernet
OF: fdt: fixed up name for nand@26000 -> nand
OF: fdt: fixed up name for gpio@30000 -> gpio
OF: fdt: fixed up name for pwm@31000 -> pwm
OF: fdt: fixed up name for rng@33000 -> rng
OF: fdt: fixed up name for spi@27200 -> spi
OF: fdt: fixed up name for mmc-slot@0 -> mmc-slot
OF: fdt: fixed up name for timer@34000 -> timer
OF: fdt: fixed up name for timer@35000 -> timer
OF: fdt: fixed up name for i2c@38000 -> i2c
OF: fdt: fixed up name for watchdog@39000 -> watchdog
OF: fdt: fixed up name for i2c@3b000 -> i2c
OF: fdt: fixed up name for gpio@00060 -> gpio
OF: fdt: fixed up name for poe-dis -> poe-dis
OF: fdt: fixed up name for nor@20000000 -> nor
OF: fdt: fixed up name for partition@u-boot -> partition
OF: fdt: fixed up name for partition@u-boot-env -> partition
OF: fdt: fixed up name for partition@epi3 -> partition
OF: fdt: fixed up name for partition@ram-config -> partition
OF: fdt: fixed up name for partition@errlog -> partition
OF: fdt: fixed up name for partition@user -> partition
OF: fdt: fixed up name for pcie@18012000 -> pcie
OF: fdt: fixed up name for msi-controller -> msi-controller
OF: fdt: fixed up name for pcie@18013000 -> pcie
OF: fdt: fixed up name for msi-controller -> msi-controller
OF: fdt: fixed up name for cmic -> cmic
OF: fdt: fixed up name for gpio@2000 -> gpio
OF: fdt: fixed up name for memory@0 -> memory
OF: fdt: fixed up name for i2c@22080000 -> i2c
OF: fdt: fixed up name for adt7476a@2e -> adt7476a
OF: fdt: fixed up name for rtc@68 -> rtc
OF: fdt: fixed up name for mux@77 -> mux
OF: fdt: fixed up name for i2c@0 -> i2c
OF: fdt: fixed up name for i2c@1 -> i2c
OF: fdt: fixed up name for i2c@2 -> i2c
OF: fdt: fixed up name for i2c@3 -> i2c
OF: fdt: fixed up name for gpio@27 -> gpio
OF: fdt: fixed up name for eco-button-interrupt -> eco-button-interrupt
OF: fdt: fixed up name for board-reset -> board-reset
OF: fdt: fixed up name for gpio-restart -> gpio-restart
OF: fdt: fixed up name for gpio-leds -> gpio-leds
OF: fdt: fixed up name for fault -> fault
OF: fdt: fixed up name for mmc0-activity -> mmc0-activity
OF: fdt: fixed up name for mmc0-state -> mmc0-state
OF: fdt: fixed up name for __symbols__ -> __symbols__
OF: fdt:  <- unflatten_device_tree()
percpu: Embedded 15 pages/cpu s29836 r8192 d23412 u61440
pcpu-alloc: s29836 r8192 d23412 u61440 alloc=15*4096
pcpu-alloc: [0] 0 
Built 1 zonelists, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/ram0 releasefile=x230-tb233.rel bootversion=3.2.4-devel loglevel=8 extraflash=00000000 mtdoops.mtddev=errlog securitylevel=1 ramdisk=20664 relhdr=1644167168,1647769847
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
Memory: 464868K/524288K available (6144K kernel code, 171K rwdata, 1156K rodata, 1024K init, 111K bss, 34844K reserved, 24576K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: 	RCU event tracing is enabled.
rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e120001
random: get_random_bytes called from start_kernel+0x308/0x494 with crng_init=0
sched_clock: 64 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x2e2049dc38, max_idle_ns: 440795209465 ns
Switching to timer-based delay loop, resolution 5ns
Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
CPU: Testing write buffer coherency: ok
CPU0: Spectre v2: using BPIALL workaround
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x60100000 - 0x60100060
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
SMP: Total of 1 processors activated (400.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: 2, 16384 bytes, linear)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
INITRD: 0x62370000+0x0142e000 overlaps in-use memory region - disabling initrd
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 1024 (order: 1, 12288 bytes, linear)
TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
NET: Registered protocol family 1
workingset: timestamp_bits=30 max_order=17 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler mq-deadline registered
io scheduler kyber registered
gpio-486 (poe-dis): hogged as output/high
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
printk: console [ttyS0] disabled
18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 21, base_baud = 3125000) is a 16550A
printk: console [ttyS0] enabled
brd: module loaded
loop: module loaded
physmap-flash 20000000.nor: physmap platform flash device: [mem 0x20000000-0x21ffffff]
20000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.5.
number of CFI chips: 1
6 fixed-partitions partitions found on MTD device 20000000.nor
Creating 6 MTD partitions on "20000000.nor":
0x000000000000-0x0000000c0000 : "u-boot"
0x0000000c0000-0x0000000e0000 : "u-boot-env"
0x0000000e0000-0x000000100000 : "epi3"
0x000000100000-0x000000120000 : "ram-config"
0x000000120000-0x000000220000 : "errlog"
mtdoops: ready 0, 1 (no erase)
mtdoops: Attached to MTD device 4
0x000000220000-0x000004000000 : "user"
bcm_iproc 18027200.spi: using bspi-mspi mode
tun: Universal TUN/TAP device driver, 1.6
i2c /dev entries driver
PCA9564/PCA9665 at 0x22080000: PCA9665 detected.
PCA9564/PCA9665 at 0x22080000: Clock frequency is 100000Hz
PCA9564/PCA9665 at 0x22080000: clock=1000 mode=STD(0) min_tlow=157 min_thi=134 tlow=165 thi=140
rtc-ds1307 0-0068: registered as rtc0
rtc-ds1307 0-0068: setting system clock to 2021-01-26T18:00:37 UTC (1611684037)
pca953x 0-0027: using no AI
i2c-pca-platform 22080000.i2c: registered.
i2c i2c-0: Added multiplexed i2c bus 1
i2c i2c-0: Added multiplexed i2c bus 2
i2c i2c-0: Added multiplexed i2c bus 3
i2c i2c-0: Added multiplexed i2c bus 4
pca954x 0-0077: registered 4 multiplexed busses for I2C mux pca9544
adt7475 0-002e: ADT7476 device, revision 3
adt7475 0-002e: Optional features: in0 in4 fan4 pwm2 vid
sp805-wdt 18039000.watchdog: registration successful
mmc_spi spi0.0: SD/MMC host mmc0, no DMA, no poweroff, cd polling
OF: fdt:  -> unflatten_device_tree()
OF: fdt: Unflattening device tree:
OF: fdt: magic: d00dfeed
OF: fdt: size: 000003e8
OF: fdt: version: 00000011
OF: fdt:   size is 1800, allocating...
OF: fdt:   unflattening (ptrval)...
OF: fdt: fixed up name for  -> 
OF: fdt: fixed up name for fragment@0 -> fragment
OF: fdt: fixed up name for __overlay__ -> __overlay__
OF: fdt: fixed up name for sfpcage@1 -> sfpcage
OF: fdt: fixed up name for sfpcage@2 -> sfpcage
OF: fdt: fixed up name for __fixups__ -> __fixups__
OF: fdt: unflattened tree is detached
OF: fdt:  <- unflatten_device_tree()
atl_cage sfpcage@1: atl_cage sfp17 successfully probed
atl_cage sfpcage@2: atl_cage sfp18 successfully probed
Registered boardinfo device 00
atl-eco-button eco-button-interrupt: registration successful
IPv4 over IPsec tunneling driver
Initializing XFRM netlink socket
NET: Registered protocol family 10
Segment Routing with IPv6
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
l2tp_core: L2TP core driver, V2.0
l2tp_ip: L2TP IP encapsulation support (L2TPv3)
l2tp_netlink: L2TP netlink interface
l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
8021q: 802.1Q VLAN Support v1.8
Registering SWP/SWPB emulation handler
registered taskstats version 1
List of all partitions:
0100           20664 ram0 
 (driver?)
0101           20664 ram1 
 (driver?)
0102           20664 ram2 
 (driver?)
0103           20664 ram3 
 (driver?)
0104           20664 ram4 
 (driver?)
0105           20664 ram5 
 (driver?)
0106           20664 ram6 
 (driver?)
0107           20664 ram7 
 (driver?)
0108           20664 ram8 
 (driver?)
0109           20664 ram9 
 (driver?)
010a           20664 ram10 
 (driver?)
010b           20664 ram11 
 (driver?)
010c           20664 ram12 
 (driver?)
010d           20664 ram13 
 (driver?)
010e           20664 ram14 
 (driver?)
010f           20664 ram15 
 (driver?)
1f00             768 mtdblock0 
 (driver?)
1f01             128 mtdblock1 
 (driver?)
1f02             128 mtdblock2 
 (driver?)
1f03             128 mtdblock3 
 (driver?)
1f04            1024 mtdblock4 
 (driver?)
1f05           63360 mtdblock5 
 (driver?)
No filesystem could mount root, tried: 
 ext3
 ext2
 ext4
 squashfs
 vfat
 msdos
 jffs2

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.8.9-at1 #45
Hardware name: Allied Telesis x230
[<c0108a54>] (unwind_backtrace) from [<c0104ed0>] (show_stack+0x10/0x14)
[<c0104ed0>] (show_stack) from [<c037df7c>] (dump_stack+0x9c/0xb0)
[<c037df7c>] (dump_stack) from [<c01131f0>] (panic+0x110/0x300)
[<c01131f0>] (panic) from [<c09014f8>] (mount_block_root+0x3b4/0x3bc)
[<c09014f8>] (mount_block_root) from [<c0901848>] (prepare_namespace+0x17c/0x1b8)
[<c0901848>] (prepare_namespace) from [<c060f9bc>] (kernel_init+0x8/0x114)
[<c060f9bc>] (kernel_init) from [<c0100148>] (ret_from_fork+0x14/0x2c)
Exception stack(0xddc33fb0 to 0xddc33ff8)
3fa0:                                     00000000 00000000 00000000 00000000
3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
mtdoops: ready 1, 2 (no erase)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) ]---

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
@ 2021-01-26 20:16       ` Chris Packham
  0 siblings, 0 replies; 12+ messages in thread
From: Chris Packham @ 2021-01-26 20:16 UTC (permalink / raw)
  To: Rob Herring; +Cc: devicetree, Russell King, linux-arm-kernel, Qi Zheng

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]

Hi Rob

On 27/01/21 3:25 am, Rob Herring wrote:
> On Mon, Jan 25, 2021 at 8:50 PM Chris Packham
> <Chris.Packham@alliedtelesis.co.nz> wrote:
>> Hi Rob,
>>
>> On 26/01/21 3:39 pm, Rob Herring wrote:
>>> Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
>>> call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
>>> Non-existent nodes would mistaken get created with a leading '/'. The
>>> problem was fdt_path_offset() takes a full path while creating a node
>>> with fdt_add_subnode() takes just the basename.
>>>
>>> Since this we only add root child nodes, we can just skip over the '/'.
>>>
>>> Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
>>> Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>>> Cc: Qi Zheng <arch0.zheng@gmail.com>
>>> Cc: Russell King <linux@armlinux.org.uk>
>>> Signed-off-by: Rob Herring <robh@kernel.org>
>> Thanks for the quick patch. It doesn't quite seem to work as my system
>> can't find it's initrd (it can with my other hacky patch). It does seem
>> to get the command line info as I'm getting printk output.
> That doesn't make sense. Can you enable debug in drivers/of/fdt.c.
I've attached two captures with DEBUG enabled in drivers/of/fdt.c. One 
with your patch and one with mine. I note that in your one we do 
actually pick up initrd_start/initrd_end but then it gets disabled for 
some reason (possibly other changes we have in our kernel).

[-- Attachment #2: console-log-with-cp-chosen-patch.txt --]
[-- Type: text/plain, Size: 14757 bytes --]

Booting Linux on physical CPU 0x0
Linux version 5.8.9-at1 (chrisp@chrisp-dl) (arm-unknown-linux-gnueabi-gcc (crosstool-NG 1.24.0) 8.3.0, GNU ld (crosstool-NG 1.24.0) 2.32) #47 SMP Tue Jan 26 19:53:18 UTC 2021
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: x230
OF: fdt: search "chosen", depth: 0, uname: 
OF: fdt: search "chosen", depth: 1, uname: /chosen
OF: fdt: Looking for initrd properties... 
OF: fdt: Command line is: console=ttyS0,115200 root=/dev/ram0 releasefile=x230-tb233.rel bootversion=3.2.4-devel loglevel=8 extraflash=00000000 mtdoops.mtddev=errlog securitylevel=1 ramdisk=20664 relhdr=1644167168,1647769863
OF: fdt: dt_root_size_cells = 1
OF: fdt: dt_root_addr_cells = 1
OF: fdt: memory scan node memory@0, reg size 8,
OF: fdt:  - 60000000 ,  20000000
Memory policy: Data cache writealloc
cma: Reserved 24 MiB at 0x7e800000
Zone ranges:
  Normal   [mem 0x0000000060000000-0x000000007fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000060000000-0x000000007fffffff]
Initmem setup node 0 [mem 0x0000000060000000-0x000000007fffffff]
On node 0 totalpages: 131072
  Normal zone: 1024 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 131072 pages, LIFO batch:31
OF: fdt:  -> unflatten_device_tree()
OF: fdt: Unflattening device tree:
OF: fdt: magic: d00dfeed
OF: fdt: size: 00002a04
OF: fdt: version: 00000011
OF: fdt:   size is 26732, allocating...
OF: fdt:   unflattening (ptrval)...
OF: fdt: fixed up name for  -> 
OF: fdt: fixed up name for /chosen -> chosen
OF: fdt: fixed up name for cpus -> cpus
OF: fdt: fixed up name for cpu@0 -> cpu
OF: fdt: fixed up name for pmu -> pmu
OF: fdt: fixed up name for mpcore@19000000 -> mpcore
OF: fdt: fixed up name for arm_clk@0 -> arm_clk
OF: fdt: fixed up name for timer@20200 -> timer
OF: fdt: fixed up name for twd-timer@20600 -> twd-timer
OF: fdt: fixed up name for twd-watchdog@20620 -> twd-watchdog
OF: fdt: fixed up name for interrupt-controller@21000 -> interrupt-controller
OF: fdt: fixed up name for l2-cache@22000 -> l2-cache
OF: fdt: fixed up name for clocks -> clocks
OF: fdt: fixed up name for oscillator -> oscillator
OF: fdt: fixed up name for periph_clk -> periph_clk
OF: fdt: fixed up name for axi@18000000 -> axi
OF: fdt: fixed up name for serial@300 -> serial
OF: fdt: fixed up name for serial@400 -> serial
OF: fdt: fixed up name for dma@20000 -> dma
OF: fdt: fixed up name for ethernet@22000 -> ethernet
OF: fdt: fixed up name for nand@26000 -> nand
OF: fdt: fixed up name for gpio@30000 -> gpio
OF: fdt: fixed up name for pwm@31000 -> pwm
OF: fdt: fixed up name for rng@33000 -> rng
OF: fdt: fixed up name for spi@27200 -> spi
OF: fdt: fixed up name for mmc-slot@0 -> mmc-slot
OF: fdt: fixed up name for timer@34000 -> timer
OF: fdt: fixed up name for timer@35000 -> timer
OF: fdt: fixed up name for i2c@38000 -> i2c
OF: fdt: fixed up name for watchdog@39000 -> watchdog
OF: fdt: fixed up name for i2c@3b000 -> i2c
OF: fdt: fixed up name for gpio@00060 -> gpio
OF: fdt: fixed up name for poe-dis -> poe-dis
OF: fdt: fixed up name for nor@20000000 -> nor
OF: fdt: fixed up name for partition@u-boot -> partition
OF: fdt: fixed up name for partition@u-boot-env -> partition
OF: fdt: fixed up name for partition@epi3 -> partition
OF: fdt: fixed up name for partition@ram-config -> partition
OF: fdt: fixed up name for partition@errlog -> partition
OF: fdt: fixed up name for partition@user -> partition
OF: fdt: fixed up name for pcie@18012000 -> pcie
OF: fdt: fixed up name for msi-controller -> msi-controller
OF: fdt: fixed up name for pcie@18013000 -> pcie
OF: fdt: fixed up name for msi-controller -> msi-controller
OF: fdt: fixed up name for cmic -> cmic
OF: fdt: fixed up name for gpio@2000 -> gpio
OF: fdt: fixed up name for memory@0 -> memory
OF: fdt: fixed up name for i2c@22080000 -> i2c
OF: fdt: fixed up name for adt7476a@2e -> adt7476a
OF: fdt: fixed up name for rtc@68 -> rtc
OF: fdt: fixed up name for mux@77 -> mux
OF: fdt: fixed up name for i2c@0 -> i2c
OF: fdt: fixed up name for i2c@1 -> i2c
OF: fdt: fixed up name for i2c@2 -> i2c
OF: fdt: fixed up name for i2c@3 -> i2c
OF: fdt: fixed up name for gpio@27 -> gpio
OF: fdt: fixed up name for eco-button-interrupt -> eco-button-interrupt
OF: fdt: fixed up name for board-reset -> board-reset
OF: fdt: fixed up name for gpio-restart -> gpio-restart
OF: fdt: fixed up name for gpio-leds -> gpio-leds
OF: fdt: fixed up name for fault -> fault
OF: fdt: fixed up name for mmc0-activity -> mmc0-activity
OF: fdt: fixed up name for mmc0-state -> mmc0-state
OF: fdt: fixed up name for __symbols__ -> __symbols__
OF: fdt:  <- unflatten_device_tree()
percpu: Embedded 15 pages/cpu s29836 r8192 d23412 u61440
pcpu-alloc: s29836 r8192 d23412 u61440 alloc=15*4096
pcpu-alloc: [0] 0 
Built 1 zonelists, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/ram0 releasefile=x230-tb233.rel bootversion=3.2.4-devel loglevel=8 extraflash=00000000 mtdoops.mtddev=errlog securitylevel=1 ramdisk=20664 relhdr=1644167168,1647769863
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
Memory: 485536K/524288K available (6144K kernel code, 171K rwdata, 1156K rodata, 1024K init, 111K bss, 14176K reserved, 24576K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: 	RCU event tracing is enabled.
rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e120001
random: get_random_bytes called from start_kernel+0x308/0x494 with crng_init=0
sched_clock: 64 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x2e2049dc38, max_idle_ns: 440795209465 ns
Switching to timer-based delay loop, resolution 5ns
Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
CPU: Testing write buffer coherency: ok
CPU0: Spectre v2: using BPIALL workaround
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x60100000 - 0x60100060
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
SMP: Total of 1 processors activated (400.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: 2, 16384 bytes, linear)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 1024 (order: 1, 12288 bytes, linear)
TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (invalid magic at start of compressed archive); looks like an initrd
workingset: timestamp_bits=30 max_order=17 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler mq-deadline registered
io scheduler kyber registered
gpio-486 (poe-dis): hogged as output/high
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
printk: console [ttyS0] disabled
18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 21, base_baud = 3125000) is a 16550A
printk: console [ttyS0] enabled
brd: module loaded
loop: module loaded
physmap-flash 20000000.nor: physmap platform flash device: [mem 0x20000000-0x21ffffff]
20000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.5.
number of CFI chips: 1
6 fixed-partitions partitions found on MTD device 20000000.nor
Creating 6 MTD partitions on "20000000.nor":
0x000000000000-0x0000000c0000 : "u-boot"
0x0000000c0000-0x0000000e0000 : "u-boot-env"
0x0000000e0000-0x000000100000 : "epi3"
0x000000100000-0x000000120000 : "ram-config"
0x000000120000-0x000000220000 : "errlog"
mtdoops: ready 0, 1 (no erase)
mtdoops: Attached to MTD device 4
0x000000220000-0x000004000000 : "user"
bcm_iproc 18027200.spi: using bspi-mspi mode
tun: Universal TUN/TAP device driver, 1.6
i2c /dev entries driver
PCA9564/PCA9665 at 0x22080000: PCA9665 detected.
PCA9564/PCA9665 at 0x22080000: Clock frequency is 100000Hz
PCA9564/PCA9665 at 0x22080000: clock=1000 mode=STD(0) min_tlow=157 min_thi=134 tlow=165 thi=140
rtc-ds1307 0-0068: registered as rtc0
rtc-ds1307 0-0068: setting system clock to 2021-01-26T18:07:14 UTC (1611684434)
pca953x 0-0027: using no AI
i2c-pca-platform 22080000.i2c: registered.
i2c i2c-0: Added multiplexed i2c bus 1
i2c i2c-0: Added multiplexed i2c bus 2
i2c i2c-0: Added multiplexed i2c bus 3
i2c i2c-0: Added multiplexed i2c bus 4
pca954x 0-0077: registered 4 multiplexed busses for I2C mux pca9544
adt7475 0-002e: ADT7476 device, revision 3
adt7475 0-002e: Optional features: in0 in4 fan4 pwm2 vid
sp805-wdt 18039000.watchdog: registration successful
mmc_spi spi0.0: SD/MMC host mmc0, no DMA, no poweroff, cd polling
OF: fdt:  -> unflatten_device_tree()
OF: fdt: Unflattening device tree:
OF: fdt: magic: d00dfeed
OF: fdt: size: 000003e8
OF: fdt: version: 00000011
OF: fdt:   size is 1800, allocating...
OF: fdt:   unflattening (ptrval)...
OF: fdt: fixed up name for  -> 
OF: fdt: fixed up name for fragment@0 -> fragment
OF: fdt: fixed up name for __overlay__ -> __overlay__
OF: fdt: fixed up name for sfpcage@1 -> sfpcage
OF: fdt: fixed up name for sfpcage@2 -> sfpcage
OF: fdt: fixed up name for __fixups__ -> __fixups__
OF: fdt: unflattened tree is detached
OF: fdt:  <- unflatten_device_tree()
atl_cage sfpcage@1: atl_cage sfp17 successfully probed
atl_cage sfpcage@2: atl_cage sfp18 successfully probed
Registered boardinfo device 00
atl-eco-button eco-button-interrupt: registration successful
IPv4 over IPsec tunneling driver
Initializing XFRM netlink socket
NET: Registered protocol family 10
Segment Routing with IPv6
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
l2tp_core: L2TP core driver, V2.0
l2tp_ip: L2TP IP encapsulation support (L2TPv3)
l2tp_netlink: L2TP netlink interface
l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
8021q: 802.1Q VLAN Support v1.8
Registering SWP/SWPB emulation handler
registered taskstats version 1
RAMDISK: squashfs filesystem found at block 0
RAMDISK: Loading 20661KiB [1 disk] into ram disk... |\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\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:0.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
Run /sbin/init as init process
  with arguments:
    /sbin/init
  with environment:
    HOME=/
    TERM=linux
    releasefile=x230-tb233.rel
    bootversion=3.2.4-devel
    securitylevel=1
random: real_init: uninitialized urandom read (12 bytes read)
Starting base/first...                                  [  OK  ]

[-- Attachment #3: console-log-with-rh-atags-patch.txt --]
[-- Type: text/plain, Size: 13660 bytes --]

Booting Linux on physical CPU 0x0
Linux version 5.8.9-at1 (chrisp@chrisp-dl) (arm-unknown-linux-gnueabi-gcc (crosstool-NG 1.24.0) 8.3.0, GNU ld (crosstool-NG 1.24.0) 2.32) #45 SMP Tue Jan 26 19:46:36 UTC 2021
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: x230
OF: fdt: search "chosen", depth: 0, uname: 
OF: fdt: search "chosen", depth: 1, uname: chosen
OF: fdt: Looking for initrd properties... 
OF: fdt: initrd_start=0x6236f8f7  initrd_end=0x6379d8f7
OF: fdt: Command line is: console=ttyS0,115200 root=/dev/ram0 releasefile=x230-tb233.rel bootversion=3.2.4-devel loglevel=8 extraflash=00000000 mtdoops.mtddev=errlog securitylevel=1 ramdisk=20664 relhdr=1644167168,1647769847
OF: fdt: dt_root_size_cells = 1
OF: fdt: dt_root_addr_cells = 1
OF: fdt: memory scan node memory@0, reg size 8,
OF: fdt:  - 60000000 ,  20000000
Memory policy: Data cache writealloc
cma: Reserved 24 MiB at 0x7e800000
Zone ranges:
  Normal   [mem 0x0000000060000000-0x000000007fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000060000000-0x000000007fffffff]
Initmem setup node 0 [mem 0x0000000060000000-0x000000007fffffff]
On node 0 totalpages: 131072
  Normal zone: 1024 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 131072 pages, LIFO batch:31
OF: fdt:  -> unflatten_device_tree()
OF: fdt: Unflattening device tree:
OF: fdt: magic: d00dfeed
OF: fdt: size: 00002a48
OF: fdt: version: 00000011
OF: fdt:   size is 26828, allocating...
OF: fdt:   unflattening (ptrval)...
OF: fdt: fixed up name for  -> 
OF: fdt: fixed up name for chosen -> chosen
OF: fdt: fixed up name for cpus -> cpus
OF: fdt: fixed up name for cpu@0 -> cpu
OF: fdt: fixed up name for pmu -> pmu
OF: fdt: fixed up name for mpcore@19000000 -> mpcore
OF: fdt: fixed up name for arm_clk@0 -> arm_clk
OF: fdt: fixed up name for timer@20200 -> timer
OF: fdt: fixed up name for twd-timer@20600 -> twd-timer
OF: fdt: fixed up name for twd-watchdog@20620 -> twd-watchdog
OF: fdt: fixed up name for interrupt-controller@21000 -> interrupt-controller
OF: fdt: fixed up name for l2-cache@22000 -> l2-cache
OF: fdt: fixed up name for clocks -> clocks
OF: fdt: fixed up name for oscillator -> oscillator
OF: fdt: fixed up name for periph_clk -> periph_clk
OF: fdt: fixed up name for axi@18000000 -> axi
OF: fdt: fixed up name for serial@300 -> serial
OF: fdt: fixed up name for serial@400 -> serial
OF: fdt: fixed up name for dma@20000 -> dma
OF: fdt: fixed up name for ethernet@22000 -> ethernet
OF: fdt: fixed up name for nand@26000 -> nand
OF: fdt: fixed up name for gpio@30000 -> gpio
OF: fdt: fixed up name for pwm@31000 -> pwm
OF: fdt: fixed up name for rng@33000 -> rng
OF: fdt: fixed up name for spi@27200 -> spi
OF: fdt: fixed up name for mmc-slot@0 -> mmc-slot
OF: fdt: fixed up name for timer@34000 -> timer
OF: fdt: fixed up name for timer@35000 -> timer
OF: fdt: fixed up name for i2c@38000 -> i2c
OF: fdt: fixed up name for watchdog@39000 -> watchdog
OF: fdt: fixed up name for i2c@3b000 -> i2c
OF: fdt: fixed up name for gpio@00060 -> gpio
OF: fdt: fixed up name for poe-dis -> poe-dis
OF: fdt: fixed up name for nor@20000000 -> nor
OF: fdt: fixed up name for partition@u-boot -> partition
OF: fdt: fixed up name for partition@u-boot-env -> partition
OF: fdt: fixed up name for partition@epi3 -> partition
OF: fdt: fixed up name for partition@ram-config -> partition
OF: fdt: fixed up name for partition@errlog -> partition
OF: fdt: fixed up name for partition@user -> partition
OF: fdt: fixed up name for pcie@18012000 -> pcie
OF: fdt: fixed up name for msi-controller -> msi-controller
OF: fdt: fixed up name for pcie@18013000 -> pcie
OF: fdt: fixed up name for msi-controller -> msi-controller
OF: fdt: fixed up name for cmic -> cmic
OF: fdt: fixed up name for gpio@2000 -> gpio
OF: fdt: fixed up name for memory@0 -> memory
OF: fdt: fixed up name for i2c@22080000 -> i2c
OF: fdt: fixed up name for adt7476a@2e -> adt7476a
OF: fdt: fixed up name for rtc@68 -> rtc
OF: fdt: fixed up name for mux@77 -> mux
OF: fdt: fixed up name for i2c@0 -> i2c
OF: fdt: fixed up name for i2c@1 -> i2c
OF: fdt: fixed up name for i2c@2 -> i2c
OF: fdt: fixed up name for i2c@3 -> i2c
OF: fdt: fixed up name for gpio@27 -> gpio
OF: fdt: fixed up name for eco-button-interrupt -> eco-button-interrupt
OF: fdt: fixed up name for board-reset -> board-reset
OF: fdt: fixed up name for gpio-restart -> gpio-restart
OF: fdt: fixed up name for gpio-leds -> gpio-leds
OF: fdt: fixed up name for fault -> fault
OF: fdt: fixed up name for mmc0-activity -> mmc0-activity
OF: fdt: fixed up name for mmc0-state -> mmc0-state
OF: fdt: fixed up name for __symbols__ -> __symbols__
OF: fdt:  <- unflatten_device_tree()
percpu: Embedded 15 pages/cpu s29836 r8192 d23412 u61440
pcpu-alloc: s29836 r8192 d23412 u61440 alloc=15*4096
pcpu-alloc: [0] 0 
Built 1 zonelists, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/ram0 releasefile=x230-tb233.rel bootversion=3.2.4-devel loglevel=8 extraflash=00000000 mtdoops.mtddev=errlog securitylevel=1 ramdisk=20664 relhdr=1644167168,1647769847
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
Memory: 464868K/524288K available (6144K kernel code, 171K rwdata, 1156K rodata, 1024K init, 111K bss, 34844K reserved, 24576K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: 	RCU event tracing is enabled.
rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e120001
random: get_random_bytes called from start_kernel+0x308/0x494 with crng_init=0
sched_clock: 64 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x2e2049dc38, max_idle_ns: 440795209465 ns
Switching to timer-based delay loop, resolution 5ns
Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
CPU: Testing write buffer coherency: ok
CPU0: Spectre v2: using BPIALL workaround
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x60100000 - 0x60100060
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
SMP: Total of 1 processors activated (400.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: 2, 16384 bytes, linear)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
INITRD: 0x62370000+0x0142e000 overlaps in-use memory region - disabling initrd
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 1024 (order: 1, 12288 bytes, linear)
TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
NET: Registered protocol family 1
workingset: timestamp_bits=30 max_order=17 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler mq-deadline registered
io scheduler kyber registered
gpio-486 (poe-dis): hogged as output/high
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
printk: console [ttyS0] disabled
18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 21, base_baud = 3125000) is a 16550A
printk: console [ttyS0] enabled
brd: module loaded
loop: module loaded
physmap-flash 20000000.nor: physmap platform flash device: [mem 0x20000000-0x21ffffff]
20000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.5.
number of CFI chips: 1
6 fixed-partitions partitions found on MTD device 20000000.nor
Creating 6 MTD partitions on "20000000.nor":
0x000000000000-0x0000000c0000 : "u-boot"
0x0000000c0000-0x0000000e0000 : "u-boot-env"
0x0000000e0000-0x000000100000 : "epi3"
0x000000100000-0x000000120000 : "ram-config"
0x000000120000-0x000000220000 : "errlog"
mtdoops: ready 0, 1 (no erase)
mtdoops: Attached to MTD device 4
0x000000220000-0x000004000000 : "user"
bcm_iproc 18027200.spi: using bspi-mspi mode
tun: Universal TUN/TAP device driver, 1.6
i2c /dev entries driver
PCA9564/PCA9665 at 0x22080000: PCA9665 detected.
PCA9564/PCA9665 at 0x22080000: Clock frequency is 100000Hz
PCA9564/PCA9665 at 0x22080000: clock=1000 mode=STD(0) min_tlow=157 min_thi=134 tlow=165 thi=140
rtc-ds1307 0-0068: registered as rtc0
rtc-ds1307 0-0068: setting system clock to 2021-01-26T18:00:37 UTC (1611684037)
pca953x 0-0027: using no AI
i2c-pca-platform 22080000.i2c: registered.
i2c i2c-0: Added multiplexed i2c bus 1
i2c i2c-0: Added multiplexed i2c bus 2
i2c i2c-0: Added multiplexed i2c bus 3
i2c i2c-0: Added multiplexed i2c bus 4
pca954x 0-0077: registered 4 multiplexed busses for I2C mux pca9544
adt7475 0-002e: ADT7476 device, revision 3
adt7475 0-002e: Optional features: in0 in4 fan4 pwm2 vid
sp805-wdt 18039000.watchdog: registration successful
mmc_spi spi0.0: SD/MMC host mmc0, no DMA, no poweroff, cd polling
OF: fdt:  -> unflatten_device_tree()
OF: fdt: Unflattening device tree:
OF: fdt: magic: d00dfeed
OF: fdt: size: 000003e8
OF: fdt: version: 00000011
OF: fdt:   size is 1800, allocating...
OF: fdt:   unflattening (ptrval)...
OF: fdt: fixed up name for  -> 
OF: fdt: fixed up name for fragment@0 -> fragment
OF: fdt: fixed up name for __overlay__ -> __overlay__
OF: fdt: fixed up name for sfpcage@1 -> sfpcage
OF: fdt: fixed up name for sfpcage@2 -> sfpcage
OF: fdt: fixed up name for __fixups__ -> __fixups__
OF: fdt: unflattened tree is detached
OF: fdt:  <- unflatten_device_tree()
atl_cage sfpcage@1: atl_cage sfp17 successfully probed
atl_cage sfpcage@2: atl_cage sfp18 successfully probed
Registered boardinfo device 00
atl-eco-button eco-button-interrupt: registration successful
IPv4 over IPsec tunneling driver
Initializing XFRM netlink socket
NET: Registered protocol family 10
Segment Routing with IPv6
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
l2tp_core: L2TP core driver, V2.0
l2tp_ip: L2TP IP encapsulation support (L2TPv3)
l2tp_netlink: L2TP netlink interface
l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
8021q: 802.1Q VLAN Support v1.8
Registering SWP/SWPB emulation handler
registered taskstats version 1
List of all partitions:
0100           20664 ram0 
 (driver?)
0101           20664 ram1 
 (driver?)
0102           20664 ram2 
 (driver?)
0103           20664 ram3 
 (driver?)
0104           20664 ram4 
 (driver?)
0105           20664 ram5 
 (driver?)
0106           20664 ram6 
 (driver?)
0107           20664 ram7 
 (driver?)
0108           20664 ram8 
 (driver?)
0109           20664 ram9 
 (driver?)
010a           20664 ram10 
 (driver?)
010b           20664 ram11 
 (driver?)
010c           20664 ram12 
 (driver?)
010d           20664 ram13 
 (driver?)
010e           20664 ram14 
 (driver?)
010f           20664 ram15 
 (driver?)
1f00             768 mtdblock0 
 (driver?)
1f01             128 mtdblock1 
 (driver?)
1f02             128 mtdblock2 
 (driver?)
1f03             128 mtdblock3 
 (driver?)
1f04            1024 mtdblock4 
 (driver?)
1f05           63360 mtdblock5 
 (driver?)
No filesystem could mount root, tried: 
 ext3
 ext2
 ext4
 squashfs
 vfat
 msdos
 jffs2

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.8.9-at1 #45
Hardware name: Allied Telesis x230
[<c0108a54>] (unwind_backtrace) from [<c0104ed0>] (show_stack+0x10/0x14)
[<c0104ed0>] (show_stack) from [<c037df7c>] (dump_stack+0x9c/0xb0)
[<c037df7c>] (dump_stack) from [<c01131f0>] (panic+0x110/0x300)
[<c01131f0>] (panic) from [<c09014f8>] (mount_block_root+0x3b4/0x3bc)
[<c09014f8>] (mount_block_root) from [<c0901848>] (prepare_namespace+0x17c/0x1b8)
[<c0901848>] (prepare_namespace) from [<c060f9bc>] (kernel_init+0x8/0x114)
[<c060f9bc>] (kernel_init) from [<c0100148>] (ret_from_fork+0x14/0x2c)
Exception stack(0xddc33fb0 to 0xddc33ff8)
3fa0:                                     00000000 00000000 00000000 00000000
3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
mtdoops: ready 1, 2 (no erase)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) ]---

[-- Attachment #4: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
  2021-01-26 20:16       ` Chris Packham
@ 2021-01-26 20:26         ` Chris Packham
  -1 siblings, 0 replies; 12+ messages in thread
From: Chris Packham @ 2021-01-26 20:26 UTC (permalink / raw)
  To: Rob Herring; +Cc: Russell King, linux-arm-kernel, devicetree, Qi Zheng


On 27/01/21 9:16 am, Chris Packham wrote:
> Hi Rob
>
> On 27/01/21 3:25 am, Rob Herring wrote:
>> On Mon, Jan 25, 2021 at 8:50 PM Chris Packham
>> <Chris.Packham@alliedtelesis.co.nz> wrote:
>>> Hi Rob,
>>>
>>> On 26/01/21 3:39 pm, Rob Herring wrote:
>>>> Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
>>>> call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
>>>> Non-existent nodes would mistaken get created with a leading '/'. The
>>>> problem was fdt_path_offset() takes a full path while creating a node
>>>> with fdt_add_subnode() takes just the basename.
>>>>
>>>> Since this we only add root child nodes, we can just skip over the 
>>>> '/'.
>>>>
>>>> Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function 
>>>> call")
>>>> Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>>>> Cc: Qi Zheng <arch0.zheng@gmail.com>
>>>> Cc: Russell King <linux@armlinux.org.uk>
>>>> Signed-off-by: Rob Herring <robh@kernel.org>
>>> Thanks for the quick patch. It doesn't quite seem to work as my system
>>> can't find it's initrd (it can with my other hacky patch). It does seem
>>> to get the command line info as I'm getting printk output.
>> That doesn't make sense. Can you enable debug in drivers/of/fdt.c.
> I've attached two captures with DEBUG enabled in drivers/of/fdt.c. One 
> with your patch and one with mine. I note that in your one we do 
> actually pick up initrd_start/initrd_end but then it gets disabled for 
> some reason (possibly other changes we have in our kernel).

Sure enough I turned off our "special" code and it all works as 
expected. I'll reply back to the original change with my Tested-by:.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
@ 2021-01-26 20:26         ` Chris Packham
  0 siblings, 0 replies; 12+ messages in thread
From: Chris Packham @ 2021-01-26 20:26 UTC (permalink / raw)
  To: Rob Herring; +Cc: devicetree, Russell King, linux-arm-kernel, Qi Zheng


On 27/01/21 9:16 am, Chris Packham wrote:
> Hi Rob
>
> On 27/01/21 3:25 am, Rob Herring wrote:
>> On Mon, Jan 25, 2021 at 8:50 PM Chris Packham
>> <Chris.Packham@alliedtelesis.co.nz> wrote:
>>> Hi Rob,
>>>
>>> On 26/01/21 3:39 pm, Rob Herring wrote:
>>>> Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
>>>> call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
>>>> Non-existent nodes would mistaken get created with a leading '/'. The
>>>> problem was fdt_path_offset() takes a full path while creating a node
>>>> with fdt_add_subnode() takes just the basename.
>>>>
>>>> Since this we only add root child nodes, we can just skip over the 
>>>> '/'.
>>>>
>>>> Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function 
>>>> call")
>>>> Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>>>> Cc: Qi Zheng <arch0.zheng@gmail.com>
>>>> Cc: Russell King <linux@armlinux.org.uk>
>>>> Signed-off-by: Rob Herring <robh@kernel.org>
>>> Thanks for the quick patch. It doesn't quite seem to work as my system
>>> can't find it's initrd (it can with my other hacky patch). It does seem
>>> to get the command line info as I'm getting printk output.
>> That doesn't make sense. Can you enable debug in drivers/of/fdt.c.
> I've attached two captures with DEBUG enabled in drivers/of/fdt.c. One 
> with your patch and one with mine. I note that in your one we do 
> actually pick up initrd_start/initrd_end but then it gets disabled for 
> some reason (possibly other changes we have in our kernel).

Sure enough I turned off our "special" code and it all works as 
expected. I'll reply back to the original change with my Tested-by:.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
  2021-01-26  2:39 ` Rob Herring
@ 2021-01-26 20:26   ` Chris Packham
  -1 siblings, 0 replies; 12+ messages in thread
From: Chris Packham @ 2021-01-26 20:26 UTC (permalink / raw)
  To: Rob Herring, Russell King; +Cc: linux-arm-kernel, devicetree, Qi Zheng


On 26/01/21 3:39 pm, Rob Herring wrote:
> Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
> call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
> Non-existent nodes would mistaken get created with a leading '/'. The
> problem was fdt_path_offset() takes a full path while creating a node
> with fdt_add_subnode() takes just the basename.
>
> Since this we only add root child nodes, we can just skip over the '/'.
>
> Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
> Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Cc: Qi Zheng <arch0.zheng@gmail.com>
> Cc: Russell King <linux@armlinux.org.uk>
> Signed-off-by: Rob Herring <robh@kernel.org>

Thanks Rob,

Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> ---
>   arch/arm/boot/compressed/atags_to_fdt.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c
> index 8452753efebe..31927d2fe297 100644
> --- a/arch/arm/boot/compressed/atags_to_fdt.c
> +++ b/arch/arm/boot/compressed/atags_to_fdt.c
> @@ -15,7 +15,8 @@ static int node_offset(void *fdt, const char *node_path)
>   {
>   	int offset = fdt_path_offset(fdt, node_path);
>   	if (offset == -FDT_ERR_NOTFOUND)
> -		offset = fdt_add_subnode(fdt, 0, node_path);
> +		/* Add the node to root if not found, dropping the leading '/' */
> +		offset = fdt_add_subnode(fdt, 0, node_path + 1);
>   	return offset;
>   }
>   

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes
@ 2021-01-26 20:26   ` Chris Packham
  0 siblings, 0 replies; 12+ messages in thread
From: Chris Packham @ 2021-01-26 20:26 UTC (permalink / raw)
  To: Rob Herring, Russell King; +Cc: devicetree, Qi Zheng, linux-arm-kernel


On 26/01/21 3:39 pm, Rob Herring wrote:
> Commit 7536c7e03e74 ("of/fdt: Remove redundant kbasename function
> call") exposed a bug creating DT nodes in the ATAGS to DT fixup code.
> Non-existent nodes would mistaken get created with a leading '/'. The
> problem was fdt_path_offset() takes a full path while creating a node
> with fdt_add_subnode() takes just the basename.
>
> Since this we only add root child nodes, we can just skip over the '/'.
>
> Fixes: 7536c7e03e74 ("of/fdt: Remove redundant kbasename function call")
> Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Cc: Qi Zheng <arch0.zheng@gmail.com>
> Cc: Russell King <linux@armlinux.org.uk>
> Signed-off-by: Rob Herring <robh@kernel.org>

Thanks Rob,

Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> ---
>   arch/arm/boot/compressed/atags_to_fdt.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c
> index 8452753efebe..31927d2fe297 100644
> --- a/arch/arm/boot/compressed/atags_to_fdt.c
> +++ b/arch/arm/boot/compressed/atags_to_fdt.c
> @@ -15,7 +15,8 @@ static int node_offset(void *fdt, const char *node_path)
>   {
>   	int offset = fdt_path_offset(fdt, node_path);
>   	if (offset == -FDT_ERR_NOTFOUND)
> -		offset = fdt_add_subnode(fdt, 0, node_path);
> +		/* Add the node to root if not found, dropping the leading '/' */
> +		offset = fdt_add_subnode(fdt, 0, node_path + 1);
>   	return offset;
>   }
>   
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-01-27 10:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26  2:39 [PATCH] ARM: zImage: atags_to_fdt: Fix node names on added root nodes Rob Herring
2021-01-26  2:39 ` Rob Herring
2021-01-26  2:50 ` Chris Packham
2021-01-26  2:50   ` Chris Packham
2021-01-26 14:25   ` Rob Herring
2021-01-26 14:25     ` Rob Herring
2021-01-26 20:16     ` Chris Packham
2021-01-26 20:16       ` Chris Packham
2021-01-26 20:26       ` Chris Packham
2021-01-26 20:26         ` Chris Packham
2021-01-26 20:26 ` Chris Packham
2021-01-26 20:26   ` Chris Packham

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.