Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3196 - OpenWRT on Freescale's P2020RDB #8024

Open
openwrt-bot opened this issue Jun 21, 2020 · 0 comments
Open

FS#3196 - OpenWRT on Freescale's P2020RDB #8024

openwrt-bot opened this issue Jun 21, 2020 · 0 comments
Labels
flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release

Comments

@openwrt-bot
Copy link

troportx:

I'm trying to run OpenWRT on a P2020RDB board, I managed to fetch the release mpc85xx initramfs.bin from [[https://downloads.openwrt.org/releases/19.07.3/targets/mpc85xx/p2020/openwrt-19.07.3-mpc85xx-p2020-p2020rdb-initramfs-kernel.bin|here]] (I failed to get the snapshot one for Freescale over [[https://downloads.openwrt.org/snapshots/targets/mpc85xx/p2020/openwrt-mpc85xx-p2020-freescale_p2020rdb-initramfs-kernel.bin|here]] as I received a 403 error), and then I pulled it into uboot using tftpboot, and placed it at address "0x1000000", and ran "bootm 0x1000000" the kernel starts and then I get a call trace and some stuff get dumped:

XTM-330_P2020(FAILSAFE) => bootm 0x1000000 [165/195]
WARNING: adjusting available memory to 30000000

Booting kernel from FIT Image at 01000000 ...

Using 'config@1' configuration
Trying 'kernel@1' kernel subimage
Description: POWERPC OpenWrt Linux-4.14.180
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x010000ec
Data Size: 5128735 Bytes = 4.9 MiB
Architecture: PowerPC
OS: Linux
Load Address: 0x00000000
Entry Point: 0x00000000
Hash algo: crc32
Hash value: 7754597c
Hash algo: sha1
Hash value: bd433c824dc74e015b759f3ab53ffe996b130f2e
Verifying Hash Integrity ... crc32+ sha1+ OK

Flattened Device Tree from FIT Image at 01000000

Using 'config@1' configuration
Trying 'fdt@1' FDT blob subimage
Description: POWERPC OpenWrt p2020rdb device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x014e4448
Data Size: 12550 Bytes = 12.3 KiB
Architecture: PowerPC
Hash algo: crc32
Hash value: 0d1ae91a
Hash algo: sha1
Hash value: fdbac0f412982769bdef3ba414fc6716b8a855d4
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x14e4448
Uncompressing Kernel Image ... OK
Loading Device Tree to 00ff9000, end 00fff105 ... OK
[ 0.000000] Memory CAM mapping: 256/256/256 Mb, residual: 256Mb
[ 0.000000] Linux version 4.14.180 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11063-85e04e9f46)) #0 SMP Sat May 16 18:32:20 2020
[ 0.000000] Using P2020 RDB machine description
[ 0.000000] bootconsole [udbg0] enabled
[ 0.000000] CPU maps initialized for 1 thread per core
[ 0.000000] -----------------------------------------------------
[ 0.000000] phys_mem_size = 0x30000000
[ 0.000000] dcache_bsize = 0x20
[ 0.000000] icache_bsize = 0x20
[ 0.000000] cpu_features = 0x0000000012100460
[ 0.000000] possible = 0x0000000012120460
[ 0.000000] always = 0x0000000000100000
[ 0.000000] cpu_user_features = 0x84e08000 0x08000000
[ 0.000000] mmu_features = 0x00020010
[ 0.000000] -----------------------------------------------------
mpc85xx_rdb_setup_arch()
[ 0.000000] mpc85xx_qe_init: Could not find Quicc Engine node
[ 0.000000] MPC85xx RDB board from Freescale Semiconductor
[ 0.000000] barrier-nospec: using isync; sync as speculation barrier
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[ 0.000000] percpu: Embedded 12 pages/cpu s18380 r8192 d22580 u49152
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 195072
[ 0.000000] Kernel command line: root=/dev/sda1 rw rootdelay=30 console=ttyS0,115200 ramdisk_size=600000
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 705444K/786432K available (4400K kernel code, 176K rwdata, 548K rodata, 2620K init, 216K bss, 80988K reserved, 0K cma-reserved)
[ 0.000000] Kernel virtual memory layout:
[ 0.000000] * 0xfffdf000..0xfffff000 : fixmap
[ 0.000000] * 0xfdffe000..0xfe000000 : early ioremap
[ 0.000000] * 0xf1000000..0xfdffe000 : vmalloc & ioremap
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 512, nr_irqs: 512, preallocated irqs: 16
[ 0.000000] mpic: Setting up MPIC " OpenPIC " version 1.2 at ffe40000, max 2 CPUs
[ 0.000000] mpic: ISU size: 256, shift: 8, mask: ff
[ 0.000000] mpic: Initializing for 256 sources
[ 0.000000] mpc85xx_rdb_pic_init: Could not find qe-ic node
[ 0.000010] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0xf6018975a, max_idle_ns: 440795204712 ns
[ 0.010162] clocksource: timebase mult[f000003] shift[24] registered
[ 0.016543] pid_max: default: 32768 minimum: 301
[ 0.021182] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.027710] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.035198] mpic: requesting IPIs...
[ 0.039003] Hierarchical SRCU implementation.
[ 0.043596] smp: Bringing up secondary CPUs ...
[ 0.048509] smp: Brought up 1 node, 2 CPUs
[ 0.052518] Using shared cache scheduler topology
[ 0.058928] random: get_random_u32 called from 0xc0201c80 with crng_init=0
[ 0.065843] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.075502] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 0.081889] NET: Registered protocol family 16
[ 0.094212] Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0->0
[ 0.102052] PCI host bridge /pcie@ffe0a000 (primary) ranges:
[ 0.107677] MEM 0x0000000080000000..0x000000009fffffff -> 0x0000000080000000
[ 0.114869] IO 0x00000000ffc00000..0x00000000ffc0ffff -> 0x0000000000000000
[ 0.121993] /pcie@ffe0a000: PCICSRBAR @ 0xfff00000
[ 0.126746] setup_pci_atmu: end of DRAM 30000000
[ 0.131344] /pcie@ffe0a000: Setting PCI inbound window greater than memory size
[ 0.146042] PCI: Probing PCI hardware
[ 0.149766] fsl-pci ffe0a000.pcie: PCI host bridge to bus a000:00
[ 0.155778] pci_bus a000:00: root bus resource [io 0x0000-0xffff]
[ 0.161927] pci_bus a000:00: root bus resource [mem 0x80000000-0x9fffffff]
[ 0.168774] pci_bus a000:00: root bus resource [bus 00-ff]
[ 0.174535] pci a000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.182529] pci a000:00:00.0: PCI bridge to [bus 01-ff]
[ 0.187722] PCI: Cannot allocate resource region 0 of device a000:00:00.0, will remap
[ 0.195494] pci a000:00:00.0: BAR 0: no space for [mem size 0x00100000]
[ 0.202057] pci a000:00:00.0: BAR 0: failed to assign [mem size 0x00100000]
[ 0.208993] pci a000:00:00.0: PCI bridge to [bus 01]
[ 0.213933] pci a000:00:00.0: bridge window [io 0x0000-0xffff]
[ 0.220002] pci a000:00:00.0: bridge window [mem 0x80000000-0x9fffffff]
[ 0.226764] pci_bus a000:00: Some PCI device resources are unassigned, try booting with pci=realloc
[ 0.235925] /soc@ffe00000/timer@41100: cannot get timer frequency.
[ 0.242059] /soc@ffe00000/timer@42100: cannot get timer frequency.
[ 0.254462] clocksource: Switched to clocksource timebase
[ 0.260493] NET: Registered protocol family 2
[ 0.265162] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.272178] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.278670] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.285022] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.290884] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.297300] NET: Registered protocol family 1
[ 2.607509] Crashlog allocated RAM at address 0x3f00000
[ 2.612901] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 2.622935] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.628700] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.639761] io scheduler noop registered
[ 2.643605] io scheduler deadline registered (default)
[ 2.649567] pcieport a000:00:00.0: enabling device (0106 -> 0107)
[ 2.655875] pcieport a000:00:00.0: AER enabled with IRQ 24
[ 2.661445] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
rserial8250.0: ttyS0 at MMIO 0xffe04500 (irq = 42, base_baud = 33333333) is a 16550A
[ 2.681148] console [ttyS0] enabled
[ 2.681148] console [ttyS0] enabled
[ 2.688069] bootconsole [udbg0] disabled
[ 2.688069] bootconsole [udbg0] disabled
[ 2.696040] serial8250.0: ttyS1 at MMIO 0xffe04600 (irq = 42, base_baud = 33333333) is a 16550A
[ 2.705190] console [ttyS0] disabled
[ 2.708811] console [ttyS0] enabled
[ 2.712565] ffe04600.serial: ttyS1 at MMIO 0xffe04600 (irq = 42, base_baud = 33333333) is a 16550
[ 2.722481] Disabling lock debugging due to kernel taint
[ 2.722487] fsl-lbc ffe05000.localbus: Chip select error: LTESR 0x00080000
[ 2.734643] Machine check in kernel mode.
[ 2.738637] Caused by (from MCSR=10008):
[ 2.738640] Bus - Read Data Bus Error
[ 2.746282] Oops: Machine check, sig: 7 [#1]
[ 2.750535] BE SMP NR_CPUS=2 P2020 RDB
[ 2.754272] Modules linked in:
[ 2.757319] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G M 4.14.180 #0
[ 2.764610] task: ef448000 task.stack: ef450000
[ 2.769125] NIP: c02995d0 LR: c028f240 CTR: c02995b0
[ 2.774161] REGS: effe3f10 TRAP: 0204 Tainted: G M (4.14.180)
[ 2.781276] MSR: 00029000 <CE,EE,ME> CR: 24000282 XER: 00000000
[ 2.787449] DEAR: f1200000 ESR: 00800000
[ 2.787449] GPR00: c028f524 ef451c20 ef448000 ef451c34 ef49c91c 00000020 ef451cc8 ef451cc8
[ 2.787449] GPR08: 00000002 00000002 f1200000 00000002 24000282 00000000 c049ae20 c049a00c
[ 2.787449] GPR16: c049ad84 c049adc0 c049add8 ef48f158 00000000 c049ad50 ef49c910 01000000
[ 2.787449] GPR24: c049a000 00000000 00000000 00000000 00000000 00000022 00000002 ef49c91c
[ 2.824804] Call Trace:
[ 2.827240] [ef451c20] [ef451cd0] 0xef451cd0 (unreliable)
[ 2.832625] [ef451c60] [c028f524] 0xc028f524
[ 2.836882] [ef451c80] [c028e3dc] 0xc028e3dc
[ 2.841138] [ef451cc0] [c02991a8] 0xc02991a8
[ 2.845394] [ef451d40] [c028e2b8] 0xc028e2b8
[ 2.849651] [ef451d60] [c029993c] 0xc029993c
[ 2.853907] [ef451de0] [c0273138] 0xc0273138
[ 2.858164] [ef451df0] [c02715b8] 0xc02715b8
[ 2.862420] [ef451e20] [c02717f4] 0xc02717f4
[ 2.866676] [ef451e40] [c026f634] 0xc026f634
[ 2.870933] [ef451e70] [c0270a88] 0xc0270a88
[ 2.875189] [ef451e90] [c0272158] 0xc0272158
[ 2.879446] [ef451ea0] [c0003140] 0xc0003140
[ 2.883702] [ef451f00] [c04d8b40] 0xc04d8b40
[ 2.887959] [ef451f30] [c00032d0] 0xc00032d0
[ 2.892215] [ef451f40] [c00103b0] 0xc00103b0
[ 2.896470] Instruction dump:
[ 2.899427] 48000008 0fe00000 7c0004ac 4e800020 81240018 8144000c 2f890001 40be000c
[ 2.907163] 7d2a28ae 48000028 2f890002 40be000c <7d2a2a2e> 48000018 2f890004 409e000c
[ 2.915079] ---[ end trace c9ea2fa8a0ac4ace ]---
[ 2.920341]
[ 3.911837] Kernel panic - not syncing: Fatal exception
[ 3.917450] Rebooting in 1 seconds..

Is there something wrong I'm doing? Or is this a bug upstream?

@aparcar aparcar added the release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release
Projects
None yet
Development

No branches or pull requests

2 participants