Adding OpenWrt support for Adtran Bluesocket BSAP-3040

This is a QoriQ NXP T1023 based SoC with 32MiB of SPI NOR flash, 4GiB of MMC storage, and 1GiB of RAM. I have had various degrees of success with an older kernel but lately not so much.

Specs here: https://wikidevi.wi-cat.ru/Adtran_Bluesocket_BSAP-3040

I have GPL source from vendor, can anyone assist?

https://s3.amazonaws.com/ADTN_Product_Downloads/vWLAN/OpenSourceRequest/linux_sdk_freescale_yocto.tar

https://s3.amazonaws.com/ADTN_Product_Downloads/vWLAN/OpenSourceRequest/OSR_BSAP.tar

first attempt I get

BSAP3040-> tftpboot 0x1000000 openwrt-qoriq-generic-adtran_bsap-3040-initramfs-fit-uImage.itb && bootm 0x1000000
Using FM1@TGEC1 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename 'openwrt-qoriq-generic-adtran_bsap-3040-initramfs-fit-uImage.itb'.
Load address: 0x1000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###############################################################
         6.4 MiB/s
done
Bytes transferred = 11417144 (ae3638 hex)
WARNING: adjusting available memory to 30000000
## Loading kernel from FIT Image at 01000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  POWERPC OpenWrt Linux-5.15.114
     Created:      2023-06-23  19:32:38 UTC
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x010000ec
     Data Size:    11390256 Bytes = 10.9 MiB
     Architecture: PowerPC
     OS:           Linux
     Load Address: 0x00000000
     Entry Point:  0x00000000
     Hash algo:    crc32
     Hash value:   7e24286e
     Hash algo:    sha1
     Hash value:   09e2a33ce5c31a6309ab4f1caebcacafe5cd7b35
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 01000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  POWERPC OpenWrt adtran_bsap-3040 device tree blob
     Created:      2023-06-23  19:32:38 UTC
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x01adcf60
     Data Size:    24976 Bytes = 24.4 KiB
     Architecture: PowerPC
     Hash algo:    crc32
     Hash value:   788d2529
     Hash algo:    sha1
     Hash value:   e2ba168f06b525131ab80c30335de1966d40d496
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x1adcf60
   Uncompressing Kernel Image ... OK
ERROR: new format image overwritten - must RESET the board to recover
2nd attempt with different load address

BSAP3040-> tftpboot 0x2000000 openwrt-qoriq-generic-adtran_bsap-3040-initramfs-fit-uImage.itb && bootm 0x2000000
Using FM1@TGEC1 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename 'openwrt-qoriq-generic-adtran_bsap-3040-initramfs-fit-uImage.itb'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###############################################################
         6.6 MiB/s
done
Bytes transferred = 11417144 (ae3638 hex)
WARNING: adjusting available memory to 30000000
## Loading kernel from FIT Image at 02000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  POWERPC OpenWrt Linux-5.15.114
     Created:      2023-06-23  19:32:38 UTC
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x020000ec
     Data Size:    11390256 Bytes = 10.9 MiB
     Architecture: PowerPC
     OS:           Linux
     Load Address: 0x00000000
     Entry Point:  0x00000000
     Hash algo:    crc32
     Hash value:   7e24286e
     Hash algo:    sha1
     Hash value:   09e2a33ce5c31a6309ab4f1caebcacafe5cd7b35
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 02000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  POWERPC OpenWrt adtran_bsap-3040 device tree blob
     Created:      2023-06-23  19:32:38 UTC
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x02adcf60
     Data Size:    24976 Bytes = 24.4 KiB
     Architecture: PowerPC
     Hash algo:    crc32
     Hash value:   788d2529
     Hash algo:    sha1
     Hash value:   e2ba168f06b525131ab80c30335de1966d40d496
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x2adcf60
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 03fe6000, end 03fff18f ... 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.15.114 (briang@briang-optiplex9020) (powerpc64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r0+23352-3baa45fbd8) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Fri Jun 23 19:32:38 2023
[    0.000000] Using CoreNet Generic machine description
[    0.000000] printk: bootconsole [udbg0] enabled
[    0.000000] CPU maps initialized for 1 thread per core
[    0.000000] -----------------------------------------------------
[    0.000000] phys_mem_size     = 0x40000000
[    0.000000] dcache_bsize      = 0x40
[    0.000000] icache_bsize      = 0x40
[    0.000000] cpu_features      = 0x0000000300800394
[    0.000000]   possible        = 0x0000000300900396
[    0.000000]   always          = 0x0000000300800394
[    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+0x44/0x6c. 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-0x000000003fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000] MMU: Allocated 2112 bytes of context maps for 255 contexts
[    0.000000] percpu: Embedded 17 pages/cpu s29400 r0 d40232 u524288
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootdelay=1 ro console=ttyS0,115200
[    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: 889104K/1048576K available (9348K kernel code, 1732K rwdata, 1936K rodata, 8088K init, 308K bss, 159472K 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.000002] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.010216] clocksource: timebase mult[28000000] shift[24] registered
[    0.018874] Console: colour dummy device 80x25
[    0.023270] pid_max: default: 32768 minimum: 301
[    0.028241] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.035584] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.045013] rcu: Hierarchical SRCU implementation.
[    0.049865] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.057647] smp: Bringing up secondary CPUs ...
[    0.062746] smp: Brought up 1 node, 2 CPUs
[    0.070418] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080238] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.087818] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.094289] thermal_sys: Registered thermal governor 'step_wise'
[    0.094651] cpuidle: using governor teo
[    0.113207] Machine: Adtran Bluesocket BSAP-3040
[    0.117787] SoC family: QorIQ T1024
[    0.121247] SoC ID: svr:0x85490010, Revision: 1.0
[    0.129475] Found FSL PCI host bridge at 0x0000000ffe240000. Firmware bus number: 0->1
[    0.137341] PCI host bridge /pcie@ffe240000  ranges:
[    0.142334]  MEM 0x0000000c00000000..0x0000000c0fffffff -> 0x00000000e0000000
[    0.149550]   IO 0x0000000ff8000000..0x0000000ff800ffff -> 0x0000000000000000
[    0.156747] /pcie@ffe240000: PCICSRBAR @ 0xff000000
[    0.161582] setup_pci_atmu: end of DRAM 40000000
[    0.166682] Found FSL PCI host bridge at 0x0000000ffe250000. Firmware bus number: 0->1
[    0.174572] PCI host bridge /pcie@ffe250000  ranges:
[    0.179520]  MEM 0x0000000c10000000..0x0000000c1fffffff -> 0x00000000e0000000
[    0.186758]   IO 0x0000000ff8010000..0x0000000ff801ffff -> 0x0000000000000000
[    0.193925] /pcie@ffe250000: PCICSRBAR @ 0xff000000
[    0.198790] setup_pci_atmu: end of DRAM 40000000
[    0.203848] Found FSL PCI host bridge at 0x0000000ffe260000. Firmware bus number: 0->1
[    0.211721] PCI host bridge /pcie@ffe260000  ranges:
[    0.216685]  MEM 0x0000000c20000000..0x0000000c2fffffff -> 0x00000000e0000000
[    0.223924]   IO 0x0000000ff8020000..0x0000000ff802ffff -> 0x0000000000000000
[    0.231090] /pcie@ffe260000: PCICSRBAR @ 0xff000000
[    0.235956] setup_pci_atmu: end of DRAM 40000000
[    0.242241] platform ff6000000.qman-portal: Adding to iommu group 0
[    0.248511] platform ff6004000.qman-portal: Adding to iommu group 1
[    0.254747] platform ff6008000.qman-portal: Adding to iommu group 2
[    0.261033] platform ff600c000.qman-portal: Adding to iommu group 3
[    0.267316] platform ff6010000.qman-portal: Adding to iommu group 4
[    0.273590] platform ff6014000.qman-portal: Adding to iommu group 5
[    0.279909] platform ffe100300.dma: Adding to iommu group 6
[    0.285449] platform ffe101300.dma: Adding to iommu group 7
[    0.291034] platform ffe114000.sdhc: Adding to iommu group 8
[    0.296721] platform ffe210000.usb: Adding to iommu group 9
[    0.302271] platform ffe211000.usb: Adding to iommu group 10
[    0.307957] platform ffe220000.sata: Adding to iommu group 11
[    0.313709] platform ffe318000.qman: Adding to iommu group 12
[    0.319465] platform ffe31a000.bman: Adding to iommu group 13
[    0.325207] fsl-pci ffe240000.pcie: Adding to iommu group 14
[    0.330884] fsl-pci ffe250000.pcie: Adding to iommu group 15
[    0.336564] fsl-pci ffe260000.pcie: Adding to iommu group 16
[    0.346078] software IO TLB: tearing down default memory pool
[    0.358154] PCI: Probing PCI hardware
[    0.361929] fsl-pci ffe240000.pcie: PCI host bridge to bus 0000:00
[    0.368081] pci_bus 0000:00: root bus resource [io  0x8000080000010000-0x800008000001ffff] (bus address [0x0000-0xffff])
[    0.378955] pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc0fffffff] (bus address [0xe0000000-0xefffffff])
[    0.389349] pci_bus 0000:00: root bus resource [bus 00-01]
[    0.394820] pci_bus 0000:00: busn_res: [bus 00-01] end is updated to ff
[    0.401490] pci 0000:00:00.0: [1957:0848] type 01 class 0x060400
[    0.407476] pci 0000:00:00.0: reg 0x10: [mem 0xff000000-0xffffffff]
[    0.413822] pci 0000:00:00.0: supports D1 D2
[    0.418017] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.424782] fsl-pci ffe240000.pcie: Removing from iommu group 14
[    0.430753] pci 0000:00:00.0: Adding to iommu group 17
[    0.438037] pci 0000:01:00.0: [168c:0046] type 00 class 0x028000
[    0.444001] pci 0000:01:00.0: reg 0x10: [mem 0xc00000000-0xc001fffff 64bit]
[    0.451096] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.457248] pci 0000:01:00.0: Adding to iommu group 17
[    0.464211] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.469376] pci 0000:00:00.0:   bridge window [mem 0xc00000000-0xc001fffff]
[    0.476366] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.482974] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.489710] fsl-pci ffe250000.pcie: PCI host bridge to bus 0001:00
[    0.495825] pci_bus 0001:00: root bus resource [io  0x8000080000021000-0x8000080000030fff] (bus address [0x0000-0xffff])
[    0.506732] pci_bus 0001:00: root bus resource [mem 0xc10000000-0xc1fffffff] (bus address [0xe0000000-0xefffffff])
[    0.517106] pci_bus 0001:00: root bus resource [bus 00-01]
[    0.522594] pci_bus 0001:00: busn_res: [bus 00-01] end is updated to ff
[    0.529254] pci 0001:00:00.0: [1957:0848] type 01 class 0x060400
[    0.535248] pci 0001:00:00.0: reg 0x10: [mem 0xff000000-0xffffffff]
[    0.541597] pci 0001:00:00.0: supports D1 D2
[    0.545793] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.552546] fsl-pci ffe250000.pcie: Removing from iommu group 15
[    0.558513] pci 0001:00:00.0: Adding to iommu group 14
[    0.565709] pci 0001:01:00.0: [168c:0046] type 00 class 0x028000
[    0.571672] pci 0001:01:00.0: reg 0x10: [mem 0xc10000000-0xc101fffff 64bit]
[    0.578762] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[    0.584908] pci 0001:01:00.0: Adding to iommu group 14
[    0.591850] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.597015] pci 0001:00:00.0:   bridge window [mem 0xc10000000-0xc101fffff]
[    0.604005] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    0.610614] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 01
[    0.617358] fsl-pci ffe260000.pcie: PCI host bridge to bus 0002:00
[    0.623474] pci_bus 0002:00: root bus resource [io  0x8000080000032000-0x8000080000041fff] (bus address [0x0000-0xffff])
[    0.634381] pci_bus 0002:00: root bus resource [mem 0xc20000000-0xc2fffffff] (bus address [0xe0000000-0xefffffff])
[    0.644755] pci_bus 0002:00: root bus resource [bus 00-01]
[    0.650243] pci_bus 0002:00: busn_res: [bus 00-01] end is updated to ff
[    0.656903] pci 0002:00:00.0: [1957:0848] type 01 class 0x060400
[    0.662897] pci 0002:00:00.0: reg 0x10: [mem 0xff000000-0xffffffff]
[    0.669235] pci 0002:00:00.0: supports D1 D2
[    0.673438] pci 0002:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.680183] fsl-pci ffe260000.pcie: Removing from iommu group 16
[    0.686149] pci 0002:00:00.0: Adding to iommu group 15
[    0.693355] pci 0002:01:00.0: [168c:0050] type 00 class 0x028000
[    0.699322] pci 0002:01:00.0: reg 0x10: [mem 0xc20000000-0xc201fffff 64bit]
[    0.706329] pci 0002:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.713089] pci 0002:01:00.0: supports D1
[    0.717028] pci 0002:01:00.0: PME# supported from D0 D1 D3hot
[    0.722903] pci 0002:01:00.0: Adding to iommu group 15
[    0.729841] pci 0002:00:00.0: PCI bridge to [bus 01-ff]
[    0.735006] pci 0002:00:00.0:   bridge window [mem 0xc20000000-0xc201fffff]
[    0.741995] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01
[    0.748604] pci_bus 0002:00: busn_res: [bus 00-ff] end is updated to 01
[    0.755245] PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
[    0.763082] PCI: Cannot allocate resource region 0 of device 0001:00:00.0, will remap
[    0.770944] PCI: Cannot allocate resource region 0 of device 0002:00:00.0, will remap
[    0.778822] pci 0000:00:00.0: BAR 0: no space for [mem size 0x01000000]
[    0.785406] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
[    0.792379] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.797352] pci 0000:00:00.0:   bridge window [io  0x8000080000010000-0x800008000001ffff]
[    0.805545] pci 0000:00:00.0:   bridge window [mem 0xc00000000-0xc0fffffff]
[    0.812527] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    0.821589] pci_bus 0000:00: resource 4 [io  0x8000080000010000-0x800008000001ffff]
[    0.829266] pci_bus 0000:00: resource 5 [mem 0xc00000000-0xc0fffffff]
[    0.835715] pci_bus 0000:01: resource 0 [io  0x8000080000010000-0x800008000001ffff]
[    0.843392] pci_bus 0000:01: resource 1 [mem 0xc00000000-0xc0fffffff]
[    0.849845] pci 0001:00:00.0: BAR 0: no space for [mem size 0x01000000]
[    0.856477] pci 0001:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
[    0.863445] pci 0001:00:00.0: PCI bridge to [bus 01]
[    0.868421] pci 0001:00:00.0:   bridge window [io  0x8000080000021000-0x8000080000030fff]
[    0.876612] pci 0001:00:00.0:   bridge window [mem 0xc10000000-0xc1fffffff]
[    0.883594] pci_bus 0001:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    0.892657] pci_bus 0001:00: resource 4 [io  0x8000080000021000-0x8000080000030fff]
[    0.900334] pci_bus 0001:00: resource 5 [mem 0xc10000000-0xc1fffffff]
[    0.906783] pci_bus 0001:01: resource 0 [io  0x8000080000021000-0x8000080000030fff]
[    0.914460] pci_bus 0001:01: resource 1 [mem 0xc10000000-0xc1fffffff]
[    0.920912] pci 0002:00:00.0: BAR 0: no space for [mem size 0x01000000]
[    0.927541] pci 0002:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
[    0.934515] pci 0002:01:00.0: BAR 6: assigned [mem 0xc20200000-0xc2020ffff pref]
[    0.941934] pci 0002:00:00.0: PCI bridge to [bus 01]
[    0.946896] pci 0002:00:00.0:   bridge window [io  0x8000080000032000-0x8000080000041fff]
[    0.955097] pci 0002:00:00.0:   bridge window [mem 0xc20000000-0xc2fffffff]
[    0.962069] pci_bus 0002:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    0.971141] pci_bus 0002:00: resource 4 [io  0x8000080000032000-0x8000080000041fff]
[    0.978809] pci_bus 0002:00: resource 5 [mem 0xc20000000-0xc2fffffff]
[    0.985267] pci_bus 0002:01: resource 0 [io  0x8000080000032000-0x8000080000041fff]
[    0.992936] pci_bus 0002:01: resource 1 [mem 0xc20000000-0xc2fffffff]
[    1.006382] Freescale Elo series DMA driver
[    1.010832] fsl-elo-dma ffe100300.dma: #0 (fsl,eloplus-dma-channel), irq 28
[    1.017788] fsl-elo-dma ffe100300.dma: #1 (fsl,eloplus-dma-channel), irq 29
[    1.024814] fsl-elo-dma ffe100300.dma: #2 (fsl,eloplus-dma-channel), irq 30
[    1.031765] fsl-elo-dma ffe100300.dma: #3 (fsl,eloplus-dma-channel), irq 31
[    1.038750] fsl-elo-dma ffe100300.dma: #4 (fsl,eloplus-dma-channel), irq 76
[    1.045716] fsl-elo-dma ffe100300.dma: #5 (fsl,eloplus-dma-channel), irq 77
[    1.052711] fsl-elo-dma ffe100300.dma: #6 (fsl,eloplus-dma-channel), irq 78
[    1.059668] fsl-elo-dma ffe100300.dma: #7 (fsl,eloplus-dma-channel), irq 79
[    1.067201] fsl-elo-dma ffe101300.dma: #0 (fsl,eloplus-dma-channel), irq 32
[    1.074158] fsl-elo-dma ffe101300.dma: #1 (fsl,eloplus-dma-channel), irq 33
[    1.081150] fsl-elo-dma ffe101300.dma: #2 (fsl,eloplus-dma-channel), irq 34
[    1.088108] fsl-elo-dma ffe101300.dma: #3 (fsl,eloplus-dma-channel), irq 35
[    1.095102] fsl-elo-dma ffe101300.dma: #4 (fsl,eloplus-dma-channel), irq 80
[    1.102060] fsl-elo-dma ffe101300.dma: #5 (fsl,eloplus-dma-channel), irq 81
[    1.109056] fsl-elo-dma ffe101300.dma: #6 (fsl,eloplus-dma-channel), irq 82
[    1.116033] fsl-elo-dma ffe101300.dma: #7 (fsl,eloplus-dma-channel), irq 83
[    1.123561] iommu: Default domain type: Translated
[    1.128371] iommu: DMA domain TLB invalidation policy: strict mode
[    1.134820] SCSI subsystem initialized
[    1.138641] usbcore: registered new interface driver usbfs
[    1.144079] usbcore: registered new interface driver hub
[    1.149424] usbcore: registered new device driver usb
[    1.154468] pps_core: LinuxPPS API ver. 1 registered
[    1.159410] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.168570] PTP clock support registered
[    1.172526] EDAC MC: Ver: 3.0.0
[    1.175977] fsl-ifc ffe124000.localbus: Freescale Integrated Flash Controller
[    1.183110] fsl-ifc ffe124000.localbus: IFC version 1.5, 8 banks
[    1.190256] clocksource: Switched to clocksource timebase
[    1.198741] NET: Registered PF_INET protocol family
[    1.203747] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.211878] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.220200] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.227969] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.235765] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.243051] TCP: Hash tables configured (established 8192 bind 8192)
[    1.249473] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.256077] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.263310] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.268976] PCI: CLS 32 bytes, default 64
[    1.273916] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    1.285917] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.291740] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.367504] bman_portal ff4000000.bman-portal: Portal initialised, cpu 0
[    1.374355] bman_portal ff4004000.bman-portal: Portal initialised, cpu 1
[    1.381574] qman_portal ff6000000.qman-portal: Portal initialised, cpu 0
[    1.388445] qman_portal ff6004000.qman-portal: Portal initialised, cpu 1
[    1.395654] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.402692] printk: console [ttyS0] disabled
[    1.406928] serial8250.0: ttyS0 at MMIO 0xffe11c500 (irq = 36, base_baud = 12500000) is a 16550A_FSL64
[    1.416291] printk: console [ttyS0] enabled
[    1.416291] printk: console [ttyS0] enabled
[    1.424608] printk: bootconsole [udbg0] disabled
[    1.424608] printk: bootconsole [udbg0] disabled
[    1.434117] serial8250.0: ttyS1 at MMIO 0xffe11c600 (irq = 36, base_baud = 12500000) is a 16550A_FSL64
[    1.443702] serial8250.0: ttyS2 at MMIO 0xffe11d500 (irq = 37, base_baud = 12500000) is a 16550A_FSL64
[    1.453327] serial8250.0: ttyS3 at MMIO 0xffe11d600 (irq = 37, base_baud = 12500000) is a 16550A_FSL64
[    1.466466] loop: module loaded
[    1.470546] nand: No NAND device found
[    1.474757] fsl_espi ffe110000.spi: cs=0, init_csmode=0x100008
[    1.481134] fsl_espi ffe110000.spi: irq = 53
[    1.657057] fsl_dpaa_mac ffe4e0000.ethernet: FMan MEMAC
[    1.662371] fsl_dpaa_mac ffe4e0000.ethernet: FMan MAC address: 00:19:92:xxxxxx
[    1.670068] fsl_dpaa_mac ffe4e6000.ethernet: FMan MEMAC
[    1.675335] fsl_dpaa_mac ffe4e6000.ethernet: FMan MAC address: 00:19:92:xxxxxx
[    1.688475] fsl_dpaa_mac ffe4e0000.ethernet eth0: Probed interface eth0
[    1.700823] fsl_dpaa_mac ffe4e6000.ethernet eth1: Probed interface eth1
[    1.707546] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.714336] /soc@ffe000000/usb@210000: Invalid 'dr_mode' property, fallback to host mode
[    1.722859] fsl-ehci: Freescale EHCI Host controller driver
[    1.728595] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
[    1.735265] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
[    1.752592] fsl-ehci fsl-ehci.0: irq 44, io mem 0xffe210000
[    1.790255] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[    1.796276] hub 1-0:1.0: USB hub found
[    1.800065] hub 1-0:1.0: 1 port detected
[    1.804338] fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
[    1.811020] fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
[    1.818322] fsl-ehci fsl-ehci.1: USB PHY clock invalid
[    1.823487] fsl-ehci fsl-ehci.1: can't setup: -22
[    1.828210] fsl-ehci fsl-ehci.1: USB bus 2 deregistered
[    1.833471] fsl-ehci fsl-ehci.1: init fsl-ehci.1 fail, -22
[    1.838976] fsl-ehci: probe of fsl-ehci.1 failed with error -22
[    1.845674] usbcore: registered new interface driver uas
[    1.851098] usbcore: registered new interface driver usb-storage
[    1.857622] mpc-i2c ffe118000.i2c: timeout 1000000 us
[    1.863027] mpc-i2c ffe118100.i2c: timeout 1000000 us
[    1.868469] mpc-i2c ffe119000.i2c: timeout 1000000 us
[    1.873714] mpc-i2c ffe119100.i2c: timeout 1000000 us
[    1.879324] ptp_qoriq: device tree node missing required elements, try automatic configuration
[    1.888094] pps pps0: new PPS source ptp0
[    1.898254] booke_wdt: powerpc book-e watchdog driver loaded
[    1.904084] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
[    1.911416] fsl_mc_err_probe: No ECC DIMMs discovered
[    1.918040] EDAC PCI0: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV mpc85xx-pci-edac.0.auto (INTERRUPT)
[    1.929976] MPC85xx_edac acquired irq 20 for PCI Err
[    1.934962] MPC85xx_edac PCI err registered
[    1.939227] EDAC PCI1: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV mpc85xx-pci-edac.1.auto (INTERRUPT)
[    1.951129] MPC85xx_edac acquired irq 21 for PCI Err
[    1.956109] MPC85xx_edac PCI err registered
[    1.960396] EDAC PCI2: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV mpc85xx-pci-edac.2.auto (INTERRUPT)
[    1.972321] MPC85xx_edac acquired irq 22 for PCI Err
[    1.977302] MPC85xx_edac PCI err registered
[    1.982468] qoriq-cpufreq qoriq-cpufreq: Freescale QorIQ CPU frequency scaling driver
[    1.990862] sdhci: Secure Digital Host Controller Interface driver
[    1.997070] sdhci: Copyright(c) Pierre Ossman
[    2.001465] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.008478] caam ffe300000.crypto: Linux CAAM Queue I/F driver initialised
[    2.015417] caam ffe300000.crypto: Entropy delay = 3200
[    2.032776] mmc0: SDHCI controller on ffe114000.sdhc [ffe114000.sdhc] using ADMA 64-bit
[    2.040723] caam ffe300000.crypto: Instantiated RNG4 SH0
[    2.060775] caam ffe300000.crypto: Instantiated RNG4 SH1
[    2.066109] caam ffe300000.crypto: device ID = 0x0a12050000000000 (Era 8)
[    2.072927] caam ffe300000.crypto: job rings = 4, qi = 1
[    2.078422] platform ffe301000.jr: Adding to iommu group 16
[    2.084351] platform ffe302000.jr: Adding to iommu group 18
[    2.090210] platform ffe303000.jr: Adding to iommu group 19
[    2.096105] platform ffe304000.jr: Adding to iommu group 20
[    2.108412] caam algorithms registered in /proc/crypto
[    2.115025] caam ffe300000.crypto: caam pkc algorithms registered in /proc/crypto
[    2.121316] mmc0: new high speed MMC card at address 0001
[    2.122579] caam ffe300000.crypto: registering rng-caam
[    2.133764] mmcblk0: mmc0:0001 M62704 3.56 GiB
[    2.141395]  mmcblk0: p1 p2 p3 p4 < p5 p6 p7 p8 >
[    2.143711] caam ffe300000.crypto: algorithms registered in /proc/crypto
[    2.147623] mmcblk0boot0: mmc0:0001 M62704 2.00 MiB
[    2.154706] fsl_corenet_cf ffe018000.corenet-cf: errdet 0x80000001 cecar 0x02040000 cecar2 0x00000000
[    2.159093] mmcblk0boot1: mmc0:0001 M62704 2.00 MiB
[    2.167225] fsl_corenet_cf ffe018000.corenet-cf: Local Access Window Error
[    2.167230] fsl_corenet_cf ffe018000.corenet-cf: address 0x07e9d03f3, src id 0x81
[    2.168062] NET: Registered PF_INET6 protocol family
[    2.172576] mmcblk0rpmb: mmc0:0001 M62704 512 KiB, chardev (247:0)
[    2.180895] Segment Routing with IPv6
[    2.197990] random: crng init done
[    2.201666] In-situ OAM (IOAM) with IPv6
[    2.209060] NET: Registered PF_PACKET protocol family
[    2.214348] 8021q: 802.1Q VLAN Support v1.8
[    2.218630] drmem: No dynamic reconfiguration memory found
[    2.237006] Freeing unused kernel image (initmem) memory: 8088K
[    2.243006] This architecture does not have kernel memory protection.
[    2.249480] Run /init as init process
[    2.254555] init[1]: illegal instruction (4) at 3fff88d9d384 nip 3fff88d9d384 lr 10046864 code 1 in libc.so[3fff88d0e000+a0000]
[    2.266182] init[1]: code: daa300e8 dac300f0 dae300f8 db030100 db230108 db430110 db630118 db830120
[    2.275299] init[1]: code: dba30128 dbc30130 dbe30138 38630140 <7e8019ce> 38630010 7ea019ce 38630010
[    2.284616] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    2.292308] Rebooting in 1 seconds..

with https://git.openwrt.org/?p=openwrt/staging/stintel.git;a=commit;h=b286e8bd4092c14769e66cf17892e5e5e57f8ab5 patch in place.

here is u-boot environment

SPI boot...
Initializing....using SPD
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
Loading second stage boot loader .................................................................................................ddr self refresh double times(0xfe00_8114):0c300100ddr self refresh interval(0xfe00_8124):0c300100

U-Boot 2015.01.IAP8350.8351_v0.11_PVT_WithSN.MacTool_Trfc+SDKv1.9+geb3d4fc (Feb 07 2017 - 16:33:32)

CPU0:  T1023E, Version: 1.0, (0x85490010)
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: 4a800003 80000012 ec027000 21000000
       00000020: 00000000 00000000 00000000 0002c500
       00000030: 00000104 44020201 00000000 00000006
Board: BSAP3040/5, booting from SPI
SERDES Reference Clocks:
SD1_CLK1=156.25MHZ, SD1_CLK2=100.00MHZ
I2C:   ready
SPI:   ready
DRAM:  Detected UDIMM Fixed DDR on board
Not enough bank(chip-select) for CS0+CS1 on controller 0, interleaving disabled!
1 GiB (DDR3, 32-bit, CL=11, ECC off)
L2:    256 KiB enabled
Corenet Platform Cache: 256 KiB enabled
Using SERDES1 Protocol: 149 (0x95)
MMC:   FSL_SDHC: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
EEPROM: Invalid ID (ff ff ff ff)
PCIe1: Root Complex, x1 gen2, regs @ 0xfe240000
  01:00.0     - 168c:0046 - Network controller
PCIe1: Bus 00 - 01
PCIe2: Root Complex, x1 gen2, regs @ 0xfe250000
  03:00.0     - 168c:0046 - Network controller
PCIe2: Bus 02 - 03
PCIe3: Root Complex, x1 gen1, regs @ 0xfe260000
  05:00.0     - 168c:0050 - Network controller
PCIe3: Bus 04 - 05
In:    serial
Out:   serial
Err:   serial
Net:   SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
Fman1: Uploading microcode version 108.4.2
FM1@DTSEC4, FM1@TGEC1 [PRIME]
Adtran bootloader version 1.0.6
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
BlueKey  stop autoboot:
BSAP3040-> printenv
autostart=no
baudrate=115200
boot_bank=B
bootargs=root=/dev/mmcblk0p2 rootdelay=1 ro console=ttyS0,115200
bootcmd=setenv bootargs root=/dev/mmcblk0p2 rootdelay=1 ro console=ttyS0,115200 maxcpus=1;sf probe 0;sf read $bootfileaddr 0xD40000 0xc00000;sf read $fdtaddr 0x01950000 0x010000;bootm $bootfileaddr - $fdtaddr
bootcnt=0
bootdelay=10
bootfile=uImage-t1023wlan.bin
bootfile1=boot/uImage.bin
bootfileaddr=0x1000000
consoledev=ttyS0
eth1addr=00:19:92:xxxxxx
eth2addr=00:19:92:xxxxxx
eth3addr=00:19:92:xxxxxx
ethact=FM1@TGEC1
ethaddr=00:19:92:xxxxxx
ethprime=FM1@TGEC1
fdtaddr=0xc00000
fdtfile=t1023wlan.dtb
fdtfile1=boot/uImage.dtb
fileaddr=c00000
filesize=74e9
fman_ucode=3f4e0928
fwversion_a=2.3-3040-1023.1-4.2.0-676381
fwversion_b=2.3-3040-1023.1-4.2.1-678053
hwconfig=fsl_ddr:ctlr_intlv=cacheline,bank_intlv=cs0_cs1
ipaddr=192.168.1.1
loadaddr=1000000
mac_addr=00:19:92:xxxxxx
mac_addr1=00:19:92:xxxxxx
mfg_state=132
netdev=eth0
netretry=no
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
ramdiskfile=fsl-image-core-t1023wlan.ext2.gz.u-boot
rootpath=/opt/nfsroot
serial_num=3040xxxxxxxxxx
serverip=192.168.1.10
ver_num=1.0.6

Environment size: 1424/65532 bytes
BSAP3040->

make distclean solved the issue.

But eth0 is a Aquantia ARQ105 10/100/1000/2.5G nic and I can't get it to pass traffic.

https://dpaste.org/aAgYM

Can arrange donation to devs that are willing to help.

root@bsap3040:/etc# cat /proc/cmdline
root=/dev/mmcblk0p2 rootdelay=1 ro console=ttyS0,115200 maxcpus=1
root@bsap3040:/etc# fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 3825 MB, 3825205248 bytes
4 heads, 16 sectors/track, 116736 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1               1        7814      250040  83 Linux
/dev/mmcblk0p2            7815       15628      250048  83 Linux
/dev/mmcblk0p3           15629       17460       58624  83 Linux
/dev/mmcblk0p4           17461      115712     3144064   5 Extended
/dev/mmcblk0p5           17461       49591     1028184  83 Linux
/dev/mmcblk0p6           49592       81722     1028184  83 Linux
/dev/mmcblk0p7           81723      113853     1028184  83 Linux
/dev/mmcblk0p8          113854      115712       59480  83 Linux
root@bsap3040:/etc# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00030000 00010000 "frame-mgr"
mtd3: 00c00000 00010000 "Kernel A"
mtd4: 00c00000 00010000 "Kernel B"
mtd5: 00010000 00010000 "DTB A"
mtd6: 00010000 00010000 "DTB B"
mtd7: 005a0000 00010000 "Kdump"
mtd8: 00080000 00010000 "Cert"
mtd9: 00040000 00010000 "SENAO"
mtd10: 00040000 00010000 "ART"
mtd11: 02000000 00010000 "spiNOR"
root@bsap3040:/etc# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               236.5M     78.0M    146.3M  35% /
devtmpfs                444.1M      8.0K    444.1M   0% /dev
/dev/mmcblk0p6          988.3M     88.0K    938.0M   0% /home
/dev/mmcblk0p5          988.3M     20.0K    938.0M   0% /log
/dev/mmcblk0p7          988.3M     80.0K    938.0M   0% /var
tmpfs                   476.4M    184.0K    476.2M   0% /run
tmpfs                   476.4M     38.7M    437.7M   8% /var/volatile
root@bsap3040:/etc# cat /proc/meminfo
MemTotal:         975696 kB
MemFree:          791132 kB
Buffers:           20940 kB
Cached:            69308 kB
SwapCached:            0 kB
Active:            64348 kB
Inactive:          37540 kB
Active(anon):      52048 kB
Inactive(anon):      632 kB
Active(file):      12300 kB
Inactive(file):    36908 kB
Unevictable:        2036 kB
Mlocked:            2036 kB
HighTotal:        262136 kB
HighFree:         236216 kB
LowTotal:         713560 kB
LowFree:          554916 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         13744 kB
Mapped:             9068 kB
Shmem:             39324 kB
Slab:              26036 kB
SReclaimable:      12256 kB
SUnreclaim:        13780 kB
KernelStack:         680 kB
PageTables:          924 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      487848 kB
Committed_AS:      97348 kB
VmallocTotal:     241640 kB
VmallocUsed:       14044 kB
VmallocChunk:     190372 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
root@bsap3040:/etc# cat /proc/cpuinfo
processor       : 0
cpu             : e5500
clock           : 1200.000000MHz
revision        : 2.1 (pvr 8024 1021)
bogomips        : 50.00

processor       : 1
cpu             : e5500
clock           : 1200.000000MHz
revision        : 2.1 (pvr 8024 1021)
bogomips        : 50.00

total bogomips  : 100.00
timebase        : 25000000
platform        : CoreNet Generic
model           : fsl,BSAP3040
Memory          : 1024 MB

Forgive me for asking an incredibly silly question, but: what key command/combo are you using to stop the adtran bootloader? I've searched across every scrap of the public internet I can and this page is the only page I've come across that has the text "BlueKey stop autoboot:".

The pages for the BSAP-2030 don't have any information on how to get uboot/adtran bootloader to stop either. I'm reaching out after attempting various key combos across the span of 2 days; while it may be obvious once I'm told, this inability to figure out what should be an easy step is incredibly frustrating to me.

Thanks in advance for the help, and I appreciate all you do.

Hi there =)

It is b100: was able to find it in the source dump provided to me from Adtran. It covers models from bsap-192x to 304x.

Enter it as soon as you see Adtran bootloader version... also to be able to tftp boot images set mfg_state to a blank value, but remember what it was before hand just in case.

fyi im on irc at oftc in the openwrt channels

To clarify, do you mean you type b100 to stop the bootup sequence, or you press the letter b 100 times? Unfortunately neither of those has worked.

And I know I could've asked on IRC, but then anyone else with the same issue wouldn't be able to find this post :slight_smile:

from discussion on the IRC - the magic key combo INCLUDES the colon at the end.
"b100:", not just "b100"

Good luck any future forum visitors!