ath79/nand: add support for Netgear R6100 - help

Thomas Mutschlechner thomas at mutschlechner.org
Mon Jun 21 07:08:53 PDT 2021


Hi,

I'd like to help to port R6100 to ath79. I've experience with serial
interfaces/resetting/flashing/testing put not contributing code to openwrt.
The WNDR4300SW and WNDR3700 v4 ath9 look technically similar to the R6100.
Enclosed are relevant data [1] gathered running 19.07.7.
Thanks in advance for your help.

Best Regards
Thomas
[1]
https://openwrt.org/docs/guide-developer/adding_new_device

dmesg
[    0.000000] Linux version 4.14.221 (builder at buildhost) (gcc version
7.5.0 (OpenWrt GCC 7.5.0 r11306-c4a6851c72)) #0 Mon Feb 15 15:22:37 2021
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 2
[    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] free_area_init_node: node 0, pgdat 80538bc0, node_mem_map
81000020
[    0.000000]   Normal zone: 256 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 0x8053c740 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: 32512
[    0.000000] Kernel command line:  board=R6100 console=ttyS0,115200
mtdparts=ar934x-nfc:128k(u-boot)ro,256k(caldata)ro,256k(caldata-backup),512k(config),512k(pot),2048k(kernel),122240k(ubi),25600k at 0x1a0000(firmware),2048k(language),3072k(traffic_meter)
rootfstype=squashfs noinitrd
[    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] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124100K/131072K available (4263K kernel code,
176K rwdata, 528K rodata, 208K init, 213K bss, 6972K 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] Clocks: CPU:560.000MHz, DDR:400.000MHz, AHB:200.000MHz,
Ref:40.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 6825930166 ns
[    0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps
every 7669584382ns
[    0.008331] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.084944] pid_max: default: 32768 minimum: 301
[    0.090073] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097138] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
bytes)
[    0.106953] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.117467] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.125182] NET: Registered protocol family 16
[    0.131313] MIPS: machine is NETGEAR R6100
[    0.135882] ar71xx: using random MAC address for eth0
[    0.370229] ar71xx: using random MAC address for eth1
[    0.614734] registering PCI controller with io_map_base unset
[    0.634182] PCI host bridge to bus 0000:00
[    0.638561] pci_bus 0000:00: root bus resource [mem
0x10000000-0x13ffffff]
[    0.645930] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.651858] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.659098] pci_bus 0000:00: No busn resource found for root bus,
will use [bus 00-ff]
[    0.667564] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[    0.667581] pci 0000:00:00.0: invalid calibration data
[    0.673104] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.673161] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.673243] pci 0000:00:00.0: supports D1 D2
[    0.673468] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.673497] pci 0000:00:00.0: BAR 0: assigned [mem
0x10000000-0x101fffff 64bit]
[    0.681294] pci 0000:00:00.0: BAR 6: assigned [mem
0x10200000-0x1020ffff pref]
[    0.692398] clocksource: Switched to clocksource MIPS
[    0.698855] NET: Registered protocol family 2
[    0.704487] TCP established hash table entries: 1024 (order: 0, 4096
bytes)
[    0.711916] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.718737] TCP: Hash tables configured (established 1024 bind 1024)
[    0.725663] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.731896] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.738870] NET: Registered protocol family 1
[    0.743594] PCI: CLS 0 bytes, default 32
[    0.746660] Crashlog allocated RAM at address 0x3f00000
[    0.753637] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.765860] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.772065] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.793842] io scheduler noop registered
[    0.798021] io scheduler deadline registered (default)
[    0.803975] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.812914] console [ttyS0] disabled
[    0.836817] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11,
base_baud = 2500000) is a 16550A
[    0.846027] console [ttyS0] enabled
[    0.853462] bootconsole [early0] disabled
[    0.869045] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[    0.875543] nand: Micron NAND 128MiB 3,3V 8-bit
[    0.880145] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048,
OOB size: 64
[    0.887864] Scanning device for bad blocks
[    0.895339] random: fast init done
[    0.976126] 10 cmdlinepart partitions found on MTD device ar934x-nfc
[    0.982605] Creating 10 MTD partitions on "ar934x-nfc":
[    0.987919] 0x000000000000-0x000000020000 : "u-boot"
[    0.994371] 0x000000020000-0x000000060000 : "caldata"
[    1.001577] 0x000000060000-0x0000000a0000 : "caldata-backup"
[    1.008757] 0x0000000a0000-0x000000120000 : "config"
[    1.015908] 0x000000120000-0x0000001a0000 : "pot"
[    1.022046] 0x0000001a0000-0x0000003a0000 : "kernel"
[    1.029220] 0x0000003a0000-0x000007b00000 : "ubi"
[    1.036036] 0x0000001a0000-0x000001aa0000 : "firmware"
[    1.398042] 0x000001aa0000-0x000001ca0000 : "language"
[    1.405026] 0x000001ca0000-0x000001fa0000 : "traffic_meter"
[    1.412868] libphy: Fixed MDIO Bus: probed
[    1.429325] libphy: ag71xx_mdio: probed
[    2.064374] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:00
[uid=004dd042, driver=Generic PHY]
[    2.074265] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[    2.704285] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.756475] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    2.764931] NET: Registered protocol family 10
[    2.774940] Segment Routing with IPv6
[    2.778777] NET: Registered protocol family 17
[    2.783396] bridge: filtering via arp/ip/ip6tables is no longer
available by default. Update your scripts to load br_netfilter if you
need this.
[    2.797115] 8021q: 802.1Q VLAN Support v1.8
[    2.805228] UBI: auto-attach mtd6
[    2.808625] ubi0: attaching mtd6
[    3.831874] random: crng init done
[    4.139094] ubi0: fixable bit-flip detected at PEB 868
[    4.281654] ubi0: scanning is finished
[    4.303050] ubi0: attached mtd6 (name "ubi", size 119 MiB)
[    4.308626] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976
bytes
[    4.315655] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.322555] ubi0: VID header offset: 2048 (aligned 2048), data
offset: 4096
[    4.329612] ubi0: good PEBs: 955, bad PEBs: 0, corrupted PEBs: 0
[    4.335718] ubi0: user volume: 2, internal volumes: 1, max. volumes
count: 128
[    4.343060] ubi0: max/mean erase counter: 48/8, WL threshold: 4096,
image sequence number: 1540979924
[    4.352429] ubi0: available PEBs: 0, total reserved PEBs: 955, PEBs
reserved for bad PEB handling: 20
[    4.361826] ubi0: background thread "ubi_bgt0d" started, PID 345
[    4.369561] block ubiblock0_0: created from ubi0:0(rootfs)
[    4.375204] ubiblock: device ubiblock0_0 (rootfs) set to be root
filesystem
[    4.382268] hctosys: unable to open rtc device (rtc0)
[    4.395961] VFS: Mounted root (squashfs filesystem) readonly on
device 254:0.
[    4.404294] Freeing unused kernel memory: 208K
[    4.408801] This architecture does not have kernel memory protection.
[    5.003439] init: Console is alive
[    5.007139] init: - watchdog -
[    6.175017] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.233045] usbcore: registered new interface driver usbfs
[    6.238681] usbcore: registered new interface driver hub
[    6.244215] usbcore: registered new device driver usb
[    6.255127] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.263585] ehci-platform: EHCI generic platform driver
[    6.268985] ehci-platform ehci-platform: EHCI Host Controller
[    6.274925] ehci-platform ehci-platform: new USB bus registered,
assigned bus number 1
[    6.285077] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    6.312435] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    6.319606] hub 1-0:1.0: USB hub found
[    6.323888] hub 1-0:1.0: 1 port detected
[    6.329114] kmodloader: done loading kernel modules from
/etc/modules-boot.d/*
[    6.346960] init: - preinit -
[    6.792436] usb 1-1: new high-speed USB device number 2 using
ehci-platform
[    7.440055] print_req_error: I/O error, dev mtdblock1, sector 8
[    7.486118] print_req_error: I/O error, dev mtdblock1, sector 8
[    7.540100] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.870280] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started,
PID 435
[   10.974478] UBIFS (ubi0:1): recovery needed
[   11.188920] UBIFS (ubi0:1): recovery completed
[   11.193599] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1,
name "rootfs_data"
[   11.201546] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB),
min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.211634] UBIFS (ubi0:1): FS size: 113643520 bytes (108 MiB, 895
LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs)
[   11.222407] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.229118] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0),
UUID C395A2AD-AD8B-4340-8097-601A5CC7ACDC, small LPT model
[   11.254929] mount_root: loading kmods from internal overlay
[   11.361568] kmodloader: loading kernel modules from
/tmp/overlay/upper/etc/modules-boot.d/*
[   11.651806] SCSI subsystem initialized
[   11.685083] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.691648] scsi host0: usb-storage 1-1:1.0
[   11.696475] usbcore: registered new interface driver usb-storage
[   11.704131] kmodloader: done loading kernel modules from
/tmp/overlay/upper/etc/modules-boot.d/*
[   11.756844] print_req_error: I/O error, dev mtdblock0, sector 48
[   11.776335] print_req_error: I/O error, dev mtdblock1, sector 8
[   11.804299] print_req_error: I/O error, dev mtdblock1, sector 8
[   11.810320] Buffer I/O error on dev mtdblock1, logical block 1, async
page read
[   12.037864] block: attempting to load
/tmp/ubifs_cfg/upper/etc/config/fstab
[   12.052715] block: extroot: not configured
[   12.060361] mount_root: switching to ubifs overlay
[   12.100039] urandom-seed: Seeding with /etc/urandom.seed
[   12.325024] procd: - early -
[   12.328053] procd: - watchdog -
[   12.764773] scsi 0:0:0:0: Direct-Access     Generic  Flash Disk
8.07 PQ: 0 ANSI: 2
[   12.777045] sd 0:0:0:0: [sda] 3891200 512-byte logical blocks: (1.99
GB/1.86 GiB)
[   12.792943] sd 0:0:0:0: [sda] Write Protect is off
[   12.797824] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[   12.802571] sd 0:0:0:0: [sda] No Caching mode page found
[   12.808014] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   12.829470]  sda: sda1
[   12.836965] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   13.333169] procd: - watchdog -
[   13.336698] procd: - ubus -
[   13.498417] procd: - init -
[   14.483986] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.579284] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.614517] Loading modules backported from Linux version
v4.19.161-0-gdaefdc9eb24b
[   14.622293] Backport generated by backports.git v4.19.161-1-0-g4bb568fe
[   14.655135] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.679966] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   14.855435] urngd: v1.0.2 started.
[   14.898912] xt_time: kernel timezone is -0000
[   15.178479] PPP generic driver version 2.4.2
[   15.193497] NET: Registered protocol family 24
[   15.265662] pci 0000:00:00.0: using irq 40 for pin 1
[   15.270719] ath10k 4.19 driver, optimized for CT firmware, probing
pci device: 0x3c.
[   15.293351] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   15.299271] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1
irq_mode 0 reset_mode 0
[   15.614036] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/fwcfg-pci-0000:00:00.0.txt failed with error -2
[   15.624776] ath10k_pci 0000:00:00.0: Falling back to user helper
[   15.987905] EXT4-fs (sda1): recovery complete
[   16.002436] EXT4-fs (sda1): mounted filesystem with ordered data
mode. Opts:
[   16.189996] firmware ath10k!fwcfg-pci-0000:00:00.0.txt:
firmware_loading_store: map pages failed
[   16.199299] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   16.210198] ath10k_pci 0000:00:00.0: Falling back to user helper
[   16.397987] firmware ath10k!pre-cal-pci-0000:00:00.0.bin:
firmware_loading_store: map pages failed
[   16.409656] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/ct-firmware-5.bin failed with error -2
[   16.420840] ath10k_pci 0000:00:00.0: Falling back to user helper
[   16.608683] firmware ath10k!QCA988X!hw2.0!ct-firmware-5.bin:
firmware_loading_store: map pages failed
[   16.618412] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/ct-firmware-2.bin failed with error -2
[   16.629577] ath10k_pci 0000:00:00.0: Falling back to user helper
[   16.815806] firmware ath10k!QCA988X!hw2.0!ct-firmware-2.bin:
firmware_loading_store: map pages failed
[   16.825538] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
[   16.836441] ath10k_pci 0000:00:00.0: Falling back to user helper
[   17.024604] firmware ath10k!QCA988X!hw2.0!firmware-6.bin:
firmware_loading_store: map pages failed
[   17.034073] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/firmware-5.bin failed with error -2
[   17.044974] ath10k_pci 0000:00:00.0: Falling back to user helper
[   17.234309] firmware ath10k!QCA988X!hw2.0!firmware-5.bin:
firmware_loading_store: map pages failed
[   17.243773] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/firmware-4.bin failed with error -2
[   17.254678] ath10k_pci 0000:00:00.0: Falling back to user helper
[   17.443044] firmware ath10k!QCA988X!hw2.0!firmware-4.bin:
firmware_loading_store: map pages failed
[   17.452507] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/firmware-3.bin failed with error -2
[   17.463389] ath10k_pci 0000:00:00.0: Falling back to user helper
[   17.651882] firmware ath10k!QCA988X!hw2.0!firmware-3.bin:
firmware_loading_store: map pages failed
[   17.667030] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c
chip_id 0x043222ff sub 0000:0000
[   17.676464] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1
tracing 0 dfs 1 testmode 0
[   17.690148] ath10k_pci 0000:00:00.0: firmware ver
10.1-ct-8x-__fW-022-538f0906 api 2 features
wmi-10.x,has-wmi-mgmt-tx,mfp,txstatus-noack,wmi-10.x-CT,ratemask-CT,txrate-CT,get-temp-CT,tx-rc-CT,cust-stats-CT,retry-gt2-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT
crc32 e1c91a74
[   17.803158] ath10k_pci 0000:00:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   17.813794] ath10k_pci 0000:00:00.0: Falling back to user helper
[   17.932862] firmware ath10k!QCA988X!hw2.0!board-2.bin:
firmware_loading_store: map pages failed
[   17.942270] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A
crc32 bebc7c08
[   18.895208] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers:
127  tid: 256
[   18.913188] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[   18.919568] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424
sw-crypt: 0 ct-sta: 0'
[   18.927733] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 20984
iram: 25656'
[   18.984928] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 2 htt-op 2
cal file max-sta 128 raw 0 hwcrypto 1
[   19.000179] ath10k_pci 0000:00:00.0: NOTE:  Firmware DBGLOG output
disabled in debug_mask: 0x10000000
[   19.136267] ath: EEPROM regdomain: 0x0
[   19.136276] ath: EEPROM indicates default country code should be used
[   19.136280] ath: doing EEPROM country->regdmn map search
[   19.136297] ath: country maps to regdmn code: 0x3a
[   19.136303] ath: Country alpha2 being used: US
[   19.136308] ath: Regpair used: 0x3a
[   19.277961] ath: EEPROM regdomain: 0x0
[   19.277971] ath: EEPROM indicates default country code should be used
[   19.277975] ath: doing EEPROM country->regdmn map search
[   19.277992] ath: country maps to regdmn code: 0x3a
[   19.277998] ath: Country alpha2 being used: US
[   19.278002] ath: Regpair used: 0x3a
[   19.292178] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   19.294346] ieee80211 phy1: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
[   19.332916] kmodloader: done loading kernel modules from /etc/modules.d/*
[   33.714606] print_req_error: I/O error, dev mtdblock0, sector 48
[   33.768164] print_req_error: I/O error, dev mtdblock1, sector 8
[   33.815148] print_req_error: I/O error, dev mtdblock1, sector 8
[   33.821173] Buffer I/O error on dev mtdblock1, logical block 1, async
page read
[   41.590254] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   41.638425] br-lan: port 1(eth1.1) entered blocking state
[   41.643978] br-lan: port 1(eth1.1) entered disabled state
[   41.649795] device eth1.1 entered promiscuous mode
[   41.654716] device eth1 entered promiscuous mode
[   41.782686] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   44.431039] ath: EEPROM regdomain: 0x8024
[   44.435170] ath: EEPROM indicates we should expect a country code
[   44.441346] ath: doing EEPROM country->regdmn map search
[   44.446761] ath: country maps to regdmn code: 0x3b
[   44.451617] ath: Country alpha2 being used: AU
[   44.456140] ath: Regpair used: 0x3b
[   44.459679] ath: regdomain 0x8024 dynamically updated by user
[   44.465607] ath: EEPROM regdomain: 0x8024
[   44.469673] ath: EEPROM indicates we should expect a country code
[   44.475875] ath: doing EEPROM country->regdmn map search
[   44.481263] ath: country maps to regdmn code: 0x3b
[   44.486137] ath: Country alpha2 being used: AU
[   44.490644] ath: Regpair used: 0x3b
[   44.494200] ath: regdomain 0x8024 dynamically updated by user
[   45.433371] ath: EEPROM regdomain: 0x8028
[   45.437447] ath: EEPROM indicates we should expect a country code
[   45.443684] ath: doing EEPROM country->regdmn map search
[   45.449069] ath: country maps to regdmn code: 0x37
[   45.453948] ath: Country alpha2 being used: AT
[   45.458450] ath: Regpair used: 0x37
[   45.461990] ath: regdomain 0x8028 dynamically updated by user
[   45.467921] ath: EEPROM regdomain: 0x8028
[   45.471984] ath: EEPROM indicates we should expect a country code
[   45.478188] ath: doing EEPROM country->regdmn map search
[   45.483591] ath: country maps to regdmn code: 0x37
[   45.488450] ath: Country alpha2 being used: AT
[   45.492972] ath: Regpair used: 0x37
[   45.496511] ath: regdomain 0x8028 dynamically updated by user
[   48.534990] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   50.190172] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers:
127  tid: 256
[   50.208178] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[   50.214359] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424
sw-crypt: 0 ct-sta: 0'
[   50.223078] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 20984
iram: 25656'
[   50.307031] ath10k_pci 0000:00:00.0: pdev param 0 not supported by
firmware
[   50.323908] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[   50.330173] br-lan: port 2(wlan1) entered blocking state
[   50.335633] br-lan: port 2(wlan1) entered disabled state
[   50.341326] device wlan1 entered promiscuous mode
[   50.356632] br-lan: port 3(wlan0-1) entered blocking state
[   50.362214] br-lan: port 3(wlan0-1) entered disabled state
[   50.368342] device wlan0-1 entered promiscuous mode
[   50.393416] ath: EEPROM regdomain: 0x8024
[   50.397496] ath: EEPROM indicates we should expect a country code
[   50.403740] ath: doing EEPROM country->regdmn map search
[   50.409129] ath: country maps to regdmn code: 0x3b
[   50.414022] ath: Country alpha2 being used: AU
[   50.418610] ath: Regpair used: 0x3b
[   50.422155] ath: regdomain 0x8024 dynamically updated by user
[   50.428103] ath: EEPROM regdomain: 0x8024
[   50.432165] ath: EEPROM indicates we should expect a country code
[   50.438375] ath: doing EEPROM country->regdmn map search
[   50.443795] ath: country maps to regdmn code: 0x3b
[   50.448649] ath: Country alpha2 being used: AU
[   50.453175] ath: Regpair used: 0x3b
[   50.456710] ath: regdomain 0x8024 dynamically updated by user
[   50.587716] ath: EEPROM regdomain: 0x8028
[   50.591911] ath: EEPROM indicates we should expect a country code
[   50.598244] ath: doing EEPROM country->regdmn map search
[   50.603674] ath: country maps to regdmn code: 0x37
[   50.608529] ath: Country alpha2 being used: AT
[   50.613051] ath: Regpair used: 0x37
[   50.616591] ath: regdomain 0x8028 dynamically updated by user
[   50.622521] ath: EEPROM regdomain: 0x8028
[   50.626680] ath: EEPROM indicates we should expect a country code
[   50.632900] ath: doing EEPROM country->regdmn map search
[   50.638289] ath: country maps to regdmn code: 0x37
[   50.643165] ath: Country alpha2 being used: AT
[   50.647669] ath: Regpair used: 0x37
[   50.651209] ath: regdomain 0x8028 dynamically updated by user
[   58.848191] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   58.854993] br-lan: port 2(wlan1) entered blocking state
[   58.860402] br-lan: port 2(wlan1) entered forwarding state
[   58.879950] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready


cat /proc/cmdline
 board=R6100 console=ttyS0,115200
mtdparts=ar934x-nfc:128k(u-boot)ro,256k(caldata)ro,256k(caldata-backup),512k(config),512k(pot),2048k(kernel),122240k(ubi),25600k at 0x1a0000(firmware),2048k(language),3072k(traffic_meter)
rootfstype=squashfs noinitrd


cat /proc/cpuinfo
system type		: Atheros AR9344 rev 2
machine			: NETGEAR R6100
processor		: 0
cpu model		: MIPS 74Kc V4.12
BogoMIPS		: 278.93
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
Options implemented	: tlb 4kex 4k_cache prefetch mcheck ejtag llsc
dc_aliases perf_cntr_intr_bit nan_legacy nan_2008 perf
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available


cat /proc/meminfo
MemTotal:         124308 kB
MemFree:           48760 kB
MemAvailable:      35732 kB
Buffers:            6864 kB
Cached:            12996 kB
SwapCached:            0 kB
Active:            33188 kB
Inactive:           8452 kB
Active(anon):      21836 kB
Inactive(anon):       32 kB
Active(file):      11352 kB
Inactive(file):     8420 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:         21788 kB
Mapped:             4392 kB
Shmem:                92 kB
Slab:               8948 kB
SReclaimable:       3316 kB
SUnreclaim:         5632 kB
KernelStack:         408 kB
PageTables:          324 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       62152 kB
Committed_AS:      25248 kB
VmallocTotal:    1048372 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB


cat /proc/devices
Character devices:
  1 mem
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
 10 misc
 90 mtd
108 ppp
128 ptm
136 pts
180 usb
189 usb_device
251 ubi0
252 watchdog
253 rtc
254 gpiochip

Block devices:
  8 sd
 31 mtdblock
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
254 ubiblock
259 blkext


ls /sys/devices/platform
Fixed MDIO bus.0
ag71xx-mdio.1
ag71xx.0
ag71xx.1
alarmtimer
ar724x-pci
ar934x-nfc
ar934x_wmac
ath79-gpio
ath79-wdt
ehci-platform
gpio-keys-polled
leds-gpio
regulatory.0
serial8250
serial8250.0
uevent


cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00020000 "u-boot"
mtd1: 00040000 00020000 "caldata"
mtd2: 00040000 00020000 "caldata-backup"
mtd3: 00080000 00020000 "config"
mtd4: 00080000 00020000 "pot"
mtd5: 00200000 00020000 "kernel"
mtd6: 07760000 00020000 "ubi"
mtd7: 01900000 00020000 "firmware"
mtd8: 00200000 00020000 "language"
mtd9: 00300000 00020000 "traffic_meter"


cat /sys/class/mtd/mtd*/offset
0
131072
393216
655360
1179648
1703936
3801088
1703936
27918336
30015488


ifconfig -a
br-lan    Link encap:Ethernet  HWaddr E4:F4:C6:F4:76:52
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::e6f4:c6ff:fef4:7652/64 Scope:Link
          inet6 addr: fd5c:467a:1dd7::1/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22047 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17047 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1337715 (1.2 MiB)  TX bytes:1127243 (1.0 MiB)

eth0      Link encap:Ethernet  HWaddr E4:F4:C6:F4:76:53
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4

eth1      Link encap:Ethernet  HWaddr E4:F4:C6:F4:76:52
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:5

eth1.1    Link encap:Ethernet  HWaddr E4:F4:C6:F4:76:52
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:14975 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14975 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1121966 (1.0 MiB)  TX bytes:1121966 (1.0 MiB)

wlan0     Link encap:Ethernet  HWaddr E4:F4:C6:F4:76:54
          inet6 addr: fe80::e6f4:c6ff:fef4:7654/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:355340 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197408 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:358958926 (342.3 MiB)  TX bytes:31615152 (30.1 MiB)

wlan0-1   Link encap:Ethernet  HWaddr E6:F4:C6:F4:76:54
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan1     Link encap:Ethernet  HWaddr E4:F4:C6:F4:76:52
          inet6 addr: fe80::e6f4:c6ff:fef4:7652/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:195643 errors:0 dropped:0 overruns:0 frame:0
          TX packets:355083 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26267406 (25.0 MiB)  TX bytes:367850439 (350.8 MiB)


ls /sys/class/net
br-lan
eth0
eth1
eth1.1
lo
wlan0
wlan0-1
wlan1


brctl show
bridge name	bridge id		STP enabled	interfaces
br-lan		7fff.e4f4c6f47652	no		eth1.1
							wlan1
							wlan0-1
							wlan0


cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/ath79-gpio, ath79-gpio:
 gpio-0   (                    |netgear:blue:wlan   ) out lo
 gpio-1   (                    |RFKILL switch       ) in  hi
 gpio-3   (                    |WPS button          ) in  hi
 gpio-11  (                    |netgear:blue:usb    ) out lo
 gpio-12  (                    |Reset button        ) in  hi
 gpio-13  (                    |netgear:green:wan   ) out hi
 gpio-14  (                    |netgear:amber:power ) out hi
 gpio-15  (                    |netgear:amber:wan   ) out hi
 gpio-16  (                    |USB power           ) out hi
 gpio-17  (                    |netgear:green:power ) out lo

gpiochip1: GPIOs 489-511, ath9k-phy1:
 gpio-490 (                    |ath9k-phy1          ) in  lo




More information about the openwrt-devel mailing list