rb435g-4
Toto je starší verze dokumentu!
Obsah
Migrace rb453g na ath79
ZAVER:
- nejde mi to :D zkoušel jsem to tak 12h
- oficiální initrd rb493g je jen od verze 23 (23.05.0, 23.5.5, 24.10). Nebootuje nejspíš kvůli tomu, že je moc velký.. projevuje se to tak, že po vypsání Starting Kernel at 80060000… se zasekne
- sysupgrade z ar71xx na ath79 asi nejde, protože je tam "pebs" issue.
- potřeboval bych funkční initrd s ath79 a až z něj flash
- img initrd z buildu 21.02 mi nefunguje
- build z commitu, viz post
, mi nejde kvůli zavislostem gcc/g++ což je divný.. mám je :D možná se spíš rozbíji ten script/feed update -a … když jsem na commitu a ne v branch
- zkusit build 19.7, přidat rb435g do ath79 a nový build mi nejde, protože nemám python2 a v tom tree ani není vůbec ještě podpora rb4xx
TODO:
- můžu zkusit tam flashnout oficialni rb493 přes sysupgrade zté 23/24 verze.. ale možná jsem to zkoušel :D
- nejsem si jistý, zda ten muj build neměl problém s tím umask a jiný jsem možná nezkusil?
- stačí mi připojit seriovou linku, fallback 19.7 img dát na gw
- a jeste kabel k rb, abych mohl obnovit konfiguraci
- znovu pročíst stránku zařízení, PR konverzaci, zda mi něco neuniklo :D
- můžu ještě vzít starý systém, centos, a udělat build z commitu, zda to nepůjde?
- musim pohlidat, ze tam je fakt 4x kernel
- můžu napsat autorovi toho patche, zda to teda má fungovat :D a zda nemá build toho img initrd :D
Plán
- Pridat podporu pro 435g podle rb493
- commity pridavajici 435g do stareho openwrt
- teoreticky by mohl jet i img pro 493G ale muze to delat bordel s eth1, coz ale zase asi nepotrebuji 😄 ale aby to neco neodbouchnulo kvuli GPIO 😄
Návody k migraci
- obecny,zaklady uzitecny https://openwrt.org/docs/guide-developer/adding_new_device
- tady o gpio analyze https://openwrt.org/docs/guide-developer/add.new.device#gpios
- drive bylo v march souborech: https://github.com/openwrt/openwrt/blob/openwrt-19.07/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c
Známé problémy
- diskuze k PR přidání podpory rb493g
- tady nejaky bug s init ramdiskem.. na ktery muzu narazit pri portovani
- tohle taky zajimavy bug
Boot z ethernetu
- Nejnižší verze, která mi naběhla, byla 19.07.10 s ar71xx
- nenaběhla mi žádná verze s ath79
- nejspíš kvůli velikosti
» initramfs image will not work if uncompressed image size over ~8.5Mb
- 19.07.10 img má cca 3.9MB
- 24.10 img má kolem 6MB, ale nekomprimovaný má asi 13MB?
binwalk /srv/tftp/openwrt-24.10.1-ath79-mikrotik-mikrotik_routerboard-493g-initramfs-kernel.bin DECIMAL HEXADECIMAL DESCRIPTION -------------------------------------------------------------------------------- 0 0x0 ELF, 32-bit MSB MIPS-I executable, MIPS, version 1 (SYSV) 9628 0x259C Copyright string: "Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>" 9836 0x266C LZMA compressed data, properties: 0x6D, dictionary size: 8388608 bytes, uncompressed size: 13561582 bytes 3948169 0x3C3E89 JBOOT STAG header, image id: 0, timestamp 0x9B1598B1, image size: 275734933 bytes, image JBOOT checksum: 0x31C4, header JBOOT checksum: 0xCFC8
- 23.xx měla taky kolem 12MB
- na diskuzi v PR někdo doporučoval
@flyn-org can you try building an ath79 initramfs image from commit b7a8a54 (this pr), and use that to tftp boot your router and then sysupgrade to your 8/21 image (or something newer)?
I think the „pebs“ issue is exposed when using an ar71xx image to flash an ath79 one.
- a taky
Initramfs doesn't work with image size > ~8.5Mb. LZMA compression has been enabled, as 4.19 kernel buildwill boot, but a 5.4 will not. (open question).
- jenomže neumím udělat build s kernelem 4.19
24.10
rb435g
- Můj build 24.10, s umask 0002, s přidanou podporou rb435g
Press any key within 2 seconds to enter setup..␍␊ trying dhcp protocol... OK␍␊ resolved mac address C8:7F:54:53:61:FA␍␊ Gateway: 10.10.11.1␍␊ **transfer started ............................................... transfer ok, time=2.03s␍␊ setting up elf image... OK␍␊ jumping to kernel code␍␊ ␊ ␍␊ ␍OpenWrt kernel loader for AR7XXX/AR9XXX␊ ␍Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>␊ ␍Decompressing kernel... done!␊ ␍Starting kernel at 80060000...␊
- neúspěšný, zastaví se před kernel early print
Flash do NAND
24.10 rb435g
- nabootoval jsem 19.07 initrd
- přes UI jsem dal upg fw
- UI vypsalo:
Device rb-435g not supported by this image Supported devices: mikrotik,routerboard-435g rb-435g - Image version mismatch: image 1.1, device 1.0. Please wipe config during upgrade (force required) or reinstall. Reason: NAND images switched to yafut. If running older image, reinstall from initramfs. Invalid sysupgrade file. Image check failed.
- dal jsem force a na UART byla chyba, že nenašel kernel
Performing system upgrade...␍␊ Unlocking kernel ...␍␊ Erasing kernel ...␍␊ Writing data to block 0 at offset 0x0␍␊ tar: sysupgrade-routerboard/kernel: not found in archive␍␊ removing ubiblock0_2␍␊ [ 278.442383] block ubiblock0_2: released␍␊ Volume ID 1, size 26 LEBs (3301376 bytes, 3.1 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "none", alignment 1␍␊ Volume ID 2, size 27 LEBs (3428352 bytes, 3.2 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1␍␊ Set volume size to 114405376␍␊ Volume ID 3, size 901 LEBs (114405376 bytes, 109.1 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1␍␊ sysupgrade successful␍␊
- po rebootu
Press any key within 2 seconds to enter setup..␍␊ ␍␊ loading kernel from nand... kernel not found␍␊
Vrácení 19.07.10
- takhle vypadá funkční fw 19.07.10
Performing system upgrade...␍␊ Unlocking kernel ...␍␊ Erasing kernel ...␍␊ Writing data to block 0 at offset 0x0␍␊ Writing data to block 1 at offset 0x20000␍␊ Writing data to block 2 at offset 0x40000␍␊ Writing data to block 3 at offset 0x60000␍␊ Writing data to block 4 at offset 0x80000␍␊ Writing data to block 5 at offset 0xa0000␍␊ Writing data to block 6 at offset 0xc0000␍␊ Writing data to block 7 at offset 0xe0000␍␊ Writing data to block 8 at offset 0x100000␍␊ Writing data to block 9 at offset 0x120000␍␊ Writing data to block 10 at offset 0x140000␍␊ Writing data to block 11 at offset 0x160000␍␊ Writing data to block 12 at offset 0x180000␍␊ Writing data to block 13 at offset 0x1a0000␍␊ removing ubiblock0_2␍␊ [ 204.768949] block ubiblock0_2: released␍␊ Volume ID 1, size 14 LEBs (1777664 bytes, 1.6 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "none", alignment 1␍␊ Volume ID 2, size 21 LEBs (2666496 bytes, 2.5 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1␍␊ Set volume size to 116690944␍␊ Volume ID 3, size 919 LEBs (116690944 bytes, 111.2 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1␍␊ sysupgrade successful␍␊ umount: can't unmount /dev: Resource busy␍␊ umount: can't unmount /tmp: Resource busy␍␊ umount: ca[ 208.451490] reboot: Restarting system␍␊
Vytváření 19.07
- myšlenka byla, že bych zkusil sestavit initrd 19.07, která mi funguje, abych ověřil, že to builduji správně
- následně bych tam portoval podporu pro rb435g
- při volání
/scripts/feeds update -amám nesplněné závislosti
Build dependency: Please install Python 2.x
- tak starý python už nemám a ani ho nechci zpětně cpát do systému
- další problém je, že v 19.07 není ještě vůbec mikrotik v ath79, takže by přidání bylo složitější. Musel bych vzít více commitu z 21.02
Vytváření commit b7a8a54
- mám nesplněné závislosti
Build dependency: Please install the GNU C Compiler (gcc) 4.8 or later Build dependency: Please install the GNU C++ Compiler (g++) 4.8 or later Build dependency: Please install Python >= 3.5 Build dependency: Please install Python >= 3.5
- přitom mám gcc/g++ i python3
Vytváření img 21.02
- jde o nejstarší branch s rb493g v ath79
- preventivně umask viz workaround
umask 0022
git clone https://github.com/openwrt/openwrt.git mv openwrt openwrt-21.02 cd openwrt-21.02 git checkout openwrt-21.02
./scripts/feeds update -a ./scripts/feeds install -a
$ patch -p1 -b < ../rb435g-24.10.patch patching file target/linux/ath79/dts/ar7161_mikrotik_routerboard-435g.dts patching file target/linux/ath79/image/mikrotik.mk patching file target/linux/ath79/mikrotik/base-files/etc/board.d/02_network Hunk #1 succeeded at 8 (offset 1 line). can't find file to patch at input line 98 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/target/linux/ath79/mikrotik/base-files/etc/board.d/05_compat-version b/target/linux/ath79/mikrotik/base-files/etc/board.d/05_compat-version |index 2e079bfa55..d25bf19dfc 100644 |--- a/target/linux/ath79/mikrotik/base-files/etc/board.d/05_compat-version |+++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/05_compat-version -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored patching file target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh Hunk #1 succeeded at 31 with fuzz 2 (offset 2 lines).
make menuconfig make download make -j24
binwalk bin/targets/ath79/mikrotik/openwrt-ath79-mikrotik-mikrotik_routerboard-435g-initramfs-kernel.bin DECIMAL HEXADECIMAL DESCRIPTION -------------------------------------------------------------------------------- 0 0x0 ELF, 32-bit MSB MIPS64 executable, MIPS, version 1 (SYSV) 76784 0x12BF0 xz compressed data 76960 0x12CA0 xz compressed data 5151152 0x4E99B0 Flattened device tree, size: 6553 bytes, version: 17
- najde, ale vypisuje jinou chybu než 24.10
setting up elf image... kernel out of range␍␊ kernel loading failed␍␊
- zkusil jsem zmenšit velikost
- odstranil jsem hlavně wifi
ls -lah bin/targets/ath79/mikrotik/openwrt-ath79-mikrotik-mikrotik_routerboard-435g-initramfs-kernel.bin -rwxr-xr-x 1 djbuldog djbuldog 4,2M 28. dub 00.47 bin/targets/ath79/mikrotik/openwrt-ath79-mikrotik-mikrotik_routerboard-435g-initramfs-kernel.bin
- pak jsem zkusil odstranit úplně maximum včetně SSH, ..
- dostal jsem se na 3.6MB a nic, stejná chyba
- změna targetu na rb493g taky nepomohla
- všiml jsem si, že tam dává už kernel 5.4, což nesplňuje:
Initramfs doesn't work with image size > ~8.5Mb. LZMA compression has been enabled, as 4.19 kernel buildwill boot, but a 5.4 will not. (open question).
- chce to zkusit build s 4.19 kernel z toho commitu?
Vytvoření img 24.10
- bacha, zapomněl jsem provést umask 0022 workaround
git clone https://github.com/openwrt/openwrt.git git checkout openwrt-24.10
./scripts/feeds update -a ./scripts/feeds install -a
- aplikoval jsem patch
make menuconfig
- tohle jsou změny v .config vůči default v 24.10
/scripts/diffconfig.sh CONFIG_TARGET_ath79=y CONFIG_TARGET_ath79_mikrotik=y CONFIG_TARGET_ath79_mikrotik_DEVICE_mikrotik_routerboard-435g=y
- protože nepůjde stahovat instalovat kmod balíčky z repa, rozhodl jsem se nakonec přidat toho více
- vyselektoval jsem hlavně kmod moduly + očekávaný software, který nastavil další připadné kmod závislosti
- stáhl jsem potřebné zdrojové kódy, aby jel paralelní režim rychleji (tip z build guide)
make download
- build na 24 jádrech
make -j 24
- nahrání na tftp server (tftpd-hpa na pharaon)
sudo cp bin/targets/ath79/mikrotik/openwrt-ath79-mikrotik-mikrotik_routerboard-435g-initramfs-kernel.bin /srv/tftp/
- na DHCP jsem nastavil přes UI tftp boot. Musí tam být servername i IP adresa.
Výroba patche pro rb435g
- přidal jsem rb435g podle rb493g
cp dts/ar7161_mikrotik_routerboard-493g.dts dts/ar7161_mikrotik_routerboard-435g.dts
- mel by mit jeden WAN a LAN ke switchi AR8316
- v AR7161 jsou 2 MAC rozhrani, ktere potrebuji fyzicka PHY rozhrani.
- vetsinou tam je 1x PHY WAN a 1x switch, jehoz jedno PHY, CPU PHY, je pripojeno k SoC
- komunikace mezi SoC a externim PHY probiha pred MDIO sbernici
- nasledjic vypis ukazuje, ze
- switch je zaregistrovan na mdio 0
- port 4 toho switche bude pouzit jako PHY k CPU v SoC
- SoC, MAC 1, se pripojkil k mdio 0.04 .. tj swtich port 4
- vytvorilo se z toho eth0 rozhrani.. nema to byt spis eth1? 😄
- SoC, MAC 0, se pripojilo k mdio 0, port 0?
- z toho SoC MAC 0 vznikl eth1?
- estli to teda chapu, tak eth0 by mel byt LAN a eht1 wan 😄
- jenomze v openwrt to je obracnee.. eth1 se bere jako lan switch
dmesg [ 3.511322] switch0: Atheros AR8316 rev. 1 switch registered on ag71xx-mdio.0 [ 3.861246] ar8316: Using port 4 as PHY [ 4.952016] ag71xx ag71xx.1: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Atheros AR8216/AR8236/AR831 6] [ 4.963154] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: rgmii [ 5.301245] ar8316: Using port 4 as PHY [ 5.308704] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd041, driver=Atheros AR8216/AR8236/AR831 6] [ 5.319865] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
- DTS
- ja myslim, ze ohledne netwrokingu bych mohl zkusit spis https://github.com/openwrt/openwrt/blob/main/target/linux/ath79/dts/ar7161_ubnt_routerstation-pro.dts
- s tim, ze eth0 uz je definovano vlastne v https://github.com/openwrt/openwrt/blob/main/target/linux/ath79/dts/ar7100_mikrotik_routerboard-4xx.dtsi
rb-450g) ucidef_set_interfaces_lan_wan "eth1.1" "eth0" ucidef_add_switch "switch0" \ "0@eth1" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2" ;;
Ověření starého fw
- všechny tři ethernetové porty fungují
- WAN se hlásí jako port0
- další je port 1
- další je port 2
- všechny porty jsou v br-lan a switchují
root@rb435g:~# swconfig dev switch0 show Global attributes: enable_vlan: 1 ar8xxx_mib_poll_interval: 0 ar8xxx_mib_type: 0 enable_mirror_rx: 0 enable_mirror_tx: 0 mirror_monitor_port: 0 mirror_source_port: 0 arl_table: address resolution table Port 0: MAC 00:0c:42:bc:07:42 Port 0: MAC b4:8c:9d:35:fb:a9 Port 0: MAC 36:d8:99:91:99:27 Port 0: MAC d8:3a:dd:96:0b:d7 Port 0: MAC c4:82:e1:38:13:5a Port 2: MAC f0:24:f9:92:b9:64 Port 2: MAC 00:15:6d:c1:c6:9d Port 2: MAC b8:27:eb:53:27:38 Port 2: MAC c8:7f:54:53:61:fa Port 0: mib: ??? pvid: 0 link: port:0 link:up speed:1000baseT full-duplex txflow rxflow Port 1: mib: ??? pvid: 1 link: port:1 link:down Port 2: mib: ??? pvid: 1 link: port:2 link:up speed:1000baseT full-duplex auto Port 3: mib: ??? pvid: 0 link: port:3 link:down Port 4: mib: ??? pvid: 0 link: port:4 link:down VLAN 1: vid: 1 ports: 0t 1 2
- Zajímavý je, ze ten port 0 má pořád linku nahoře, i když tam není kabel. Možná tím napojením na CPU?
- Takhle to vypadá, když je kabel v portu 3 (LAN2). Eth0 (WAN] nema LOWER_UP a eth1 ano
root@rb435g:~# ip link show | grep eth[01] 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master br-lan state DOWN qlen 1000 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000 7: eth1.1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
- Takhle to vypadá při přepojení do WAN
ip link show | grep eth[01] 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000 7: eth1.1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
- Zajímavý je, že v dmesg vidím link up a down, ale jen pro eth0 .. ne pro eth1
- provedl jsem zálohu cfg
- takhle vypadal funkční dmesg v 19.07 (pro srovnání s 24.10)
[ 0.000000] Linux version 4.14.275 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11427-9ce6aa9d8d)) #0 Sat Apr 16 13:13:32 2022 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc) [ 0.000000] SoC: Atheros AR7161 rev 2 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 10000000 @ 00000000 (usable) [ 0.000000] User-defined physical RAM map: [ 0.000000] memory: 10000000 @ 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-0x000000000fffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff] [ 0.000000] On node 0 totalpages: 65536 [ 0.000000] free_area_init_node: node 0, pgdat 8052bf60, node_mem_map 81000020 [ 0.000000] Normal zone: 512 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 65536 pages, LIFO batch:15 [ 0.000000] random: get_random_bytes called from 0x8052d740 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: 65024 [ 0.000000] Kernel command line: parts=1 boot_part_size=4194304 gpio=4023 HZ=340000000 mem=256M kmac=00:0C:42:BC:07:42 board=435G ver=3.24 hw_opt=00000004 boot=1 mlc=9 console=ttyS0,115200 rootfstype=squashfs noinitrd [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 254116K/262144K available (4209K kernel code, 172K rwdata, 524K rodata, 204K init, 213K bss, 8028K 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:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5621354254 ns [ 0.000009] sched_clock: 32 bits at 340MHz, resolution 2ns, wraps every 6316128254ns [ 0.007823] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992) [ 0.074085] pid_max: default: 32768 minimum: 301 [ 0.078907] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.085514] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.094762] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.104630] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.111797] NET: Registered protocol family 16 [ 0.117669] MIPS: machine is MikroTik RouterBOARD 435G [ 0.896283] registering PCI controller with io_map_base unset [ 2.572896] random: fast init done [ 2.812771] rb4xx-spi rb4xx-spi: controller is unqueued, this is deprecated [ 2.820676] PCI host bridge to bus 0000:00 [ 2.824780] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff] [ 2.831681] pci_bus 0000:00: root bus resource [io 0x0000] [ 2.837241] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] [ 2.844024] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 2.851997] pci 0000:00:14.0: [168c:0029] type 00 class 0x028000 [ 2.852034] pci 0000:00:14.0: reg 0x10: [mem 0x00000000-0x0000ffff] [ 2.852103] pci 0000:00:14.0: PME# supported from D0 D3hot [ 2.852280] pci 0000:00:17.0: [168c:0029] type 00 class 0x028000 [ 2.852306] pci 0000:00:17.0: reg 0x10: [mem 0x00000000-0x0000ffff] [ 2.852365] pci 0000:00:17.0: PME# supported from D0 D3hot [ 2.852512] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 [ 2.852538] pci 0000:00:14.0: BAR 0: assigned [mem 0x10000000-0x1000ffff] [ 2.859360] pci 0000:00:17.0: BAR 0: assigned [mem 0x10010000-0x1001ffff] [ 2.869886] clocksource: Switched to clocksource MIPS [ 2.875900] NET: Registered protocol family 2 [ 2.880517] IP idents hash table entries: 4096 (order: 3, 32768 bytes) [ 2.887865] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [ 2.894904] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 2.901291] TCP: Hash tables configured (established 2048 bind 2048) [ 2.907774] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 2.913660] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 2.920125] NET: Registered protocol family 1 [ 2.924518] PCI: CLS 0 bytes, default 32 [ 2.927221] Crashlog allocated RAM at address 0x3f00000 [ 2.933675] workingset: timestamp_bits=30 max_order=16 bucket_order=0 [ 2.944742] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 2.950613] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 2.969400] io scheduler noop registered [ 2.973373] io scheduler deadline registered (default) [ 2.978891] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 2.987238] console [ttyS0] disabled [ 3.010899] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 10625000) is a 16550A [ 3.019599] console [ttyS0] enabled [ 3.026567] bootconsole [early0] disabled [ 3.035665] m25p80 spi0.0: pm25lv512 (64 Kbytes) [ 3.045434] Creating 4 MTD partitions on "spi0.0": [ 3.050279] 0x000000000000-0x00000000b000 : "routerboot" [ 3.057123] 0x00000000b000-0x00000000c000 : "hard_config" [ 3.063849] 0x00000000d000-0x00000000f000 : "bios" [ 3.070577] 0x00000000f000-0x000000010000 : "soft_config" [ 3.077412] NAND flash driver for RouterBoard 4xx series version 0.2.0 [ 3.084245] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1 [ 3.090600] nand: Samsung NAND 128MiB 3,3V 8-bit [ 3.095205] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 3.102784] Scanning device for bad blocks [ 3.168444] Bad eraseblock 207 at 0x0000019e0000 [ 3.179969] Bad eraseblock 231 at 0x000001ce0000 [ 3.184716] Bad eraseblock 232 at 0x000001d00000 [ 3.191825] Bad eraseblock 241 at 0x000001e20000 [ 3.224085] Bad eraseblock 336 at 0x000002a00000 [ 3.229124] Bad eraseblock 338 at 0x000002a40000 [ 3.234477] Bad eraseblock 341 at 0x000002aa0000 [ 3.266447] Bad eraseblock 435 at 0x000003660000 [ 3.272681] Bad eraseblock 441 at 0x000003720000 [ 3.284758] Bad eraseblock 467 at 0x000003a60000 [ 3.303563] Bad eraseblock 516 at 0x000004080000 [ 3.329674] Bad eraseblock 590 at 0x0000049c0000 [ 3.344395] Bad eraseblock 625 at 0x000004e20000 [ 3.363788] Bad eraseblock 676 at 0x000005480000 [ 3.432043] Bad eraseblock 894 at 0x000006fc0000 [ 3.454641] Bad eraseblock 956 at 0x000007780000 [ 3.479307] Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit": [ 3.485538] 0x000000000000-0x000000040000 : "booter" [ 3.492047] 0x000000040000-0x000000400000 : "kernel" [ 3.498303] 0x000000400000-0x000008000000 : "ubi" [ 3.511322] switch0: Atheros AR8316 rev. 1 switch registered on ag71xx-mdio.0 [ 3.861246] ar8316: Using port 4 as PHY [ 4.952016] ag71xx ag71xx.1: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316] [ 4.963154] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: rgmii [ 5.301245] ar8316: Using port 4 as PHY [ 5.308704] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316] [ 5.319865] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii [ 5.331810] MikroTik RouterBOARD hardware configuration sysfs driver v0.03 [ 5.339592] NET: Registered protocol family 10 [ 5.348423] Segment Routing with IPv6 [ 5.352237] NET: Registered protocol family 17 [ 5.356722] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 5.369672] 8021q: 802.1Q VLAN Support v1.8 [ 5.377495] UBI: auto-attach mtd6 [ 5.380891] ubi0: attaching mtd6 [ 6.197200] ubi0: scanning is finished [ 6.259782] ubi0: attached mtd6 (name "ubi", size 124 MiB) [ 6.265326] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 6.272199] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 6.278966] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 6.285922] ubi0: good PEBs: 976, bad PEBs: 16, corrupted PEBs: 0 [ 6.292010] ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128 [ 6.299213] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1479584234 [ 6.308331] ubi0: available PEBs: 0, total reserved PEBs: 976, PEBs reserved for bad PEB handling: 4 [ 6.317568] ubi0: background thread "ubi_bgt0d" started, PID 357 [ 6.325252] block ubiblock0_2: created from ubi0:2(rootfs) [ 6.330802] ubiblock: device ubiblock0_2 (rootfs) set to be root filesystem [ 6.354222] VFS: Mounted root (squashfs filesystem) readonly on device 254:0. [ 6.362278] Freeing unused kernel memory: 204K [ 6.366713] This architecture does not have kernel memory protection. [ 7.387959] init: Console is alive [ 7.391764] init: - watchdog - [ 9.000106] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 9.057163] usbcore: registered new interface driver usbfs [ 9.062784] usbcore: registered new interface driver hub [ 9.068153] usbcore: registered new device driver usb [ 9.077994] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 9.086070] ehci-platform: EHCI generic platform driver [ 9.091441] ehci-platform ehci-platform: EHCI Host Controller [ 9.097219] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1 [ 9.105268] ehci-platform ehci-platform: irq 3, io mem 0x1b000000 [ 9.139916] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00 [ 9.146933] hub 1-0:1.0: USB hub found [ 9.151071] hub 1-0:1.0: 2 ports detected [ 9.157833] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 9.165465] ohci-platform: OHCI generic platform driver [ 9.170860] ohci-platform ohci-platform: Generic Platform OHCI controller [ 9.177660] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2 [ 9.185682] ohci-platform ohci-platform: irq 14, io mem 0x1c000000 [ 9.264623] hub 2-0:1.0: USB hub found [ 9.268695] hub 2-0:1.0: 2 ports detected [ 9.273900] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 9.291638] init: - preinit - [ 10.126616] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 11.150280] ar71xx: pll_reg 0xb8050010: 0x110000 [ 11.150295] eth1: link up (1000Mbps/Full duplex) [ 11.154952] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 13.335260] random: procd: uninitialized urandom read (4 bytes read) [ 13.347712] UBIFS (ubi0:3): background thread "ubifs_bgt0_3" started, PID 431 [ 13.665211] UBIFS (ubi0:3): recovery needed [ 14.205790] UBIFS (ubi0:3): recovery completed [ 14.210361] UBIFS (ubi0:3): UBIFS: mounted UBI device 0, volume 3, name "rootfs_data" [ 14.218176] UBIFS (ubi0:3): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 14.228098] UBIFS (ubi0:3): FS size: 115294208 bytes (109 MiB, 908 LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs) [ 14.238692] UBIFS (ubi0:3): reserved for root: 4952683 bytes (4836 KiB) [ 14.245311] UBIFS (ubi0:3): media format: w4/r0 (latest is w5/r0), UUID 43EC860C-4076-4F05-B369-14D7CBCE3CE3, small LPT model [ 14.266483] mount_root: switching to ubifs overlay [ 14.310172] urandom-seed: Seeding with /etc/urandom.seed [ 14.546165] eth1: link down [ 14.564538] procd: - early - [ 14.567522] procd: - watchdog - [ 15.202408] procd: - watchdog - [ 15.205866] procd: - ubus - [ 15.347123] random: ubusd: uninitialized urandom read (4 bytes read) [ 15.358073] random: ubusd: uninitialized urandom read (4 bytes read) [ 15.364945] random: ubusd: uninitialized urandom read (4 bytes read) [ 15.372294] procd: - init - [ 16.085541] kmodloader: loading kernel modules from /etc/modules.d/* [ 16.195460] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 16.218943] Loading modules backported from Linux version v4.19.237-0-ga6e4a1818efa [ 16.226655] Backport generated by backports.git v4.19.237-1-0-gffb89fd9 [ 16.262111] ip_tables: (C) 2000-2006 Netfilter Core Team [ 16.275590] nf_conntrack version 0.5.0 (4096 buckets, 16384 max) [ 16.402878] xt_time: kernel timezone is -0000 [ 16.502269] PPP generic driver version 2.4.2 [ 16.510963] NET: Registered protocol family 24 [ 16.553691] urngd: v1.0.2 started. [ 16.572124] pci 0000:00:14.0: using irq 42 for pin 1 [ 16.577104] PCI: Enabling device 0000:00:14.0 (0000 -> 0002) [ 18.141003] ath: EEPROM regdomain: 0x0 [ 18.141010] ath: EEPROM indicates default country code should be used [ 18.141013] ath: doing EEPROM country->regdmn map search [ 18.141026] ath: country maps to regdmn code: 0x3a [ 18.141030] ath: Country alpha2 being used: US [ 18.141034] ath: Regpair used: 0x3a [ 18.161753] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' [ 18.163599] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=42 [ 18.170394] pci 0000:00:17.0: using irq 42 for pin 1 [ 18.175366] PCI: Enabling device 0000:00:17.0 (0000 -> 0002) [ 19.739262] ath: EEPROM regdomain: 0x0 [ 19.739270] ath: EEPROM indicates default country code should be used [ 19.739273] ath: doing EEPROM country->regdmn map search [ 19.739286] ath: country maps to regdmn code: 0x3a [ 19.739291] ath: Country alpha2 being used: US [ 19.739294] ath: Regpair used: 0x3a [ 19.760084] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' [ 19.761934] ieee80211 phy1: Atheros AR9280 Rev:2 mem=0xb0010000, irq=42 [ 20.135887] random: crng init done [ 20.139302] random: 6 urandom warning(s) missed due to ratelimiting [ 22.156013] kmodloader: done loading kernel modules from /etc/modules.d/* [ 31.703301] br-lan: port 1(eth0) entered blocking state [ 31.708533] br-lan: port 1(eth0) entered disabled state [ 31.714099] device eth0 entered promiscuous mode [ 31.741472] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 31.998555] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 32.020316] br-lan: port 2(eth1.1) entered blocking state [ 32.025723] br-lan: port 2(eth1.1) entered disabled state [ 32.031482] device eth1.1 entered promiscuous mode [ 32.036271] device eth1 entered promiscuous mode [ 33.070374] ar71xx: pll_reg 0xb8050010: 0x110000 [ 33.075000] eth1: link up (1000Mbps/Full duplex) [ 33.079651] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 33.132174] br-lan: port 2(eth1.1) entered blocking state [ 33.137578] br-lan: port 2(eth1.1) entered forwarding state [ 33.184374] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 33.415232] ath: EEPROM regdomain: 0x80cb [ 33.419243] ath: EEPROM indicates we should expect a country code [ 33.425381] ath: doing EEPROM country->regdmn map search [ 33.430692] ath: country maps to regdmn code: 0x37 [ 33.435468] ath: Country alpha2 being used: CZ [ 33.439912] ath: Regpair used: 0x37 [ 33.443392] ath: regdomain 0x80cb dynamically updated by user [ 33.449284] ath: EEPROM regdomain: 0x80cb [ 33.453295] ath: EEPROM indicates we should expect a country code [ 33.459374] ath: doing EEPROM country->regdmn map search [ 33.464686] ath: country maps to regdmn code: 0x37 [ 33.469461] ath: Country alpha2 being used: CZ [ 33.473907] ath: Regpair used: 0x37 [ 33.477385] ath: regdomain 0x80cb dynamically updated by user [ 34.832395] ar71xx: pll_reg 0xb8050014: 0x110000 [ 34.837019] eth0: link up (1000Mbps/Full duplex) [ 34.861343] br-lan: port 1(eth0) entered blocking state [ 34.866574] br-lan: port 1(eth0) entered forwarding state [ 35.491930] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 35.502188] br-lan: port 3(wlan0) entered blocking state [ 35.507506] br-lan: port 3(wlan0) entered disabled state [ 35.513182] device wlan0 entered promiscuous mode [ 35.517991] br-lan: port 3(wlan0) entered blocking state [ 35.523374] br-lan: port 3(wlan0) entered forwarding state [ 35.870097] br-lan: port 3(wlan0) entered disabled state [ 35.951802] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 35.958373] br-lan: port 3(wlan0) entered blocking state [ 35.963731] br-lan: port 3(wlan0) entered forwarding state
rb435g-4.1745846089.txt.gz · Poslední úprava: (upraveno mimo DokuWiki)
