[LEDE-DEV] QCA Dakota support

Christian Lamparter chunkeey at googlemail.com
Sun Nov 13 22:04:27 PST 2016


Hello,

On Saturday, November 12, 2016 12:03:54 AM CET Christian Mehlis wrote:
> I took your patches to my tree. They are for Linux 4.7, so I tried to 
> make Lede build with that Linux version.
> I ran into some trouble with musl+netifd (fixed it). Now compat-wireless 
> seems to expect an older Kernel:
> 
> compat-wireless-2016-10-08/backport-include/linux/netdevice.h:337:5: 
> error: 'struct net_device' has no member named 'trans_start'
>    dev->trans_start = jiffies;
> 
> The member was kicked in 4.7.
> 
> In case someone is willing to help, I'm open for code.

I also got a IPQ40XX device. It's a Asus RT-AC58U. I played around with
it. The kernel is 4.8.6 (Since 4.7 is EOL).

The initramfs image boots. serial and SPI(nor and nand) is working.
ath10k needs caldata (I'm not familiar with the new pre-cal and cal
data stuff). However no ethernet, no usb3, no cpufreq, no leds,
no crypto, ... (yet).

Are you still interested?
https://github.com/chunkeey/LEDE-AC58U

Regards,
Christian

---
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.8.6 (chuck at debian64) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2109+1) ) #0 SMP Mon Nov 14 04:32:17 2016
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Asus AC58U
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 32256
[    0.000000] free_area_init_node: node 0, pgdat c092f340, node_mem_map c7cf9000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32256 pages, LIFO batch:7
[    0.000000] percpu: Embedded 13 pages/cpu @c7cae000 s20608 r8192 d24448 u53248
[    0.000000] pcpu-alloc: s20608 r8192 d24448 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32000
[    0.000000] Kernel command line: root_rfs=0x00000000 flash_type=norplusnand
[    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] Memory: 119596K/129024K available (43K kernel code, 227K rwdata, 752K rodata, 2480K init, 290K bss, 9428K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc0213198   (  45 kB)
[    0.000000]       .init : 0xc06be000 - 0xc092a000   (2480 kB)
[    0.000000]       .data : 0xc092a000 - 0xc0962dcc   ( 228 kB)
[    0.000000]        .bss : 0xc0964000 - 0xc09aca7c   ( 291 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 48.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[    0.000008] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000022] Switching to timer-based delay loop, resolution 20ns
[    0.000107] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000126] pid_max: default: 32768 minimum: 301
[    0.000219] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000234] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000870] CPU: Testing write buffer coherency: ok
[    0.001219] Setting up static identity map for 0x80208280 - 0x802082d8
[    0.005322] Brought up 4 CPUs
[    0.005343] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.005352] CPU: All CPU(s) started in SVC mode.
...
[    8.686004] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/pre-cal-ahb-a000000.wifi.bin failed with error -2
[    8.686053] ath10k_ahb a000000.wifi: Falling back to user helper
[    8.723599] firmware ath10k!pre-cal-ahb-a000000.wifi.bin: firmware_loading_store: map pages failed
[    8.723936] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/cal-ahb-a000000.wifi.bin failed with error -2
[    8.731569] ath10k_ahb a000000.wifi: Falling back to user helper
[    8.780565] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[    8.786538] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[    8.799427] ath10k_ahb a000000.wifi: firmware ver 10.4-3.2.1-00044 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param crc32 b9833652
[    8.821666] ath10k_ahb a000000.wifi: failed to fetch board data for bus=ahb,vendor=0000,device=0000,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA4019/hw1.0/board-2.bin
[    8.821848] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/board.bin failed with error -2
[    9.076032] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/pre-cal-ahb-a800000.wifi.bin failed with error -2
[    9.076079] ath10k_ahb a800000.wifi: Falling back to user helper
[    9.114549] firmware ath10k!pre-cal-ahb-a800000.wifi.bin: firmware_loading_store: map pages failed
[    9.114872] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/cal-ahb-a800000.wifi.bin failed with error -2
[    9.122435] ath10k_ahb a800000.wifi: Falling back to user helper
[    9.171269] firmware ath10k!cal-ahb-a800000.wifi.bin: firmware_loading_store: map pages failed
[    9.172862] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000




More information about the Lede-dev mailing list