Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
inbox:zyxel:zyxel_nwa1123-ni [2019/10/19 06:12] – [OEM bootlog] krtzbrtzinbox:zyxel:zyxel_nwa1123-ni [2021/07/31 16:32] – [Build Instructions (deprecated)] update links vgaetera
Line 1: Line 1:
 ====== ZyXEL NWA1123-NI ====== ====== ZyXEL NWA1123-NI ======
-~~NOTOC~~ 
  
 /* This template is intended to be used via https://openwrt.org/meta/create_new_device_page . */ /* This template is intended to be used via https://openwrt.org/meta/create_new_device_page . */
Line 6: Line 5:
 {{page>meta:infobox:construction&noheader&nofooter&noeditbtn}} {{page>meta:infobox:construction&noheader&nofooter&noeditbtn}}
  
-The ZyXEL NWA1123-NI is a (dual band5 GHz 802.11n access point with one GbE port (PoE) for wall or ceiling mount+The ZyXEL NWA1123-NI is a dual band (2.4G Hz + 5 GHz, simultaneous) 802.11n access point with one GbE port (PoE) for wall or ceiling mount.
  
 /*****/ /*****/
Line 12: Line 11:
 /*****/ /*****/
  
-{{ media:example:genericrouter1.png?200|Generic Router}}+{{media:zyxel:nwa1123ni:nwa1123ni_front.jpg?200|ZyXEL NWA1123-NI}}
  
  
Line 22: Line 21:
  
 ===== Supporting activities ===== ===== Supporting activities =====
-Currently the device is able to boot OpenWrt and is full functional, but some Issues are open with the GbE (workaround is neededGbE must be brought up in uboot before booting OpenWrt).+2021-05-13New attempt to add support in OpenWrt 
 +  * different flash-layout than previous attempt 
 +  * enables installing OpenWRT from within stock firmware 
 +  * Pull request: https://github.com/openwrt/openwrt/pull/4037
  
-  * OpenWrt forum thread: https://forum.openwrt.org/t/support-for-zyxel-nwa1123-ni 
  
 +2019-10-21: Currently the device is able to boot OpenWrt and seems to be full functional. Patch/commit is WiP.
  
- +  OpenWrt forum thread: https://forum.openwrt.org/t/support-for-zyxel-nwa1123-ni
-/*** if info availableuncomment and fill in +
-===== Experimental firmware ===== +
- +
-//List experimental firmware download links here.// +
- +
-//None at this time.// +
- +
-  * External image (add link) +
-  * trunk image (add link) +
-  * ... +
-***/+
  
  
 ===== Hardware highlights ===== ===== Hardware highlights =====
-^ CPU                        ^ Ram      ^ Flash   ^ Network     ^ WLAN   ^ USB      ^ Serial   ^ JTag   +^ CPU                        ^  Ram      Flash    Network   WLAN    USB   Serial   JTag  
-| Atheros AR9342 @ 560 MHz    64 MiB  |  16 MiB  |  1 x GbE  |  abgn    No  |   Yes    |   ?    |+| Atheros AR9342 @ 560 MHz    64 MiB  |  16 MiB  |  1 x GbE  |  abgn    No   |   Yes    |   ?    | 
  
  
-/*** if info available: uncomment and fill in 
 ===== Installation ===== ===== Installation =====
 +/***
   - → [[:downloads|Obtain firmware]]   - → [[:downloads|Obtain firmware]]
   - → [[docs:guide-user:installation:generic.flashing|Install OpenWrt]]   - → [[docs:guide-user:installation:generic.flashing|Install OpenWrt]]
   - → [[:downloads|Latest OpenWrt release]]   - → [[:downloads|Latest OpenWrt release]]
 +***/
  
 ==== Installing OpenWrt ==== ==== Installing OpenWrt ====
-***/+ 
 +{{:meta:icons:tango:48px-dialog-warning.svg.png?nolink&20x20}} In the rare case you were using the old experimental firmware from this wiki (pre 2021-05), please follow the instructions [[#Revert from old experimental firmware|here]] 
 + 
 +Flashing OpenWrt is straight forward: 
 + 
 +  Login to OEM Web UI 
 +  Flash xxx-**factory-AAEO**.bin 
 + 
 +First boot takes ca. 2-3 minutes, wait for the LED to stop blinking and turn to solid green.
  
  
-/*** if info available: uncomment and fill in 
 ===== Debricking ===== ===== Debricking =====
 -> [[docs:guide-user:troubleshooting:generic.debrick]] -> [[docs:guide-user:troubleshooting:generic.debrick]]
-***/ 
  
 +==== Revert to stock firmware ====
 +
 +This instructions are based on the ZyXEL KnowledgeBase article //"What is the procedure to recover the NWA1121-NI, NWA1123-NI, and NWA1123-AC via a TFTP server?"//
 +
 +  * Download the Firmware, extract files from .bin (bz2 compressed tar)
 +  * Copy //mi124_f1e-jffs2// and //vmlinux_mi124_f1e.lzma.uImage// to tftp server
 +  * Establish a [[docs:techref:hardware:port.serial|serial connection]] to the [[#Serial|device]]
 +  * Power up the device, press any key to interrupt the boot process:
 +<code>
 +Hit any key to stop autoboot:  3
 +</code>
 +  * Set IP-Address of Device and TFTP-server and try to ping the server:
 +<code>
 +setenv ipaddr 192.168.1.11
 +setenv serverip 192.168.1.120
 +ping $serverip
 +</code>
 +  * Flash the kernel-image and after it the file-system:
 +<code>
 +run lk
 +run lf
 +</code>
 +
 +Done, after flashing power-cycle the device (or enter "reset" in uboot).
  
 /*** if info available: uncomment and fill in /*** if info available: uncomment and fill in
Line 89: Line 112:
 </WRAP> </WRAP>
 ***/ ***/
- 
- 
- 
-==== Buttons ==== 
--> [[docs:guide-user:hardware:hardware.button]] on howto use and configure the hardware button(s). 
-Here, we merely name the buttons, so we can use them in the above Howto. 
- 
-The ZyXEL NWA1123-NI has the following buttons: 
- 
-^ BUTTON                       ^ Event   ^ 
-| Reset                |  reset  | 
  
  
Line 113: Line 125:
 ^ Flash size       | 16 MiB                                                                | ^ Flash size       | 16 MiB                                                                |
 ^ RAM              | 64 MiB                                                                | ^ RAM              | 64 MiB                                                                |
-^ Wireless 2.4GHz  | Atheros AR9340 (SoC) 802.11bgn                                        +^ Wireless 2.4GHz  | Atheros AR9340 (SoC) 802.11bgn  2x2:                                
-^ Wireless 5.0GHz  | Atheros AR9382 (PCIe) 802.11an                                        |+^ Wireless 5.0GHz  | Atheros AR9382 (PCIe) 802.11an  2x2:                                |
 ^ Ethernet         | Atheros AR8035 PHY 10/100/1000 Mbit/                                | ^ Ethernet         | Atheros AR8035 PHY 10/100/1000 Mbit/                                |
 ^ Switch           | No                                                                    | ^ Switch           | No                                                                    |
Line 120: Line 132:
 ^ Serial           | [[#Serial|Yes]]                                                       | ^ Serial           | [[#Serial|Yes]]                                                       |
 ^ JTAG             | [[#JTAG|Unknown]]                                                     | ^ JTAG             | [[#JTAG|Unknown]]                                                     |
 +
 +==== Buttons ====
 +-> [[docs:guide-user:hardware:hardware.button]] on howto use and configure the hardware button(s).
 +Here, we merely name the buttons, so we can use them in the above Howto.
 +
 +The ZyXEL NWA1123-NI has the following buttons:
 +
 +^ BUTTON                Event  ^  GPIO  ^  Polarity    ^
 +| Reset                |  reset  |      |  Active low  |
 +
 +==== LEDs ====
 +
 +^ LED              Color  ^  GPIO  ^  Polarity    ^
 +| Power / Status  |  amber  |   11    Active low  |
 +|:::              |  green  |   12    Active low  |
  
  
 ==== Flash Layout ==== ==== Flash Layout ====
 +
 +=== OpenWrt ===
 +
 +Two flash partitions are concatenated to a "firmware" partition
 +
 +^  ZyXEL NWA1123-NI  Flash Layout  (OpenWrt)  ^^^^^^^^^
 +^ Layer0        raw NOR flash memory chip (m25p80 [[wp>Serial Peripheral Interface Bus|spi]]0.0: mx25l12805d) 16384 KiB  ||||||||
 +^ Layer1        mtd0 **//u-boot//** 256 KiB  |  mtd1 **//u-boot-env//** 64KiB  |  mtd2 **//fwconcat0//** 8192 KiB  |  mtd3 **//loader//** 64 KiB  |  mtd4 **//fwconcat1//** 7424 KiB  |  mtd5 **//config//** 256 KiB  |  mtd6 **//mib0//** 64 KiB  |  mtd7 **//art//** 64 KiB  |
 +^ Size in KiB  |  256 KiB  |  64 KiB  |  8192 KiB  |  64 KiB  |   7424 KiB  |  256 KiB  |  64 KiB  |  64 KiB  |
 +^ Name          **//u-boot//**  |  **//u-boot-env//**  |  **//fwconcat0//**  |  **//loader//**  |  **//fwconcat1//**  |  **//config//**  |  **//mib0//**  |  **//art//**  |
 +^ <color magenta>mountpoint</color>    //none//  |  //none//  |  //none//  |  //none//  |  //none//    //none//  |  //none//  |  //none//  |
 +^ filesystem    //none//  |  //none//  |  //none//  |  //none//  |  //none//  |  //none//  |  //none//  |  //none//  |
 +
 +
 +^  virtual firmware partition  ^^^^
 +^ Layer0        **//fwconcat0//** + **//fwconcat1//**  |||
 +^ Layer1        mtd8 **//firmware//** 15616 KiB  |||
 +^ Layer2        mtd9 **//kernel//** 2048 KiB  |  mtd10 **//rootfs//** 13568 KiB  ||
 +^ <color magenta>mountpoint</color>    |  ''/''  ||
 +^ filesystem    |  [[docs:techref:filesystems#overlayfs|OverlayFS]]  ||
 +^ Layer3        |  |  mtd11 **//rootfs_data//** 10688 KiB  |
 +^ Size in KiB  |  2048 KiB  |  2880 KiB  |  10688 KiB  |
 +^ Name          **//kernel//**  |  |  **//rootfs_data//**  |
 +^ <color magenta>mountpoint</color>    //none//  |  ''/rom''  |  ''/overlay''  |
 +^ filesystem    //none//  |  [[docs:techref:filesystems#SquashFS]]  |  [[docs:techref:filesystems#JFFS2]]  |
 +
 === Stock Firmware === === Stock Firmware ===
  
Line 129: Line 182:
 ^   ZyXEL NWA1123-NI  Flash Layout  (stock firmware)  ^^^^^^^^^ ^   ZyXEL NWA1123-NI  Flash Layout  (stock firmware)  ^^^^^^^^^
 ^ Layer0        raw NOR flash memory chip (Macronix MX25L12845E)  16384 KiB  |||||||| ^ Layer0        raw NOR flash memory chip (Macronix MX25L12845E)  16384 KiB  ||||||||
-^ Layer1        mtd0  |  mtd1  |  mtd2  |  mtd3  |  mtd4  |  mtd5  | mtd6  |  mtd7  |+^ Layer1        mtd0  |  mtd1  |  mtd2  |  mtd3  |  mtd4  |  mtd5  |  mtd6  |  mtd7  |
 ^ Size in KiB  |  256 KiB  |  64 KiB  |  8192 KiB  |  960 KiB  |  6528 KiB  |  256 KiB  |  64 KiB  |  64 KiB  | ^ Size in KiB  |  256 KiB  |  64 KiB  |  8192 KiB  |  960 KiB  |  6528 KiB  |  256 KiB  |  64 KiB  |  64 KiB  |
 ^ Name          **u-boot**  |  **u-boot-env**  |  **rootfs**  |  **uImage**  |  **reserve**  |  **config**  |  **mib0**  |  **ART**  | ^ Name          **u-boot**  |  **u-boot-env**  |  **rootfs**  |  **uImage**  |  **reserve**  |  **config**  |  **mib0**  |  **ART**  |
Line 154: Line 207:
 /* Thanks, your wiki administration - Oct. 2015 */ /* Thanks, your wiki administration - Oct. 2015 */
  
-**Insert photo of front of the casing**+**Casing**
  
-**Insert photo of back of the casing**+{{media:zyxel:nwa1123ni:nwa1123ni_front.jpg?201|Front}} {{media:zyxel:nwa1123ni:nwa1123ni_bottom.jpg?173|Bottom}} {{media:zyxel:nwa1123ni:nwa1123ni_open_pcb_flipped.jpg?238|Open}}
  
-**Insert photo of backside label**+**PCB** 
 + 
 +{{media:zyxel:nwa1123ni:nwa1123ni_pcb_top.jpg?300|PCB top}} {{media:zyxel:nwa1123ni:nwa1123ni_pcb_bottom.jpg?297|PCB bottom}} 
 + 
 +**Chips** 
 + 
 +{{media:zyxel:nwa1123ni:nwa1123ni_detail_soc.jpg?153|SoC AR9342}} {{media:zyxel:nwa1123ni:nwa1123ni_detail_ram.jpg?126|RAM}} 
 +{{media:zyxel:nwa1123ni:nwa1123ni_detail_ethernetphy.jpg?121|Ethernet PHY AR8035}} {{media:zyxel:nwa1123ni:nwa1123ni_detail_pcie_wifi.jpg?190|PCIe WiFi AR9382}}
  
-**Insert photo of PCB** 
  
 ==== Opening the case ==== ==== Opening the case ====
  
-<WRAP BOX> +Remove 4 screws (PH2) from the bottom side.
-FIXME //Describe what needs to be done to open the device, e.g. remove rubber feet, adhesive labels, screws, ...// +
-</WRAP>+
  
 ==== Serial ==== ==== Serial ====
 -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc. -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc.
  
-How to connect to the Serial Port of this specific device:\\ +The Serial Port header is located next to the On-PCB-Antenna "ANT2", Pin 1 (VCC) is marked with a small circle. 
-**Insert photo of PCB with markings for serial port**+ 
 +{{media:zyxel:nwa1123ni:nwa1123ni_serial.jpg?200|Serial Port header}} 
 + 
 +^ PIN  ^      ^ 
 +| 1    | VCC +3.3V (small circle silkscreened)   | 
 +| 2    | TX   | 
 +| 3    | RX   | 
 +| 4    | GND  | 
  
-<WRAP BOX> 
-FIXME //Replace EXAMPLE by real values.// 
-</WRAP> 
  
-^ Serial connection parameters\\ for ZyXEL NWA1123-NI @@Version@@ EXAMPLE 115200, 8N1 |+^ Serial connection parameters for ZyXEL NWA1123-NI  | 115200, 8N1 |
  
 ==== JTAG ==== ==== JTAG ====
 -> [[docs:techref:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc. -> [[docs:techref:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc.
  
-How to connect to the JTAG Port of this specific device:\\ +Does not exist or could not be identified.
-**Insert photo of PCB with markings for JTAG port**+
  
 ===== Bootlogs ===== ===== Bootlogs =====
Line 915: Line 976:
  
 ==== OpenWrt bootlog ==== ==== OpenWrt bootlog ====
 +
 <WRAP bootlog> <WRAP bootlog>
-<nowiki>COPY HERE THE BOOTLOG ONCE OPENWRT IS INSTALLED AND RUNNING</nowiki>+<nowiki>U-Boot 1.1.4-gd4ec3645-dirty (Sep  5 2012 - 14:31:48) 
 + 
 +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: PCIe PLL not set for 40MHz refclk 
 +BOARD IS NOT CALIBRATED!!! 
 +In:    serial 
 +Out:   serial 
 +Err:   serial 
 +Net:   ag934x_enet_initialize... 
 +Fetching MAC Address from 0x83fed7b8 
 + wasp  reset mask:c02200  
 +WASP  ----> F1 PHY * 
 +: cfg1 0x80000000 cfg2 0x7114 
 +eth0: 00:30:ab:11:20:e1 
 +F1Phy reg init  
 +ATHR_AUTONEG_ADVERT:1DE1 
 +ATHR_1000BASET_CONTROL:200 
 +ATHR_PHY_CONTROL:3100 
 +ATHRSF1_PHY: Port 0, Neg Success 
 +ATHRSF1_PHY: unit 0 phy addr 0 eth0 up 
 +ethact=eth0 
 + 
 +************ Post Result ******************* 
 +POST memory PASSED 
 +POST uart PASSED 
 +POST ethernet PASSED 
 +Hit any key to stop autoboot:  0  
 +## Booting image at 9f850000 ... 
 +   Image Name:   MIPS OpenWrt Linux-5.4.111 
 +   Created:      2021-04-18  10:06:57 UTC 
 +   Image Type:   MIPS Linux Kernel Image (lzma compressed) 
 +   Data Size:    3265 Bytes =  3.2 kB 
 +   Load Address: 80060000 
 +   Entry Point:  80060000 
 +   Verifying Checksum at 0x9f850040 ...OK 
 +   Uncompressing Kernel Image ... OK 
 +No initrd 
 +## Transferring control to Linux (at address 80060000) ... 
 +## Giving linux memsize in bytes, 67108864 
 + 
 +Starting kernel ... 
 + 
 + 
 + 
 +OpenWrt kernel loader for AR7XXX/AR9XXX 
 +Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org> 
 +Looking for OpenWrt image... found at 0xbf050000 
 +Decompressing kernel... done! 
 +Starting kernel at 80060000... 
 + 
 +[    0.000000] Linux version 5.4.111 (openwrt@zyxel-dev) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16046-59980f7aaf)) #0 Sun Apr 18 10:06:57 2021 
 +[    0.000000] printk: 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] 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] Built 1 zonelists, mobility grouping on.  Total pages: 16240 
 +[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2 
 +[    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, linear) 
 +[    0.000000] Writing ErrCtl register=00000000 
 +[    0.000000] Readback ErrCtl register=00000000 
 +[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off 
 +[    0.000000] Memory: 57216K/65536K available (4911K kernel code, 182K rwdata, 1128K rodata, 1192K init, 196K bss, 8320K 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] random: get_random_bytes called from start_kernel+0x308/0x4fc with crng_init=0 
 +[    0.000000] CPU clock: 560.000 MHz 
 +[    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.008337] Calibrating delay loop... 278.78 BogoMIPS (lpj=557568) 
 +[    0.050882] pid_max: default: 32768 minimum: 301 
 +[    0.055987] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) 
 +[    0.063790] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) 
 +[    0.077570] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns 
 +[    0.088001] futex hash table entries: 256 (order: -1, 3072 bytes, linear) 
 +[    0.095408] pinctrl core: initialized pinctrl subsystem 
 +[    0.102268] NET: Registered protocol family 16 
 +[    0.144982] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512 
 +[    0.159668] clocksource: Switched to clocksource MIPS 
 +[    0.166587] NET: Registered protocol family 2 
 +[    0.172269] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) 
 +[    0.181262] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) 
 +[    0.189444] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear) 
 +[    0.196971] TCP: Hash tables configured (established 1024 bind 1024) 
 +[    0.203910] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) 
 +[    0.210941] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) 
 +[    0.218775] NET: Registered protocol family 1 
 +[    0.223512] PCI: CLS 0 bytes, default 32 
 +[    0.232612] workingset: timestamp_bits=14 max_order=14 bucket_order=0 
 +[    0.247995] squashfs: version 4.0 (2009/01/31) Phillip Lougher 
 +[    0.254250] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. 
 +[    0.285656] pinctrl-single 1804002c.pinmux: 544 pins, size 68 
 +[    0.292992] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled 
 +[    0.300684] printk: console [ttyS0] disabled 
 +[    0.305363] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 2500000) is a 16550A 
 +[    0.314573] printk: console [ttyS0] enabled 
 +[    0.314573] printk: console [ttyS0] enabled 
 +[    0.323483] printk: bootconsole [early0] disabled 
 +[    0.323483] printk: bootconsole [early0] disabled 
 +[    0.342312] spi-nor spi0.0: mx25l12805d (16384 Kbytes) 
 +[    0.347701] 8 fixed-partitions partitions found on MTD device spi0.0 
 +[    0.354157] Creating 8 MTD partitions on "spi0.0": 
 +[    0.359044] 0x000000000000-0x000000040000 : "u-boot" 
 +[    0.365291] 0x000000040000-0x000000050000 : "u-boot-env" 
 +[    0.371965] 0x000000050000-0x000000850000 : "fwconcat0" 
 +[    0.378455] 0x000000850000-0x000000860000 : "loader" 
 +[    0.384712] 0x000000860000-0x000000fa0000 : "fwconcat1" 
 +[    0.391236] 0x000000fa0000-0x000000fe0000 : "config" 
 +[    0.397483] 0x000000fe0000-0x000000ff0000 : "mib0" 
 +[    0.403553] 0x000000ff0000-0x000001000000 : "art" 
 +[    0.409807] Concatenating MTD devices: 
 +[    0.413698] (0): "fwconcat0" 
 +[    0.416635] (1): "fwconcat1" 
 +[    0.419550] into device "virtual_flash" 
 +[    0.423501] 1 fixed-partitions partitions found on MTD device virtual_flash 
 +[    0.430578] Creating 1 MTD partitions on "virtual_flash": 
 +[    0.436091] 0x000000000000-0x000000f40000 : "firmware" 
 +[    0.453694] 2 uimage-fw partitions found on MTD device firmware 
 +[    0.459777] Creating 2 MTD partitions on "firmware": 
 +[    0.464840] 0x000000000000-0x000000200000 : "kernel" 
 +[    0.470985] 0x000000200000-0x000000f40000 : "rootfs" 
 +[    0.477167] mtd: device 10 (rootfs) set to be root filesystem 
 +[    0.485445] 1 squashfs-split partitions found on MTD device rootfs 
 +[    0.491813] 0x0000004d0000-0x000000f40000 : "rootfs_data" 
 +[    0.500832] libphy: Fixed MDIO Bus: probed 
 +[    0.845724] libphy: ag71xx_mdio: probed 
 +[    0.852169] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd072, driver=Atheros 8035 ethernet] 
 +[    0.862851] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-id 
 +[    0.869717] i2c /dev entries driver 
 +[    0.875801] NET: Registered protocol family 10 
 +[    0.886475] Segment Routing with IPv6 
 +[    0.890431] NET: Registered protocol family 17 
 +[    0.895062] 8021q: 802.1Q VLAN Support v1.8 
 +[    0.900597] PCI host bridge /ahb/pcie-controller@180c0000 ranges: 
 +[    0.906889]  MEM 0x0000000010000000..0x0000000013ffffff 
 +[    0.912215]   IO 0x0000000000000000..0x0000000000000000 
 +[    0.917732] PCI host bridge to bus 0000:00 
 +[    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] 
 +[    0.941507] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] 
 +[    0.949607] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000 
 +[    0.955783] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit] 
 +[    0.962732] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref] 
 +[    0.969634] pci 0000:00:00.0: supports D1 
 +[    0.973718] pci 0000:00:00.0: PME# supported from D0 D1 D3hot 
 +[    0.980854] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 
 +[    0.987639] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit] 
 +[    0.995102] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref] 
 +[    1.009289] VFS: Mounted root (squashfs filesystem) readonly on device 31:10. 
 +[    1.024565] Freeing unused kernel memory: 1192K 
 +[    1.029197] This architecture does not have kernel memory protection. 
 +[    1.035741] Run /sbin/init as init process 
 +[    1.191684] random: fast init done 
 +[    1.622407] init: Console is alive 
 +[    1.626248] init: - watchdog - 
 +[    2.479202] kmodloader: loading kernel modules from /etc/modules-boot.d/
 +[    2.586261] kmodloader: done loading kernel modules from /etc/modules-boot.d/
 +[    2.604199] init: - preinit - 
 +[    4.008230] random: jshn: uninitialized urandom read (4 bytes read) 
 +[    4.350794] random: jshn: uninitialized urandom read (4 bytes read) 
 +[    4.394829] random: jshn: uninitialized urandom read (4 bytes read) 
 +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.693090] eth0: link up (1000Mbps/Full duplex) 
 +[    7.697848] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
 +[    8.956412] jffs2: notice: (523) jffs2_build_xattr_subsystem: complete building xattr subsystem, 7 of xdatum (0 unchecked, 2 orphan) and 8 of xref (2 dead, 0 orphan) found. 
 +[    8.973662] mount_root: switching to jffs2 overlay 
 +[    8.982784] overlayfs: upper fs does not support tmpfile. 
 +[    8.995054] urandom-seed: Seeding with /etc/urandom.seed 
 +[    9.102201] eth0: link down 
 +[    9.120929] procd: - early - 
 +[    9.124101] procd: - watchdog - 
 +[    9.783832] procd: - watchdog - 
 +[    9.902115] procd: - ubus - 
 +[   10.001405] urandom_read: 5 callbacks suppressed 
 +[   10.001415] random: ubusd: uninitialized urandom read (4 bytes read) 
 +[   10.014080] random: ubusd: uninitialized urandom read (4 bytes read) 
 +[   10.024210] procd: - init - 
 +Please press Enter to activate this console. 
 +[   11.347117] kmodloader: loading kernel modules from /etc/modules.d/
 +[   11.401468] Loading modules backported from Linux version v5.10.16-0-gde53befa79cf 
 +[   11.409229] Backport generated by backports.git v5.10.16-1-0-g21d2a1d2 
 +[   11.482476] xt_time: kernel timezone is -0000 
 +[   11.666819] urngd: v1.0.2 started. 
 +[   11.780547] PPP generic driver version 2.4.2 
 +[   11.793220] NET: Registered protocol family 24 
 +[   11.916877] ath: phy0: disabling 5GHz band 
 +[   11.939463] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=12 
 +[   11.946667] ath9k 0000:00:00.0: enabling device (0000 -> 0002) 
 +[   12.061072] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=15 
 +[   12.188357] random: crng init done 
 +[   12.436172] kmodloader: done loading kernel modules from /etc/modules.d/
 +[   25.560165] br-lan: port 1(eth0) entered blocking state 
 +[   25.565543] br-lan: port 1(eth0) entered disabled state 
 +[   25.571247] device eth0 entered promiscuous mode 
 +[   28.653180] eth0: link up (1000Mbps/Full duplex) 
 +[   28.667367] br-lan: port 1(eth0) entered blocking state 
 +[   28.672743] br-lan: port 1(eth0) entered forwarding state 
 +[   28.715829] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready 
 +[   30.360206] br-lan: port 2(wlan0) entered blocking state 
 +[   30.365680] br-lan: port 2(wlan0) entered disabled state 
 +[   30.371485] device wlan0 entered promiscuous mode 
 +[   30.712686] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready 
 +[   30.719407] br-lan: port 2(wlan0) entered blocking state 
 +[   30.724864] br-lan: port 2(wlan0) entered forwarding state 
 +[   31.456944] br-lan: port 3(wlan1) entered blocking state 
 +[   31.462419] br-lan: port 3(wlan1) entered disabled state 
 +[   31.468257] device wlan1 entered promiscuous mode 
 +[   31.698864] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready 
 +[   31.705635] br-lan: port 3(wlan1) entered blocking state 
 +[   31.711097] br-lan: port 3(wlan1) entered forwarding state 
 + 
 + 
 + 
 +BusyBox v1.33.0 () built-in shell (ash) 
 + 
 +  _______                     ________        __ 
 +       |.-----.-----.-----.|  |  |  |.----.|  |_ 
 +     ||  _  |  -__|     ||  |  |  ||   _||   _| 
 + |_______||   __|_____|__|__||________||__|  |____| 
 +          |__| W I R E L E S S   F R E E D O M 
 + ----------------------------------------------------- 
 + OpenWrt 21.02.0-rc1, r16046-59980f7aaf 
 + ----------------------------------------------------- 
 +=== WARNING! ===================================== 
 +There is no root password defined on this device! 
 +Use the "passwd" command to set up a new password 
 +in order to prevent unauthorized SSH logins. 
 +-------------------------------------------------- 
 +root@OpenWrt:/# uname -a 
 +Linux OpenWrt 5.4.111 #0 Sun Apr 18 10:06:57 2021 mips GNU/Linux 
 +root@OpenWrt:/# cat /proc/mtd  
 +dev:    size   erasesize  name 
 +mtd0: 00040000 00010000 "u-boot" 
 +mtd1: 00010000 00010000 "u-boot-env" 
 +mtd2: 00800000 00010000 "fwconcat0" 
 +mtd3: 00010000 00010000 "loader" 
 +mtd4: 00740000 00010000 "fwconcat1" 
 +mtd5: 00040000 00010000 "config" 
 +mtd6: 00010000 00010000 "mib0" 
 +mtd7: 00010000 00010000 "art" 
 +mtd8: 00f40000 00010000 "firmware" 
 +mtd9: 00200000 00010000 "kernel" 
 +mtd10: 00d40000 00010000 "rootfs" 
 +mtd11: 00a70000 00010000 "rootfs_data" 
 +root@OpenWrt:/# 
 + 
 +</nowiki>
 </WRAP>\\ </WRAP>\\
 +
 +===== 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 (deprecated)|here]]
 +
 +Compiled Firmware can be downloaded from https://www.krtzbrtz.org/nwa1123ni/
 +
 +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 //"What is the procedure to recover the NWA1121-NI, NWA1123-NI, and NWA1123-AC via a TFTP server?"//
 +
 +  * Download the Firmware (either Zyxel or new OpenWrt) and extract files from .bin (bz2 compressed tar)
 +  * Copy //mi124_f1e-jffs2// and //vmlinux_mi124_f1e.lzma.uImage// to tftp server
 +  * Establish a [[docs:techref:hardware:port.serial|serial connection]] to the [[#Serial|device]]
 +  * Power up the device, press any key to interrupt the boot process:
 +<code>
 +Hit any key to stop autoboot:  3
 +</code>
 +  * Change the boot-address and add the old bootargs
 +<code>
 +setenv bootcmd 'bootm 0x9f850000'
 +setenv bootargs 'console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),8192k(rootfs),960k(uImage),6528k(reserve),256k(config),64k(mib0),64k(ART)'
 +saveenv
 +</code>
 +  * Set IP-Address of Device and TFTP-server and try to ping the server:
 +<code>
 +setenv ipaddr 192.168.1.11
 +setenv serverip 192.168.1.120
 +ping $serverip
 +</code>
 +  * Flash the kernel-image and after it the file-system:
 +<code>
 +run lk
 +run lf
 +</code>
 +
 +Done, after flashing power-cycle the device (or enter "reset" in uboot).
 +
 +==== Installing OpenWrt (deprecated) ====
 +
 +{{:meta:icons:tango:48px-dialog-warning.svg.png?nolink&20x20}} The uboot version of the device does NOT support booting initramfs-images from RAM, they need to be flashed first.
 +
 +As the flash-layout and the boot-address changes it is not possible to flash the device via stock firmware.
 +
 +**Technical references**
 +  * [[docs:techref:hardware:port.serial]]
 +  * [[docs:techref:bootloader:uboot]]
 +  * [[docs:guide-user:installation:generic.flashing.serial]]
 +
 +{{:meta:icons:tango:48px-dialog-warning.svg.png?nolink&20x20}} HIGHLY RECOMMENDED: Backup all flash first!
 +
 +  * Start the TFTP server and put the //openwrt-ath79-generic-zyxel_nwa1123-ni-squashfs-sysupgrade.bin// there and rename it to **fw.bin**
 +  * Establish a [[docs:techref:hardware:port.serial|serial connection]] to the [[#Serial|device]]
 +  * Power up the device, press any key to interrupt the boot process:
 +<code>
 +Hit any key to stop autoboot:  3
 +</code>
 +  * Change the boot-address and remove old bootargs
 +<code>
 +setenv bootcmd 'bootm 0x9f050000'
 +setenv bootargs
 +saveenv
 +</code>
 +  * Set IP-Address of Device and TFTP-server and try to ping the server
 +<code>
 +setenv ipaddr 192.168.1.11
 +setenv serverip 192.168.1.120
 +ping $serverip
 +</code>
 +  * Flash firmware (Do not erase before the fw.bin got successfully loaded!)
 +<code>
 +tftp 0x80060000 fw.bin
 +erase 0x9f050000 +$filesize
 +cp.b $fileaddr 0x9f050000 $filesize
 +</code>
 +
 +Done, after flashing power-cycle the device (or enter "reset" in uboot). First boot takes ca. 2-3 minutes as some file-system gets created. Wait for the LED to turn from blinking amber to solid green.
 +
 +==== Flash Layout (deprecated) ====
 +
 +^   ZyXEL NWA1123-NI  Flash Layout  (OpenWrt)           ^^^^^^^^^
 +^ Layer0        raw NOR flash memory chip (m25p80 [[wp>Serial Peripheral Interface Bus|spi]]0.0: mx25l12805d) 16384 KiB  ||||||||
 +^ Layer1        mtd0 **//u-boot//** 256 KiB  |  mtd1 **//u-boot-env//** 64KiB  |  mtd2 **//firmware//** 15680 KiB  |||  mtd6 **//config//** 256 KiB  |  mtd7 **//mib0//** 64 KiB  |  mtd8 **//ART//** 64 KiB  |
 +^ Layer2        |  |  mtd3 **//kernel//** 1792 KiB  |  mtd4 **//rootfs//** 13888 KiB  ||  |  |  |
 +^ <color magenta>mountpoint</color>    |  |  |  <color magenta>''/''</color>  ||  |  |  |
 +^ filesystem    |  |  |  [[docs:techref:filesystems#overlayfs|OverlayFS]]  ||  |  |  |
 +^ Layer3        |  |  |  |  mtd5 **//rootfs_data//** 11840 KiB  |  |  |  |
 +^ Size in KiB  |  256 KiB  |  64 KiB  |  1792 KiB  |  2048 KiB  |   11840 KiB  |  256 KiB  |  64 KiB  |  64 KiB  |
 +^ Name          **//u-boot//**  |  **//u-boot-env//**  |  **//kernel//**  |  |  **//rootfs_data//**  |  **//config//**  |  **//mib0//**  |  **//ART//**  |
 +^ <color magenta>mountpoint</color>    //none//  |  //none//  |  //none//  |  <color magenta>''/rom''</color>  |  <color magenta>''/overlay''</color>    //none//  |  //none//  |  //none//  |
 +^ filesystem    //none//  |  //none//  |  //none//                      [[docs:techref:filesystems#SquashFS]]  |  [[docs:techref:filesystems#JFFS2]]  |  //none//  |  //none//  |  //none//  |
 +
 +==== Build Instructions (deprecated) ====
 +/* this section will be remove after successfull commit */
 +
 +Follow the instuctions here: [[docs:guide-user:additional-software:beginners-build-guide|Beginners guide to building your own firmware]]
 +
 +Before running "make menuconfig" patch/add 3 files:
 +
 +**target/linux/ath79/base-files/etc/board.d/02_network**
 +
 +<WRAP bootlog>
 +<nowiki>
 +diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
 +index fe74bddbf1..9e70d60f4b 100755
 +--- a/target/linux/ath79/base-files/etc/board.d/02_network
 ++++ b/target/linux/ath79/base-files/etc/board.d/02_network
 +@@ -54,7 +54,8 @@ ath79_setup_interfaces()
 +        ubnt,unifiac-mesh|\
 +        ubnt,unifi|\
 +        wd,mynet-wifi-rangeextender|\
 +-       winchannel,wb2000)
 ++       winchannel,wb2000|\
 ++       zyxel,nwa1123-ni)
 +                ucidef_set_interface_lan "eth0"
 +                ;;
 +        avm,fritz4020|\
 +</nowiki>
 +</WRAP>\\
 +
 +**target/linux/ath79/image/generic.mk**
 +
 +<WRAP bootlog>
 +<nowiki>
 +diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk
 +index acb1ab4b0b..d704e095b5 100644
 +--- a/target/linux/ath79/image/generic.mk
 ++++ b/target/linux/ath79/image/generic.mk
 +@@ -1008,3 +1008,11 @@ define Device/zbtlink_zbt-wd323
 +                     kmod-usb-serial kmod-usb-serial-cp210x uqmi
 + endef
 + TARGET_DEVICES += zbtlink_zbt-wd323
 ++
 ++define Device/zyxel_nwa1123-ni
 ++  ATH_SOC := ar9342
 ++  DEVICE_VENDOR := ZyXEL
 ++  DEVICE_MODEL := NWA1123-NI
 ++  IMAGE_SIZE := 15680k
 ++endef
 ++TARGET_DEVICES += zyxel_nwa1123-ni
 +</nowiki>
 +</WRAP>\\
 +
 +**target/linux/ath79/dts/ar9342_zyxel_nwa1123-ni.dts**
 +
 +<WRAP bootlog>
 +<nowiki>
 +// SPDX-License-Identifier: GPL-2.0
 +/dts-v1/;
 +
 +#include <dt-bindings/gpio/gpio.h>
 +#include <dt-bindings/input/input.h>
 +
 +#include "ar9344.dtsi"
 +
 +/ {
 + compatible = "zyxel,nwa1123-ni", "qca,ar9342";
 + model = "ZyXEL NWA1123-NI";
 +
 + aliases {
 + led-boot = &status_amber;
 + led-failsafe = &status_amber;
 + led-running = &status_green;
 + led-upgrade = &status_amber;
 + };
 +
 + leds {
 + compatible = "gpio-leds";
 +
 + status_amber: power_amber {
 + label = "zyxel:amber:power";
 + gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
 + };
 +
 + status_green: power_green {
 + label = "zyxel:green:power";
 + gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
 + };
 + };
 +
 + keys {
 + compatible = "gpio-keys";
 +
 + reset {
 + label = "reset";
 + linux,code = <KEY_RESTART>;
 + gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
 + debounce-interval = <60>;
 + };
 + };
 +};
 +
 +&ref {
 + clock-frequency = <40000000>;
 +};
 +
 +&uart {
 + status = "okay";
 +};
 +
 +&gpio {
 + status = "okay";
 +};
 +
 +&spi {
 + status = "okay";
 + num-cs = <1>;
 +
 + flash@0 {
 + compatible = "jedec,spi-nor";
 + reg = <0>;
 + spi-max-frequency = <25000000>;
 +
 + partitions {
 + compatible = "fixed-partitions";
 + #address-cells = <1>;
 + #size-cells = <1>;
 +
 + partition@0 {
 + label = "u-boot";
 + reg = <0x000000 0x040000>;
 + read-only;
 + };
 +
 + partition@40000 {
 + label = "u-boot-env";
 + reg = <0x040000 0x010000>;
 + read-only;
 + };
 +
 + partition@50000 {
 + compatible = "denx,uimage";
 + label = "firmware";
 + reg = <0x050000 0xF50000>;
 + };
 +
 + partition@fa0000 {
 + label = "config";
 + reg = <0xfa0000 0x040000>;
 + read-only;
 + };
 +
 + partition@fe0000 {
 + label = "mib0";
 + reg = <0xfe0000 0x010000>;
 + read-only;
 + };
 +
 + art: partition@ff0000 {
 + label = "ART";
 + reg = <0xff0000 0x010000>;
 + read-only;
 + };
 + };
 + };
 +};
 +
 +
 +&pcie {
 + status = "okay";
 +
 + wifi@0,0 {
 + compatible = "168c,0030";
 + reg = <0x0000 0 0 0 0>;
 + mtd-mac-address = <&art 0x1002>;
 + mtd-mac-address-increment = <2>;
 + qca,disable-2ghz;
 + };
 +};
 +
 +&wmac {
 + status = "okay";
 + qca,disable-5ghz;
 + mtd-cal-data = <&art 0x1000>;
 + mtd-mac-address = <&art 0x1002>;
 + mtd-mac-address-increment = <1>;
 +};
 +
 +&mdio0 {
 + status = "okay";
 +
 + phy-mask = <0>;
 +
 + phy0: ethernet-phy@0 {
 + reg = <0>;
 + };
 +};
 +
 +&eth0 {
 + status = "okay";
 +
 + /* default for ar934x, except for 1000M and 10M */
 + pll-data = <0x06000000 0x00000101 0x00001313>;
 +
 + mtd-mac-address = <&art 0x1002>;
 +
 + phy-mode = "rgmii-id";
 + phy-handle = <&phy0>;
 +
 + gmac-config {
 + device = <&gmac>;
 + rxdv-delay = <3>;
 + rxd-delay = <3>;
 + txen-delay = <3>;
 + txd-delay = <3>;
 + rgmii-gmac0 = <1>;
 + };
 +};
 +</nowiki>
 +</WRAP>\\
 +
 +=== OpenWrt bootlog (19.07) ===
 +<WRAP bootlog>
 +<nowiki>U-Boot 1.1.4-gd4ec3645-dirty (Sep  5 2012 - 14:31:48)
 +
 +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: PCIe PLL not set for 40MHz refclk
 +BOARD IS NOT CALIBRATED!!!
 +In:    serial
 +Out:   serial
 +Err:   serial
 +Net:   ag934x_enet_initialize...
 +Fetching MAC Address from 0x83fed7b8
 + wasp  reset mask:c02200 
 +WASP  ----> F1 PHY *
 +: cfg1 0x80000000 cfg2 0x7114
 +eth0: 00:30:ab:11:20:e1
 +F1Phy reg init 
 +ATHR_AUTONEG_ADVERT:1DE1
 +ATHR_1000BASET_CONTROL:200
 +ATHR_PHY_CONTROL:3100
 +ATHRSF1_PHY: Port 0, Neg Success
 +ATHRSF1_PHY: unit 0 phy addr 0 eth0 up
 +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
 +   Created:      2019-10-20  11:01:43 UTC
 +   Image Type:   MIPS Linux Kernel Image (lzma compressed)
 +   Data Size:    1802279 Bytes =  1.7 MB
 +   Load Address: 80060000
 +   Entry Point:  80060000
 +   Verifying Checksum at 0x9f050040 ...OK
 +   Uncompressing Kernel Image ... OK
 +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]  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] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
 +[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
 +[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
 +[    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/65536K available (4273K kernel code, 178K rwdata, 1008K rodata, 1188K init, 206K bss, 7956K reserved, 0K cma-reserved)
 +[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
 +[    0.000000] NR_IRQS: 51
 +[    0.000000] CPU clock: 560.000 MHz
 +[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
 +[    0.000011] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
 +[    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: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
 +[    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 /ahb/pcie-controller@180c0000 ranges:
 +[    0.155143]  MEM 0x0000000010000000..0x0000000013ffffff
 +[    0.160700]   IO 0x0000000000000000..0x0000000000000000
 +[    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:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
 +[    0.234198] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
 +[    0.246172] clocksource: Switched to clocksource MIPS
 +[    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/01/31) Phillip Lougher
 +[    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: 544 pins, size 68
 +[    0.385370] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
 +[    0.393062] console [ttyS0] disabled
 +[    0.396979] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 2500000) is a 16550A
 +[    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 "spi0.0":
 +[    0.447696] 0x000000000000-0x000000040000 : "u-boot"
 +[    0.453762] 0x000000040000-0x000000050000 : "u-boot-env"
 +[    0.460310] 0x000000050000-0x000000fa0000 : "firmware"
 +[    0.470500] 2 uimage-fw partitions found on MTD device firmware
 +[    0.476580] Creating 2 MTD partitions on "firmware":
 +[    0.481633] 0x000000000000-0x0000001c0000 : "kernel"
 +[    0.487686] 0x0000001c0000-0x000000f50000 : "rootfs"
 +[    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 : "rootfs_data"
 +[    0.514297] 0x000000fa0000-0x000000fe0000 : "config"
 +[    0.520410] 0x000000fe0000-0x000000ff0000 : "mib0"
 +[    0.526320] 0x000000ff0000-0x000001000000 : "ART"
 +[    0.533396] libphy: Fixed MDIO Bus: probed
 +[    0.898194] libphy: ag71xx_mdio: probed
 +[    0.996626] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd072, driver=Atheros 8035 ethernet]
 +[    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 /etc/modules-boot.d/*
 +[    3.816345] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
 +[    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): eth0: link is not ready
 +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/Full duplex)
 +[    7.642403] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 +[    8.927888] jffs2: notice: (463) jffs2_build_xattr_subsystem: complete building xattr subsystem, 3 of xdatum (0 unchecked, 1 orphan) and 7 of xref (1 dead, 0 orphan) found.
 +[    8.945995] mount_root: switching to jffs2 overlay
 +[    8.979158] overlayfs: upper fs does not support tmpfile.
 +[    8.994439] urandom-seed: Seeding with /etc/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: 5 callbacks suppressed
 +[    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.
 +[   10.837954] kmodloader: loading kernel modules from /etc/modules.d/*
 +[   10.880410] Loading modules backported from Linux version v5.4-rc2-0-gda0c9ea146cb
 +[   10.888163] Backport generated by backports.git v5.4-rc2-1-0-g5a0c323a
 +[   10.964212] xt_time: kernel timezone is -0000
 +[   11.005490] urngd: v1.0.0 started.
 +[   11.159790] PPP generic driver version 2.4.2
 +[   11.177596] NET: Registered protocol family 24
 +[   11.309718] ath: phy0: disabling 5GHz band
 +[   11.332731] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=12
 +[   11.339965] ath9k 0000:00:00.0: enabling device (0000 -> 0002)
 +[   11.455217] random: crng init done
 +[   11.569932] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=15
 +[   11.659480] kmodloader: done loading kernel modules from /etc/modules.d/*
 +[   22.430121] br-lan: port 1(eth0) entered blocking state
 +[   22.435443] br-lan: port 1(eth0) entered disabled state
 +[   22.441242] device eth0 entered promiscuous mode
 +[   22.464124] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
 +[   24.517700] eth0: link up (1000Mbps/Full duplex)
 +[   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): br-lan: link becomes ready
 +
 +
 +
 +BusyBox v1.31.0 () built-in shell (ash)
 +
 +  _______                     ________        __
 +       |.-----.-----.-----.|  |  |  |.----.|  |_
 +     ||  _  |  -__|     ||  |  |  ||   _||   _|
 + |_______||   __|_____|__|__||________||__|  |____|
 +          |__| W I R E L E S S   F R E E D O M
 + -----------------------------------------------------
 + OpenWrt SNAPSHOT, r11271-f1d761f95e
 + -----------------------------------------------------
 +=== WARNING! =====================================
 +There is no root password defined on this device!
 +Use the "passwd" command to set up a new password
 +in order to prevent unauthorized SSH logins.
 +--------------------------------------------------
 +root@OpenWrt:/# uname -a
 +Linux OpenWrt 4.19.79 #0 Sun Oct 20 11:01:43 2019 mips GNU/Linux
 +root@OpenWrt:/# cat /proc/mtd 
 +dev:    size   erasesize  name
 +mtd0: 00040000 00010000 "u-boot"
 +mtd1: 00010000 00010000 "u-boot-env"
 +mtd2: 00f50000 00010000 "firmware"
 +mtd3: 001c0000 00010000 "kernel"
 +mtd4: 00d90000 00010000 "rootfs"
 +mtd5: 00b90000 00010000 "rootfs_data"
 +mtd6: 00040000 00010000 "config"
 +mtd7: 00010000 00010000 "mib0"
 +mtd8: 00010000 00010000 "ART"
 +root@OpenWrt:/# 
 +</nowiki>
 +</WRAP>\\
 +
 +
  
 ===== Notes ===== ===== Notes =====
Line 923: Line 1814:
 ===== Tags ===== ===== Tags =====
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>EXAMPLETAG unsupported}}+{{tag>AR9342 16Flash 64RAM 1port GigabitEthernet 802.11abgn ceiling unsupported}}
  • Last modified: 2024/02/12 11:43
  • by 127.0.0.1