Support for D-Link COVR-P2500


#1

Hello,
does anyone work on, or succeded, getting a native OpenWRT run on the COVR-P2500 devices?
Best regards,
Michael


#2

Specs: https://wikidevi.com/wiki/D-Link_COVR-P2500_rev_A1


#3

D-Link provide two separate firmware images for this device, depending on whether the currently installed version is 1.00 or later. The "Middle Firmware" for devices still running 1.0 looks quite promising:

Target File:   /home/xubuntu/01_COVRP2500_RevA_MiddleFirmware101b08.bin
MD5 Checksum:  80498b3c7615863dd6793801c1da8729
Signatures:    344

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             Squashfs filesystem, little endian, version 4.0, compression:xz, size: 13897886 bytes, 2405 inodes, blocksize: 262144 bytes, created: 2018-07-09 02:56:43
14876672      0xE30000        uImage header, header size: 64 bytes, header CRC: 0xC78F4E90, created: 2018-07-09 02:56:45, image size: 1113669 bytes, Data Address: 0x80060000, Entry Point: 0x80060000, data CRC: 0xC1723198, OS: Linux, CPU: MIPS, image type: Multi-File Image, compression type: lzma, image name: "MIPS OpenWrt Linux-3.3.8"
14876744      0xE30048        LZMA compressed data, properties: 0x6D, dictionary size: 8388608 bytes, uncompressed size: 3291368 bytes

They usually have standard uboot compatible images with some static signature at the end (at least for version 1.0 of this device, but it can probably be downgraded using recovery).

I don't currently own this device, do you have a bootlog to figure out mtd partitions?


#4

boot loader log:


U-Boot 1.1.4 (Sep 28 2017 - 15:03:00)

ap152 - Dragonfly 1.0DRAM:
sri
ath_ddr_initial_config(278): (ddr2 init)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Tap values = (0xe, 0xe, 0xe, 0xe)
--lhq-- Disable JTAG.
--lhq-- Turn on the orange power led.
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 215k for U-Boot at: 87fc8000
Reserving 192k for malloc() at: 87f98000
Reserving 44 Bytes for Board Info at: 87f97fd4
Reserving 36 Bytes for Global Data at: 87f97fb0
Reserving 128k for boot params() at: 87f77fb0
Stack Pointer at: 87f77f98
Now running in RAM - U-Boot at: 87fc8000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
*** Warning - bad CRC, using default environment

Power up PLL with outdiv = 0 then switch to 3
In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly  ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x48902100
Hit any key to stop autoboot:  0
continue
## Booting image at 9fe80000 ...
continue
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2017-09-28   8:34:57 UTC
   Image Type:   MIPS Linux Multi-File Image (lzma compressed)
   Data Size:    1115776 Bytes =  1.1 MB
   Load Address: 80060000
   Entry Point:  80060000
   Contents:
   Image 0:  1115768 Bytes =  1.1 MB
   Verifying Checksum at 0x9fe80040 ...OK
   Uncompressing Multi-File Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728

Starting kernel ...


#5

Kernel boot log up to ath driver

[    0.000000] Linux version 3.3.8 (linhongqing@wumingxing) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu Sep 28 16:34:10 CST 2017
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X rev 0
[    0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00008000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=AP152 console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),14528k(rootfs),1472k(kernel),64k(art),16000k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd crashkernel=10M@20M oops=panic
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 126084k/131072k available (2355k kernel code, 4988k reserved, 643k data, 224k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:83
[    0.000000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 512
[    0.060000] Performance counters: mips/74K PMU enabled, 4 32-bit counters available to each CPU, irq 13
[    0.070000] NET: Registered protocol family 16
[    0.080000] gpiochip_add: registered GPIOs 0 to 22 on device: ath79
[    0.080000] MIPS: machine is Qualcomm Atheros AP152 reference board
[    0.090000]
[    0.090000] WLAN firmware dump buffer allocation of 2097152 bytes @ address 0x87a00000- SUCCESS !!!
[    0.100000] registering PCI controller with io_map_base unset
[    0.310000] bio: create slab <bio-0> at 0
[    0.310000] PCI host bridge to bus 0000:00
[    0.320000] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0001]
[    0.330000] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.330000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.340000] Switching to clocksource MIPS
[    0.340000] NET: Registered protocol family 2
[    0.350000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.350000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.360000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.360000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.370000] TCP reno registered
[    0.370000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.380000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.380000] NET: Registered protocol family 1
[    0.400000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.400000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.410000] msgmni has been set to 246
[    0.420000] io scheduler noop registered
[    0.420000] io scheduler deadline registered (default)
[    0.430000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.450000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.460000] console [ttyS0] enabled, bootconsole disabled
[    0.460000] console [ttyS0] enabled, bootconsole disabled
[    0.470000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.480000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.480000] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.490000] Creating 6 MTD partitions on "spi0.0":
[    0.500000] 0x000000000000-0x000000040000 : "u-boot"
[    0.500000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.510000] 0x000000050000-0x000000e80000 : "rootfs"
[    0.510000] mtd: partition "rootfs" set to be root filesystem
[    0.520000] mtd: partition "rootfs_data" created automatically, ofs=D80000, len=100000
[    0.530000] 0x000000d80000-0x000000e80000 : "rootfs_data"
[    0.540000] 0x000000e80000-0x000000ff0000 : "kernel"
[    0.540000] 0x000000ff0000-0x000001000000 : "art"
[    0.550000] 0x000000050000-0x000000ff0000 : "firmware"
[    0.690000] ag71xx_mdio: probed
[    0.700000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.280000] eth0: Atheros AR8327 switch driver attached.
[    4.210000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    4.220000] TCP cubic registered
[    4.220000] NET: Registered protocol family 17
[    4.230000] Bridge firewalling registered
[    4.230000] 8021q: 802.1Q VLAN Support v1.8
[    4.240000] ### of_selftest(): No testcase data in device tree; not running tests
[    4.250000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    4.260000] Freeing unused kernel memory: 224k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
[    7.250000] --lhq-- switch reset
[    7.250000] eth0: link up (1000Mbps/Full duplex)
[    8.280000] --lhq-- switch reset
[    8.290000] eth0: link up (1000Mbps/Full duplex)
- regular preinit -
[    9.340000] JFFS2 notice: (473) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 14 of xref (0 dead, 0 orphan) found.
switching to jffs2
- init -

Please press Enter to activate this console. [   19.790000] ssdk_plat_init start
[   19.800000] Register QCA PHY driver
[   19.800000] PHY ID is 0x4dd036
[   19.900000] qca probe f1 phy driver succeeded!
[   19.910000] qca-ssdk module init succeeded!
[   20.070000] NET: Registered protocol family 10
[   20.440000] SCSI subsystem initialized
[   20.570000] usbcore: registered new interface driver usbfs
[   20.580000] usbcore: registered new interface driver hub
[   20.590000] usbcore: registered new device driver usb
[   20.670000] Button Hotplug driver version 0.4.1
[   20.990000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   21.170000] PPP generic driver version 2.4.2
[   21.230000] NET: Registered protocol family 24
[   21.250000] IPv6 over IPv4 tunneling driver
[   21.330000] bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[   21.540000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   21.770000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   21.770000] ehci-platform ehci-platform.0: Generic Platform EHCI Controller
[   21.780000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[   21.820000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[   21.840000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[   21.840000] hub 1-0:1.0: USB hub found
[   21.850000] hub 1-0:1.0: 1 port detected
[   21.850000] ehci-platform ehci-platform.1: Generic Platform EHCI Controller
[   21.860000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[   21.900000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[   21.920000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[   21.920000] hub 2-0:1.0: USB hub found
[   21.930000] hub 2-0:1.0: 1 port detected
[   21.990000] nf_conntrack version 0.5.0 (1973 buckets, 7892 max)
[   22.540000] nf_conntrack_rtsp v0.6.21 loading
[   22.560000] nf_nat_rtsp v0.6.21 loading
[   22.640000] AR71XX_RESET_REG_WDOG_CTRL: 0x0
[   22.640000]  QCA Hy-Fi multicast installation successfully
[   22.770000] Initializing USB Mass Storage driver...
[   22.780000] usbcore: registered new interface driver usb-storage
[   22.780000] USB Mass Storage support registered.
[   22.800000] fuse init (API version 7.18)
[   27.150000] mem_manager: module license 'unspecified' taints kernel.
[   27.150000] Disabling lock debugging due to kernel taint


#6

Kernel boot log continued to login prompt
(shortened a bit for repeating messages re DFS etc)

[   27.390000] ath_dfs: Version 2.0.0
[   27.390000] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
[   27.410000] ath_spectral: Version 2.0.0
[   27.410000] Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved
[   28.580000] ath_hal: 0.9.17.1 (AR5416, AR9380, REGOPS_FUNC, PRIVATE_DIAG, WRITE_EEPROM, 11D)
[   28.600000] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
[   28.680000] ath_tx99: Version 2.0
[   28.680000] Copyright (c) 2010 Atheros Communications, Inc, All Rights Reserved
[   28.870000] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
[   29.010000] __ath_attach: Set global_scn[0]
[   29.010000] *** All the minfree values should be <= ATH_TXBUF-32, otherwise default value will be used instead ***
[   29.020000] ACBKMinfree = 48
[   29.020000] ACBEMinfree = 32
[   29.030000] ACVIMinfree = 16
[   29.030000] ACVOMinfree = 0
[   29.030000] CABMinfree = 48
[   29.040000] UAPSDMinfree = 0
[   29.040000] ATH_TXBUF=2700
[   29.050000] Enterprise mode: 0x03bda000
[   29.050000] Restoring Cal data from FS
[   29.060000] qdf_fs_read[59], Open File /tmp/wifi0.caldata SUCCESS!!file system magic:16914836super blocksize:4096inode 186file size:12064qdf_fs_read[79]: caldata data size mismatch, fsize=12064, cal_size=1088
[   29.080000] ART Version : -48.0.0
[   29.080000] SW Image Version : -48.0.0.0.0
[   29.090000] Board Revision :
[   29.090000] ar9300_attach: nf_2_nom -110 nf_2_max -60 nf_2_min -125
[   29.100000] SPECTRAL : get_capability not registered
[   29.100000] HAL_CAP_PHYDIAG : Capable
[   29.110000] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237)
[   29.110000] SPECTRAL : get_capability not registered
[   29.120000] HAL_CAP_RADAR   : Capable
[   29.120000] SPECTRAL : Need to fix the capablity check for SPECTRAL
[   29.120000]  (spectral_attach : 242)
[   29.130000] SPECTRAL : get_capability not registered
[   29.140000] HAL_CAP_SPECTRAL_SCAN : Capable
[   29.140000] SPECTRAL : get_tsf64 not registered
[   29.150000] spectral_init_netlink 78 NULL SKB
[   29.150000] SPECTRAL : No ADVANCED SPECTRAL SUPPORT
[   29.160000] SPECTRAL :----- module attached
[   29.160000] Green-AP : Green-AP : Attached
[   29.160000]
[   29.170000] ath_get_caps[6165] rx chainmask mismatch actual 3 sc_chainmak 0
[   29.180000] ath_get_caps[6140] tx chainmask mismatch actual 3 sc_chainmak 0
[   29.190000] band steering initialized for direct attach hardware
[   29.200000] ieee80211_bsteering_attach: Band steering initialized
[   29.210000] acfg_attach: 2961: Netlink socket created:86358a00
[   29.210000] ath_attach_dfs[12590] dfsdomain 1
[   29.220000] dfs_attach: event log enabled by default
[   29.230000] SPECTRAL : module already attached
[   29.240000] ath_attach: Set global_ic[1]..gloabl_ic ptr:86342820
[   29.240000] osif_wrap_attach:443 osif wrap attached
[   29.250000] osif_wrap_devt_init:404 osif wrap dev table init done
[   29.250000]  Wrap Attached: Wrap_com =86358400 ic->ic_wrap_com=86358400 &wrap_com->wc_devt=86358400
[   29.270000] ath_tx_paprd_init sc 86100000 PAPRD Enabled
[   29.280000] wifi0: Atheros 956X: mem_start: =0xb8100000, mem_end: =0xb8120000, irq=47
[   29.290000] ath_da_pci:  (Atheros/multi-bss)
[   29.800000] ath_ol_pci:  (Atheros/multi-bss)
[   29.810000] hif_pci_enable_bus: con_mode = 0x0, device_id = 0x56
[   29.810000] ath_ol_pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[   29.820000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   29.830000] hif_pci_enable_bus: hif_enable_pci done *********** QCA9888 *************hif_pci_enable_bus: hif_type = 0xe, target_type = 0xchif_pci_enable_bus: hif_pci_probe_tgt_wakeup donehif_target_sync: Loop checking FW signalhif_target_sync: Got FW signal, retries = 0hif_config_ce: ce_init donehif_config_ce: X, ret = 0hif_set_hia: Ehif_set_hia_extnd: E
[   29.870000] chip_id 0xc chip_revision 0x0
[   29.870000]
[   29.870000]  CLOCK PLL skipped
[   29.880000] hif_set_hia_extnd: setting the target pll frac ffffffff intval ffffffff
[   29.890000] hif_set_hia_extnd: no frac provided, skipping pre-configuring PLL
[   29.900000] hif_pci_bus_configure: hif_set_hia donehif_configure_irq: Ehif_pci_configure_legacy_irq: Ehif_pci_configure_legacy_irq: X, ret = 0hif_enable: X OKhif_napi_create: NAPI structures initializedhif_napi_create: NAPI id 6 created for pipe 5qca_napi_create: napi instance 32 created on pipe 4
[   29.920000] hif_napi_event: received evnt: CONF cmd; v = 1 (state=0x1)hif_napi_event: setting configuration to ON
[   29.930000] __ol_ath_attach() Allocated scn 85f00380
[   29.940000] __ol_ath_attach: dev name wifi1
[   29.940000] ol_ath_attach interface_id 1
[   29.950000] ol_target_init() BMI inited.
[   29.950000] ol_target_init() BMI Get Target Info.
[   29.960000] Chip id: 0xc, chip version: 0x1000000
[   29.960000]
[   29.960000]  CE WAR Disabled
[   29.970000] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
[   29.970000] ol_target_init() configure Target .
[   29.980000]
[   29.980000]  Target Version is 1000000
[   29.990000]
[   29.990000]  Flash Download Address  c0000
[   29.990000] ol_transfer_bin_file: flash data file defined
[   30.000000] ol_transfer_bin_file[3756] Get Caldata for wifi1.
[   30.000000] qdf_fs_read[59], Open File /tmp/wifi1.caldata SUCCESS!!file system magic:16914836super blocksize:4096inode 187file size:12064qc98xx_verify_checksum: flash checksum passed: 0x338d
[   30.020000] ol_transfer_bin_file 3817: Download Flash data len 12064
[   30.030000] Board extended Data download address: 0x0
[   30.060000]
[   30.060000]  Board data initialized
[   30.060000] ol_ath_download_firmware: Download OTP, flash download ADDRESS 0xc0000
[   30.070000]
[   30.070000]  Selecting  OTP binary for CHIP Version 0
[   30.150000] ol_transfer_bin_file 3637: downloading file 0, Download data len 9080
[   30.190000]
[   30.190000]  First OTP send param 8000
[   30.440000] ol_ath_download_firmware :First OTP download and Execute is good address:0x4800 return param 4660
[   30.450000] ol_ath_download_firmware:##Board Id 18 , CHIP Id 0
[   30.460000] ol_ath_download_firmware: BOARDDATA DOWNLOAD TO address 0xc0000
[   30.470000]
[   30.470000]  wifi1: Selecting board data file name boardData_2_0_QCA9888_5G_Y9582.bin
[   30.470000] ol_transfer_bin_file: Board Data File download to address=0xc0000 file name=QCA9888/hw.2/boardData_2_0_QCA9888_5G_Y9582.bin
[   30.500000] ol_transfer_bin_file 3637: downloading file 3, Download data len 12064
[   30.510000] Board extended Data download address: 0x0
[   30.540000] ol_ath_download_firmware: Using 0x1234 for the remainder of init
[   30.540000]
[   30.540000]  Selecting  OTP binary for CHIP Version 0
[   30.560000] ol_transfer_bin_file 3637: downloading file 0, Download data len 9080
[   30.600000]
[   30.600000]  [Flash] : Ignore Module param
[   30.610000]
[   30.610000]  Second otp download Param 10000
[   30.870000] ol_ath_download_firmware : Second OTP download and Execute is good, param=0x0
[   30.880000]
[   30.880000]  Mission mode: Firmware CHIP Version 0
[   31.040000] ol_swap_seg_alloc: Successfully allocated memory for SWAP size=262144
[   31.070000] ol_swap_wlan_memory_expansion: length:239071 size_left:239091 dma_size_left:262144 fw_temp:c0b7f004 fw_entry_size:239095
[   31.080000] ol_swap_wlan_memory_expansion: dma_virt_addr :a5ec0000 fw_temp: c0b7f008 length: 239071
[   31.090000] Swap: bytes_left to copy: fw:16; dma_page:23073
[   31.100000] ol_swap_wlan_memory_expansion: length:0 size_left:12 dma_size_left:23073 fw_temp:c0bb95eb fw_entry_size:239095
[   31.110000] Swap: wrong length read:0
[   31.110000] ol_swap_wlan_memory_expansion: Swap total_bytes copied: 239071 Target address 41a928
[   31.120000] scn=85f00380  target_write_addr=41a928 seg_info=85f9e810
[   31.130000] ol_transfer_swap_struct:Code swap structure successfully downloaded for bin type =2
[   31.140000] bin_filename=QCA9888/hw.2/athwlan.bin swap_filename=/lib/firmware/QCA9888/hw.2/athwlan.codeswap.bin
[   31.150000] ol_transfer_bin_file: Downloading firmware file: QCA9888/hw.2/athwlan.bin
[   31.540000] ol_transfer_bin_file 3637: downloading file 1, Download data len 377964
[   33.000000] ol_target_init() Download FW done.
[   33.000000] ol_ath_attach() WMI attached. wmi_handle 86b2a000
[   33.010000] wmi_unified_register_event_handler: Event id 62 is unavailable
[   33.020000] +htc_create ..  HIF :85c64000-htc_create: (0x873ee000)
[   33.020000] htc_wmi_init() HT Create . 873ee000
[   33.030000] htc_wmi_init 7516 host_enable 0 nss_nwifi_offload 0
[   33.030000] ol_ath_set_default_tgt_config : AC Minfree buffer allocation through module param (umac.ko)
[   33.040000]  OL_ACBKMinfree : 0
[   33.050000]  OL_ACBEMinfree : 0
[   33.050000]  OL_ACVIMinfree : 0
[   33.050000]  OL_ACVOMinfree : 0
[   33.060000] hif_enable_fastpath, Enabling fastpath mode
[   33.060000] +HWT
[   33.060000] hif_completion_thread_startup: pipe_num:0 pipe_info:0x85c6705chif_completion_thread_startup: pipe_num:3 pipe_info:0x85c6711chif_completion_thread_startup: pipe_num:4 pipe_info:0x85c6715c
[   33.080000] -HWT
[   33.090000] Startup Mode-0 set
[   33.090000]
[   33.090000] <=== cfg max peer id 1056 ====>
[   33.100000] htt_peer_map_timer_init Enter pdev 85128000 hrtimer 8512c960
[   33.110000]
[   33.110000]  htt_alloc_peer_map_mem : Alloc Success : host q vaddr 85f54000 paddr 5f54000
[   33.120000]
[   33.120000]  htt_alloc_peer_map_mem : Flush Interval Configured to 256 pkts
[   33.130000] ol_txrx_pdev_attach: 2500 tx desc's allocated ; range starts from 84dc0000
[   33.140000] Firmware_Build_Number:10
[   33.150000] FW wireless modes: 0x7f9001
[   33.150000] num_rf_chain:0x00000002  ht_cap_info:0x0000085b  vht_cap_info:0x339979fa  vht_supp_mcs:0x0000fffa
[   33.160000] wmi_service_coex_gpio 0, wmi_service_4_wire_coex_support 0, coex_version 0
[   33.170000]
[   33.170000] Sending Ext resource cfg: HOST PLATFORM as 1
[   33.170000] fw_feature_bitmap as 50 to TGT
[   33.180000] ol_ath_service_ready_event: tt_support: 1
[   33.190000] ol_ath_service_ready_event: periodic_chan_stats: 1
[   33.190000] ol_ath_service_ready_event: sw_cal_support_check_flag: 1
[   33.200000] Peer Caching Enabled ; num_peers = 530, num_active_peers = 52 num_tids = 104, num_vdevs = 17
[   33.210000] Airtime Fairness: num_peers=530 num_active_peer=52
[   33.210000] EXT NSS Supported
[   33.220000] idx 1 req 2  num_units 1 num_unit_info 12 unit size 256 actual units 53
[   33.230000] ol_ath_alloc_host_mem_chunk req_id 2 idx 0 num_units 53 unit_len 256,
[   33.230000] idx 2 req 3  num_units 1 num_unit_info 12 unit size 1024 actual units 53
[   33.240000] ol_ath_alloc_host_mem_chunk req_id 3 idx 1 num_units 53 unit_len 1024,
[   33.250000] idx 3 req 4  num_units 1 num_unit_info 12 unit size 4096 actual units 53
[   33.260000] ol_ath_alloc_host_mem_chunk req_id 4 idx 2 num_units 53 unit_len 4096,
[   33.270000] idx 0 req 1  num_units 0 num_unit_info 2 unit size 896 actual units 531
[   33.280000] ol_ath_alloc_host_mem_chunk req_id 1 idx 3 num_units 531 unit_len 896,
[   33.280000] idx 4 req 5  num_units 0 num_unit_info 2 unit size 1940 actual units 531
[   33.300000] ol_ath_alloc_host_mem_chunk req_id 5 idx 4 num_units 531 unit_len 1940,
[   33.310000] Support not added yet for Service 91
[   33.310000] Support not added yet for Service 92
[   33.320000] No EXT_MSG send INIT now
[   33.320000] chunk 0 len 13568 requested , ptr  0x4d4c000
[   33.320000] chunk 1 len 54272 requested , ptr  0x4e20000
[   33.330000] chunk 2 len 217088 requested , ptr  0x4e40000
[   33.340000] chunk 3 len 475776 requested , ptr  0x4e80000
[   33.340000] chunk 4 len 1030140 requested , ptr  0x4f00000
[   33.350000] ol_ath_service_ready_event[4206] WAPI MBSSID 2
[   33.350000] smart_log_init: Smart logging Enabled buf=84e30000 (size=65536)
[   33.370000] Version = 16777216 3  status = 0
[   33.380000] ol_ath_connect_htc() WMI is ready
[   33.380000] htt_h2t_frag_desc_bank_cfg_msg - HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG sent to FW for radio ID = 1
[   33.390000] target uses HTT version 2.2; host uses 2.2
[   33.400000] ol_ath_attach() connect HTC.
[   33.410000] bypasswmi : 0
[   33.410000] ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
[   33.420000] ol_regdmn_init_channels: !avail mode 0x7f9001 (0x2) flags 0x2150
[...]
[   33.470000] ol_regdmn_init_channels: !avail mode 0x7f9001 (0x4000) flags 0x40080
[   33.480000] Add VHT80 channel: 5210
[   33.480000] Add VHT80 channel: 5290
[   33.490000] Add VHT80 channel: 5530
[   33.490000] Add VHT80 channel: 5610
[   33.490000] Add VHT80 channel: 5690
[   33.500000] Add VHT80 channel: 5775
[   33.500000] Skipping VHT80 channel 5825
[   33.510000] EMI WAR rejecting fc1 > fc2 Combination cfreq1:5530, cfreq2:5210 in case of VHT80+80
[...]
[   33.880000] EMI WAR rejecting fc1 > fc2 Combination cfreq1:5775, cfreq2:5690 in case of VHT80+80
[   33.890000] freq=58
[   33.890000] freq=106
[   33.890000] freq=122
[   33.900000] freq=138
[   33.900000] OL Resmgr Init-ed
[   33.900000] ieee80211_bsteering_attach: Band steering initialized
[   33.910000] acfg_attach: using existing sock 86358a00
[   33.910000] SPECTRAL : get_capability not registered
[   33.920000] HAL_CAP_PHYDIAG : Capable
[   33.920000] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237)
[   33.930000] SPECTRAL : get_capability not registered
[   33.940000] HAL_CAP_RADAR   : Capable
[   33.940000] SPECTRAL : Need to fix the capablity check for SPECTRAL
[   33.940000]  (spectral_attach : 242)
[   33.950000] SPECTRAL : get_capability not registered
[   33.960000] HAL_CAP_SPECTRAL_SCAN : Capable
[   33.960000] SPECTRAL : get_tsf64 not registered
[   33.960000] spectral_init_netlink 78 NULL SKB
[   33.970000] Green-AP : Green-AP : Attached
[   33.970000]
[   33.970000] Green-AP : Attached
[   33.980000] rate power table override is only supported for AR98XX
[   33.980000] ol_ath_smart_ant_attach: Hardware doest not support Smart Antenna.
[   33.990000] ol_if_dfs_attach: called; ptr=8480997c, radar_info=868f9b40
[   34.000000] dfs_attach: event log enabled by default
[   34.010000] >>>> CB Set   (null)
[   34.010000] ol_ath_attach() UMAC attach .
[   34.010000]
[   34.010000]  BURSTING enabled by default
[   34.020000] ol_ath_attach: Set global_ic[2] ..ptr:86342820
[   34.030000] ath_lowi_if_netlink_init LOWI Netlink successfully created
[   34.030000] osif_wrap_attach:443 osif wrap attached
[   34.040000] osif_wrap_devt_init:404 osif wrap dev table init done
[   34.040000]  Wrap Attached: Wrap_com =86160400 ic->ic_wrap_com=86160400 &wrap_com->wc_devt=86160400
[   34.050000] __ol_ath_attach: needed_headroom reservation 60
[   34.060000] ol_ath_thermal_mitigation_attach: --
[   34.060000] ol_ath_pci_probe num_radios=0, wifi_radios[0].sc = 85f00380 wifi_radio_type = 2
[   34.070000] ath_sysfs_diag_init: diag_fsattr
[   34.080000] [wifi1] FWLOG: [40320] WAL_DBGID_TX_AC_BUFFER_SET ( 0x3, 0x1e, 0x94c, 0x94c, 0x0 )
[   34.090000] [wifi1] FWLOG: [40320] WAL_DBGID_TX_AC_BUFFER_SET ( 0x12, 0x1e, 0x94c, 0x94c, 0x0 )
[   34.100000] [wifi1] FWLOG: [40320] WAL_DBGID_TX_AC_BUFFER_SET ( 0x45, 0x1e, 0x94c, 0x94c, 0x0 )
[   34.110000] [wifi1] FWLOG: [40320] WAL_DBGID_TX_AC_BUFFER_SET ( 0x67, 0x1e, 0x94c, 0x94c, 0x0 )
[   34.110000] [wifi1] FWLOG: [40320] WAL_DBGID_TX_AC_BUFFER_SET ( 0x100, 0x11e1a300 )
[   34.120000] [wifi1] FWLOG: [40852] UNKNOWN 22:55 ( 0x3a, 0xa10, 0x160, 0x10, 0x0 )
[   34.130000] [wifi1] FWLOG: [40852] UNKNOWN 22:55 ( 0x3a, 0x10, 0x0, 0x10, 0x12 )
[   34.220000]  pktlog_init: Initializing Pktlog for AR900B, pktlog_hdr_size = 16
[   34.220000] +hif_update_pipe_callback pipeid 8
[   34.230000] -hif_update_pipe_callback
[   34.270000] __sa_init_module
[   36.370000] Switching to Tx Mode-1 Threshold 280
[   37.430000] hyfi_netlink_receive:66:Device not found: br-lan
qcawifi disable radio wifi0
qcawifi disable radio wifi1
[   39.820000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   39.830000] device eth0 entered promiscuous mode
[   39.830000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   41.140000] br-lan: port 1(eth0) entered forwarding state
[   41.150000] br-lan: port 1(eth0) entered forwarding state
[   41.150000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   41.170000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   41.340000] --lhq-- switch reset
[   41.350000] eth0: link up (1000Mbps/Full duplex)
[   42.350000] br-lan: port 1(eth0) entered disabled state
[   42.380000] --lhq-- switch reset
[   42.380000] eth0: link up (1000Mbps/Full duplex)
[   42.380000] br-lan: port 1(eth0) entered forwarding state
[   42.390000] br-lan: port 1(eth0) entered forwarding state
[   44.240000] hyfi_netlink_receive:108:hyfi: Not attached to bridge br-lan
qcawifi disable radio wifi0
[   44.390000] br-lan: port 1(eth0) entered forwarding state
qcawifi disable radio wifi1
[   44.810000] hyfi_netlink_receive:108:hyfi: Not attached to bridge br-lan
qcawifi disable radio wifi0
qcawifi disable radio wifi1
qcawifi: enable radio wifi0
[   45.260000] ath_net80211_dfs_clist_update: called, cmd=1, nollist=  (null), nentries=0
[   45.270000] ath_attach_dfs[12590] dfsdomain 1
[   45.280000] dfs_attach: event log enabled by default
[   45.360000]  Disconnect_timeout value entered:10
[   45.370000]  reconfiguration_timeout value entered:60
[   45.590000] wlan_vap_create : enter. devhandle=0x869b0380, opmode=IEEE80211_M_HOSTAP, flags=0x1
[   45.600000] ieee80211_mbo_vattach:MBO Initialized
[   45.610000] ieee80211_oce_vattach: OCE Initialized
[   45.610000] wlan_vap_create : exit. devhandle=0x869b0380, vap=0x86368000, opmode=IEEE80211_M_HOSTAP, flags=0x1.
[   45.620000] __ieee80211_smart_ant_init: Smart Antenna is not supported
[   45.630000] VAP device ath0 created osifp: (848cf380) os_if: (86368000)
[   45.680000] siwfreq
[   45.690000] Set freq vap 0 stop send + 86368000
[   45.690000] Set freq vap 0 stop send -86368000
[   45.740000] Set wait done --86368000
[   45.880000]
[   45.880000]  DES SSID SET=
[   45.900000] [DEBUG] vap-0(ath0):set SIOC80211NWID, 10 characters
[   45.900000]
[   45.900000]  DES SSID SET=dlink-6C07
[   46.390000]  ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
[   46.400000]  DEVICE IS DOWN ifname=ath0
[   46.410000]  DEVICE IS DOWN ifname=ath0
[   46.530000] Warning: node not in table 0x86140000
[   46.610000] 8021q: adding VLAN 0 to HW filter on device ath0
[   46.720000] device ath0 entered promiscuous mode
[   46.720000] br-lan: port 2(ath0) entered forwarding state
[   46.730000] br-lan: port 2(ath0) entered forwarding state
qcawifi: enable radio wifi1
[   46.850000] [ol_ath_iw_setcountry][1798] *p=47, *(p+1)=42
[   46.850000] isCountryCodeValid: EEPROM regdomain 0x0
[   46.860000] ol_regdmn_init_channels: !avail mode 0x7f9001 (0x2) flags 0x2150
[...]
[   46.910000] ol_regdmn_init_channels: !avail mode 0x7f9001 (0x4000) flags 0x40080
[   46.920000] Add VHT80 channel: 5210
[...]
[   46.940000] Skipping VHT80 channel 5700
[   46.940000] EMI WAR rejecting fc1 > fc2 Combination cfreq1:5530, cfreq2:5210 in case of VHT80+80
[...]
[   47.080000] EMI WAR rejecting fc1 > fc2 Combination cfreq1:5610, cfreq2:5290 in case of VHT80+80
[   47.090000] freq=58
[   47.100000] freq=106
[   47.100000] freq=122
[   47.140000] set TXBF_SND_PERIOD: value 100 wmi_status 0
[   47.170000]  Disconnect_timeout value entered:10
[   47.180000]  reconfiguration_timeout value entered:60
[   47.330000] wlan_vap_create : enter. devhandle=0x85f00380, opmode=IEEE80211_M_HOSTAP, flags=0x1
[   47.340000] send_vdev_create_cmd_non_tlv: ID = 0 Type = 1, Subtype = 0 VAP Addr = 28:3b:82:79:6c:0d:
[   47.350000] ieee80211_mbo_vattach:MBO Initialized
[   47.350000] ieee80211_oce_vattach: OCE Initialized
[   47.360000] wlan_vap_create : exit. devhandle=0x85f00380, vap=0x86158000, opmode=IEEE80211_M_HOSTAP, flags=0x1.
[   47.370000] __ieee80211_smart_ant_init: Smart Antenna is not supported
[   47.380000] Enabling TX checksum bit for the vap ath1 features 4000
[   47.380000] Enabling SG bit for the vap ath1 features 4000
[   47.390000] Enabling SG bit for the vap ath1 features 4000
[   47.390000] Enabling TSO bit for the vap ath1 features 4000
[   47.400000] Enabling LRO bit for the vap ath1 features 4000
[   47.420000] VAP device ath1 created osifp: (8637a380) os_if: (86158000)
[   47.570000] siwfreq
[   47.570000] Set freq vap 0 stop send + 86158000
[   47.580000] Set freq vap 0 stop send -86158000
[   47.610000] Set wait done --86158000
[   47.720000]
[   47.720000]  DES SSID SET=
[   47.750000] [DEBUG] vap-0(ath1):set SIOC80211NWID, 10 characters
[   47.760000]
[   47.760000]  DES SSID SET=dlink-6C07
[   47.810000] su bfee 1 mu bfee 0 su bfer 1 mu bfer 1 impl bf 0 sounding dim 1
[   47.820000] su bfee 1 mu bfee 0 su bfer 1 mu bfer 1 impl bf 0 sounding dim 1
[   48.050000] [wifi1] FWLOG: [54371] UNKNOWN 22:55 ( 0x37, 0x199, 0x130, 0x30, 0x0 )
[   48.050000] [wifi1] FWLOG: [54371] UNKNOWN 22:55 ( 0x37, 0x30, 0x0, 0x30, 0x0 )
[   48.190000]  ieee80211_ioctl_siwmode: imr.ifm_active=66176, new mode=3, valid=1
[   48.200000]  DEVICE IS DOWN ifname=ath1
[   48.210000]  DEVICE IS DOWN ifname=ath1
[   48.360000] Sending SCAN START cmd
[   48.360000] 8021q: adding VLAN 0 to HW filter on device ath1
[   48.400000] device ath1 entered promiscuous mode
[   48.410000] br-lan: port 3(ath1) entered forwarding state
[   48.410000] br-lan: port 3(ath1) entered forwarding state
[   48.730000] br-lan: port 2(ath0) entered forwarding state
[   49.040000] [wifi1] FWLOG: [55637] WAL_DBGID_SECURITY_ENCR_EN (  )
[   49.050000] [wifi1] FWLOG: [55637] WAL_DBGID_SECURITY_MCAST_KEY_SET ( 0x1 )
[   49.050000] [wifi1] FWLOG: [55670] WAL channel change freq=5180, mode=0 flags=0 rx_ok=1 tx_ok=1
[...]
[   49.430000] __ieee80211_smart_ant_init: Smart Antenna is not supported
wsplcd: starting daemon
[   50.410000] br-lan: port 3(ath1) entered forwarding state
[   51.040000] [wifi1] FWLOG: [57555] WAL channel change freq=5300, mode=0 flags=0 rx_ok=1 tx_ok=1
[...]
[   53.740000] [UNSPECIFIED] ol_scan_unregister_event_handler: Failed to unregister evhandler=86283680 arg=84820000
[   53.740000]
[   53.760000] osif_vap_init: Scan in progress.. Cancelling it. vap: 0x86158000
[   53.760000] send_vdev_down_cmd_non_tlv for vap 0
[   53.800000] Sending SCAN START cmd
[   54.090000] [wifi1] FWLOG: [60697] WAL channel change freq=5660, mode=0 flags=0 rx_ok=1 tx_ok=1
[   54.100000] [wifi1] FWLOG: [61011] WAL channel change freq=5680, mode=0 flags=0 rx_ok=1 tx_ok=1
[   54.110000] [wifi1] FWLOG: [61207] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
[   54.120000] [wifi1] FWLOG: [61207] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
[   54.130000] [wifi1] FWLOG: [61240] WAL channel change freq=5180, mode=0 flags=0 rx_ok=1 tx_ok=1
[...]
wsplcd: starting daemon
[   59.060000] [wifi1] FWLOG: [65637] WAL channel change freq=5620, mode=0 flags=0 rx_ok=1 tx_ok=1
[...]
[   59.190000] ME Pool succesfully initialized vaddr - 83840000 paddr - 0
[   59.190000] num_elems = 1424 buf_size - 64 pool_size = 102528
[   59.200000] Enable MCAST_TO_UCAST
hyd: starting daemon
[   59.630000] send_vdev_down_cmd_non_tlv for vap 0
[   59.640000] OL vap_start +
[   59.640000] VDEV START
[   59.640000] OL vap_start -
[   59.640000] ol_ath_vap_set_param: Now supported MGMT RATE is 6000(kbps) and rate code: 0x3
[   59.840000] ol_vdev_start_resp_ev for vap 0 (86b2a000)
[   59.850000] send_wmm_update_cmd_non_tlv:
[   59.850000] su bfee 1 mu bfee 0 su bfer 1 mu bfer 1 impl bf 0 sounding dim 1
[   59.860000] send_vdev_up_cmd_non_tlv for vap 0
[   59.870000] __ieee80211_smart_ant_init: Smart Antenna is not supported
[   60.050000] [wifi1] FWLOG: [66895] WAL channel change freq=5700, mode=0 flags=0 rx_ok=1 tx_ok=1
[   60.060000] [wifi1] FWLOG: [67213] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
[   60.060000] [wifi1] FWLOG: [67213] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
[   60.070000] [wifi1] FWLOG: [67219] vap-0 VDEV_MGR_VDEV_START ( 0x1478, 0x2, 0x0, 0x0 )
[   60.080000] [wifi1] FWLOG: [67219] WAL channel change freq=5240, mode=10 flags=0 rx_ok=1 tx_ok=1
[   60.090000] [wifi1] FWLOG: [67428] UNKNOWN 14:20 ( 0x0 )
[   60.090000] [wifi1] FWLOG: [67451] VDEV_MGR_HP_START_TIME ( 0x0, 0x1478, 0x194b001 )
[   60.100000] [wifi1] FWLOG: [67451] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x1 )
[   60.110000] [wifi1] FWLOG: [67451] RESMGR_OCS_GEN_PERIODIC_NOA ( 0x0 )
[   60.120000] [wifi1] FWLOG: [67451] VDEV_MGR_AP_TBTT_CONFIG ( 0x0, 0x1478, 0x0, 0x0 )
[   61.070000] [ath0] Band steering events being sent to PID:1967
[   61.090000] [ath1] Band steering events being sent to PID:1967
[   61.240000] sc nodebug 0
[   61.480000] [ath0] Band steering events being sent to PID:1967
[   61.480000] [ath1] Band steering events being sent to PID:1967
plcmon.c:main:837:##In## main

[   67.260000] fast-classifier: starting up
[   67.260000] fast-classifier: registered
[   68.670000] Otherband BSSID 28:3b:82:79:6c:d
[   68.710000] Otherband BSSID 28:3b:82:79:6c:c
1 features 4000

dlinkap6C0B login:


#7

So, 16MB flash ...

[    0.470000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.480000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.480000] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.490000] Creating 6 MTD partitions on "spi0.0":
[    0.500000] 0x000000000000-0x000000040000 : "u-boot"
[    0.500000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.510000] 0x000000050000-0x000000e80000 : "rootfs"
[    0.510000] mtd: partition "rootfs" set to be root filesystem
[    0.520000] mtd: partition "rootfs_data" created automatically, ofs=D80000, len=100000
[    0.530000] 0x000000d80000-0x000000e80000 : "rootfs_data"
[    0.540000] 0x000000e80000-0x000000ff0000 : "kernel"
[    0.540000] 0x000000ff0000-0x000001000000 : "art"
[    0.550000] 0x000000050000-0x000000ff0000 : "firmware"

#8

And an Uboot that can be interupted at keypress, with a fully equipped default environment...

ath> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),14528k(rootfs),1408k(uImage),64k(mib0),64k(ART)
bootcmd=bootm 0x9fe80000
bootdelay=2
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.0.50
serverip=192.168.0.100
dir=
lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
lf=tftp 0x80060000 ${dir}ap152${bc}-jffs2&&erase 0x9f050000 +0xE30000&&cp.b $fileaddr 0x9f050000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9fe80000 +$filesize&&cp.b $fileaddr 0x9fe80000 $filesize
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 686/65532 bytes

#9

Booting into a modifed OpenWRT including failsave mode


- preinit -
Press the [f] key and hit [enter] to enter failsafe mode

f[    7.250000] --lhq-- switch reset
[    7.250000] eth0: link up (1000Mbps/Full duplex)

- failsafe -


BusyBox v1.19.4 (2017-09-28 15:00:00 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

     MM           NM                    MMMMMMM          M       M
   $MMMMM        MMMMM                MMMMMMMMMMM      MMM     MMM
  MMMMMMMM     MM MMMMM.              MMMMM:MMMMMM:   MMMM   MMMMM
MMMM= MMMMMM  MMM   MMMM       MMMMM   MMMM  MMMMMM   MMMM  MMMMM'
MMMM=  MMMMM MMMM    MM       MMMMM    MMMM    MMMM   MMMMNMMMMM
MMMM=   MMMM  MMMMM          MMMMM     MMMM    MMMM   MMMMMMMM
MMMM=   MMMM   MMMMMM       MMMMM      MMMM    MMMM   MMMMMMMMM
MMMM=   MMMM     MMMMM,    NMMMMMMMM   MMMM    MMMM   MMMMMMMMMMM
MMMM=   MMMM      MMMMMM   MMMMMMMM    MMMM    MMMM   MMMM  MMMMMM
MMMM=   MMMM   MM    MMMM    MMMM      MMMM    MMMM   MMMM    MMMM
MMMM$ ,MMMMM  MMMMM  MMMM    MMM       MMMM   MMMMM   MMMM    MMMM
  MMMMMMM:      MMMMMMM     M         MMMMMMMMMMMM  MMMMMMM MMMMMMM
    MMMMMM       MMMMN     M           MMMMMMMMM      MMMM    MMMM
     MMMM          M                    MMMMMMM        M       M
       M
 ---------------------------------------------------------------
   For those about to rock... (QCA9558.LN, r16084)
 ---------------------------------------------------------------
root@(none):/#

root@(none):/# cat /etc/openwrt_release
DISTRIB_ID="QSDK"
DISTRIB_RELEASE="QCA9558.LN"
DISTRIB_REVISION="r16084"
DISTRIB_CODENAME="premium_beeliner_router"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="QSDK Premium Beeliner Router QCA9558.LN"
root@(none):/# cat /etc/openwrt_version
QCA9558.LN

Old fork...

cat /etc/opkg.conf
src/gz premium_beeliner_router http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages
[...]

#10

Boot success!


BusyBox v1.28.4 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06-SNAPSHOT, r7704-9ee8c8daf4
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# uname -a
Linux OpenWrt 4.9.160 #0 Mon Feb 25 16:34:25 2019 mips GNU/Linux
root@OpenWrt:/# cat /proc/cpuinfo
system type             : Qualcomm Atheros QCA956X ver 1 rev 0
machine                 : Qualcomm Atheros AP152 reference board
processor               : 0
cpu model               : MIPS 74Kc V5.0
BogoMIPS                : 385.84
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp dsp2
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@OpenWrt:/#


#11

LEDs are working, Wifi looks good for 2.4 and 5Ghz.
I'm still struggling a bit with deriving the MAC adresses for Ethernet and WLAN interfaces.
eth0 gets a random MAC address, WLAN0 2.4Ghz gets an dynamically set form the ART, wrongly.
Added nvram parsing & now it's compiling...


#12

MAC addresses assignments from "nvram"/art are also working... the 9888 was a bit of a pita.
Also, I seperated the PLC interface, switch port 4, into a distinct VLAN to allow proper booting of the PLC controller when more than one of these boxes are powered up the same time.
After successfully booting up, it would be added to the lan bridge.
Also, I will package the native firmware+pib into a distinct 3rd-party package for that...


#13

Hi,
Original software is useless. I would like to turn off the 2.4GHz band but at the moment it is not possible. That's why I keep my fingers crossed for success :slight_smile:


#14

I got the factory image build with the necessary checksums added for an upgrade from fw1.0.0, and almost got the rsa encryption for an upgrade from fw1.0.1 running.

However the sysupgrade procedure of the original firmware backups their configuration, so I ultimately got a 18.06.2's kernel running with the configuration files of the original firmware -> network-wise a dead box.

I cannot prevent the backup configuration on the original firmware, so does anyone know how would I prevent an image taking this information into account after the first boot?


#15

Ok, answering my question, at least a manual workaround for this factory image is getting into the failsave mode by pressing reset button during boot, then login and issue a

umount /overlay; jffs2reset && reboot now

#16

So, question to all: would you prefer a factory image going from 1.0 and a one-off factory image to be used when running original fw 1.0.1 ?
Or the other way round, standard factory image requires a 1.0.1 firmware (so possibly upgrading oem firmware first), and a one-off factory image to start from 1.0 when the step via 1.0.1 is impossible or deemed to much hassle?


#17

For me version 1.0 is OK.
Unfortunately, I can't upgrade my router to version 1.0.1. Probably through hardware version HW:A1.


#18

Ok, at least the image signing and encryption is working for 1.0.1 .

I think I leave the 1.0 as factory, and one can build a 1.0.1 factory from sysupgrade with a little perl script, and I'll prepare one for download.

I'll publish some links to test images in an hour or so...


#19

Please find a factory image for flashing from the 1.0.0 firmware at openwrt-18.06-snapshot-r7704-9ee8c8daf4-ar71xx-generic-covr-p2500-squashfs-factory.bin and for the 1.0.1 firmware at openwrt-18.06-snapshot-r7704-9ee8c8daf4-ar71xx-generic-covr-p2500-squashfs-factory101.bin .

Please note the necessary jffs2reset described earlier or at http://www.netadair.de/openwrt/


#20

(Manual) PLC booting works as well ...

export PLC=eth0.2
root@OpenWrt:/tmp/x# plchost -N /lib/plc/MAC-7500-v2.2.2-03-X-CS.nvm -P /lib/plc/COVRP2500AVA1_PIB100EU_WM.pib
eth0.2 00:B0:52:00:00:01 Write /lib/plc/MAC-7500-v2.2.2-03-X-CS.nvm (1) (00000040:32064)
eth0.2 00:B0:52:00:00:01 Start /lib/plc/MAC-7500-v2.2.2-03-X-CS.nvm (1) (000000C0)
eth0.2 00:B0:52:00:00:01 Write /lib/plc/COVRP2500AVA1_PIB100EU_WM.pib (1) (00400000:22344)
eth0.2 00:B0:52:00:00:01 Write /lib/plc/MAC-7500-v2.2.2-03-X-CS.nvm (4) (005639F8:484064)
eth0.2 00:B0:52:00:00:01 Start /lib/plc/MAC-7500-v2.2.2-03-X-CS.nvm (4) (00563DE8)
eth0.2 00:0C:43:28:80:2A MAC-QCA7550-2.2.2.1316-03-20161216-CS is running
^C
root@OpenWrt:/tmp/x# plctool -I 00:B0:52:00:00:01
        PIB 0-0 21384 bytes
        MAC 00:0C:43:28:80:2A
        DAK 68:9F:07:4B:8B:02:75:A2:71:0B:0B:57:79:AD:16:30 (HomePlugAV)
        NMK 50:D3:E4:93:3F:85:5B:70:40:78:4D:F8:15:AA:8D:B7 (HomePlugAV)
        NID B0:F2:E6:95:66:6B:03
        NET Qualcomm Atheros Enabled Network
        MFG Qualcomm Atheros HomePlug AV Device
        USR COVRP2500A1_PIB100EU_WM_AV2
        CCo Auto
        MDU N/A