Adding OpenWrt support for Watchguard Firebox T35

Hi all,

I try to get OpenWrt running on Watchguard Firebox T35 Devices and ran into Issue where I don't really know how to solve it. The Image seems to start fine but as soon as /sbin/init is startet errors appears which indicate illigal instructions in libc.so:

[    3.905181] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    3.912385] VFS: Mounted root (ext4 filesystem) on device 8:2.
[    3.918555] Freeing unused kernel memory: 300K
[    3.923088] This architecture does not have kernel memory protection.
[    3.929630] Run /sbin/init as init process
[    4.005537] init: Console is alive
[    4.098132] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.114970] PTP clock support registered
[    4.122504] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.131167] init: - preinit -
[    4.164635] sh[1246]: illegal instruction (4) at 3fff97c30f08 nip 3fff97c30f08 lr 10045cfc code 1 in libc.so[3fff97ba3000+9f000]
[    4.176335] sh[1246]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    4.185539] sh[1246]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    4.199816] procd: - early -
[    4.781041] procd: - ubus -
[    4.836985] procd: - init -
Please press Enter to activate this console.
[    4.850685] S00sysfixtime[1366]: illegal instruction (4) at 3fffa5fb0f08 nip 3fffa5fb0f08 lr 10045cfc code 1 in libc.so[3fffa5f23000+9f000]
[    4.864638] S00sysfixtime[1366]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    4.874846] S00sysfixtime[1366]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    4.888980] S00urngd[1367]: illegal instruction (4) at 3fff8c650f08 nip 3fff8c650f08 lr 10045cfc code 1 in libc.so[3fff8c5c3000+9f000]

The T35 uses an NXP (Freescale) QorIQ T1024 CPU (PowerPC Architecture). The CPU is similar (but not identically) to the T2081 CPU which is used in the Watchguard Firefox M300. The M300 seems to run ( [OpenWrt Wiki] Techdata: WatchGuard Firebox M300) fine.

The T1024 uses e5500-Cores whereas the T2081 uses e6500-Cores.
My .config-File is configure with the e5500-cores if i interpret is correctly:

CONFIG_TARGET_BOARD="qoriq"
CONFIG_TARGET_SUBTARGET="generic"
CONFIG_TARGET_PROFILE="DEVICE_watchguard_firebox-t35"
CONFIG_TARGET_ARCH_PACKAGES="powerpc64_e5500"
CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -mcpu=e5500"
CONFIG_CPU_TYPE="e5500"

If the compile target whould be wrong then the Kernel would also not start, or am I wrong in this?

Any Ideas about how to proceed?

Sascha

Complete Boot Log:

SPI boot...
Not enough bank(chip-select) for CS0+CS1 on controller 0, interleaving disabled!
Loading second stage boot loader .................................................................................................

U-Boot 2015.01 (Jul 18 2017 - 15:03:34)

CPU0:  T1024E, Version: 1.0, (0x85480010)
Core:  e5500, Version: 2.1, (0x80241021)
Single Source Clock Configuration
Clock Configuration:
       CPU0:1200 MHz, CPU1:1200 MHz,
       CCB:400  MHz,
       DDR:800  MHz (1600 MT/s data rate) (Asynchronous), IFC:100  MHz
       QE:200  MHz
       FMAN1: 600 MHz
       QMAN:  400 MHz
L1:    D-cache 32 KiB enabled
       I-cache 32 KiB enabled
Reset Configuration Word (RCW):
       00000000: 0810000c 00000000 00000000 00000000
       00000010: 2d000003 0000001a 5c027000 21000000
       00000020: 00000000 00000000 00000000 00033f00
       00000030: 00000704 49260a08 00000000 00000006
Board: T1024RDB, Board rev: 0xff CPLD ver: 0xff, boot from SPI
SERDES Reference Clocks:
SD1_CLK1=100.00MHZ, SD1_CLK2=125.00MHz
I2C:   ready
SPI:   ready
DRAM:  Detected UDIMM Fixed DDR4 on board
Not enough bank(chip-select) for CS0+CS1 on controller 0, interleaving disabled!
2 GiB (DDR3, 64-bit, CL=12, ECC off)
Flash: 0 Bytes
L2:    256 KiB enabled
Corenet Platform Cache: 256 KiB enabled
Using SERDES1 Protocol: 90 (0x5a)
NAND:  0 MiB
MMC:   FSL_SDHC: 0
SF: Detected W25Q32BV with page size 256 Bytes, erase size 4 KiB, total 4 MiB
EEPROM: Read failed.
PCIe1: Root Complex, no link, regs @ 0xfe240000
PCIe1: Bus 00 - 00
PCIe2: disabled
PCIe3: Root Complex, no link, regs @ 0xfe260000
PCIe3: Bus 01 - 01
In:    serial
Out:   serial
Err:   serial
Net:   SerDes protocol 0x5a is not supported on T102xRDB
SF: Detected W25Q32BV with page size 256 Bytes, erase size 4 KiB, total 4 MiB
Fman1: Uploading microcode version 108.4.5
Phy 0 not found
PHY reset timed out
PHY reset timed out
FM_TGEC_MDIO:0 is connected to FM1@DTSEC1.  Reconnecting to FM1@DTSEC2
Phy 0 not found
PHY reset timed out
Phy 2 not found
PHY reset timed out
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4 [PRIME]

               WatchGuard U-Boot 2015.01 - Jul 18 2017 15:03:34

 +-------------------------------------------------------------------------+
 |WatchGuard (SYSA)                                                        |
 |WatchGuard (SYSB Recovery/Diagnostic Mode)                               |
 |WatchGuard (SYSA from /boot)                                             |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 +-------------------------------------------------------------------------+

      Use the ^ and v keys to select which entry is highlighted.
      Press enter to boot the selected OS.






Booting SYSA
SATA0 (3 Gbps)
** Invalid partition 3 **
** Invalid partition 3 **
WARNING: adjusting available memory to 30000000
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=> setenv OpenWrt_fdt image-watchguard-firebox-t35.dtb
=> setenv OpenWrt_kernel watchguard_firebox-t35-kernel.bin
=> setenv wgBootSysA 'setenv bootargs root=/dev/sda2 rw rootdelay=2 console=$consoledev,$baudrate fsl_dpaa_fman.fsl_fm_max_frm=1530; usb start; ext2load usb 0:1 $fdtaddr $OpenWrt_fdt; ext2load usb 0:1 $loadaddr $OpenWrt_kernel; bootm $loadaddr - $fdtaddr'
=> run wgBootSysA
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
25879 bytes read in 65 ms (388.7 KiB/s)
4674405 bytes read in 181 ms (24.6 MiB/s)
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   POWERPC OpenWrt Linux-5.10.111
   Created:      2022-04-22   7:23:49 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    4674341 Bytes = 4.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 03fe6000, end 03fff516 ... OK
[    0.000000] OF: reserved mem: initialized node qman-fqd, compatible id fsl,qman-fqd
[    0.000000] OF: reserved mem: initialized node qman-pfdr, compatible id fsl,qman-pfdr
[    0.000000] OF: reserved mem: initialized node bman-fbpr, compatible id fsl,bman-fbpr
[    0.000000] MMU: Supported page sizes
[    0.000000]          4 KB as direct
[    0.000000]       4096 KB as direct
[    0.000000]      16384 KB as direct
[    0.000000]      65536 KB as direct
[    0.000000]     262144 KB as direct
[    0.000000]    1048576 KB as direct
[    0.000000] MMU: Book3E HW tablewalk not supported
[    0.000000] Linux version 5.10.111 (builder@buildhost) (powerpc64-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19511-c59704334c) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Fri Apr 22 07:23:49 2022
[    0.000000] Using CoreNet Generic machine description
[    0.000000] ioremap() called early from .find_legacy_serial_ports+0x6b4/0x78c. Use early_ioremap() instead
[    0.000000] printk: bootconsole [udbg0] enabled
[    0.000000] CPU maps initialized for 1 thread per core
[    0.000000] -----------------------------------------------------
[    0.000000] phys_mem_size     = 0x80000000
[    0.000000] dcache_bsize      = 0x40
[    0.000000] icache_bsize      = 0x40
[    0.000000] cpu_features      = 0x00000003008003b4
[    0.000000]   possible        = 0x00000003009003b6
[    0.000000]   always          = 0x00000003008003b4
[    0.000000] cpu_user_features = 0xcc008000 0x08000000
[    0.000000] mmu_features      = 0x000a0010
[    0.000000] firmware_features = 0x0000000000000000
[    0.000000] -----------------------------------------------------
[    0.000000] ioremap() called early from .of_iomap+0x30/0x4c. Use early_ioremap() instead
[    0.000000] CoreNet Generic board
[    0.000000] barrier-nospec: using isync; sync as speculation barrier
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 2112 bytes of context maps for 255 contexts
[    0.000000] percpu: Embedded 18 pages/cpu s35736 r0 d37992 u524288
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: root=/dev/sda2 rw rootdelay=2 console=ttyS0,115200 fsl_dpaa_fman.fsl_fm_max_frm=1530
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1928472K/2097152K available (7664K kernel code, 1928K rwdata, 2068K rodata, 300K init, 379K bss, 168680K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 512, nr_irqs: 512, preallocated irqs: 16
[    0.000000] mpic: Setting up MPIC " OpenPIC  " version 1.2 at ffe040000, max 2 CPUs
[    0.000000] mpic: ISU size: 512, shift: 9, mask: 1ff
[    0.000000] mpic: Initializing for 512 sources
[    0.000000] random: get_random_u64 called from .start_kernel+0x448/0x660 with crng_init=0
[    0.000006] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.010288] clocksource: timebase mult[28000000] shift[24] registered
[    0.019262] Console: colour dummy device 80x25
[    0.023660] pid_max: default: 32768 minimum: 301
[    0.028402] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.035749] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.044914] rcu: Hierarchical SRCU implementation.
[    0.049769] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.057544] smp: Bringing up secondary CPUs ...
[    0.062686] smp: Brought up 1 node, 2 CPUs
[    0.070871] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080697] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.088014] NET: Registered protocol family 16
[    0.093232] thermal_sys: Registered thermal governor 'step_wise'
[    0.094371] cpuidle: using governor teo
[    0.115318] Machine: Watchguard Firebox T35
[    0.119433] SoC family: QorIQ T1024
[    0.122921] SoC ID: svr:0x85480010, Revision: 1.0
[    0.132508] Found FSL PCI host bridge at 0x0000000ffe240000. Firmware bus number: 0->0
[    0.140400] PCI host bridge /pcie@ffe240000  ranges:
[    0.145350]  MEM 0x0000000c00000000..0x0000000c0fffffff -> 0x00000000e0000000
[    0.152589]   IO 0x0000000ff8000000..0x0000000ff800ffff -> 0x0000000000000000
[    0.159777] /pcie@ffe240000: PCICSRBAR @ 0xff000000
[    0.164620] setup_pci_atmu: end of DRAM 80000000
[    0.169804] Found FSL PCI host bridge at 0x0000000ffe260000. Firmware bus number: 0->0
[    0.177685] PCI host bridge /pcie@ffe260000  ranges:
[    0.182643]  MEM 0x0000000c20000000..0x0000000c2fffffff -> 0x00000000e0000000
[    0.189882]   IO 0x0000000ff8020000..0x0000000ff802ffff -> 0x0000000000000000
[    0.197051] /pcie@ffe260000: PCICSRBAR @ 0xff000000
[    0.201923] setup_pci_atmu: end of DRAM 80000000
[    0.209555] platform ff6000000.qman-portal: Adding to iommu group 0
[    0.215821] platform ff6004000.qman-portal: Adding to iommu group 1
[    0.222066] platform ff6008000.qman-portal: Adding to iommu group 2
[    0.228359] platform ff600c000.qman-portal: Adding to iommu group 3
[    0.234623] platform ff6010000.qman-portal: Adding to iommu group 4
[    0.240911] platform ff6014000.qman-portal: Adding to iommu group 5
[    0.247237] platform ffe100300.dma: Adding to iommu group 6
[    0.252777] platform ffe101300.dma: Adding to iommu group 7
[    0.258345] platform ffe114000.sdhc: Adding to iommu group 8
[    0.264045] platform ffe210000.usb: Adding to iommu group 9
[    0.269593] platform ffe211000.usb: Adding to iommu group 10
[    0.275291] platform ffe220000.sata: Adding to iommu group 11
[    0.281026] platform ffe318000.qman: Adding to iommu group 12
[    0.286781] platform ffe31a000.bman: Adding to iommu group 13
[    0.292532] fsl-pci ffe240000.pcie: Adding to iommu group 14
[    0.298212] fsl-pci ffe260000.pcie: Adding to iommu group 15
[    0.303867] platform ffe140000.qe: Adding to iommu group 16
[    0.321148] PCI: Probing PCI hardware
[    0.324928] fsl-pci ffe240000.pcie: PCI host bridge to bus 0000:00
[    0.331116] pci_bus 0000:00: root bus resource [io  0x8000080000010000-0x800008000001ffff] (bus address [0x0000-0xffff])
[    0.341956] pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc0fffffff] (bus address [0xe0000000-0xefffffff])
[    0.352331] pci_bus 0000:00: root bus resource [bus 00]
[    0.357555] pci_bus 0000:00: busn_res: [bus 00] end is updated to ff
[    0.363976] pci 0000:00:00.0: [1957:0840] type 01 class 0x060400
[    0.369948] pci 0000:00:00.0: reg 0x10: [mem 0xff000000-0xffffffff]
[    0.376295] pci 0000:00:00.0: supports D1 D2
[    0.380491] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.387262] fsl-pci ffe240000.pcie: Removing from iommu group 14
[    0.393235] pci 0000:00:00.0: Adding to iommu group 17
[    0.400776] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.411067] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.416229] pci 0000:00:00.0:   bridge window [io  0x8000080000010000-0x8000080000010fff]
[    0.424436] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    0.431225] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff 64bit pref]
[    0.439002] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.445613] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.452367] fsl-pci ffe260000.pcie: PCI host bridge to bus 0001:00
[    0.458485] pci_bus 0001:00: root bus resource [io  0x8000080000021000-0x8000080000030fff] (bus address [0x0000-0xffff])
[    0.469394] pci_bus 0001:00: root bus resource [mem 0xc20000000-0xc2fffffff] (bus address [0xe0000000-0xefffffff])
[    0.479767] pci_bus 0001:00: root bus resource [bus 00]
[    0.484992] pci_bus 0001:00: busn_res: [bus 00] end is updated to ff
[    0.491398] pci 0001:00:00.0: [1957:0840] type 01 class 0x060400
[    0.497384] pci 0001:00:00.0: reg 0x10: [mem 0xff000000-0xffffffff]
[    0.503730] pci 0001:00:00.0: supports D1 D2
[    0.507926] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.514679] fsl-pci ffe260000.pcie: Removing from iommu group 15
[    0.520649] pci 0001:00:00.0: Adding to iommu group 14
[    0.528114] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.538396] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.543558] pci 0001:00:00.0:   bridge window [io  0x8000080000021000-0x8000080000021fff]
[    0.551766] pci 0001:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    0.558555] pci 0001:00:00.0:   bridge window [mem 0x00000000-0x000fffff 64bit pref]
[    0.566332] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    0.572942] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 01
[    0.579584] PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
[    0.587415] PCI: Cannot allocate resource region 0 of device 0001:00:00.0, will remap
[    0.595301] pci 0000:00:00.0: BAR 0: no space for [mem size 0x01000000]
[    0.601889] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
[    0.608876] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.613837] pci 0000:00:00.0:   bridge window [io  0x8000080000010000-0x800008000001ffff]
[    0.622042] pci 0000:00:00.0:   bridge window [mem 0xc00000000-0xc0fffffff]
[    0.629011] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    0.638086] pci_bus 0000:00: resource 4 [io  0x8000080000010000-0x800008000001ffff]
[    0.645751] pci_bus 0000:00: resource 5 [mem 0xc00000000-0xc0fffffff]
[    0.652211] pci_bus 0000:01: resource 0 [io  0x8000080000010000-0x800008000001ffff]
[    0.659877] pci_bus 0000:01: resource 1 [mem 0xc00000000-0xc0fffffff]
[    0.666342] pci 0001:00:00.0: BAR 0: no space for [mem size 0x01000000]
[    0.672957] pci 0001:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
[    0.679942] pci 0001:00:00.0: PCI bridge to [bus 01]
[    0.684905] pci 0001:00:00.0:   bridge window [io  0x8000080000021000-0x8000080000030fff]
[    0.693110] pci 0001:00:00.0:   bridge window [mem 0xc20000000-0xc2fffffff]
[    0.700078] pci_bus 0001:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    0.709153] pci_bus 0001:00: resource 4 [io  0x8000080000021000-0x8000080000030fff]
[    0.716819] pci_bus 0001:00: resource 5 [mem 0xc20000000-0xc2fffffff]
[    0.723280] pci_bus 0001:01: resource 0 [io  0x8000080000021000-0x8000080000030fff]
[    0.730945] pci_bus 0001:01: resource 1 [mem 0xc20000000-0xc2fffffff]
[    0.753952] Freescale Elo series DMA driver
[    0.758439] fsl-elo-dma ffe100300.dma: #0 (fsl,eloplus-dma-channel), irq 28
[    0.765410] fsl-elo-dma ffe100300.dma: #1 (fsl,eloplus-dma-channel), irq 29
[    0.772430] fsl-elo-dma ffe100300.dma: #2 (fsl,eloplus-dma-channel), irq 30
[    0.779390] fsl-elo-dma ffe100300.dma: #3 (fsl,eloplus-dma-channel), irq 31
[    0.786377] fsl-elo-dma ffe100300.dma: #4 (fsl,eloplus-dma-channel), irq 76
[    0.793346] fsl-elo-dma ffe100300.dma: #5 (fsl,eloplus-dma-channel), irq 77
[    0.800328] fsl-elo-dma ffe100300.dma: #6 (fsl,eloplus-dma-channel), irq 78
[    0.807297] fsl-elo-dma ffe100300.dma: #7 (fsl,eloplus-dma-channel), irq 79
[    0.814976] fsl-elo-dma ffe101300.dma: #0 (fsl,eloplus-dma-channel), irq 32
[    0.821945] fsl-elo-dma ffe101300.dma: #1 (fsl,eloplus-dma-channel), irq 33
[    0.828942] fsl-elo-dma ffe101300.dma: #2 (fsl,eloplus-dma-channel), irq 34
[    0.835907] fsl-elo-dma ffe101300.dma: #3 (fsl,eloplus-dma-channel), irq 35
[    0.842889] fsl-elo-dma ffe101300.dma: #4 (fsl,eloplus-dma-channel), irq 80
[    0.849854] fsl-elo-dma ffe101300.dma: #5 (fsl,eloplus-dma-channel), irq 81
[    0.856839] fsl-elo-dma ffe101300.dma: #6 (fsl,eloplus-dma-channel), irq 82
[    0.863815] fsl-elo-dma ffe101300.dma: #7 (fsl,eloplus-dma-channel), irq 83
[    0.871492] iommu: Default domain type: Translated
[    0.876564] SCSI subsystem initialized
[    0.880676] usbcore: registered new interface driver usbfs
[    0.886337] usbcore: registered new interface driver hub
[    0.891615] usbcore: registered new device driver usb
[    0.896724] pps_core: LinuxPPS API ver. 1 registered
[    0.901616] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.910843] EDAC MC: Ver: 3.0.0
[    0.914819] fsl-ifc ffe124000.localbus: Freescale Integrated Flash Controller
[    0.921947] fsl-ifc ffe124000.localbus: IFC version 1.5, 8 banks
[    0.929505] clocksource: Switched to clocksource timebase
[    0.938767] NET: Registered protocol family 2
[    0.943365] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.952112] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.960649] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.968632] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.976156] TCP: Hash tables configured (established 16384 bind 16384)
[    0.982802] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.989479] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.996825] NET: Registered protocol family 1
[    1.001185] PCI: CLS 0 bytes, default 64
[    1.006953] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    1.019052] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.024965] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.035718] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.086112] bman_portal ff4000000.bman-portal: Portal initialised, cpu 0
[    1.092935] bman_portal ff4004000.bman-portal: Portal initialised, cpu 1
[    1.100202] qman_portal ff6000000.qman-portal: Portal initialised, cpu 0
[    1.107094] qman_portal ff6004000.qman-portal: Portal initialised, cpu 1
[    1.114264] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.123124] printk: console [ttyS0] disabled
[    1.127364] serial8250.0: ttyS0 at MMIO 0xffe11c500 (irq = 36, base_baud = 12500000) is a 16550A_FSL64
[    1.136714] printk: console [ttyS0] enabled
[    1.136714] printk: console [ttyS0] enabled
[    1.145039] printk: bootconsole [udbg0] disabled
[    1.145039] printk: bootconsole [udbg0] disabled
[    1.154586] serial8250.0: ttyS1 at MMIO 0xffe11c600 (irq = 36, base_baud = 12500000) is a 16550A_FSL64
[    1.164209] serial8250.0: ttyS2 at MMIO 0xffe11d500 (irq = 37, base_baud = 12500000) is a 16550A_FSL64
[    1.173838] serial8250.0: ttyS3 at MMIO 0xffe11d600 (irq = 37, base_baud = 12500000) is a 16550A_FSL64
[    1.188224] loop: module loaded
[    1.191433] Loading iSCSI transport class v2.0-870.
[    1.200388] physmap-flash fe8000000.nor: physmap platform flash device: [mem 0xfe8000000-0xfefffffff]
[    1.209818] physmap-flash fe8000000.nor: map_probe failed
[    1.216451] nand: No NAND device found
[    1.220742] fsl_espi ffe110000.spi: cs=0, init_csmode=0x100008
[    1.226605] fsl_espi ffe110000.spi: cs=1, init_csmode=0x100008
[    1.232483] fsl_espi ffe110000.spi: cs=2, init_csmode=0x100008
[    1.239138] fsl_espi ffe110000.spi: irq = 53
[    1.245412] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    1.253313] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    1.265457] mdio_bus 0x0000000ffe4fc000: MDIO device at address 2 is missing.
[    1.272786] mdio_bus 0x0000000ffe4fc000: MDIO device at address 6 is missing.
[    1.287696] mdio_bus 0x0000000ffe4fd000: MDIO device at address 1 is missing.
[    1.302049] mdio_bus 0x0000000ffe4fd000: MDIO device at address 2 is missing.
[    1.323225] fsl_dpaa_mac ffe4e4000.ethernet: FMan MEMAC
[    1.328482] fsl_dpaa_mac ffe4e4000.ethernet: FMan MAC address: 00:0b:6b:01:01:03
[    1.336265] fsl_dpaa_mac ffe4e6000.ethernet: FMan MEMAC
[    1.341535] fsl_dpaa_mac ffe4e6000.ethernet: FMan MAC address: 00:0b:6b:01:01:04
[    1.355336] fsl_dpaa_mac ffe4e4000.ethernet eth0: Probed interface eth0
[    1.368199] fsl_dpaa_mac ffe4e6000.ethernet eth1: Probed interface eth1
[    1.374968] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.381534] ehci-pci: EHCI PCI platform driver
[    1.386289] /soc@ffe000000/usb@210000: Invalid 'dr_mode' property, fallback to host mode
[    1.394874] ehci-fsl: Freescale EHCI Host controller driver
[    1.400608] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
[    1.407261] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
[    1.424607] fsl-ehci fsl-ehci.0: irq 44, io mem 0xffe210000
[    1.469522] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[    1.475599] hub 1-0:1.0: USB hub found
[    1.479401] hub 1-0:1.0: 1 port detected
[    1.483723] fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
[    1.490404] fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
[    1.507729] fsl-ehci fsl-ehci.1: irq 45, io mem 0xffe211000
[    1.539518] fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00
[    1.545561] hub 2-0:1.0: USB hub found
[    1.549354] hub 2-0:1.0: 1 port detected
[    1.553966] usbcore: registered new interface driver uas
[    1.559384] usbcore: registered new interface driver usb-storage
[    1.566007] mpc-i2c ffe118000.i2c: timeout 1000000 us
[    1.571618] mpc-i2c ffe118100.i2c: timeout 1000000 us
[    1.577069] mpc-i2c ffe119000.i2c: timeout 1000000 us
[    1.582360] mpc-i2c ffe119100.i2c: timeout 1000000 us
[    1.595394] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
[    1.602843] fsl_mc_err_probe: No ECC DIMMs discovered
[    1.609788] EDAC PCI0: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV mpc85xx-pci-edac.0.auto (INTERRUPT)
[    1.621741] MPC85xx_edac acquired irq 20 for PCI Err
[    1.626723] MPC85xx_edac PCI err registered
[    1.631024] EDAC PCI1: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV mpc85xx-pci-edac.1.auto (INTERRUPT)
[    1.642940] MPC85xx_edac acquired irq 22 for PCI Err
[    1.647920] MPC85xx_edac PCI err registered
[    1.653281] qoriq-cpufreq qoriq-cpufreq: Freescale QorIQ CPU frequency scaling driver
[    1.661712] sdhci: Secure Digital Host Controller Interface driver
[    1.667917] sdhci: Copyright(c) Pierre Ossman
[    1.672311] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.679456] caam ffe300000.crypto: Linux CAAM Queue I/F driver initialised
[    1.686402] caam ffe300000.crypto: Entropy delay = 3200
[    1.705700] mmc0: SDHCI controller on ffe114000.sdhc [ffe114000.sdhc] using ADMA 64-bit
[    1.711710] caam ffe300000.crypto: Instantiated RNG4 SH0
[    1.731762] caam ffe300000.crypto: Instantiated RNG4 SH1
[    1.737097] caam ffe300000.crypto: device ID = 0x0a12050000000000 (Era 8)
[    1.743918] caam ffe300000.crypto: job rings = 4, qi = 1
[    1.749444] platform ffe301000.jr: Adding to iommu group 15
[    1.755435] platform ffe302000.jr: Adding to iommu group 18
[    1.761392] platform ffe303000.jr: Adding to iommu group 19
[    1.767301] platform ffe304000.jr: Adding to iommu group 20
[    1.780884] caam algorithms registered in /proc/crypto
[    1.787773] caam ffe300000.crypto: caam pkc algorithms registered in /proc/crypto
[    1.795317] caam ffe300000.crypto: registering rng-caam
[    1.806197] caam ffe300000.crypto: algorithms registered in /proc/crypto
[    1.815231] NET: Registered protocol family 10
[    1.820778] Segment Routing with IPv6
[    1.824514] NET: Registered protocol family 17
[    1.829010] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.842142] usb 1-1: new high-speed USB device number 2 using fsl-ehci
[    1.848920] 8021q: 802.1Q VLAN Support v1.8
[    1.853280] drmem: No dynamic reconfiguration memory found
[    1.862015] Waiting 2 sec before mounting root device...
[    1.900893] random: fast init done
[    1.941052] random: crng init done
[    2.071984] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.078673] scsi host0: usb-storage 1-1:1.0
[    3.090588] scsi 0:0:0:0: Direct-Access     SanDisk  Extreme          0001 PQ: 0 ANSI: 6
[    3.307173] sd 0:0:0:0: [sda] 61341696 512-byte logical blocks: (31.4 GB/29.3 GiB)
[    3.315659] sd 0:0:0:0: [sda] Write Protect is off
[    3.321272] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.334336]  sda: sda1 sda2
[    3.339999] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.905181] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    3.912385] VFS: Mounted root (ext4 filesystem) on device 8:2.
[    3.918555] Freeing unused kernel memory: 300K
[    3.923088] This architecture does not have kernel memory protection.
[    3.929630] Run /sbin/init as init process
[    4.005537] init: Console is alive
[    4.098132] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.114970] PTP clock support registered
[    4.122504] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.131167] init: - preinit -
[    4.164635] sh[1246]: illegal instruction (4) at 3fff97c30f08 nip 3fff97c30f08 lr 10045cfc code 1 in libc.so[3fff97ba3000+9f000]
[    4.176335] sh[1246]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    4.185539] sh[1246]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    4.199816] procd: - early -
[    4.781041] procd: - ubus -
[    4.836985] procd: - init -
Please press Enter to activate this console.
[    4.850685] S00sysfixtime[1366]: illegal instruction (4) at 3fffa5fb0f08 nip 3fffa5fb0f08 lr 10045cfc code 1 in libc.so[3fffa5f23000+9f000]
[    4.864638] S00sysfixtime[1366]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    4.874846] S00sysfixtime[1366]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    4.888980] S00urngd[1367]: illegal instruction (4) at 3fff8c650f08 nip 3fff8c650f08 lr 10045cfc code 1 in libc.so[3fff8c5c3000+9f000]
[    4.901274] S00urngd[1367]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    4.911024] S00urngd[1367]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    4.924983] S10boot[1368]: illegal instruction (4) at 3fffa56d3f08 nip 3fffa56d3f08 lr 10045cfc code 1 in libc.so[3fffa5646000+9f000]
[    4.937208] S10boot[1368]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    4.946874] S10boot[1368]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    4.960834] S10system[1369]: illegal instruction (4) at 3fffaa2e9f08 nip 3fffaa2e9f08 lr 10045cfc code 1 in libc.so[3fffaa25c000+9f000]
[    4.973235] S10system[1369]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    4.983069] S10system[1369]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    4.997111] S11sysctl[1370]: illegal instruction (4) at 3fffa3d19f08 nip 3fffa3d19f08 lr 10045cfc code 1 in libc.so[3fffa3c8c000+9f000]
[    5.009483] S11sysctl[1370]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    5.019406] S11sysctl[1370]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    5.033491] S12log[1371]: illegal instruction (4) at 3fff9b03cf08 nip 3fff9b03cf08 lr 10045cfc code 1 in libc.so[3fff9afaf000+9f000]
[    5.045603] S12log[1371]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    5.055231] S12log[1371]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010

Update:
In the meantime I'm rather sure that the errors are related to golang. In v22.03.0-rc3 I get the following compiler errors. Regarding this issue the e5500 is unsupported and will not be supported.
Is there any way around go..? If not, than this will be a dead end for the Port to many QorIQ-Devices.

make[3]: Entering directory '/home/administrator/openwrt/feeds/packages/lang/golang/golang'
make[3]: Leaving directory '/home/administrator/openwrt/feeds/packages/lang/golang/golang'
time: package/feeds/packages/golang/host-compile#0.30#0.08#0.31
make[3]: Entering directory '/home/administrator/openwrt/feeds/packages/net/frp'
rm -f /home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0/.built
touch /home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0/.built_check
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/administrator/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/administrator/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/fatedier/frp" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/fatedier/frp/cmd/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0" GO_BUILD_DIR="/home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0/.go_work/build" GO_BUILD_BIN_DIR="/home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0/.go_work/build/bin/linux_ppc64" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/administrator/openwrt/staging_dir/target-powerpc64_e5500_musl/usr/share/gocode/src" GOOS="linux" GOARCH="ppc64" GO386="" GOAMD64="" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="power8" CGO_ENABLED=1 CC="powerpc64-openwrt-linux-musl-gcc" CXX="powerpc64-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -mcpu=e5500 -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0=frp-0.42.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/administrator/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/usr/include -I/home/administrator/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/include/fortify -I/home/administrator/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/include" CGO_CXXFLAGS="-Os -pipe -mcpu=e5500 -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0=frp-0.42.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/administrator/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/usr/lib -L/home/administrator/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/lib -znow -zrelro" GOPATH="/home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0/.go_work/build" GOCACHE="/home/administrator/openwrt/tmp/go-build" GOMODCACHE="/home/administrator/openwrt/dl/go-mod-cache" GOENV=off /usr/bin/env bash ../../lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1653856656' -linkmode external -extldflags '-L/home/administrator/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/usr/lib -L/home/administrator/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-11.2.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
Finding targets

Building targets
# github.com/fatedier/frp/cmd/frpc
/home/administrator/openwrt/staging_dir/hostpkg/lib/go-cross/pkg/tool/linux_amd64/link: external linking not supported for linux/ppc64
# github.com/fatedier/frp/cmd/frps
/home/administrator/openwrt/staging_dir/hostpkg/lib/go-cross/pkg/tool/linux_amd64/link: external linking not supported for linux/ppc64

make[3]: *** [Makefile:72: /home/administrator/openwrt/build_dir/target-powerpc64_e5500_musl/frp-0.42.0/.built] Error 2
make[3]: Leaving directory '/home/administrator/openwrt/feeds/packages/net/frp'

no one forces you to add golang to the openwrt image ?

Of course not. Maybe I wrote it wrong. golang is the root cause and all packages which have go-SourceCode do not compile. Since there are also a few libraries which are used by other packages etc. they sum up really quickly.

Which packages do you need that are written in go? That’s not the usual language for openwrt modules.