https://openwrt.org/toh/hwdata/mikrotik/mikrotik_rb952ui-5ac2nd_hap_ac_…
https://openwrt.org/toh/mikrotik/rb941_2nd
https://forum.lede-project.org/t/mikrotik-rb952ui-5ac2nd-tc-some-questi…
https://openwrt.org/toh/mikrotik/common
https://openwrt.org/toh/mikrotik/rb750_r2
https://openwrt.org/toh/start?dataflt%5BBrand*%7E%5D=mikrotik
https://bugs.openwrt.org/index.php?string=mikrotik&project=2&do=index&t…
provável problema no reconhecimento da memória flash. https://forum.openwrt.org/viewtopic.php?id=37002&p=5
https://github.com/robimarko/openwrt/commit/31e9e1746755852a83eda500f70…
https://patchwork.ozlabs.org/patch/935094/
https://openwrt.org/docs/guide-developer/build-system/use-patches-with-…
compilar firmware com patch da rom:
make target/linux/{clean,prepare} V=s QUILT=1
cd build_dir/target-mips_24kc_musl/linux-ar71xx_mikrotik/linux-4.9.111
quilt push -a
quilt new generic/062-pending-0009-mtd-spi-nor-Add-support-for-w25q128jv.patch
quilt edit drivers/mtd/spi-nor/spi-nor.c
quilt diff
quilt refresh
cd ../../../../
logs:
root@OpenWrt:~# dmesg
[ 0.000000] Linux version 4.9.111 (xana@lapxana) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7452-7e82418372) ) #0 Tue Jul 10 17:30:12 2018
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 04000000 @ 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-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 804a5c34, node_mem_map 81000020
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: no-uart no-buzzer no-nand parts=1 boot_part_size=16777216 gpio=0 HZ=325000000 mem=64M kmac=CC:2D:E0:78:A9:8A board=952-hb board=952-hb ver=6.42.5 hw_opt=00294005 boot=1 mlc=11 console=ttyS0,115200 rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 57468K/65536K available (3416K kernel code, 155K rwdata, 808K rodata, 2460K init, 211K bss, 8068K 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:650.000MHz, DDR:600.000MHz, AHB:300.000MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
[ 0.000009] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
[ 0.008864] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
[ 0.071954] pid_max: default: 32768 minimum: 301
[ 0.077302] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.084810] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.095489] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.106685] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.114183] NET: Registered protocol family 16
[ 0.122909] MIPS: machine is MikroTik RouterBOARD 952Ui-5ac2nD
[ 0.133861] registering PCI controller with io_map_base unset
[ 0.634826] PCI host bridge to bus 0000:00
[ 0.639488] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[ 0.647330] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.653652] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.661358] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.670373] pci 0000:00:00.0: [168c:0050] type 00 class 0x028000
[ 0.670421] pci 0000:00:00.0: reg 0x10: [mem 0x10000000-0x101fffff 64bit]
[ 0.670500] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.670571] pci 0000:00:00.0: supports D1
[ 0.670580] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.670789] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.670818] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
[ 0.679157] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
[ 0.687360] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.693759] clocksource: Switched to clocksource MIPS
[ 0.700548] NET: Registered protocol family 2
[ 0.706323] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.714298] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.721522] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.728847] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.735517] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.742867] NET: Registered protocol family 1
[ 0.747887] PCI: CLS 0 bytes, default 32
[ 2.593772] random: fast init done
[ 3.370533] Crashlog allocated RAM at address 0x3f00000
[ 3.377538] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 3.391551] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.398206] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 3.501441] io scheduler noop registered
[ 3.505946] io scheduler deadline registered (default)
[ 3.512069] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 3.519741] console [ttyS0] disabled
[ 3.543938] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 3.553726] console [ttyS0] enabled
[ 3.561283] bootconsole [early0] disabled
[ 3.573621] m25p80 spi0.0: found w25q128jv, expected m25p80
[ 3.588883] m25p80 spi0.0: w25q128jv (16384 Kbytes)
[ 3.635949] Creating 6 MTD partitions on "spi0.0":
[ 3.640916] 0x000000000000-0x00000000e000 : "routerboot"
[ 3.647881] 0x00000000e000-0x00000000f000 : "hard_config"
[ 3.655028] 0x00000000f000-0x000000010000 : "bios"
[ 3.661486] 0x000000010000-0x00000001f000 : "routerboot2"
[ 3.668653] 0x00000001f000-0x000000020000 : "soft_config"
[ 3.675835] 0x000000020000-0x000001000000 : "firmware"
[ 3.683627] libphy: Fixed MDIO Bus: probed
[ 3.810131] libphy: ag71xx_mdio: probed
[ 4.446332] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
[ 4.456486] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 5.086287] ag71xx-mdio.1: Found an AR934X built-in switch
[ 5.139632] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 5.149516] NET: Registered protocol family 10
[ 5.157020] NET: Registered protocol family 17
[ 5.161670] 8021q: 802.1Q VLAN Support v1.8
[ 5.184005] Freeing unused kernel memory: 2460K
[ 5.188689] This architecture does not have kernel memory protection.
[ 5.208733] init: Console is alive
[ 5.212481] init: - watchdog -
[ 5.237347] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.256191] usbcore: registered new interface driver usbfs
[ 5.261980] usbcore: registered new interface driver hub
[ 5.267612] usbcore: registered new device driver usb
[ 5.277927] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.285470] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.295251] init: - preinit -
[ 5.455674] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.483657] random: procd: uninitialized urandom read (4 bytes read)
[ 7.557367] eth0: link up (100Mbps/Full duplex)
[ 7.562094] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.612090] eth0: link down
[ 8.626204] procd: - early -
[ 8.629283] procd: - watchdog -
[ 9.179596] procd: - watchdog -
[ 9.183104] procd: - ubus -
[ 9.193333] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.236245] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.243240] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.250761] procd: - init -
[ 9.421706] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.432497] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.449714] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 9.458061] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 9.468119] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.481482] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 9.539637] xt_time: kernel timezone is -0000
[ 9.599987] PPP generic driver version 2.4.2
[ 9.606839] NET: Registered protocol family 24
[ 9.637032] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 9.917776] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[ 9.928860] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 10.005654] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[ 10.015226] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/cal-pci-0000:00:00.0.bin failed with error -2
[ 10.025945] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 10.194937] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9887/hw1.0/firmware-6.bin failed with error -2
[ 10.206042] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 10.308534] firmware ath10k!QCA9887!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 10.320391] ath10k_pci 0000:00:00.0: qca9887 hw1.0 target 0x4100016d chip_id 0x004000ff sub 0000:0000
[ 10.329978] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 10.343906] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00033 api 5 features no-p2p,ignore-otp,skip-clock-init,mfp,allows-mesh-bcast crc32 c232a0c3
[ 10.439546] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9887/hw1.0/board-2.bin failed with error -2
[ 10.450391] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 10.536136] firmware ath10k!QCA9887!hw1.0!board-2.bin: firmware_loading_store: map pages failed
[ 10.545614] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 546cca0d
[ 11.590618] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[ 11.725455] ath: EEPROM regdomain: 0x0
[ 11.725464] ath: EEPROM indicates default country code should be used
[ 11.725467] ath: doing EEPROM country->regdmn map search
[ 11.725479] ath: country maps to regdmn code: 0x3a
[ 11.725484] ath: Country alpha2 being used: US
[ 11.725487] ath: Regpair used: 0x3a
[ 11.804305] ath: EEPROM regdomain: 0x0
[ 11.804315] ath: EEPROM indicates default country code should be used
[ 11.804318] ath: doing EEPROM country->regdmn map search
[ 11.804333] ath: country maps to regdmn code: 0x3a
[ 11.804338] ath: Country alpha2 being used: US
[ 11.804342] ath: Regpair used: 0x3a
[ 11.815135] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 11.819336] ieee80211 phy1: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
[ 11.865009] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 12.311849] urandom_read: 5 callbacks suppressed
[ 12.311857] random: jshn: uninitialized urandom read (4 bytes read)
[ 21.374848] br-lan: port 1(eth1) entered blocking state
[ 21.380257] br-lan: port 1(eth1) entered disabled state
[ 21.386091] device eth1 entered promiscuous mode
[ 21.461390] br-lan: port 1(eth1) entered blocking state
[ 21.466822] br-lan: port 1(eth1) entered forwarding state
[ 21.472575] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 21.553307] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 22.371345] br-lan: port 1(eth1) entered disabled state
[ 23.637378] eth0: link up (100Mbps/Full duplex)
[ 23.642101] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 130.173806] random: crng init done
[ 192.115813] eth0: link down
[ 197.136203] eth1: link up (1000Mbps/Full duplex)
[ 197.141118] br-lan: port 1(eth1) entered blocking state
[ 197.146568] br-lan: port 1(eth1) entered forwarding state
[ 197.153922] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 203.557284] eth0: link up (100Mbps/Full duplex)root@OpenWrt:~# cat /proc/version
Linux version 4.9.111 (xana@lapxana) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7452-7e82418372) ) #0 Tue Jul 10 17:30:12 2018root@OpenWrt:~# cat /proc/cpuinfo
system type : Qualcomm Atheros QCA9533 ver 2 rev 0
machine : MikroTik RouterBOARD 952Ui-5ac2nD
processor : 0
cpu model : MIPS 24Kc V7.4
BogoMIPS : 432.53
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not availableroot@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 0000e000 00010000 "routerboot"
mtd1: 00001000 00010000 "hard_config"
mtd2: 00001000 00010000 "bios"
mtd3: 0000f000 00010000 "routerboot2"
mtd4: 00001000 00001000 "soft_config"
mtd5: 00fe0000 00010000 "firmware"root@OpenWrt:~# cat /proc/modules
ath9k 92760 1 - Live 0x82be0000
ath9k_common 11789 1 ath9k, Live 0x82b48000
pppoe 7920 0 - Live 0x82ad8000
ppp_async 6256 0 - Live 0x82b52000
ath9k_hw 337868 2 ath9k,ath9k_common, Live 0x82b80000
ath10k_pci 32323 0 - Live 0x82928000
ath10k_core 263118 1 ath10k_pci, Live 0x82a00000
ath 17523 4 ath9k,ath9k_common,ath9k_hw,ath10k_core, Live 0x828a8000
pppox 1386 1 pppoe, Live 0x8284e000
ppp_generic 21474 3 pppoe,ppp_async,pppox, Live 0x82930000
nf_conntrack_ipv6 5104 5 - Live 0x8284a000
mac80211 413704 2 ath9k,ath10k_core, Live 0x82980000
iptable_nat 784 1 - Live 0x82885000
ipt_REJECT 944 2 - Live 0x82848000
ipt_MASQUERADE 688 1 - Live 0x828a1000
cfg80211 211098 5 ath9k,ath9k_common,ath10k_core,ath,mac80211, Live 0x828c0000
xt_time 1648 0 - Live 0x82843000
xt_tcpudp 1744 10 - Live 0x82fff000
xt_state 720 0 - Live 0x82844000
xt_nat 1168 0 - Live 0x82845000
xt_multiport 1232 0 - Live 0x82ffc000
xt_mark 688 0 - Live 0x82ff5000
xt_mac 656 0 - Live 0x82fec000
xt_limit 1040 20 - Live 0x82ffa000
xt_conntrack 2224 14 - Live 0x82ff6000
xt_comment 528 125 - Live 0x82fdd000
xt_TCPMSS 2704 2 - Live 0x82ff3000
xt_REDIRECT 688 0 - Live 0x82fc9000
xt_LOG 784 0 - Live 0x82fee000
slhc 4379 1 ppp_generic, Live 0x82ff0000
nf_reject_ipv4 2179 1 ipt_REJECT, Live 0x82f9f000
nf_nat_redirect 987 1 xt_REDIRECT, Live 0x82fc8000
nf_nat_masquerade_ipv4 1468 1 ipt_MASQUERADE, Live 0x82fe7000
nf_conntrack_ipv4 4752 10 - Live 0x82fea000
nf_nat_ipv4 3409 1 iptable_nat, Live 0x839d2000
nf_nat 8939 4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4, Live 0x82fe4000
nf_log_ipv4 3184 0 - Live 0x839d8000
nf_defrag_ipv6 8814 1 nf_conntrack_ipv6, Live 0x82fe0000
nf_defrag_ipv4 822 1 nf_conntrack_ipv4, Live 0x839d7000
nf_conntrack_rtcache 2480 0 - Live 0x839d9000
nf_conntrack 49831 8 nf_conntrack_ipv6,xt_state,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_conntrack_rtcache, Live 0x82fd0000
iptable_mangle 976 1 - Live 0x8280c000
iptable_filter 752 1 - Live 0x82819000
ip_tables 9581 3 iptable_nat,iptable_mangle,iptable_filter, Live 0x82f98000
crc_ccitt 1035 1 ppp_async, Live 0x82809000
compat 7423 6 ath9k,ath9k_common,ath10k_pci,ath10k_core,mac80211,cfg80211, Live 0x82f94000
ledtrig_gpio 1936 0 - Live 0x82801000
ip6t_REJECT 976 2 - Live 0x8280a000
nf_reject_ipv6 2344 1 ip6t_REJECT, Live 0x82805000
nf_log_ipv6 3344 0 - Live 0x82807000
nf_log_common 2351 2 nf_log_ipv4,nf_log_ipv6, Live 0x82804000
ip6table_mangle 1200 1 - Live 0x82818000
ip6table_filter 688 1 - Live 0x82834000
ip6_tables 9441 2 ip6table_mangle,ip6table_filter, Live 0x8281c000
x_tables 12554 22 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables, Live 0x8283c000
ehci_hcd 33271 0 - Live 0x839e0000
gpio_button_hotplug 4592 0 - Live 0x82f8e000
usbcore 124235 1 ehci_hcd, Live 0x82fa0000
nls_base 5056 1 usbcore, Live 0x839ce000
usb_common 1534 1 usbcore, Live 0x839c6000root@OpenWrt:~# 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
254 gpiochipBlock devices:
259 blkext
31 mtdblock
254 ubiblockroot@OpenWrt:~# free
total used free shared buffers cached
Mem: 59928 20612 39316 76 0 9272
-/+ buffers/cache: 11340 48588
Swap: 0 0 0root@OpenWrt:~# cat /proc/meminfo
MemTotal: 59928 kB
MemFree: 39236 kB
MemAvailable: 32028 kB
Buffers: 0 kB
Cached: 9272 kB
SwapCached: 0 kB
Active: 3856 kB
Inactive: 6436 kB
Active(anon): 1064 kB
Inactive(anon): 32 kB
Active(file): 2792 kB
Inactive(file): 6404 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 1028 kB
Mapped: 1696 kB
Shmem: 76 kB
Slab: 4388 kB
SReclaimable: 956 kB
SUnreclaim: 3432 kB
KernelStack: 312 kB
PageTables: 188 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 29964 kB
Committed_AS: 3316 kB
VmallocTotal: 1048372 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kBroot@OpenWrt:~# cat /proc/iomem
00000000-03ffffff : System RAM
00060000-003b652f : Kernel code
003b6530-004a8fff : Kernel data
10000000-11ffffff : mem_base
10000000-11ffffff : PCI memory space
10000000-101fffff : 0000:00:00.0
10000000-101fffff : ath
10200000-1020ffff : 0000:00:00.0
14000000-14000fff : cfg_base
14000000-14000fff : cfg_base
18020000-180200ff : serial8250.0
18020000-1802001f : serial
18040000-180400ff : ath79-gpio
18060008-1806000f : ath79-wdt
18060008-1806000f : ath79-wdt
180c0000-180c0fff : crp_base
180c0000-180c0fff : crp_base
180f0000-180f00ff : ctrl_base
180f0000-180f00ff : ctrl_base
18100000-1811ffff : qca953x_wmac
19000000-190001ff : mac_base
1a000000-1a0001ff : mac_base
1a000000-1a0001ff : mdio_base
1b000000-1b0001ff : ehci-platform
1f000000-1fffffff : ath79-spi
1f000000-1fffffff : ath79-spiroot@OpenWrt:~# ps
PID USER VSZ STAT COMMAND
1 root 1540 S /sbin/procd
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW< [kworker/0:0H]
6 root 0 SW [kworker/u2:0]
7 root 0 SW< [lru-add-drain]
8 root 0 SW [kworker/u2:1]
34 root 0 SW [oom_reaper]
79 root 0 SW< [writeback]
81 root 0 SW< [crypto]
82 root 0 SW< [bioset]
84 root 0 SW< [kblockd]
111 root 0 SW [kworker/0:1]
118 root 0 SW [kswapd0]
178 root 0 SW [spi0]
199 root 0 SW< [bioset]
206 root 0 SW< [bioset]
211 root 0 SW< [bioset]
216 root 0 SW< [bioset]
221 root 0 SW< [bioset]
226 root 0 SW< [bioset]
288 root 0 SW< [ipv6_addrconf]
389 root 1184 S /sbin/ubusd
390 root 900 S /sbin/askfirst /usr/libexec/login.sh
457 root 0 SW< [cfg80211]
470 root 0 SW< [ath10k_wq]
471 root 0 SW< [ath10k_aux_wq]
868 root 1224 S /sbin/logd -S 64
981 root 1720 S /sbin/netifd
1020 root 1420 S /usr/sbin/odhcpd
1187 root 1204 S< /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.ope
1405 root 1064 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
1707 dnsmasq 1316 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
2087 root 1200 S udhcpc -p /var/run/udhcpc-eth0.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0 -x hostname:OpenWrt -C -O 121
2088 root 1028 S odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth0
2797 root 1132 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
2798 root 1200 S -ash
2850 root 1200 R psroot@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr CC:2D:E0:78:A9:8B
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fdaa:4713:af8e::1/60 Scope:Global
inet6 addr: fe80::ce2d:e0ff:fe78:a98b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33611 errors:0 dropped:0 overruns:0 frame:0
TX packets:36734 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4395787 (4.1 MiB) TX bytes:36201816 (34.5 MiB)eth0 Link encap:Ethernet HWaddr CC:2D:E0:78:A9:8A
inet addr:192.168.13.194 Bcast:192.168.13.255 Mask:255.255.255.0
inet6 addr: fe80::ce2d:e0ff:fe78:a98a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68653 errors:0 dropped:0 overruns:0 frame:0
TX packets:35907 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39101363 (37.2 MiB) TX bytes:6211143 (5.9 MiB)
Interrupt:4eth1 Link encap:Ethernet HWaddr CC:2D:E0:78:A9:8B
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33611 errors:0 dropped:0 overruns:0 frame:0
TX packets:36718 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4866341 (4.6 MiB) TX bytes:36198412 (34.5 MiB)
Interrupt:5lo 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:667 errors:0 dropped:0 overruns:0 frame:0
TX packets:667 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:90877 (88.7 KiB) TX bytes:90877 (88.7 KiB)root@OpenWrt:~# swconfig list
Found: switch0 - eth1root@OpenWrt:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 0
mirror_monitor_port: 15
Port 0:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 0
link: port:1 link:down
Port 2:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 0
link: port:2 link:down
Port 3:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 0
link: port:3 link:down
Port 4:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 0
link: port:4 link:up speed:100baseT full-duplex auto
VLAN 0:
vid: 0
ports: 0 1 2 3 4root@OpenWrt:~# swconfig dev switch0 help
switch0: eth1(AR934X built-in switch), ports: 5 (cpu @ 0), vlans: 16
--switch
Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (int): mirror_monitor_port (Mirror monitor port)
Attribute 3 (none): apply (Activate changes in the hardware)
Attribute 4 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (VLAN ID)
Attribute 2 (ports): ports (VLAN port mapping)
--port
Attribute 1 (int): enable_mirror_rx (Enable mirroring of RX packets)
Attribute 2 (int): enable_mirror_tx (Enable mirroring of TX packets)
Attribute 3 (int): pvid (Primary VLAN ID)
Attribute 4 (unknown): link (Get port link information)