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/21 19:59] – Add Installation instructions krtzbrtzinbox: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://github.com/openwrt/openwrt/pull/4037
 +
 +
 2019-10-21: Currently the device is able to boot OpenWrt and seems to be full functional. Patch/commit is WiP. 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   * OpenWrt forum thread: https://forum.openwrt.org/t/support-for-zyxel-nwa1123-ni
  
- 
- 
- 
-===== Experimental firmware ===== 
- 
-See build instructions for NWA1123-NI [[#Build Instructions|here]] 
  
 ===== Hardware highlights ===== ===== Hardware highlights =====
Line 47: Line 47:
 ==== Installing OpenWrt ==== ==== Installing OpenWrt ====
  
-As the flash-layout and the boot-address changes it is not possible to flash the device via stock firmware.+{{: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]]
  
-**Technical references** +Flashing OpenWrt is straight forward:
-  * [[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 RECOMMENDEDBackup all flash first!+  * Login to OEM Web UI 
 +  * Flash xxx-**factory-AAEO**.bin 
 + 
 +First boot takes ca2-3 minutes, wait for the LED to stop blinking and turn to solid green. 
 + 
 + 
 +===== Debricking ===== 
 +-> [[docs:guide-user:troubleshooting:generic.debrick]]
  
-  * Start the TFTP server and put the //openwrt-ath79-generic-zyxel_nwa1123-ni-squashfs-sysupgrade.bin// there and rename it to **fw.bin**+==== 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]]   * 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:   * Power up the device, press any key to interrupt the boot process:
Line 62: Line 71:
 Hit any key to stop autoboot:  3 Hit any key to stop autoboot:  3
 </code> </code>
-  * Change the boot-address and remove old bootargs +  * Set IP-Address of Device and TFTP-server and try to ping the server:
-<code> +
-setenv bootcmd 'bootm 0x9f050000' +
-setenv bootargs +
-saveenv +
-</code> +
-  * Set IP-Address of Device and TFTP-server and try to ping the server+
 <code> <code>
 setenv ipaddr 192.168.1.11 setenv ipaddr 192.168.1.11
Line 74: Line 77:
 ping $serverip ping $serverip
 </code> </code>
-  * Flash firmware (Do not erase before the fw.bin got successfully loaded!)+  * Flash the kernel-image and after it the file-system:
 <code> <code>
-tftp 0x80060000 fw.bin +run lk 
-erase 0x9f050000 +$filesize +run lf
-cp.b $fileaddr 0x9f050000 $filesize+
 </code> </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. +Done, after flashing power-cycle the device (or enter "reset" in uboot).
- +
- +
-===== Debricking ===== +
--> [[docs:guide-user:troubleshooting:generic.debrick]] +
- +
- +
  
 /*** if info available: uncomment and fill in /*** if info available: uncomment and fill in
Line 119: Line 114:
  
  
- 
-==== 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  | 
  
 ===== Hardware ===== ===== Hardware =====
Line 152: 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  |
  
  
Line 158: Line 153:
 === OpenWrt === === OpenWrt ===
  
-  ZyXEL NWA1123-NI  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  |||||||| ^ 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  +^ 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  | 
-^ Layer2       |  |  |  mtd3 **//kernel//** 1792 KiB  |  mtd4 **//rootfs//** 13888 KiB  ||  |  |  | +^ Size in KiB  |  256 KiB  |  64 KiB  |  8192 KiB  |  64 KiB  |   7424 KiB  |  256 KiB  |  64 KiB  |  64 KiB 
-^ <color magenta>mountpoint</color>    |  |  |  <color magenta>''/''</color>  ||  |  |  | +^ Name          **//u-boot//**  |  **//u-boot-env//**  |  **//fwconcat0//**  |  **//loader//**   **//fwconcat1//**  |  **//config//**  |  **//mib0//**  |  **//art//**  | 
-^ filesystem    |  |  |  [[docs:techref:filesystems#overlayfs|OverlayFS]]  ||  |  |  | +^ <color magenta>mountpoint</color>    //none//  |  //none//  |  //none//  |  //none//   //none//   |  //none//  |  //none//  |  //none// 
-^ Layer3        |  |  |  |  mtd5 **//rootfs_data//** 11840 KiB   |  |  | +^ filesystem    //none//  |  //none//  |  //none//  |  //none//  |  //none//   //none//  |  //none//  |  //none//  | 
-^ 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//  |+
  
 +^  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 971: Line 976:
  
 ==== OpenWrt bootlog ==== ==== OpenWrt bootlog ====
 +
 +<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 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>\\
 +
 +===== 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> <WRAP bootlog>
 <nowiki>U-Boot 1.1.4-gd4ec3645-dirty (Sep  5 2012 - 14:31:48) <nowiki>U-Boot 1.1.4-gd4ec3645-dirty (Sep  5 2012 - 14:31:48)
Line 1210: Line 1808:
 </WRAP>\\ </WRAP>\\
  
-===== Build Instructions =====+
  
 ===== Notes ===== ===== Notes =====
Line 1216: Line 1814:
 ===== Tags ===== ===== Tags =====
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>AR9342 16Flash 64RAM 1port GigabitEthernet 802.11abgn unsupported}}+{{tag>AR9342 16Flash 64RAM 1port GigabitEthernet 802.11abgn ceiling unsupported}}
  • Last modified: 2024/02/12 11:43
  • by 127.0.0.1