Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| inbox:zyxel:zyxel_nwa1123-ni [2020/12/16 22:31] – [Tags] danitool | inbox:zyxel:zyxel_nwa1123-ni [2021/07/31 16:32] – [Build Instructions (deprecated)] update links vgaetera | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| ===== Supporting activities ===== | ===== Supporting activities ===== | ||
| + | 2021-05-13: New attempt to add support in OpenWrt | ||
| + | * different flash-layout than previous attempt | ||
| + | * enables installing OpenWRT from within stock firmware | ||
| + | * Pull request: https:// | ||
| + | |||
| + | |||
| 2019-10-21: Currently the device is able to boot OpenWrt and seems to be full functional. Patch/ | 2019-10-21: Currently the device is able to boot OpenWrt and seems to be full functional. Patch/ | ||
| * OpenWrt forum thread: https:// | * OpenWrt forum thread: https:// | ||
| - | |||
| - | |||
| - | |||
| - | ===== Experimental firmware ===== | ||
| - | |||
| - | See build instructions for NWA1123-NI [[#Build Instructions|here]] | ||
| - | |||
| - | Compiled Firmware can be downloaded from https:// | ||
| ===== Hardware highlights ===== | ===== Hardware highlights ===== | ||
| Line 46: | Line 44: | ||
| - → [[: | - → [[: | ||
| ***/ | ***/ | ||
| - | |||
| - | {{: | ||
| ==== Installing OpenWrt ==== | ==== Installing OpenWrt ==== | ||
| - | As the flash-layout and the boot-address changes it is not possible to flash the device via stock firmware. | + | {{: |
| - | **Technical references** | + | Flashing OpenWrt is straight forward: |
| - | * [[docs:techref: | + | |
| - | * [[docs: | + | |
| - | * [[docs: | + | |
| - | {{: | + | * Login to OEM Web UI |
| + | * Flash xxx-**factory-AAEO**.bin | ||
| - | * Start the TFTP server and put the // | + | First boot takes ca. 2-3 minutes, wait for the LED to stop blinking and turn to solid green. |
| - | * Establish a [[docs: | + | |
| - | * Power up the device, press any key to interrupt the boot process: | + | |
| - | < | + | |
| - | Hit any key to stop autoboot: | + | |
| - | </ | + | |
| - | * Change the boot-address and remove old bootargs | + | |
| - | < | + | |
| - | setenv bootcmd 'bootm 0x9f050000' | + | |
| - | setenv bootargs | + | |
| - | saveenv | + | |
| - | </ | + | |
| - | * Set IP-Address of Device and TFTP-server and try to ping the server | + | |
| - | < | + | |
| - | setenv ipaddr 192.168.1.11 | + | |
| - | setenv serverip 192.168.1.120 | + | |
| - | ping $serverip | + | |
| - | </ | + | |
| - | * Flash firmware (Do not erase before the fw.bin got successfully loaded!) | + | |
| - | < | + | |
| - | tftp 0x80060000 fw.bin | + | |
| - | erase 0x9f050000 +$filesize | + | |
| - | cp.b $fileaddr 0x9f050000 $filesize | + | |
| - | </ | + | |
| - | + | ||
| - | Done, after flashing power-cycle the device (or enter " | + | |
| Line 95: | Line 64: | ||
| This instructions are based on the ZyXEL KnowledgeBase article //" | This instructions are based on the ZyXEL KnowledgeBase article //" | ||
| - | * Download the Firmware, | + | * Download the Firmware, |
| * Copy // | * Copy // | ||
| * Establish a [[docs: | * Establish a [[docs: | ||
| Line 101: | Line 70: | ||
| < | < | ||
| Hit any key to stop autoboot: | Hit any key to stop autoboot: | ||
| - | </ | ||
| - | * Change the boot-address and add the old bootargs | ||
| - | < | ||
| - | setenv bootcmd 'bootm 0x9f850000' | ||
| - | setenv bootargs ' | ||
| - | saveenv | ||
| </ | </ | ||
| * Set IP-Address of Device and TFTP-server and try to ping the server: | * Set IP-Address of Device and TFTP-server and try to ping the server: | ||
| Line 190: | Line 153: | ||
| === OpenWrt === | === OpenWrt === | ||
| - | ^ | + | Two flash partitions are concatenated to a " |
| + | |||
| + | ^ ZyXEL NWA1123-NI | ||
| ^ Layer0 | ^ Layer0 | ||
| - | ^ Layer1 | + | ^ Layer1 |
| - | ^ Layer2 | + | ^ Size in KiB | 256 KiB |
| - | ^ <color magenta> | + | ^ Name |
| - | ^ filesystem | + | ^ <color magenta> |
| - | ^ Layer3 | + | ^ filesystem |
| - | ^ Size in KiB | 256 KiB | + | |
| - | ^ Name | + | |
| - | ^ <color magenta> | + | |
| - | ^ filesystem | + | |
| + | ^ virtual firmware partition | ||
| + | ^ Layer0 | ||
| + | ^ Layer1 | ||
| + | ^ Layer2 | ||
| + | ^ <color magenta> | ||
| + | ^ filesystem | ||
| + | ^ Layer3 | ||
| + | ^ Size in KiB | 2048 KiB | ||
| + | ^ Name | ||
| + | ^ <color magenta> | ||
| + | ^ filesystem | ||
| === Stock Firmware === | === Stock Firmware === | ||
| Line 1003: | Line 976: | ||
| ==== OpenWrt bootlog ==== | ==== OpenWrt bootlog ==== | ||
| + | |||
| <WRAP bootlog> | <WRAP bootlog> | ||
| < | < | ||
| Line 1045: | Line 1019: | ||
| POST ethernet PASSED | POST ethernet PASSED | ||
| Hit any key to stop autoboot: | Hit any key to stop autoboot: | ||
| - | ## Booting image at 9f050000 | + | ## Booting image at 9f850000 |
| - | Image Name: MIPS OpenWrt Linux-4.19.79 | + | Image Name: MIPS OpenWrt Linux-5.4.111 |
| - | | + | |
| Image Type: MIPS Linux Kernel Image (lzma compressed) | Image Type: MIPS Linux Kernel Image (lzma compressed) | ||
| - | Data Size: | + | Data Size: |
| Load Address: 80060000 | Load Address: 80060000 | ||
| Entry Point: | Entry Point: | ||
| - | | + | |
| | | ||
| No initrd | No initrd | ||
| Line 1060: | Line 1034: | ||
| Starting kernel ... | Starting kernel ... | ||
| - | [ 0.000000] Linux version | + | |
| - | [ 0.000000] bootconsole [early0] enabled | + | |
| + | OpenWrt kernel loader for AR7XXX/ | ||
| + | Copyright (C) 2011 Gabor Juhos < | ||
| + | Looking for OpenWrt image... found at 0xbf050000 | ||
| + | Decompressing kernel... done! | ||
| + | Starting kernel at 80060000... | ||
| + | |||
| + | [ 0.000000] Linux version | ||
| + | [ 0.000000] | ||
| [ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc) | [ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc) | ||
| - | [ 0.000000] MIPS: machine is ZyXEL NWA1123-NI | + | [ 0.000000] MIPS: machine is Zyxel NWA1123-NI |
| [ 0.000000] SoC: Atheros AR9342 rev 1 | [ 0.000000] SoC: Atheros AR9342 rev 1 | ||
| - | [ 0.000000] Determined physical RAM map: | ||
| - | [ 0.000000] | ||
| [ 0.000000] Initrd not found or empty - disabling initrd | [ 0.000000] Initrd not found or empty - disabling initrd | ||
| [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. | [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. | ||
| Line 1076: | Line 1056: | ||
| [ 0.000000] | [ 0.000000] | ||
| [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff] | [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff] | ||
| - | [ 0.000000] random: get_random_bytes called from start_kernel+0x98/ | ||
| [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240 | [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240 | ||
| [ 0.000000] Kernel command line: console=ttyS0, | [ 0.000000] Kernel command line: console=ttyS0, | ||
| - | [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) | + | [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear) |
| - | [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) | + | [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear) |
| [ 0.000000] Writing ErrCtl register=00000000 | [ 0.000000] Writing ErrCtl register=00000000 | ||
| [ 0.000000] Readback ErrCtl register=00000000 | [ 0.000000] Readback ErrCtl register=00000000 | ||
| - | [ 0.000000] Memory: | + | [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off |
| + | [ 0.000000] Memory: | ||
| [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, | [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, | ||
| [ 0.000000] NR_IRQS: 51 | [ 0.000000] NR_IRQS: 51 | ||
| + | [ 0.000000] random: get_random_bytes called from start_kernel+0x308/ | ||
| [ 0.000000] CPU clock: 560.000 MHz | [ 0.000000] CPU clock: 560.000 MHz | ||
| [ 0.000000] clocksource: | [ 0.000000] clocksource: | ||
| - | [ 0.000011] sched_clock: | + | [ 0.000010] sched_clock: |
| - | [ 0.008331] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688) | + | [ 0.008337] Calibrating delay loop... 278.78 BogoMIPS (lpj=557568) |
| - | [ 0.084961] pid_max: default: 32768 minimum: 301 | + | [ 0.050882] pid_max: default: 32768 minimum: 301 |
| - | [ 0.090143] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) | + | [ 0.055987] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) |
| - | [ 0.097208] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) | + | [ 0.063790] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) |
| - | [ 0.110545] clocksource: | + | [ 0.077570] clocksource: |
| - | [ 0.121077] futex hash table entries: 256 (order: -1, 3072 bytes) | + | [ 0.088001] futex hash table entries: 256 (order: -1, 3072 bytes, linear) |
| - | [ 0.127746] pinctrl core: initialized pinctrl subsystem | + | [ 0.095408] pinctrl core: initialized pinctrl subsystem |
| - | [ 0.134531] NET: Registered protocol family 16 | + | [ 0.102268] NET: Registered protocol family 16 |
| - | [ 0.148570] PCI host bridge / | + | [ 0.144982] workqueue: max_active 576 requested |
| - | [ 0.155143] | + | [ 0.159668] clocksource: |
| - | [ 0.160700] | + | [ 0.166587] NET: Registered protocol family 2 |
| - | [ 0.191367] PCI host bridge to bus 0000:00 | + | [ 0.172269] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) |
| - | [ 0.195748] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff] | + | [ 0.181262] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) |
| - | [ 0.203142] pci_bus 0000:00: root bus resource [io 0x0000] | + | [ 0.189444] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear) |
| - | [ 0.209070] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] | + | [ 0.196971] TCP: Hash tables configured (established 1024 bind 1024) |
| - | [ 0.216310] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] | + | [ 0.203910] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) |
| - | [ 0.226393] pci 0000: | + | [ 0.210941] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) |
| - | [ 0.234198] pci 0000: | + | [ 0.218775] NET: Registered protocol family 1 |
| - | [ 0.246172] clocksource: | + | [ 0.223512] PCI: CLS 0 bytes, default 32 |
| - | [ 0.253067] NET: Registered protocol family 2 | + | [ 0.232612] workingset: timestamp_bits=14 max_order=14 bucket_order=0 |
| - | [ 0.258733] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes) | + | [ 0.247995] squashfs: version 4.0 (2009/ |
| - | [ 0.267031] TCP established hash table entries: 1024 (order: 0, 4096 bytes) | + | [ 0.254250] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. |
| - | [ 0.274456] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) | + | [ 0.285656] pinctrl-single 1804002c.pinmux: |
| - | [ 0.281267] TCP: Hash tables configured (established 1024 bind 1024) | + | [ 0.292992] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled |
| - | [ 0.288207] UDP hash table entries: 256 (order: 0, 4096 bytes) | + | [ 0.300684] printk: |
| - | [ 0.294447] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) | + | [ 0.305363] 18020000.uart: |
| - | [ 0.301644] NET: Registered protocol family 1 | + | [ 0.314573] printk: |
| - | [ 0.310330] Crashlog allocated RAM at address 0x3f00000 | + | [ 0.314573] printk: |
| - | [ 0.317798] workingset: timestamp_bits=14 max_order=14 bucket_order=0 | + | [ 0.323483] printk: |
| - | [ 0.332899] squashfs: version 4.0 (2009/ | + | [ 0.323483] printk: |
| - | [ 0.339181] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. | + | [ 0.342312] spi-nor |
| - | [ 0.365807] io scheduler noop registered | + | [ 0.347701] 8 fixed-partitions partitions found on MTD device spi0.0 |
| - | [ 0.370062] io scheduler deadline registered (default) | + | [ 0.354157] Creating |
| - | [ 0.378054] pinctrl-single 1804002c.pinmux: | + | [ 0.359044] 0x000000000000-0x000000040000 : " |
| - | [ 0.385370] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled | + | [ 0.365291] 0x000000040000-0x000000050000 : " |
| - | [ 0.393062] console [ttyS0] disabled | + | [ 0.371965] 0x000000050000-0x000000850000 : " |
| - | [ 0.396979] 18020000.uart: | + | [ 0.378455] 0x000000850000-0x000000860000 : " |
| - | [ 0.406194] console [ttyS0] enabled | + | [ 0.384712] 0x000000860000-0x000000fa0000 |
| - | [ 0.406194] console [ttyS0] enabled | + | [ 0.391236] 0x000000fa0000-0x000000fe0000 : " |
| - | [ 0.413604] bootconsole [early0] disabled | + | [ 0.397483] 0x000000fe0000-0x000000ff0000 : " |
| - | [ 0.413604] bootconsole [early0] disabled | + | [ 0.403553] 0x000000ff0000-0x000001000000 : " |
| - | [ 0.431066] m25p80 | + | [ 0.409807] Concatenating MTD devices: |
| - | [ 0.436342] 6 fixed-partitions partitions found on MTD device spi0.0 | + | [ 0.413698] (0): " |
| - | [ 0.442785] Creating | + | [ 0.416635] (1): " |
| - | [ 0.447696] 0x000000000000-0x000000040000 : " | + | [ 0.419550] into device " |
| - | [ 0.453762] 0x000000040000-0x000000050000 : " | + | [ 0.423501] 1 fixed-partitions partitions found on MTD device virtual_flash |
| - | [ 0.460310] 0x000000050000-0x000000fa0000 : " | + | [ 0.430578] Creating 1 MTD partitions on " |
| - | [ 0.470500] 2 uimage-fw partitions found on MTD device firmware | + | [ 0.436091] 0x000000000000-0x000000f40000 |
| - | [ 0.476580] Creating 2 MTD partitions on " | + | [ 0.453694] 2 uimage-fw partitions found on MTD device firmware |
| - | [ 0.481633] 0x000000000000-0x0000001c0000 | + | [ 0.459777] Creating 2 MTD partitions on " |
| - | [ 0.487686] 0x0000001c0000-0x000000f50000 | + | [ 0.464840] 0x000000000000-0x000000200000 |
| - | [ 0.493627] mtd: device | + | [ 0.470985] 0x000000200000-0x000000f40000 |
| - | [ 0.501402] 1 squashfs-split partitions found on MTD device rootfs | + | [ 0.477167] mtd: device |
| - | [ 0.507761] 0x0000003c0000-0x000000f50000 | + | [ 0.485445] 1 squashfs-split partitions found on MTD device rootfs |
| - | [ 0.514297] 0x000000fa0000-0x000000fe0000 : " | + | [ 0.491813] 0x0000004d0000-0x000000f40000 |
| - | [ 0.520410] 0x000000fe0000-0x000000ff0000 : " | + | [ 0.500832] libphy: Fixed MDIO Bus: probed |
| - | [ 0.526320] 0x000000ff0000-0x000001000000 : " | + | [ 0.845724] libphy: ag71xx_mdio: |
| - | [ 0.533396] libphy: Fixed MDIO Bus: probed | + | [ 0.852169] ag71xx 19000000.eth: |
| - | [ 0.898194] libphy: ag71xx_mdio: | + | [ |
| - | [ 0.996626] ag71xx 19000000.eth: | + | [ |
| - | [ | + | [ 0.875801] NET: Registered protocol family 10 |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ 0.900597] PCI host bridge / |
| - | [ 1.051937] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. | + | [ 0.906889] |
| - | [ 1.067086] Freeing unused kernel memory: | + | [ 0.912215] |
| - | [ 1.071686] This architecture does not have kernel memory protection. | + | [ 0.917732] PCI host bridge to bus 0000:00 |
| - | [ 1.078255] Run /sbin/init as init process | + | [ 0.921944] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff] |
| - | [ | + | [ 0.928936] pci_bus 0000:00: root bus resource [io 0x0000] |
| - | [ | + | [ 0.934607] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] |
| - | [ 2.426191] random: fast init done | + | [ 0.941507] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] |
| - | [ 3.622695] kmodloader: loading kernel modules from / | + | [ 0.949607] pci 0000: |
| - | [ | + | [ 0.955783] pci 0000: |
| - | [ | + | [ 0.962732] pci 0000: |
| - | [ 4.984790] random: jshn: uninitialized urandom read (4 bytes read) | + | [ 0.969634] pci 0000: |
| - | [ | + | [ 0.973718] pci 0000: |
| - | [ | + | [ 0.980854] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 |
| - | [ 5.524890] IPv6: ADDRCONF(NETDEV_UP): | + | [ 0.987639] pci 0000: |
| + | [ 0.995102] pci 0000: | ||
| + | [ 1.009289] VFS: Mounted root (squashfs filesystem) readonly on device 31:10. | ||
| + | [ 1.024565] Freeing unused kernel memory: | ||
| + | [ 1.029197] This architecture does not have kernel memory protection. | ||
| + | [ 1.035741] Run /sbin/init as init process | ||
| + | [ | ||
| + | [ 1.622407] init: Console is alive | ||
| + | [ | ||
| + | [ 2.479202] kmodloader: loading kernel modules from / | ||
| + | [ | ||
| + | [ | ||
| + | [ 4.008230] random: jshn: uninitialized urandom read (4 bytes read) | ||
| + | [ | ||
| + | [ | ||
| Press the [f] key and hit [enter] to enter failsafe mode | Press the [f] key and hit [enter] to enter failsafe mode | ||
| Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level | Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level | ||
| - | [ 7.637663] eth0: link up (1000Mbps/ | + | [ 7.693090] eth0: link up (1000Mbps/ |
| - | [ 7.642403] IPv6: ADDRCONF(NETDEV_CHANGE): | + | [ 7.697848] IPv6: ADDRCONF(NETDEV_CHANGE): |
| - | [ 8.927888] jffs2: notice: (463) jffs2_build_xattr_subsystem: | + | [ 8.956412] jffs2: notice: (523) jffs2_build_xattr_subsystem: |
| - | [ 8.945995] mount_root: switching to jffs2 overlay | + | [ 8.973662] mount_root: switching to jffs2 overlay |
| - | [ 8.979158] overlayfs: upper fs does not support tmpfile. | + | [ 8.982784] overlayfs: upper fs does not support tmpfile. |
| - | [ 8.994439] urandom-seed: | + | [ 8.995054] urandom-seed: |
| - | [ 9.201555] eth0: link down | + | [ 9.102201] eth0: link down |
| - | [ 9.219447] procd: - early - | + | [ 9.120929] procd: - early - |
| - | [ 9.222513] procd: - watchdog - | + | [ 9.124101] procd: - watchdog - |
| - | [ 9.871659] procd: - watchdog - | + | [ 9.783832] procd: - watchdog - |
| - | [ 9.875248] procd: - ubus - | + | [ 9.902115] procd: - ubus - |
| - | [ 9.908189] urandom_read: | + | [ 10.001405] urandom_read: |
| - | [ 9.908199] random: ubusd: uninitialized urandom read (4 bytes read) | + | [ 10.001415] random: ubusd: uninitialized urandom read (4 bytes read) |
| - | [ 9.928586] random: ubusd: uninitialized urandom read (4 bytes read) | + | [ 10.014080] random: ubusd: uninitialized urandom read (4 bytes read) |
| - | [ 9.936921] procd: - init - | + | [ 10.024210] procd: - init - |
| Please press Enter to activate this console. | Please press Enter to activate this console. | ||
| - | [ 10.837954] kmodloader: loading kernel modules from / | + | [ 11.347117] kmodloader: loading kernel modules from / |
| - | [ 10.880410] Loading modules backported from Linux version v5.4-rc2-0-gda0c9ea146cb | + | [ 11.401468] Loading modules backported from Linux version v5.10.16-0-gde53befa79cf |
| - | [ 10.888163] Backport generated by backports.git v5.4-rc2-1-0-g5a0c323a | + | [ 11.409229] Backport generated by backports.git v5.10.16-1-0-g21d2a1d2 |
| - | [ 10.964212] xt_time: kernel timezone is -0000 | + | [ 11.482476] xt_time: kernel timezone is -0000 |
| - | [ 11.005490] urngd: v1.0.0 started. | + | [ 11.666819] urngd: v1.0.2 started. |
| - | [ 11.159790] PPP generic driver version 2.4.2 | + | [ 11.780547] PPP generic driver version 2.4.2 |
| - | [ 11.177596] NET: Registered protocol family 24 | + | [ 11.793220] NET: Registered protocol family 24 |
| - | [ 11.309718] ath: phy0: disabling 5GHz band | + | [ 11.916877] ath: phy0: disabling 5GHz band |
| - | [ 11.332731] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, | + | [ 11.939463] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, |
| - | [ 11.339965] ath9k 0000: | + | [ 11.946667] ath9k 0000: |
| - | [ 11.455217] random: crng init done | + | [ 12.061072] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, |
| - | [ | + | [ 12.188357] random: crng init done |
| - | [ 11.659480] kmodloader: done loading kernel modules from / | + | [ 12.436172] kmodloader: done loading kernel modules from / |
| - | [ 22.430121] br-lan: port 1(eth0) entered blocking state | + | [ 25.560165] br-lan: port 1(eth0) entered blocking state |
| - | [ 22.435443] br-lan: port 1(eth0) entered disabled state | + | [ 25.565543] br-lan: port 1(eth0) entered disabled state |
| - | [ 22.441242] device eth0 entered promiscuous mode | + | [ 25.571247] device eth0 entered promiscuous mode |
| - | [ 22.464124] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready | + | [ 28.653180] eth0: link up (1000Mbps/ |
| - | [ 24.517700] eth0: link up (1000Mbps/ | + | [ |
| - | [ 24.522447] br-lan: port 1(eth0) entered blocking state | + | [ |
| - | [ 24.527793] br-lan: port 1(eth0) entered forwarding state | + | [ |
| - | [ 24.551106] IPv6: ADDRCONF(NETDEV_CHANGE): | + | [ 30.360206] br-lan: port 2(wlan0) entered blocking state |
| + | [ 30.365680] br-lan: port 2(wlan0) entered disabled state | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ 30.724864] br-lan: port 2(wlan0) entered forwarding state | ||
| + | [ 31.456944] br-lan: port 3(wlan1) entered blocking state | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| - | BusyBox v1.31.0 () built-in shell (ash) | + | BusyBox v1.33.0 () built-in shell (ash) |
| _______ | _______ | ||
| Line 1218: | Line 1224: | ||
| |__| W I R E L E S S F R E E D O M | |__| W I R E L E S S F R E E D O M | ||
| | | ||
| - | | + | |
| | | ||
| === WARNING! ===================================== | === WARNING! ===================================== | ||
| Line 1226: | Line 1232: | ||
| -------------------------------------------------- | -------------------------------------------------- | ||
| root@OpenWrt:/# | root@OpenWrt:/# | ||
| - | Linux OpenWrt | + | Linux OpenWrt |
| root@OpenWrt:/# | root@OpenWrt:/# | ||
| dev: size | dev: size | ||
| mtd0: 00040000 00010000 " | mtd0: 00040000 00010000 " | ||
| mtd1: 00010000 00010000 " | mtd1: 00010000 00010000 " | ||
| - | mtd2: 00f50000 | + | mtd2: 00800000 |
| - | mtd3: 001c0000 | + | mtd3: 00010000 |
| - | mtd4: 00d90000 | + | mtd4: 00740000 |
| - | mtd5: 00b90000 | + | mtd5: 00040000 |
| - | mtd6: 00040000 | + | mtd6: 00010000 |
| - | mtd7: 00010000 00010000 "mib0" | + | mtd7: 00010000 00010000 "art" |
| - | mtd8: 00010000 00010000 "ART" | + | mtd8: 00f40000 |
| - | root@OpenWrt:/# | + | mtd9: 00200000 |
| + | mtd10: 00d40000 00010000 " | ||
| + | mtd11: 00a70000 00010000 " | ||
| + | root@OpenWrt:/# | ||
| </ | </ | ||
| </ | </ | ||
| - | ===== Build Instructions ===== | + | ===== Experimental firmware (deprecated) ===== |
| + | |||
| + | This was the first attempt to get OpenWrt running on this device. It used a different flash-layout and required changes to the boot-address in u-boot. | ||
| + | |||
| + | Build instructions for NWA1123-NI are still available [[#Build Instructions | ||
| + | |||
| + | Compiled Firmware can be downloaded from https:// | ||
| + | |||
| + | If you are using this firmware, follow the instructions below to revert to stock firmware or the current OpenWrt firmware: | ||
| + | |||
| + | ==== Revert from old experimental firmware ==== | ||
| + | |||
| + | This instructions can also be used to directly flash the current OpenWrt firmware, use xxx-**factory-AAEO**.bin instead of the stock firmware image. | ||
| + | |||
| + | This instructions are based on the ZyXEL KnowledgeBase article //" | ||
| + | |||
| + | * Download the Firmware (either Zyxel or new OpenWrt) and extract files from .bin (bz2 compressed tar) | ||
| + | * Copy // | ||
| + | * Establish a [[docs: | ||
| + | * Power up the device, press any key to interrupt the boot process: | ||
| + | < | ||
| + | Hit any key to stop autoboot: | ||
| + | </ | ||
| + | * Change the boot-address and add the old bootargs | ||
| + | < | ||
| + | setenv bootcmd 'bootm 0x9f850000' | ||
| + | setenv bootargs ' | ||
| + | saveenv | ||
| + | </ | ||
| + | * Set IP-Address of Device and TFTP-server and try to ping the server: | ||
| + | < | ||
| + | setenv ipaddr 192.168.1.11 | ||
| + | setenv serverip 192.168.1.120 | ||
| + | ping $serverip | ||
| + | </ | ||
| + | * Flash the kernel-image and after it the file-system: | ||
| + | < | ||
| + | run lk | ||
| + | run lf | ||
| + | </ | ||
| + | |||
| + | Done, after flashing power-cycle the device (or enter " | ||
| + | |||
| + | ==== Installing OpenWrt (deprecated) ==== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | As the flash-layout and the boot-address changes it is not possible to flash the device via stock firmware. | ||
| + | |||
| + | **Technical references** | ||
| + | * [[docs: | ||
| + | * [[docs: | ||
| + | * [[docs: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * Start the TFTP server and put the // | ||
| + | * Establish a [[docs: | ||
| + | * Power up the device, press any key to interrupt the boot process: | ||
| + | < | ||
| + | Hit any key to stop autoboot: | ||
| + | </ | ||
| + | * Change the boot-address and remove old bootargs | ||
| + | < | ||
| + | setenv bootcmd 'bootm 0x9f050000' | ||
| + | setenv bootargs | ||
| + | saveenv | ||
| + | </ | ||
| + | * Set IP-Address of Device and TFTP-server and try to ping the server | ||
| + | < | ||
| + | setenv ipaddr 192.168.1.11 | ||
| + | setenv serverip 192.168.1.120 | ||
| + | ping $serverip | ||
| + | </ | ||
| + | * Flash firmware (Do not erase before the fw.bin got successfully loaded!) | ||
| + | < | ||
| + | tftp 0x80060000 fw.bin | ||
| + | erase 0x9f050000 +$filesize | ||
| + | cp.b $fileaddr 0x9f050000 $filesize | ||
| + | </ | ||
| + | |||
| + | Done, after flashing power-cycle the device (or enter " | ||
| + | |||
| + | ==== Flash Layout (deprecated) | ||
| + | |||
| + | ^ ZyXEL NWA1123-NI | ||
| + | ^ Layer0 | ||
| + | ^ Layer1 | ||
| + | ^ Layer2 | ||
| + | ^ <color magenta> | ||
| + | ^ filesystem | ||
| + | ^ Layer3 | ||
| + | ^ Size in KiB | 256 KiB | ||
| + | ^ Name | ||
| + | ^ <color magenta> | ||
| + | ^ filesystem | ||
| + | ==== Build Instructions (deprecated) ==== | ||
| /* this section will be remove after successfull commit */ | /* this section will be remove after successfull commit */ | ||
| - | Follow the instuctions here: [[docs: | + | Follow the instuctions here: [[docs: |
| Before running "make menuconfig" | Before running "make menuconfig" | ||
| Line 1461: | Line 1567: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | === OpenWrt bootlog (19.07) === | ||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | |||
| + | U-boot MI124 | ||
| + | DRAM: Tap value selected = 0xf [0x0 - 0x1f] | ||
| + | Setting 0xb8116290 to 0x30602d0f | ||
| + | 64 MB | ||
| + | Top of RAM usable for U-Boot at: 84000000 | ||
| + | Reserving 220k for U-Boot at: 83fc8000 | ||
| + | Reserving 192k for malloc() at: 83f98000 | ||
| + | Reserving 44 Bytes for Board Info at: 83f97fd4 | ||
| + | Reserving 48 Bytes for Global Data at: 83f97fa4 | ||
| + | Reserving 128k for boot params() at: 83f77fa4 | ||
| + | Stack Pointer at: 83f77f88 | ||
| + | Now running in RAM - U-Boot at: 83fc8000 | ||
| + | Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18 | ||
| + | flash size 16MB, sector count = 256 | ||
| + | Flash: 16 MB | ||
| + | pci_init_board: | ||
| + | BOARD IS NOT CALIBRATED!!! | ||
| + | In: serial | ||
| + | Out: | ||
| + | Err: | ||
| + | Net: | ||
| + | Fetching MAC Address from 0x83fed7b8 | ||
| + | | ||
| + | WASP ----> F1 PHY * | ||
| + | : cfg1 0x80000000 cfg2 0x7114 | ||
| + | eth0: 00: | ||
| + | F1Phy reg init | ||
| + | ATHR_AUTONEG_ADVERT: | ||
| + | ATHR_1000BASET_CONTROL: | ||
| + | ATHR_PHY_CONTROL: | ||
| + | ATHRSF1_PHY: | ||
| + | ATHRSF1_PHY: | ||
| + | ethact=eth0 | ||
| + | |||
| + | ************ Post Result ******************* | ||
| + | POST memory PASSED | ||
| + | POST uart PASSED | ||
| + | POST ethernet PASSED | ||
| + | Hit any key to stop autoboot: | ||
| + | ## Booting image at 9f050000 ... | ||
| + | Image Name: MIPS OpenWrt Linux-4.19.79 | ||
| + | | ||
| + | Image Type: MIPS Linux Kernel Image (lzma compressed) | ||
| + | Data Size: 1802279 Bytes = 1.7 MB | ||
| + | Load Address: 80060000 | ||
| + | Entry Point: | ||
| + | | ||
| + | | ||
| + | No initrd | ||
| + | ## Transferring control to Linux (at address 80060000) ... | ||
| + | ## Giving linux memsize in bytes, 67108864 | ||
| + | |||
| + | Starting kernel ... | ||
| + | |||
| + | [ 0.000000] Linux version 4.19.79 (openwrt@zyxel-dev) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11271-f1d761f95e)) #0 Sun Oct 20 11:01:43 2019 | ||
| + | [ 0.000000] bootconsole [early0] enabled | ||
| + | [ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc) | ||
| + | [ 0.000000] MIPS: machine is ZyXEL NWA1123-NI | ||
| + | [ 0.000000] SoC: Atheros AR9342 rev 1 | ||
| + | [ 0.000000] Determined physical RAM map: | ||
| + | [ 0.000000] | ||
| + | [ 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] | ||
| + | [ 0.000000] Movable zone start for each node | ||
| + | [ 0.000000] Early memory node ranges | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff] | ||
| + | [ 0.000000] random: get_random_bytes called from start_kernel+0x98/ | ||
| + | [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240 | ||
| + | [ 0.000000] Kernel command line: console=ttyS0, | ||
| + | [ 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: 57580K/ | ||
| + | [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, | ||
| + | [ 0.000000] NR_IRQS: 51 | ||
| + | [ 0.000000] CPU clock: 560.000 MHz | ||
| + | [ 0.000000] clocksource: | ||
| + | [ 0.000011] sched_clock: | ||
| + | [ 0.008331] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688) | ||
| + | [ 0.084961] pid_max: default: 32768 minimum: 301 | ||
| + | [ 0.090143] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) | ||
| + | [ 0.097208] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) | ||
| + | [ 0.110545] clocksource: | ||
| + | [ 0.121077] futex hash table entries: 256 (order: -1, 3072 bytes) | ||
| + | [ 0.127746] pinctrl core: initialized pinctrl subsystem | ||
| + | [ 0.134531] NET: Registered protocol family 16 | ||
| + | [ 0.148570] PCI host bridge / | ||
| + | [ 0.155143] | ||
| + | [ 0.160700] | ||
| + | [ 0.191367] PCI host bridge to bus 0000:00 | ||
| + | [ 0.195748] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff] | ||
| + | [ 0.203142] pci_bus 0000:00: root bus resource [io 0x0000] | ||
| + | [ 0.209070] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] | ||
| + | [ 0.216310] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] | ||
| + | [ 0.226393] pci 0000: | ||
| + | [ 0.234198] pci 0000: | ||
| + | [ 0.246172] clocksource: | ||
| + | [ 0.253067] NET: Registered protocol family 2 | ||
| + | [ 0.258733] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes) | ||
| + | [ 0.267031] TCP established hash table entries: 1024 (order: 0, 4096 bytes) | ||
| + | [ 0.274456] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) | ||
| + | [ 0.281267] TCP: Hash tables configured (established 1024 bind 1024) | ||
| + | [ 0.288207] UDP hash table entries: 256 (order: 0, 4096 bytes) | ||
| + | [ 0.294447] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) | ||
| + | [ 0.301644] NET: Registered protocol family 1 | ||
| + | [ 0.310330] Crashlog allocated RAM at address 0x3f00000 | ||
| + | [ 0.317798] workingset: timestamp_bits=14 max_order=14 bucket_order=0 | ||
| + | [ 0.332899] squashfs: version 4.0 (2009/ | ||
| + | [ 0.339181] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. | ||
| + | [ 0.365807] io scheduler noop registered | ||
| + | [ 0.370062] io scheduler deadline registered (default) | ||
| + | [ 0.378054] pinctrl-single 1804002c.pinmux: | ||
| + | [ 0.385370] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled | ||
| + | [ 0.393062] console [ttyS0] disabled | ||
| + | [ 0.396979] 18020000.uart: | ||
| + | [ 0.406194] console [ttyS0] enabled | ||
| + | [ 0.406194] console [ttyS0] enabled | ||
| + | [ 0.413604] bootconsole [early0] disabled | ||
| + | [ 0.413604] bootconsole [early0] disabled | ||
| + | [ 0.431066] m25p80 spi0.0: mx25l12805d (16384 Kbytes) | ||
| + | [ 0.436342] 6 fixed-partitions partitions found on MTD device spi0.0 | ||
| + | [ 0.442785] Creating 6 MTD partitions on " | ||
| + | [ 0.447696] 0x000000000000-0x000000040000 : " | ||
| + | [ 0.453762] 0x000000040000-0x000000050000 : " | ||
| + | [ 0.460310] 0x000000050000-0x000000fa0000 : " | ||
| + | [ 0.470500] 2 uimage-fw partitions found on MTD device firmware | ||
| + | [ 0.476580] Creating 2 MTD partitions on " | ||
| + | [ 0.481633] 0x000000000000-0x0000001c0000 : " | ||
| + | [ 0.487686] 0x0000001c0000-0x000000f50000 : " | ||
| + | [ 0.493627] mtd: device 4 (rootfs) set to be root filesystem | ||
| + | [ 0.501402] 1 squashfs-split partitions found on MTD device rootfs | ||
| + | [ 0.507761] 0x0000003c0000-0x000000f50000 : " | ||
| + | [ 0.514297] 0x000000fa0000-0x000000fe0000 : " | ||
| + | [ 0.520410] 0x000000fe0000-0x000000ff0000 : " | ||
| + | [ 0.526320] 0x000000ff0000-0x000001000000 : " | ||
| + | [ 0.533396] libphy: Fixed MDIO Bus: probed | ||
| + | [ 0.898194] libphy: ag71xx_mdio: | ||
| + | [ 0.996626] ag71xx 19000000.eth: | ||
| + | [ 1.007724] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-id | ||
| + | [ 1.016981] NET: Registered protocol family 10 | ||
| + | [ 1.027340] Segment Routing with IPv6 | ||
| + | [ 1.031216] NET: Registered protocol family 17 | ||
| + | [ 1.035822] 8021q: 802.1Q VLAN Support v1.8 | ||
| + | [ 1.051937] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. | ||
| + | [ 1.067086] Freeing unused kernel memory: 1188K | ||
| + | [ 1.071686] This architecture does not have kernel memory protection. | ||
| + | [ 1.078255] Run /sbin/init as init process | ||
| + | [ 2.193807] init: Console is alive | ||
| + | [ 2.197657] init: - watchdog - | ||
| + | [ 2.426191] random: fast init done | ||
| + | [ 3.622695] kmodloader: loading kernel modules from / | ||
| + | [ 3.816345] kmodloader: done loading kernel modules from / | ||
| + | [ 3.834234] init: - preinit - | ||
| + | [ 4.984790] random: jshn: uninitialized urandom read (4 bytes read) | ||
| + | [ 5.169161] random: jshn: uninitialized urandom read (4 bytes read) | ||
| + | [ 5.215803] random: jshn: uninitialized urandom read (4 bytes read) | ||
| + | [ 5.524890] IPv6: ADDRCONF(NETDEV_UP): | ||
| + | Press the [f] key and hit [enter] to enter failsafe mode | ||
| + | Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level | ||
| + | [ 7.637663] eth0: link up (1000Mbps/ | ||
| + | [ 7.642403] IPv6: ADDRCONF(NETDEV_CHANGE): | ||
| + | [ 8.927888] jffs2: notice: (463) jffs2_build_xattr_subsystem: | ||
| + | [ 8.945995] mount_root: switching to jffs2 overlay | ||
| + | [ 8.979158] overlayfs: upper fs does not support tmpfile. | ||
| + | [ 8.994439] urandom-seed: | ||
| + | [ 9.201555] eth0: link down | ||
| + | [ 9.219447] procd: - early - | ||
| + | [ 9.222513] procd: - watchdog - | ||
| + | [ 9.871659] procd: - watchdog - | ||
| + | [ 9.875248] procd: - ubus - | ||
| + | [ 9.908189] urandom_read: | ||
| + | [ 9.908199] random: ubusd: uninitialized urandom read (4 bytes read) | ||
| + | [ 9.928586] random: ubusd: uninitialized urandom read (4 bytes read) | ||
| + | [ 9.936921] procd: - init - | ||
| + | Please press Enter to activate this console. | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | |||
| + | |||
| + | |||
| + | BusyBox v1.31.0 () built-in shell (ash) | ||
| + | |||
| + | _______ | ||
| + | | ||
| + | | ||
| + | | ||
| + | |__| W I R E L E S S F R E E D O M | ||
| + | | ||
| + | | ||
| + | | ||
| + | === WARNING! ===================================== | ||
| + | There is no root password defined on this device! | ||
| + | Use the " | ||
| + | in order to prevent unauthorized SSH logins. | ||
| + | -------------------------------------------------- | ||
| + | root@OpenWrt:/# | ||
| + | Linux OpenWrt 4.19.79 #0 Sun Oct 20 11:01:43 2019 mips GNU/Linux | ||
| + | root@OpenWrt:/# | ||
| + | dev: size | ||
| + | mtd0: 00040000 00010000 " | ||
| + | mtd1: 00010000 00010000 " | ||
| + | mtd2: 00f50000 00010000 " | ||
| + | mtd3: 001c0000 00010000 " | ||
| + | mtd4: 00d90000 00010000 " | ||
| + | mtd5: 00b90000 00010000 " | ||
| + | mtd6: 00040000 00010000 " | ||
| + | mtd7: 00010000 00010000 " | ||
| + | mtd8: 00010000 00010000 " | ||
| + | root@OpenWrt:/# | ||
| + | </ | ||
| + | </ | ||
| + | |||