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/24 08:14] – Add info about initramfs-images, link to precompiled images, update dts 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]] 
- 
-Compiled Firmware can be downloaded from https://www.krtzbrtz.org/nwa1123ni/ 
  
 ===== Hardware highlights ===== ===== Hardware highlights =====
Line 46: Line 44:
   - → [[:downloads|Latest OpenWrt release]]   - → [[:downloads|Latest OpenWrt release]]
 ***/ ***/
- 
-{{: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. 
  
 ==== 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 RECOMMENDED: Backup all flash first!+  * Login to OEM Web UI 
 +  * Flash xxx-**factory-AAEO**.bin
  
-  * Start the TFTP server and put the //openwrt-ath79-generic-zyxel_nwa1123-ni-squashfs-sysupgrade.bin// there and rename it to **fw.bin** +First boot takes ca. 2-3 minutes, wait for the LED to stop blinking and turn to solid green.
-  * 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: +
-</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.+
  
  
Line 95: Line 64:
 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?"// 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, unzip it and **uinzip the .bin** inside it.+  * Download the Firmware, extract files from .bin (bz2 compressed tar)
   * Copy //mi124_f1e-jffs2// and //vmlinux_mi124_f1e.lzma.uImage// to tftp server   * 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]]
Line 101: Line 70:
 <code> <code>
 Hit any key to stop autoboot:  3 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> </code>
   * 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 ===
  
-  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 1003: Line 976:
  
 ==== OpenWrt bootlog ==== ==== OpenWrt bootlog ====
 +
 <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 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 
-   Created:      2019-10-20  11:01:43 UTC+   Created:      2021-04-18  10:06:57 UTC
    Image Type:   MIPS Linux Kernel Image (lzma compressed)    Image Type:   MIPS Linux Kernel Image (lzma compressed)
-   Data Size:    1802279 Bytes =  1.7 MB+   Data Size:    3265 Bytes =  3.2 kB
    Load Address: 80060000    Load Address: 80060000
    Entry Point:  80060000    Entry Point:  80060000
-   Verifying Checksum at 0x9f050040 ...OK+   Verifying Checksum at 0x9f850040 ...OK
    Uncompressing Kernel Image ... OK    Uncompressing Kernel Image ... OK
 No initrd No initrd
Line 1060: Line 1034:
 Starting kernel ... 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+ 
 +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] 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]  memory: 04000000 @ 00000000 (usable) 
 [    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]   node   0: [mem 0x0000000000000000-0x0000000003ffffff] [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
 [    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/0x4a8 with crng_init=0 
 [    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,115200 rootfstype=squashfs,jffs2 [    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] 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: 57580K/65536K available (4273K kernel code, 178K rwdata, 1008K rodata, 1188K init, 206K bss, 7956K reserved, 0K cma-reserved)+[    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] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
 [    0.000000] NR_IRQS: 51 [    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] CPU clock: 560.000 MHz
 [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns [    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.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns 
-[    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: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns +[    0.077570] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns 
-[    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.148570PCI host bridge /ahb/pcie-controller@180c0000 ranges: +[    0.144982workqueuemax_active 576 requested for napi_workq is out of rangeclamping between 1 and 512 
-[    0.155143]  MEM 0x0000000010000000..0x0000000013ffffff +[    0.159668] clocksource: Switched to clocksource MIPS 
-[    0.160700]   IO 0x0000000000000000..0x0000000000000000 +[    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 buswill use [bus 00-ff] +[    0.203910] UDP hash table entries: 256 (order: 0, 4096 bytes, linear
-[    0.226393] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit] +[    0.210941] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear
-[    0.234198] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref] +[    0.218775] NET: Registered protocol family 1 
-[    0.246172] clocksource: Switched to clocksource MIPS +[    0.223512PCI: 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/01/31) Phillip Lougher 
-[    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: 544 pins, size 68 
-[    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.300684printk: console [ttyS0] disabled 
-[    0.294447] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) +[    0.305363] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 2500000) is a 16550A 
-[    0.301644] NET: Registered protocol family 1 +[    0.314573printk: console [ttyS0] enabled 
-[    0.310330Crashlog allocated RAM at address 0x3f00000 +[    0.314573printk: console [ttyS0] enabled 
-[    0.317798] workingset: timestamp_bits=14 max_order=14 bucket_order=0 +[    0.323483printk: bootconsole [early0] disabled 
-[    0.332899] squashfs: version 4.0 (2009/01/31) Phillip Lougher +[    0.323483printk: bootconsole [early0] disabled 
-[    0.339181] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. +[    0.342312spi-nor spi0.0: mx25l12805d (16384 Kbytes) 
-[    0.365807] io scheduler noop registered +[    0.347701fixed-partitions partitions found on MTD device spi0.0 
-[    0.370062] io scheduler deadline registered (default) +[    0.354157] Creating MTD partitions on "spi0.0": 
-[    0.378054] pinctrl-single 1804002c.pinmux: 544 pins, size 68 +[    0.359044] 0x000000000000-0x000000040000 : "u-boot" 
-[    0.385370] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled +[    0.365291] 0x000000040000-0x000000050000 : "u-boot-env" 
-[    0.393062] console [ttyS0] disabled +[    0.371965] 0x000000050000-0x000000850000 : "fwconcat0" 
-[    0.396979] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 2500000) is a 16550A +[    0.378455] 0x000000850000-0x000000860000 : "loader" 
-[    0.406194] console [ttyS0] enabled +[    0.384712] 0x000000860000-0x000000fa0000 : "fwconcat1" 
-[    0.406194] console [ttyS0] enabled +[    0.391236] 0x000000fa0000-0x000000fe0000 : "config" 
-[    0.413604] bootconsole [early0] disabled +[    0.397483] 0x000000fe0000-0x000000ff0000 : "mib0" 
-[    0.413604] bootconsole [early0] disabled +[    0.403553] 0x000000ff0000-0x000001000000 : "art" 
-[    0.431066m25p80 spi0.0: mx25l12805d (16384 Kbytes) +[    0.409807] Concatenating MTD devices: 
-[    0.436342fixed-partitions partitions found on MTD device spi0.0 +[    0.413698] (0): "fwconcat0" 
-[    0.442785] Creating MTD partitions on "spi0.0": +[    0.416635] (1): "fwconcat1" 
-[    0.447696] 0x000000000000-0x000000040000 : "u-boot" +[    0.419550] into device "virtual_flash" 
-[    0.453762] 0x000000040000-0x000000050000 : "u-boot-env" +[    0.423501] 1 fixed-partitions partitions found on MTD device virtual_flash 
-[    0.460310] 0x000000050000-0x000000fa0000 : "firmware" +[    0.430578] Creating 1 MTD partitions on "virtual_flash": 
-[    0.470500] 2 uimage-fw partitions found on MTD device firmware +[    0.436091] 0x000000000000-0x000000f40000 : "firmware" 
-[    0.476580] Creating 2 MTD partitions on "firmware": +[    0.453694] 2 uimage-fw partitions found on MTD device firmware 
-[    0.481633] 0x000000000000-0x0000001c0000 : "kernel" +[    0.459777] Creating 2 MTD partitions on "firmware": 
-[    0.4876860x0000001c0000-0x000000f50000 : "rootfs" +[    0.464840] 0x000000000000-0x000000200000 : "kernel" 
-[    0.493627] mtd: device (rootfs) set to be root filesystem +[    0.4709850x000000200000-0x000000f40000 : "rootfs" 
-[    0.501402] 1 squashfs-split partitions found on MTD device rootfs +[    0.477167] mtd: device 10 (rootfs) set to be root filesystem 
-[    0.5077610x0000003c0000-0x000000f50000 : "rootfs_data" +[    0.485445] 1 squashfs-split partitions found on MTD device rootfs 
-[    0.514297] 0x000000fa0000-0x000000fe0000 : "config" +[    0.4918130x0000004d0000-0x000000f40000 : "rootfs_data" 
-[    0.520410] 0x000000fe0000-0x000000ff0000 : "mib0" +[    0.500832] libphy: Fixed MDIO Bus: probed 
-[    0.526320] 0x000000ff0000-0x000001000000 : "ART" +[    0.845724] libphy: ag71xx_mdio: probed 
-[    0.533396] libphy: Fixed MDIO Bus: probed +[    0.852169] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd072, driver=Atheros 8035 ethernet] 
-[    0.898194] libphy: ag71xx_mdio: probed +[    0.862851] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-id 
-[    0.996626] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd072, driver=Atheros 8035 ethernet] +[    0.869717] i2c /dev entries driver 
-[    1.007724] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-id +[    0.875801] NET: Registered protocol family 10 
-[    1.016981] NET: Registered protocol family 10 +[    0.886475] Segment Routing with IPv6 
-[    1.027340] Segment Routing with IPv6 +[    0.890431] NET: Registered protocol family 17 
-[    1.031216] NET: Registered protocol family 17 +[    0.895062] 8021q: 802.1Q VLAN Support v1.8 
-[    1.035822] 8021q: 802.1Q VLAN Support v1.8 +[    0.900597] PCI host bridge /ahb/pcie-controller@180c0000 ranges: 
-[    1.051937] VFS: Mounted root (squashfs filesystem) readonly on device 31:4+[    0.906889]  MEM 0x0000000010000000..0x0000000013ffffff 
-[    1.067086] Freeing unused kernel memory: 1188K +[    0.912215]   IO 0x0000000000000000..0x0000000000000000 
-[    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] 
-[    2.193807] init: Console is alive +[    0.928936] pci_bus 0000:00: root bus resource [io  0x0000] 
-[    2.197657] init: - watchdog - +[    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 /etc/modules-boot.d/+[    0.949607] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000 
-[    3.816345] kmodloader: done loading kernel modules from /etc/modules-boot.d/+[    0.955783] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit] 
-[    3.834234] init: - preinit - +[    0.962732] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref] 
-[    4.984790] random: jshn: uninitialized urandom read (4 bytes read) +[    0.969634] pci 0000:00:00.0: supports D1 
-[    5.169161] random: jshn: uninitialized urandom read (4 bytes read) +[    0.973718] pci 0000:00:00.0: PME# supported from D0 D1 D3hot 
-[    5.215803] random: jshn: uninitialized urandom read (4 bytes read) +[    0.980854] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 
-[    5.524890] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready+[    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 [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/Full duplex) +[    7.693090] eth0: link up (1000Mbps/Full duplex) 
-[    7.642403] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready +[    7.697848] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
-[    8.927888] jffs2: notice: (463) jffs2_build_xattr_subsystem: complete building xattr subsystem, of xdatum (0 unchecked, orphan) and of xref (dead, 0 orphan) found. +[    8.956412] jffs2: notice: (523) jffs2_build_xattr_subsystem: complete building xattr subsystem, of xdatum (0 unchecked, orphan) and of xref (dead, 0 orphan) found. 
-[    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: Seeding with /etc/urandom.seed +[    8.995054] urandom-seed: Seeding with /etc/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: 5 callbacks suppressed +  10.001405] urandom_read: 5 callbacks suppressed 
-   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 /etc/modules.d/+[   11.347117] kmodloader: loading kernel modules from /etc/modules.d/
-[   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.started. +[   11.666819] urngd: v1.0.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, irq=12 +[   11.939463] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=12 
-[   11.339965] ath9k 0000:00:00.0: enabling device (0000 -> 0002) +[   11.946667] ath9k 0000:00:00.0: enabling device (0000 -> 0002) 
-[   11.455217] random: crng init done +[   12.061072] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=15 
-[   11.569932] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=15 +[   12.188357] random: crng init done 
-[   11.659480] kmodloader: done loading kernel modules from /etc/modules.d/+[   12.436172] kmodloader: done loading kernel modules from /etc/modules.d/
-[   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/Full duplex) 
-[   24.517700eth0link up (1000Mbps/Full duplex+[   28.667367] br-lan: port 1(eth0) entered blocking state 
-[   24.522447] br-lan: port 1(eth0) entered blocking state +[   28.672743] br-lan: port 1(eth0) entered forwarding state 
-[   24.527793] br-lan: port 1(eth0) entered forwarding state +[   28.715829] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready 
-[   24.551106] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready+[   30.360206br-lanport 2(wlan0entered 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.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
  -----------------------------------------------------  -----------------------------------------------------
- OpenWrt SNAPSHOTr11271-f1d761f95e+ OpenWrt 21.02.0-rc1r16046-59980f7aaf
  -----------------------------------------------------  -----------------------------------------------------
 === WARNING! ===================================== === WARNING! =====================================
Line 1226: Line 1232:
 -------------------------------------------------- --------------------------------------------------
 root@OpenWrt:/# uname -a root@OpenWrt:/# uname -a
-Linux OpenWrt 4.19.79 #0 Sun Oct 20 11:01:43 2019 mips GNU/Linux+Linux OpenWrt 5.4.111 #0 Sun Apr 18 10:06:57 2021 mips GNU/Linux
 root@OpenWrt:/# cat /proc/mtd  root@OpenWrt:/# cat /proc/mtd 
 dev:    size   erasesize  name dev:    size   erasesize  name
 mtd0: 00040000 00010000 "u-boot" mtd0: 00040000 00010000 "u-boot"
 mtd1: 00010000 00010000 "u-boot-env" mtd1: 00010000 00010000 "u-boot-env"
-mtd2: 00f50000 00010000 "firmware+mtd2: 00800000 00010000 "fwconcat0
-mtd3: 001c0000 00010000 "kernel+mtd3: 00010000 00010000 "loader
-mtd4: 00d90000 00010000 "rootfs+mtd4: 00740000 00010000 "fwconcat1
-mtd5: 00b90000 00010000 "rootfs_data+mtd5: 00040000 00010000 "config
-mtd6: 00040000 00010000 "config+mtd6: 00010000 00010000 "mib0
-mtd7: 00010000 00010000 "mib0+mtd7: 00010000 00010000 "art
-mtd8: 00010000 00010000 "ART+mtd8: 00f40000 00010000 "firmware" 
-root@OpenWrt:/# +mtd9: 00200000 00010000 "kernel" 
 +mtd10: 00d40000 00010000 "rootfs" 
 +mtd11: 00a70000 00010000 "rootfs_data
 +root@OpenWrt:/# 
 </nowiki> </nowiki>
 </WRAP>\\ </WRAP>\\
  
-===== 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 (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: 
 +</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: 
 +</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 */ /* this section will be remove after successfull commit */
  
-Follow the instuctions here: [[docs:guide-developer:quickstart-build-images|Quick Image Building Guide]]+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: Before running "make menuconfig" patch/add 3 files:
Line 1461: Line 1567:
 </nowiki> </nowiki>
 </WRAP>\\ </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>\\
 +
  
  
Line 1467: 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