Kernel log» Click to show Spoiler - click again to hide... «
[ 0.000000] Linux version 4.19.66 (syahmi@cslab-nb6) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10863-e1dcfe02b2)) #0 Sat Aug 24 21:23:31 2019
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] MIPS: machine is D-Link DIR-842 C2
[ 0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 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] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] Normal zone: 288 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 121392K/131072K available (4996K kernel code, 247K rwdata, 1252K rodata, 1240K init, 212K bss, 9680K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] CPU clock: 775.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[ 0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[ 0.008223] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.074770] pid_max: default: 32768 minimum: 301
[ 0.079814] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.086803] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.098494] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.108902] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.115451] pinctrl core: initialized pinctrl subsystem
[ 0.121845] NET: Registered protocol family 16
[ 0.133852] PCI host bridge /ahb/pcie-controller@18250000 ranges:
[ 0.140289] MEM 0x0000000012000000..0x0000000013ffffff
[ 0.145833] IO 0x0000000000000000..0x0000000000000000
[ 0.183704] usbcore: registered new interface driver usbfs
[ 0.189626] usbcore: registered new interface driver hub
[ 0.195287] usbcore: registered new device driver usb
[ 0.200694] media: Linux media interface: v0.10
[ 0.205518] videodev: Linux video capture interface: v2.00
[ 0.211760] PCI host bridge to bus 0000:00
[ 0.216080] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.223360] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.229228] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.236388] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.244764] pci 0000:00:00.0: [168c:0056] type 00 class 0x028000
[ 0.244820] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 0.244941] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 0.245866] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.245891] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 0.258592] clocksource: Switched to clocksource MIPS
[ 0.264937] NET: Registered protocol family 2
[ 0.270304] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.278422] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.285824] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.292550] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.299380] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.305553] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.312526] NET: Registered protocol family 1
[ 0.317160] PCI: CLS 0 bytes, default 32
[ 0.320012] Crashlog allocated RAM at address 0x3f00000
[ 0.326808] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.339529] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.345671] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
[ 0.368568] io scheduler noop registered
[ 0.372752] io scheduler deadline registered (default)
[ 0.378422] ar7200-usb-phy usb-phy: phy reset is missing
[ 0.385530] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[ 0.392620] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.400003] console [ttyS0] disabled
[ 0.403798] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[ 0.412939] console [ttyS0] enabled
[ 0.420502] bootconsole [early0] disabled
[ 0.444017] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.448963] 8 fixed-partitions partitions found on MTD device spi0.0
[ 0.455517] Creating 8 MTD partitions on "spi0.0":
[ 0.460507] 0x000000000000-0x000000040000 : "u-boot"
[ 0.466407] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.472632] 0x000000050000-0x000000060000 : "devdata"
[ 0.478533] 0x000000060000-0x000000070000 : "devconf"
[ 0.484499] 0x000000070000-0x000000080000 : "misc"
[ 0.490215] 0x000000080000-0x000000fd0000 : "firmware"
[ 0.500371] 2 seama-fw partitions found on MTD device firmware
[ 0.506403] Creating 2 MTD partitions on "firmware":
[ 0.511590] 0x000000000040-0x000000210000 : "kernel"
[ 0.517437] 0x000000210000-0x000000f50000 : "rootfs"
[ 0.523311] mtd: device 7 (rootfs) set to be root filesystem
[ 0.530616] 1 squashfs-split partitions found on MTD device rootfs
[ 0.537022] 0x000000cd0000-0x000000f50000 : "rootfs_data"
[ 0.543364] 0x000000fd0000-0x000000fe0000 : "art"
[ 0.548972] 0x000000fe0000-0x000001000000 : "reserved"
[ 0.555961] libphy: Fixed MDIO Bus: probed
[ 0.563226] ag71xx 19000000.eth: invalid MAC address, using random address
[ 1.248968] libphy: ag71xx_mdio: probed
[ 1.255994] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[ 1.910070] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[ 1.921749] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[ 1.928332] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.935316] i2c /dev entries driver
[ 1.939987] IR NEC protocol handler initialized
[ 1.944667] IR RC5(x/sz) protocol handler initialized
[ 1.949913] IR RC6 protocol handler initialized
[ 1.954585] IR JVC protocol handler initialized
[ 1.959266] IR Sony protocol handler initialized
[ 1.964030] IR SANYO protocol handler initialized
[ 1.968889] IR Sharp protocol handler initialized
[ 1.973742] IR MCE Keyboard/mouse protocol handler initialized
[ 1.979766] IR XMP protocol handler initialized
[ 1.984441] ir_imon_decoder: IR iMON protocol handler initialized
[ 1.990920] usbcore: registered new interface driver dvb_usb_rtl28xxu
[ 1.999529] NET: Registered protocol family 10
[ 2.012117] Segment Routing with IPv6
[ 2.016001] NET: Registered protocol family 17
[ 2.020719] 8021q: 802.1Q VLAN Support v1.8
[ 2.035827] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[ 2.050106] Freeing unused kernel memory: 1240K
[ 2.054787] This architecture does not have kernel memory protection.
[ 2.061463] Run /sbin/init as init process
[ 2.558602] random: fast init done
[ 2.985801] init: Console is alive
[ 2.989590] init: - watchdog -
[ 5.446129] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.541258] ehci-platform: EHCI generic platform driver
[ 5.546880] ehci-platform 1b000000.usb: EHCI Host Controller
[ 5.552827] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[ 5.561033] ehci-platform 1b000000.usb: irq 13, io mem 0x1b000000
[ 5.588618] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[ 5.595721] hub 1-0:1.0: USB hub found
[ 5.600056] hub 1-0:1.0: 1 port detected
[ 5.605355] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.623272] init: - preinit -
[ 6.670230] random: jshn: uninitialized urandom read (4 bytes read)
[ 6.781387] random: jshn: uninitialized urandom read (4 bytes read)
[ 7.204136] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.593987] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.600154] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[ 8.638748] urandom_read: 4 callbacks suppressed
[ 8.638754] random: procd: uninitialized urandom read (4 bytes read)
[ 9.639913] eth0: link up (1000Mbps/Full duplex)
[ 9.644768] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.651691] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[ 11.894052] jffs2: notice: (636) jffs2_build_xattr_subsystem: complete building xattr subsystem, 4 of xdatum (2 unchecked, 1 orphan) and 21 of xref (1 dead, 0 orphan) found.
[ 11.912497] mount_root: switching to jffs2 overlay
[ 11.965948] overlayfs: upper fs does not support tmpfile.
[ 11.982380] urandom-seed: Seeding with /etc/urandom.seed
[ 12.121849] eth0: link down
[ 12.142385] procd: - early -
[ 12.145453] procd: - watchdog -
[ 12.716922] procd: - watchdog -
[ 12.720503] procd: - ubus -
[ 12.778527] random: ubusd: uninitialized urandom read (4 bytes read)
[ 12.787186] random: ubusd: uninitialized urandom read (4 bytes read)
[ 12.794995] procd: - init -
[ 13.523924] kmodloader: loading kernel modules from /etc/modules.d/*
[ 13.557428] urngd: v1.0.0 started.
[ 13.633770] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[ 13.875529] random: crng init done
[ 13.908348] hidraw: raw HID events driver © Jiri Kosina
[ 13.935065] Mirror/redirect action on
[ 14.007401] u32 classifier
[ 14.010254] input device check on
[ 14.014029] Actions configured
[ 14.044767] Loading modules backported from Linux version v5.3-rc4-0-gd45331b00ddb
[ 14.052636] Backport generated by backports.git v5.3-rc4-1-0-g4ec72687
[ 14.155484] usbcore: registered new device driver usbip-host
[ 14.170698] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[ 14.176828] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
[ 14.184373] vhci_hcd: created sysfs vhci_hcd.0
[ 14.224187] hub 2-0:1.0: USB hub found
[ 14.242825] hub 2-0:1.0: 8 ports detected
[ 14.250884] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[ 14.257008] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 3
[ 14.271169] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[ 14.280808] hub 3-0:1.0: USB hub found
[ 14.285247] hub 3-0:1.0: 8 ports detected
[ 14.329548] xt_time: kernel timezone is -0000
[ 14.402595] PPP generic driver version 2.4.2
[ 14.409702] NET: Registered protocol family 24
[ 14.424339] usbcore: registered new interface driver snd-usb-audio
[ 14.467988] ath10k 4.19 driver, optimized for CT firmware, probing pci device: 0x56.
[ 14.477579] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[ 14.484423] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 14.769811] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
[ 14.964652] firmware ath10k!QCA9888!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[ 15.151744] firmware ath10k!QCA9888!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[ 15.338575] firmware ath10k!QCA9888!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 16.147697] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[ 16.157266] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 16.177294] ath10k_pci 0000:00:00.0: firmware ver 10.4b-ct-9888-fW-012-e8020273 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 d41e2174
[ 16.512054] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,bmi-chip-id=0,bmi-board-id=31 from ath10k/QCA9888/hw2.0/board-2.bin
[ 16.526265] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:31 crc32 98ab9bb6
[ 18.574861] ath10k_pci 0000:00:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 18.582645] ath10k_pci 0000:00:00.0: msdu-desc: 2500 skid: 32
[ 18.593982] ath10k_pci 0000:00:00.0: firmware crashed! (guid n/a)
[ 18.600336] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[ 18.609868] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 18.629899] ath10k_pci 0000:00:00.0: firmware ver 10.4b-ct-9888-fW-012-e8020273 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 d41e2174
[ 18.659644] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:31 crc32 98ab9bb6
[ 18.667281] ath10k_pci 0000:00:00.0: htt-ver 0.0 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[ 18.679731] ath10k_pci 0000:00:00.0: firmware register dump:
[ 18.685576] ath10k_pci 0000:00:00.0: [00]: 0x0000000C 0x000015B3 0x0A01CC48 0x00975B31
[ 18.693761] ath10k_pci 0000:00:00.0: [04]: 0x0A01CC48 0x00060B30 0x0000000E 0xAB9E3C08
[ 18.701945] ath10k_pci 0000:00:00.0: [08]: 0x00000000 0x000C0B78 0x0000096C 0x00000028
[ 18.710126] ath10k_pci 0000:00:00.0: [12]: 0x00000009 0x00000000 0x009C7834 0x009C7889
[ 18.718296] ath10k_pci 0000:00:00.0: [16]: 0x0A01CC48 0x009C1B86 0x00000000 0x00000000
[ 18.726478] ath10k_pci 0000:00:00.0: [20]: 0x409C7618 0x0040586C 0x00000001 0xFFFFFFFF
[ 18.734667] ath10k_pci 0000:00:00.0: [24]: 0x809B5A5C 0x004058CC 0x00000000 0xC09C7618
[ 18.742843] ath10k_pci 0000:00:00.0: [28]: 0x809C793A 0x0040590C 0x0000096C 0x000C0B92
[ 18.751027] ath10k_pci 0000:00:00.0: [32]: 0x809B5B0A 0x0040593C 0x0000096C 0x0041A7A8
[ 18.759209] ath10k_pci 0000:00:00.0: [36]: 0x800D1DEF 0x00405A5C 0x0041A47C 0x0041A7A8
[ 18.767379] ath10k_pci 0000:00:00.0: [40]: 0x809C7C07 0x00405A8C 0x0041A47C 0x0041A7A8
[ 18.775561] ath10k_pci 0000:00:00.0: [44]: 0x809B5B34 0x00405AAC 0x0041A47C 0x0041A7A8
[ 18.783737] ath10k_pci 0000:00:00.0: [48]: 0x809C80DE 0x00405AEC 0x0041A47C 0x0041A7A8
[ 18.791922] ath10k_pci 0000:00:00.0: [52]: 0x809B5B9B 0x00405B1C 0x0041A47C 0x0000003F
[ 18.800112] ath10k_pci 0000:00:00.0: [56]: 0x800CB947 0x00405B6C 0x0041A47C 0x0000003F
[ 18.808288] ath10k_pci 0000:00:00.0: Copy Engine register dump:
[ 18.814417] ath10k_pci 0000:00:00.0: [00]: 0x0004a000 5 5 3 3
[ 18.821078] ath10k_pci 0000:00:00.0: [01]: 0x0004a400 4 4 14 15
[ 18.827729] ath10k_pci 0000:00:00.0: [02]: 0x0004a800 1 1 0 1
[ 18.834397] ath10k_pci 0000:00:00.0: [03]: 0x0004ac00 2 2 5 2
[ 18.841058] ath10k_pci 0000:00:00.0: [04]: 0x0004b000 0 0 40 0
[ 18.847710] ath10k_pci 0000:00:00.0: [05]: 0x0004b400 0 0 0 0
[ 18.854377] ath10k_pci 0000:00:00.0: [06]: 0x0004b800 0 0 0 0
[ 18.861040] ath10k_pci 0000:00:00.0: [07]: 0x0004bc00 1 1 1 1
[ 18.867690] ath10k_pci 0000:00:00.0: [08]: 0x0004c000 0 0 127 0
[ 18.874359] ath10k_pci 0000:00:00.0: [09]: 0x0004c400 0 0 0 0
[ 18.881020] ath10k_pci 0000:00:00.0: [10]: 0x0004c800 0 0 0 0
[ 18.887671] ath10k_pci 0000:00:00.0: [11]: 0x0004cc00 0 0 0 0
[ 18.896340] ath10k_pci 0000:00:00.0: debug log header, dbuf: 0x41bee0 dropped: 0
[ 18.905085] ath10k_pci 0000:00:00.0: [0] next: 0x41bef8 buf: 0x417c50 sz: 1500 len: 52 count: 2 free: 0
[ 18.915800] ath10k_pci 0000:00:00.0: ath10k_pci ATH10K_DBG_BUFFER:
[ 18.922190] ath10k: [0000]: E20F0000 0700FC13 70200060 10000000 30000000 01004E00 E70F0000 0100FC17
[ 18.931536] ath10k: [0008]: 48CC010A B3150000 B3150000 5C574000 69451091
[ 18.938449] ath10k_pci 0000:00:00.0: ATH10K_END
[ 18.944148] ath10k_pci 0000:00:00.0: [1] next: 0x41bee0 buf: 0x418240 sz: 1500 len: 0 count: 0 free: 0
[ 23.638605] ath10k_pci 0000:00:00.0: wmi unified ready event not received
[ 23.731838] ath10k_pci 0000:00:00.0: could not init core (-145)
[ 23.738186] ath10k_pci 0000:00:00.0: could not probe fw (-145)
[ 23.744264] ath10k_pci 0000:00:00.0: cannot restart a device that hasn't been started
[ 23.801239] ath: EEPROM regdomain: 0x0
[ 23.801247] ath: EEPROM indicates default country code should be used
[ 23.801250] ath: doing EEPROM country->regdmn map search
[ 23.801262] ath: country maps to regdmn code: 0x3a
[ 23.801267] ath: Country alpha2 being used: US
[ 23.801270] ath: Regpair used: 0x3a
[ 23.813213] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 23.814646] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
[ 23.849086] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 34.163491] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 34.195547] device eth0 entered promiscuous mode
[ 34.218712] br-lan: port 1(eth0.1) entered blocking state
[ 34.224300] br-lan: port 1(eth0.1) entered disabled state
[ 34.230218] device eth0.1 entered promiscuous mode
[ 34.306552] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 34.370171] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[ 35.240302] eth0: link up (1000Mbps/Full duplex)
[ 35.245159] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 35.308775] br-lan: port 1(eth0.1) entered blocking state
[ 35.314357] br-lan: port 1(eth0.1) entered forwarding state
[ 35.320480] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[ 35.424097] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 38.080175] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 38.111676] br-lan: port 2(wlan1) entered blocking state
[ 38.117169] br-lan: port 2(wlan1) entered disabled state
[ 38.123021] device wlan1 entered promiscuous mode
[ 38.164739] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 38.171548] br-lan: port 2(wlan1) entered blocking state
[ 38.177054] br-lan: port 2(wlan1) entered forwarding state
settings under hotplug.d/firmware/11-ath10k-caldata» Click to show Spoiler - click again to hide... «
#!/bin/sh
. /lib/functions/k2t.sh
# xor multiple hex values of the same length
xor() {
local val
local ret="0x$1"
local retlen=${#1}
shift
while [ -n "$1" ]; do
val="0x$1"
ret=$((ret ^ val))
shift
done
printf "%0${retlen}x" "$ret"
}
ath10kcal_die() {
echo "ath10cal: " "$*"
exit 1
}
ath10kcal_from_file() {
local source=$1
local offset=$(($2))
local count=$(($3))
dd if=$source of=/lib/firmware/$FIRMWARE iflag=skip_bytes bs=$count skip=$offset count=1 2>/dev/null || \
ath10kcal_die "failed to extract calibration data from $source"
}
ath10kcal_extract() {
local part=$1
local offset=$(($2))
local count=$(($3))
local mtd
mtd=$(find_mtd_chardev $part)
[ -n "$mtd" ] || \
ath10kcal_die "no mtd device found for partition $part"
dd if=$mtd of=/lib/firmware/$FIRMWARE iflag=skip_bytes bs=$count skip=$offset count=1 2>/dev/null || \
ath10kcal_die "failed to extract calibration data from $mtd"
}
ath10kcal_patch_mac() {
local mac=$1
[ -z "$mac" ] && return
macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc oflag=seek_bytes bs=6 seek=6 count=1
}
ath10kcal_patch_mac_crc() {
local mac=$1
local mac_offset=6
local chksum_offset=2
local xor_mac
local xor_fw_mac
local xor_fw_chksum
xor_fw_mac=$(hexdump -v -n 6 -s $mac_offset -e '/1 "%02x"' /lib/firmware/$FIRMWARE)
xor_fw_mac="${xor_fw_mac:0:4} ${xor_fw_mac:4:4} ${xor_fw_mac:8:4}"
ath10kcal_patch_mac "$mac" && {
xor_mac=${mac//:/}
xor_mac="${xor_mac:0:4} ${xor_mac:4:4} ${xor_mac:8:4}"
xor_fw_chksum=$(hexdump -v -n 2 -s $chksum_offset -e '/1 "%02x"' /lib/firmware/$FIRMWARE)
xor_fw_chksum=$(xor $xor_fw_chksum $xor_fw_mac $xor_mac)
printf "%b" "\x${xor_fw_chksum:0:2}\x${xor_fw_chksum:2:2}" | \
dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 seek=$chksum_offset count=2
}
}
[ -e /lib/firmware/$FIRMWARE ] && exit 0
. /lib/functions.sh
. /lib/functions/system.sh
board=$(board_name)
case "$FIRMWARE" in
"ath10k/cal-pci-0000:00:00.0.bin")
case $board in
comfast,cf-wr650ac-v1|\
comfast,cf-wr650ac-v2|\
yuncore,a770)
ath10kcal_extract "art" 0x5000 0x844
;;
devolo,dvl1200e|\
devolo,dvl1200i|\
devolo,dvl1750c|\
devolo,dvl1750e|\
devolo,dvl1750i|\
devolo,dvl1750x)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 0x0) -1)
;;
dlink,dir-859-a1)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(mtd_get_mac_ascii devdata "wlan5mac")
;;
elecom,wrc-1750ghbk2-i)
ath10kcal_extract "art" 0x5000 0x844
;;
engenius,ecb1750)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(mtd_get_mac_ascii u-boot-env athaddr)
;;
engenius,epg5000|\
iodata,wn-ac1167dgr|\
iodata,wn-ac1600dgr2)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
;;
engenius,ews511ap)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
;;
glinet,gl-ar750|\
glinet,gl-ar750s)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) +1)
;;
glinet,gl-x750)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) +2)
;;
nec,wg800hp)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac_crc $(mtd_get_mac_text board_data 0x880)
;;
ocedo,koala|\
ocedo,ursus)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(mtd_get_mac_binary art 0xc)
;;
openmesh,om5p-ac-v2)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
;;
qihoo,c301)
ath10kcal_extract "radiocfg" 0x5000 0x844
ath10kcal_patch_mac_crc $(mtd_get_mac_ascii devdata wlan5mac)
;;
tplink,archer-a7-v5|\
tplink,archer-c2-v3|\
tplink,archer-c7-v4|\
tplink,archer-c7-v5|\
tplink,archer-c25-v1)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary info 0x8) -1)
;;
tplink,archer-c5-v1|\
tplink,archer-c7-v2)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary u-boot 0x1fc00) -1)
;;
tplink,archer-d50-v1)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary romfile 0xf100) +2)
;;
tplink,re350k-v1)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary config 0x10008) +2)
;;
tplink,re355-v1|\
tplink,re450-v1)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -2)
;;
tplink,re450-v2)
ath10kcal_extract "art" 0x5000 0x844
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary info 0x8) +1)
;;
ubnt,unifiac-lite|\
ubnt,unifiac-mesh|\
ubnt,unifiac-mesh-pro|\
ubnt,lap-120|\
ubnt,nanobeam-ac|\
ubnt,nanostation-ac|\
ubnt,nanostation-ac-loco|\
ubnt,unifiac-pro)
ath10kcal_extract "EEPROM" 0x5000 0x844
;;
esac
;;
"ath10k/pre-cal-pci-0000:00:00.0.bin")
case $board in
dlink,dir-842-c1|\
dlink,dir-842-c2|\
dlink,dir-842-c3|\
nec,wg1200cr)
ath10kcal_extract "art" 0x5000 0x2f20
ath10kcal_patch_mac_crc $(mtd_get_mac_ascii devdata wlan5mac)
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
;;
netgear,ex6400|\
netgear,ex7300)
ath10kcal_extract "caldata" 0x5000 0x2f20
ath10kcal_patch_mac $(mtd_get_mac_binary caldata 0xc)
;;
phicomm,k2t)
ath10kcal_extract "art" 0x5000 0x2f20
ath10kcal_patch_mac_crc $(k2t_get_mac "5g_mac")
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
;;
tplink,archer-c58-v1|\
tplink,archer-c59-v1|\
tplink,archer-c60-v1|\
tplink,archer-c60-v2|\
tplink,archer-c6-v2)
ath10kcal_extract "art" 0x5000 0x2f20
ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary mac 0x8) -1)
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
;;
esac
;;
*)
exit 1
;;
esac
I'm using C2 version, with USB, suppose to run... I tried the snapshot build from the website but can't work. Tried C1, C2 and C3 firmware also cannot.
This post has been edited by kereta: Sep 1 2019, 11:49 AM