Gcc was broken on mvebu (armada 370) device after commit on 2019-03-25

Hi,
I have an armada 370 device, and the commit on 2019-03-25 (commit id: 8dcc1087602e2dd606e4f6e81a06aee62cfd4f4c) caused the my device got a kernel panic, and this commit is effecting all the gcc versions (gcc 7.4, 8.3 and 9.2)

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.66 (Wacke@HOME-Server) (gcc version 9.2.0 (OpenWrt GCC 9.2.0 r10847-853e4dd306)) #0 SMP Thu Aug 22 19:15:28 2019
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: RTNAS V3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x7c/0x500 with crng_init=0
[    0.000000] percpu: Embedded 12 pages/cpu s19404 r8192 d21556 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootfstype=ubifs
[    0.000000] Bootloader command line (ignored): console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootfstype=ubifs
[    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: 1025672K/1048576K available (6144K kernel code, 214K rwdata, 1512K rodata, 4096K init, 247K bss, 22904K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (7136 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (4096 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 215 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 248 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.000022] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.000248] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.000263] pid_max: default: 32768 minimum: 301
[    0.000400] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000415] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000961] CPU: Testing write buffer coherency: ok
[    0.001224] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.001660] Setting up static identity map for 0x100000 - 0x100060
[    0.001977] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.002069] mvebu-pmsu: Initializing Power Management Service Unit
[    0.002201] rcu: Hierarchical SRCU implementation.
[    0.002581] smp: Bringing up secondary CPUs ...
[    0.002591] smp: Brought up 1 node, 1 CPU
[    0.002599] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.002605] CPU: All CPU(s) started in SVC mode.
[    0.005599] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.005714] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005730] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.005816] pinctrl core: initialized pinctrl subsystem
[    0.006395] NET: Registered protocol family 16
[    0.006728] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.007321] cpuidle: using governor ladder
[    0.028520] cryptd: max_cpu_qlen set to 1000
[    0.029278] SCSI subsystem initialized
[    0.030187] usbcore: registered new interface driver usbfs
[    0.030233] usbcore: registered new interface driver hub
[    0.030285] usbcore: registered new device driver usb
[    0.032423] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.033151] NET: Registered protocol family 2
[    0.033560] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.033584] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.033630] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.033699] TCP: Hash tables configured (established 8192 bind 8192)
[    0.033784] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.033808] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.033940] NET: Registered protocol family 1
[    0.091593] Crashlog allocated RAM at address 0x3f00000
[    0.092209] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.096672] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.096685] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.106119] bounce: pool size: 64 pages
[    0.106141] io scheduler noop registered
[    0.106148] io scheduler deadline registered (default)
[    0.107018] armada-370-pinctrl f1018000.pin-ctrl: registered pinctrl driver
[    0.108910] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    0.108930] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.108939] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    0.108948] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.110325] PCI: bus0: Fast back to back transfers disabled
[    0.110338] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.110351] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.111660] PCI: bus1: Fast back to back transfers disabled
[    0.113081] PCI: bus2: Fast back to back transfers disabled
[    0.113160] pci 0000:00:01.0: BAR 8: assigned [mem 0xf8000000-0xf80fffff]
[    0.113172] pci 0000:00:02.0: BAR 8: assigned [mem 0xf8200000-0xf84fffff]
[    0.113185] pci 0000:01:00.0: BAR 0: assigned [mem 0xf8000000-0xf801ffff 64bit]
[    0.113203] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8020000-0xf802ffff pref]
[    0.113212] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.113223] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    0.113237] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf83fffff 64bit]
[    0.113253] pci 0000:02:00.0: BAR 6: assigned [mem 0xf8400000-0xf840ffff pref]
[    0.113262] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.113271] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf84fffff]
[    0.113653] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.173186] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.173396] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.233188] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.233442] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.233945] console [ttyS0] disabled
[    0.254074] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 18, base_baud = 12500000) is a 16550A
[    0.927141] console [ttyS0] enabled
[    0.934261] loop: module loaded
[    0.938022] sata_mv f10a0000.sata: slots 32 ports 2
[    0.946071] scsi host0: sata_mv
[    0.949908] scsi host1: sata_mv
[    0.953250] ata1: SATA max UDMA/133 irq 27
[    0.957369] ata2: SATA max UDMA/133 irq 27
[    0.963757] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68
[    0.970148] nand: Micron MT29F32G08CBACAWP
[    0.974290] nand: 4096 MiB, MLC, erase size: 1024 KiB, page size: 4096, OOB size: 224
[    0.982166] nand: WARNING: pxa3xx_nand-0: the ECC used on your system is too weak compared to the one required by the NAND chip
[    0.994345] Bad block table found at page 1048320, version 0x01
[    1.001057] Bad block table found at page 1048064, version 0x01
[    1.007445] nand_read_bbt: bad block at 0x000005a00000
[    1.012624] nand_read_bbt: bad block at 0x000005b00000
[    1.023543] 7 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    1.030548] Creating 7 MTD partitions on "pxa3xx_nand-0":
[    1.036038] 0x000000000000-0x000000400000 : "u-boot"
[    1.041622] 0x000000400000-0x000000800000 : "uboot_env"
[    1.047367] 0x000000800000-0x000000c00000 : "vendor"
[    1.052831] 0x000000c00000-0x000001800000 : "unused"
[    1.058267] 0x000001800000-0x000001c00000 : "kernel"
[    1.063732] 0x000001c00000-0x000040000000 : "ubi"
[    1.069658] 0x000040000000-0x0000fbc00000 : "syscfg"
[    1.078016] libphy: Fixed MDIO Bus: probed
[    1.082721] libphy: orion_mdio_bus: probed
[    1.088257] mvneta f1074000.ethernet eth0: Using hardware mac address 00:50:43:02:00:00
[    1.096546] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.103123] ehci-platform: EHCI generic platform driver
[    1.108462] ehci-orion: EHCI orion driver
[    1.112625] orion-ehci f1050000.usb: EHCI Host Controller
[    1.118068] orion-ehci f1050000.usb: new USB bus registered, assigned bus number 1
[    1.125797] orion-ehci f1050000.usb: irq 24, io mem 0xf1050000
[    1.152741] orion-ehci f1050000.usb: USB 2.0 started, EHCI 1.00
[    1.159270] hub 1-0:1.0: USB hub found
[    1.163310] hub 1-0:1.0: 1 port detected
[    1.167631] orion-ehci f1051000.usb: EHCI Host Controller
[    1.173132] orion-ehci f1051000.usb: new USB bus registered, assigned bus number 2
[    1.180856] orion-ehci f1051000.usb: irq 25, io mem 0xf1051000
[    1.212374] orion-ehci f1051000.usb: USB 2.0 started, EHCI 1.00
[    1.218869] hub 2-0:1.0: USB hub found
[    1.222875] hub 2-0:1.0: 1 port detected
[    1.227497] usbcore: registered new interface driver usb-storage
[    1.233828] i2c /dev entries driver
[    1.262901] orion_wdt: Initial timeout 229 sec
[    1.267896] sdhci: Secure Digital Host Controller Interface driver
[    1.274152] sdhci: Copyright(c) Pierre Ossman
[    1.278670] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.287958] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.296005] NET: Registered protocol family 10
[    1.302256] Segment Routing with IPv6
[    1.306088] NET: Registered protocol family 17
[    1.311110] 8021q: 802.1Q VLAN Support v1.8
[    1.315465] Registering SWP/SWPB emulation handler
[    1.323043] ubi0: attaching mtd5
[    1.493673] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    1.542581] ata1.00: ATA-8: Hitachi HTS545025B9A300, PB2OC64G, max UDMA/133
[    1.549580] ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.581460] ata1.00: configured for UDMA/133
[    1.586136] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HTS54502 C64G PQ: 0 ANSI: 5
[    1.604222] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    1.622706] sd 0:0:0:0: [sda] Write Protect is off
[    1.627654] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.673143]  sda: sda1
[    1.683752] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.936231] ata2: SATA link down (SStatus 0 SControl F300)
[    3.083719] ubi0: scanning is finished
[    3.094254] ubi0: attached mtd5 (name "ubi", size 996 MiB)
[    3.099776] ubi0: PEB size: 1048576 bytes (1024 KiB), LEB size: 1040384 bytes
[    3.106993] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[    3.113834] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[    3.120829] ubi0: good PEBs: 994, bad PEBs: 2, corrupted PEBs: 0
[    3.126878] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.134145] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1657734030
[    3.143330] ubi0: available PEBs: 0, total reserved PEBs: 994, PEBs reserved for bad PEB handling: 78
[    3.153531] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.159046] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.166434] ubi0: background thread "ubi_bgt0d" started, PID 640
[    3.172778] mvsw61xx 10.mvsw61xx: Found MV88E6171 at f1072004.mdio-mii:10
[    3.179601] mvsw61xx 10.mvsw61xx: Using direct addressing
[    3.196305] hctosys: unable to open rtc device (rtc0)
[    3.206260] Freeing unused kernel memory: 4096K
[    3.213639] Run /init as init process
[    3.233552] init: Console is alive
[    3.237245] init: - watchdog -
[    3.251020] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.261084] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.279324] init: - preinit -
[    3.434697] random: jshn: uninitialized urandom read (4 bytes read)
Illegal instruction
Failed to parse message data
[    3.517084] random: jshn: uninitialized urandom read (4 bytes read)
Illegal instruction
Failed to parse message data
[    3.591028] random: jshn: uninitialized urandom read (4 bytes read)
Illegal instruction
Failed to parse message data
WARNING: Variable 'network' does not exist or is not an array/object
WARNING: Variable 'lan' does not exist or is not an array/object
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
f
- failsafe -
[    4.693742] random: dropbearkey: uninitialized urandom read (32 bytes read)
Generating 1024 [    4.702663] random: dropbearkey: uninitialized urandom read (32 bytes read)
bit rsa key, this may take a while...

Any idea about this? Thanks.

Works here with Armada, as well as everybody else have it working, so please run "make dirclean" and compile everything from scratch. This change requires one to recompile ALL the source with no exceptions. Please make sure build_dir and staging_dir empty before starting compilation.
Preferably remove all customizations and do clean build from upstream source.

1 Like

Thanks for reply.
What I've tried with no success:

1. make dirclean;
2. change gcc version (7.4, 8.3, 9.2) with make dirclean;
3. change the build host system (opensuse 15.1, ubuntu 18.10) with fresh git clone;

What I've tried with success:

1. change hardware floating to software floating;
2. change the gcc back to before commit 2019.03-25 (gcc 8.3.0 with hardware floating).

There was a change to the .config options, which required doing as stated in the commit message you specified above.

I wonder where this comes from?

WARNING: Variable 'network' does not exist or is not an array/object
WARNING: Variable 'lan' does not exist or is not an array/object

seems like something very wrong with your configuration or ubus scripts, I would guess due to the changes made to default OpenWRT default configuration.

These warnings caused by the libjson-c.so.4.0.0, I tried to replace the libjson-c.so.4.0.0 from old build, and the warnings were gone.

So sounds like your problem are around libjson, not sure why.
Which branch are you using?

I remember there was an issue with ubus for some packages some time ago that was causing similar errors.

I'm using the trunk branch, acctully I've tried to replace the libjson-c from openwrt's latest prebuild version, and I got the same issue (even though I replaced the old libjson-c, the kernel panic was gone, but still a lot of program got "Illegal instruction" like dnsmasq...)
So I guess the commit break the hardware floating (maybe only for armada 370).

Well, OpenWRT mvebu target assumes Cortex A9 CPU, but no datasheet I could find says that Armada 370 is Cortex A9, the only thing could find is that it s ARMV7 architecture but that is not good enough, you might need to get documentation from Marvell on which CPU it actually is.

I'm an end user, so ...
But my device is working very well before that commit.

Maybe this can help:

EBU Armada family

Armada 370 Flavors:

  • 88F6710
  • 88F6707
  • 88F6W11

Core:
Sheeva ARMv7 compatible PJ4B

link:https://www.kernel.org/doc/html/latest/arm/marvel.html

Yeah, you're most likely running into issues because of that. The kernel config might also be a bit wrong for that platform.

I guess you could try chainging https://github.com/openwrt/openwrt/blob/master/target/linux/mvebu/cortexa9/target.mk#L12 to marvell-pj4 and remove subtype no idea if it helps however.

Thanks. I'll get a try.

Oops, the toolchain build failed ...

/NAS/Software/openwrt_trunk/openwrt_orig_test/build_dir/toolchain-arm_marvell-pj4_gcc-9.2.0_musl_eabi/gcc-9.2.0-initial/./gcc/xgcc -B/NAS/Software/openwrt_trunk/openwrt_orig_test/build_dir/toolchain-arm_marvell-pj4_gcc-9.2.0_musl_eabi/gcc-9.2.0-initial/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=/NAS/Software/openwrt_trunk/openwrt_orig_test/build_dir/toolchain-arm_marvell-pj4_gcc-9.2.0_musl_eabi/gcc-9.2.0/gcc/testsuite/selftests
cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU
cc1: note: self-tests are not enabled in this build
make[5]: *** [/NAS/Software/openwrt_trunk/openwrt_orig_test/build_dir/toolchain-arm_marvell-pj4_gcc-9.2.0_musl_eabi/gcc-9.2.0/gcc/c/Make-lang.in:124: s-selftest-c] Error 1
make[5]: Leaving directory '/NAS/Software/openwrt_trunk/openwrt_orig_test/build_dir/toolchain-arm_marvell-pj4_gcc-9.2.0_musl_eabi/gcc-9.2.0-initial/gcc'
make[4]: *** [Makefile:4301: all-gcc] Error 2
make[4]: Leaving directory '/NAS/Software/openwrt_trunk/openwrt_orig_test/build_dir/toolchain-arm_marvell-pj4_gcc-9.2.0_musl_eabi/gcc-9.2.0-initial'
make[3]: *** [Makefile:37: /NAS/Software/openwrt_trunk/openwrt_orig_test/build_dir/toolchain-arm_marvell-pj4_gcc-9.2.0_musl_eabi/gcc-9.2.0-initial/.built] Error 2
make[3]: Leaving directory '/NAS/Software/openwrt_trunk/openwrt_orig_test/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#0.85#0.09#0.92
make[2]: *** [toolchain/Makefile:100: toolchain/gcc/initial/compile] Error 2
make[2]: Leaving directory '/NAS/Software/openwrt_trunk/openwrt_orig_test'
make[1]: *** [toolchain/Makefile:96: /NAS/Software/openwrt_trunk/openwrt_orig_test/staging_dir/toolchain-arm_marvell-pj4_gcc-9.2.0_musl_eabi/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/NAS/Software/openwrt_trunk/openwrt_orig_test'

You forgot to leave subtype blank. This is why you hard-float issues.

And I am not sure other parts of OpenWRT makefiles understand marvell-pj4 correctly.

And you need to remove FPU from features, on mvebu Makefile. 1 level up.

But the armada 370 acctully have FPU....

Yes, sorry I misread the error message. The error was that FPU enabled, but no FPU type (subtype). For this CPU subtype should be vfpv3 as before.

I've tried the marvell-pj4 with vfpv3, and build the openwrt successfully, but my device still got the same issue:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.66 (Wacke@HOME-Server) (gcc version 9.2.0 (OpenWrt GCC 9.2.0 r10865-c3a78955f3)) #0 SMP Mon Aug 26 16:21:13 2019
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: RTNAS V3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x7c/0x4fc with crng_init=0
[    0.000000] percpu: Embedded 12 pages/cpu s19404 r8192 d21556 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] Bootloader command line (ignored): console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootfstype=ubifs
[    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: 1025692K/1048576K available (6144K kernel code, 212K rwdata, 1508K rodata, 4096K init, 230K bss, 22884K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (7136 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (4096 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 213 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 231 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.000021] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.000242] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.000258] pid_max: default: 32768 minimum: 301
[    0.000394] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000408] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000994] CPU: Testing write buffer coherency: ok
[    0.001250] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.001690] Setting up static identity map for 0x100000 - 0x100060
[    0.002004] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.002094] mvebu-pmsu: Initializing Power Management Service Unit
[    0.002225] rcu: Hierarchical SRCU implementation.
[    0.002604] smp: Bringing up secondary CPUs ...
[    0.002615] smp: Brought up 1 node, 1 CPU
[    0.002622] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.002629] CPU: All CPU(s) started in SVC mode.
[    0.005488] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.005603] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005619] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.005703] pinctrl core: initialized pinctrl subsystem
[    0.006278] NET: Registered protocol family 16
[    0.006575] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.007165] cpuidle: using governor ladder
[    0.028095] cryptd: max_cpu_qlen set to 1000
[    0.028864] SCSI subsystem initialized
[    0.029731] usbcore: registered new interface driver usbfs
[    0.029776] usbcore: registered new interface driver hub
[    0.029825] usbcore: registered new device driver usb
[    0.032006] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.032729] NET: Registered protocol family 2
[    0.033147] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.033170] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.033216] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.033286] TCP: Hash tables configured (established 8192 bind 8192)
[    0.033372] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.033396] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.033522] NET: Registered protocol family 1
[    0.090923] Crashlog allocated RAM at address 0x3f00000
[    0.091558] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.095992] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.096006] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.105436] bounce: pool size: 64 pages
[    0.105459] io scheduler noop registered
[    0.105467] io scheduler deadline registered (default)
[    0.106336] armada-370-pinctrl f1018000.pin-ctrl: registered pinctrl driver
[    0.108218] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    0.108236] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.108247] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    0.108255] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.109617] PCI: bus0: Fast back to back transfers disabled
[    0.109630] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.109642] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.110975] PCI: bus1: Fast back to back transfers disabled
[    0.112398] PCI: bus2: Fast back to back transfers disabled
[    0.112474] pci 0000:00:01.0: BAR 8: assigned [mem 0xf8000000-0xf80fffff]
[    0.112486] pci 0000:00:02.0: BAR 8: assigned [mem 0xf8200000-0xf84fffff]
[    0.112500] pci 0000:01:00.0: BAR 0: assigned [mem 0xf8000000-0xf801ffff 64bit]
[    0.112517] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8020000-0xf802ffff pref]
[    0.112526] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.112537] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    0.112551] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf83fffff 64bit]
[    0.112567] pci 0000:02:00.0: BAR 6: assigned [mem 0xf8400000-0xf840ffff pref]
[    0.112575] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.112585] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf84fffff]
[    0.112966] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.172785] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.172997] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.232783] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.233044] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.233543] console [ttyS0] disabled
[    0.253676] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 18, base_baud = 12500000) is a 16550A
[    0.922647] console [ttyS0] enabled
[    0.929673] loop: module loaded
[    0.933501] sata_mv f10a0000.sata: slots 32 ports 2
[    0.941506] scsi host0: sata_mv
[    0.945453] scsi host1: sata_mv
[    0.948752] ata1: SATA max UDMA/133 irq 27
[    0.952941] ata2: SATA max UDMA/133 irq 27
[    0.959581] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68
[    0.966036] nand: Micron MT29F32G08CBACAWP
[    0.970156] nand: 4096 MiB, MLC, erase size: 1024 KiB, page size: 4096, OOB size: 224
[    0.978045] nand: WARNING: pxa3xx_nand-0: the ECC used on your system is too weak compared to the one required by the NAND chip
[    0.990261] Bad block table found at page 1048320, version 0x01
[    0.997019] Bad block table found at page 1048064, version 0x01
[    1.003369] nand_read_bbt: bad block at 0x000005a00000
[    1.008530] nand_read_bbt: bad block at 0x000005b00000
[    1.019417] 7 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    1.026481] Creating 7 MTD partitions on "pxa3xx_nand-0":
[    1.031929] 0x000000000000-0x000000400000 : "u-boot"
[    1.037511] 0x000000400000-0x000000800000 : "uboot_env"
[    1.043245] 0x000000800000-0x000000c00000 : "vendor"
[    1.048673] 0x000000c00000-0x000001800000 : "unused"
[    1.054133] 0x000001800000-0x000001c00000 : "kernel"
[    1.059556] 0x000001c00000-0x000040000000 : "ubi"
[    1.065527] 0x000040000000-0x0000fbc00000 : "syscfg"
[    1.073857] libphy: Fixed MDIO Bus: probed
[    1.078504] libphy: orion_mdio_bus: probed
[    1.084062] mvneta f1074000.ethernet eth0: Using hardware mac address 00:50:43:02:00:00
[    1.092351] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.098910] ehci-platform: EHCI generic platform driver
[    1.104266] ehci-orion: EHCI orion driver
[    1.108415] orion-ehci f1050000.usb: EHCI Host Controller
[    1.113885] orion-ehci f1050000.usb: new USB bus registered, assigned bus number 1
[    1.121591] orion-ehci f1050000.usb: irq 24, io mem 0xf1050000
[    1.152124] orion-ehci f1050000.usb: USB 2.0 started, EHCI 1.00
[    1.158654] hub 1-0:1.0: USB hub found
[    1.162689] hub 1-0:1.0: 1 port detected
[    1.167007] orion-ehci f1051000.usb: EHCI Host Controller
[    1.172508] orion-ehci f1051000.usb: new USB bus registered, assigned bus number 2
[    1.180233] orion-ehci f1051000.usb: irq 25, io mem 0xf1051000
[    1.211945] orion-ehci f1051000.usb: USB 2.0 started, EHCI 1.00
[    1.218425] hub 2-0:1.0: USB hub found
[    1.222442] hub 2-0:1.0: 1 port detected
[    1.227063] usbcore: registered new interface driver usb-storage
[    1.233389] i2c /dev entries driver
[    1.262480] orion_wdt: Initial timeout 229 sec
[    1.267478] sdhci: Secure Digital Host Controller Interface driver
[    1.273736] sdhci: Copyright(c) Pierre Ossman
[    1.278257] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.287547] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.295607] NET: Registered protocol family 10
[    1.301856] Segment Routing with IPv6
[    1.305689] NET: Registered protocol family 17
[    1.310707] 8021q: 802.1Q VLAN Support v1.8
[    1.315029] Registering SWP/SWPB emulation handler
[    1.322922] UBI: auto-attach mtd5
[    1.326269] ubi0: attaching mtd5
[    1.482490] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    1.503093] ata1.00: ATA-7: JMicron, 100415, max UDMA/133
[    1.508520] ata1.00: 7856128 sectors, multi 1: LBA48 
[    1.526258] ata1.00: configured for UDMA/133
[    1.530918] scsi 0:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[    1.554265] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)
[    1.562195] sd 0:0:0:0: [sda] Write Protect is off
[    1.572489] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    1.595266]  sda: sda1 sda2
[    1.602957] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.883204] ata2: SATA link down (SStatus 0 SControl F300)
[    3.085242] ubi0: scanning is finished
[    3.095795] ubi0: attached mtd5 (name "ubi", size 996 MiB)
[    3.101318] ubi0: PEB size: 1048576 bytes (1024 KiB), LEB size: 1040384 bytes
[    3.108534] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[    3.115375] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[    3.122383] ubi0: good PEBs: 994, bad PEBs: 2, corrupted PEBs: 0
[    3.128418] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.135686] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 907304449
[    3.144783] ubi0: available PEBs: 0, total reserved PEBs: 994, PEBs reserved for bad PEB handling: 78
[    3.154974] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.160489] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.167875] ubi0: background thread "ubi_bgt0d" started, PID 636
[    3.174211] mvsw61xx 10.mvsw61xx: Found MV88E6171 at f1072004.mdio-mii:10
[    3.181034] mvsw61xx 10.mvsw61xx: Using direct addressing
[    3.197873] hctosys: unable to open rtc device (rtc0)
[    3.208130] Freeing unused kernel memory: 4096K
[    3.233259] Run /init as init process
[    3.253084] init: Console is alive
[    3.256766] init: - watchdog -
[    3.270440] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.280409] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.298664] init: - preinit -
[    3.452609] random: jshn: uninitialized urandom read (4 bytes read)
Illegal instruction
Failed to parse message data
[    3.533595] random: jshn: uninitialized urandom read (4 bytes read)
Illegal instruction
Failed to parse message data
[    3.606062] random: jshn: uninitialized urandom read (4 bytes read)
Illegal instruction
Failed to parse message data
WARNING: Variable 'network' does not exist or is not an array/object
WARNING: Variable 'lan' does not exist or is not an array/object
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.758664] procd: - early -
[    6.761692] procd: - watchdog -
[    6.773938] watchdog: watchdog0: watchdog did not stop!
[    6.779237] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    6.779237] 
[    6.789230] Rebooting in 1 seconds..

Make sure you delete everything and recompile everything including toolchain as CPU now correct so everything should work.