ls1012afrwy Unable to handle kernel paging request with lsdk2012_yocto_tiny_LS_arm64.itb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ls1012afrwy Unable to handle kernel paging request with lsdk2012_yocto_tiny_LS_arm64.itb

Jump to solution
1,204 Views
SebDE
Contributor I

Dear NXP Team,

I have a bit of trouble to bring up the FRWY-LS1012A dev board. I would like to boot the tiny yocto image via tftp. The tftp download works without problems, but as soon as the kernel starts it ends up with a kernel panic. I also tried the 2004 version without success. Can you point me in the right direction please. Attached is the kernel boot log:

Spoiler

=> tftp 0x92000000 lsdk2012_yocto_tiny_LS_arm64.itb; pfe stop; bootm 0x92000000#ls1012afrwy
Speed detected 3e8
Using pfe_eth0 device
TFTP from server 192.168.0.127; our IP address is 192.168.0.128
Filename 'lsdk2012_yocto_tiny_LS_arm64.itb'.
Load address: 0x92000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################################T #################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######################################################################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################################
2.7 MiB/s
done
Bytes transferred = 35754204 (22190dc hex)
Stopping PFE...
## Loading kernel from FIT Image at 92000000 ...
Using 'ls1012afrwy' configuration
Trying 'kernel' kernel subimage
Description: ARM64 Kernel
Created: 2020-12-10 20:32:17 UTC
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x920000d0
Data Size: 14190120 Bytes = 13.5 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x84080000
Entry Point: 0x84080000
Hash algo: crc32
Hash value: ca897fc1
## Loading ramdisk from FIT Image at 92000000 ...
Using 'ls1012afrwy' configuration
Trying 'initrd' ramdisk subimage
Description: initrd for arm64
Created: 2020-12-10 20:32:17 UTC
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0x92d887d8
Data Size: 21116004 Bytes = 20.1 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x00000000
Entry Point: 0x00000000
Hash algo: crc32
Hash value: 13150367
## Loading fdt from FIT Image at 92000000 ...
Using 'ls1012afrwy' configuration
Trying 'ls1012afrwy-dtb' fdt subimage
Description: ls1012afrwy-dtb
Created: 2020-12-10 20:32:17 UTC
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x941b3574
Data Size: 15352 Bytes = 15 KiB
Architecture: AArch64
Load Address: 0x90000000
Hash algo: crc32
Hash value: 2cfd1212
Loading fdt from 0x941b3574 to 0x90000000
Booting using the fdt blob at 0x90000000
Uncompressing Kernel Image
Using Device Tree in place at 0000000090000000, end 0000000090006bf7
WARNING: fdt_fixup_stdout: could not read serial0 alias: FDT_ERR_NOTFOUND
NOTICE: RNG: INSTANTIATED
PCIe1: pcie@3400000 Root Complex: no link

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.47 (jenkins@saturn) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #3 SMP PREEMPT Fri Dec 11 04:27:52 CST 2020
[ 0.000000] Machine model: LS1012A FRWY Board
[ 0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 320 MiB at 0x00000000a7c00000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000000bbdfffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xbbc0d800-0xbbc0efff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080000000-0x00000000bbdfffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x00000000bbdfffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000bbdfffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 24 pages/cpu s59928 r8192 d30184 u98304
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 241416
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 lpj=250000
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 563192K/980992K available (18748K kernel code, 2484K rwdata, 8892K rodata, 5888K init, 1001K bss, 90120K reserved, 327680K cma-reserved)
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x458 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[ 0.000004] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[ 0.008551] Unable to handle kernel paging request at virtual address 00c0d2c501a99588
[ 0.016535] Mem abort info:
[ 0.019345] ESR = 0x96000004
[ 0.022420] EC = 0x25: DABT (current EL), IL = 32 bits
[ 0.027772] SET = 0, FnV = 0
[ 0.030845] EA = 0, S1PTW = 0
[ 0.034005] Data abort info:
[ 0.036903] ISV = 0, ISS = 0x00000004
[ 0.040765] CM = 0, WnR = 0
[ 0.043751] [00c0d2c501a99588] address between user and kernel address ranges
[ 0.050947] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 0.056564] Modules linked in:
[ 0.059644] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.47 #3
[ 0.065611] Hardware name: LS1012A FRWY Board (DT)
[ 0.070440] pstate: 20000085 (nzCv daIf -PAN -UAO)
[ 0.075276] pc : free_block+0x94/0x1b8
[ 0.079055] lr : setup_kmem_cache_node+0x2f8/0x3e8
[ 0.083882] sp : ffffc9d7dc353d80
[ 0.087217] x29: ffffc9d7dc353d80 x28: 00000000852c8344
[ 0.092573] x27: ffff000026404500 x26: 0000000000000000
[ 0.097928] x25: ffffc9d7dc353e28 x24: 0000000000000000
[ 0.103284] x23: ffff00003bc11aa8 x22: ffff000026403c80
[ 0.108641] x21: ffffc9d7dc359000 x20: 0000000000000000
[ 0.113996] x19: 0000000000000000 x18: ffffffffffffffff
[ 0.119351] x17: ffff000026404508 x16: ffff000026404528
[ 0.124707] x15: 0001000000000000 x14: fffffdffffe00000
[ 0.130062] x13: dead000000000100 x12: dead000000000122
[ 0.135417] x11: ffff000367648e00 x10: 0000000000000400
[ 0.140772] x9 : 00000000fffffffe x8 : 3034314072656c6c
[ 0.146128] x7 : ffff000026404500 x6 : 0000000000000000
[ 0.151484] x5 : ffffc9d7dc359908 x4 : ffffc9d7dc353e28
[ 0.156839] x3 : 0000000066b4ce69 x2 : 00c0d2c501a99580
[ 0.162194] x1 : ffff00003bc11ab8 x0 : ffff000026403c80
[ 0.167550] Call trace:
[ 0.170012] free_block+0x94/0x1b8
[ 0.173438] setup_kmem_cache_node+0x2f8/0x3e8
[ 0.177918] __do_tune_cpucache+0x190/0x250
[ 0.182133] do_tune_cpucache+0x2c/0xc0
[ 0.185997] enable_cpucache+0x58/0xf8
[ 0.189777] kmem_cache_init_late+0x44/0x7c
[ 0.193992] start_kernel+0x320/0x458
[ 0.197686] Code: f9400028 8b0f0102 d34cfc42 8b0219c2 (f9400443)
[ 0.203840] ---[ end trace 6afe672153740f98 ]---
[ 0.208496] Kernel panic - not syncing: Attempted to kill the idle task!
[ 0.215257] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

Edit:

And here the informations about the used firmware

Spoiler

U-Boot 2020.04-gf46a944f71 (Dec 11 2020 - 04:33:12 +0800)

SoC: LS1012AE Rev2.0 (0x87040020)
Clock Configuration:
CPU0(A53):1000 MHz
Bus: 250 MHz DDR: 1000 MT/s
Reset Configuration Word (RCW):
00000000: 0800000a 00000000 00000000 00000000
00000010: 33050000 c000000c 40000000 00001800
00000020: 00000000 00000000 00000000 000c47f2
00000030: 00000000 1082a120 00000096 00000000
DRAM: 958 MiB
Using SERDES1 Protocol: 13061 (0x3305)
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from SPI Flash... SF: Detected w25q16dw with page size 256 Bytes, erase size 4 KiB, total 2 MiB
OK
In: serial
Out: serial
Err: serial
Model: FRWY-LS1012A Board
Board: FRWY-LS1012A Version: RevA/B Net: SF: Detected w25q16dw with page size 256 Bytes, erase size 4 KiB, total 2 MiB
PFE class pe firmware for Linux
PFE tmu pe firmware for Linux
PFE class pe firmware for u-boot
PFE tmu pe firmware for u-boot
eth0: pfe_eth0, eth1: pfe_eth1

Many thanks and best regards

Sebastian

0 Kudos
Reply
1 Solution
1,190 Views
yipingwang
NXP TechSupport
NXP TechSupport

I also reproduced your problem on ls1012afrwy with DRAM size 512M.

In this case, you should use firmware image firmware_ls1012afrwy_512mb_uboot_qspiboot.img.

Please download this firmware image with the following command.

$ wget https://www.nxp.com/lgfiles/sdk/lsdk2012/firmware_ls1012afrwy_512mb_uboot_qspiboot.img

Then program this firmware image on your demo board with the following command.

=> tftp 0x92000000 firmware_ls1012afrwy_512mb_uboot_qspiboot.img
=> sf probe
=> sf erase 0 +$filesize;sf write 0x92000000 0 $filesize
=> reset

View solution in original post

2 Replies
1,191 Views
yipingwang
NXP TechSupport
NXP TechSupport

I also reproduced your problem on ls1012afrwy with DRAM size 512M.

In this case, you should use firmware image firmware_ls1012afrwy_512mb_uboot_qspiboot.img.

Please download this firmware image with the following command.

$ wget https://www.nxp.com/lgfiles/sdk/lsdk2012/firmware_ls1012afrwy_512mb_uboot_qspiboot.img

Then program this firmware image on your demo board with the following command.

=> tftp 0x92000000 firmware_ls1012afrwy_512mb_uboot_qspiboot.img
=> sf probe
=> sf erase 0 +$filesize;sf write 0x92000000 0 $filesize
=> reset

1,182 Views
SebDE
Contributor I

@yipingwang many thanks for your help - that solved my problem.

0 Kudos
Reply