Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| inbox:zyxel:zyxel_nwa1123-ni [2019/10/21 19:59] – Add Installation instructions krtzbrtz | inbox:zyxel:zyxel_nwa1123-ni [2021/07/31 16:32] – [Build Instructions (deprecated)] update links vgaetera | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| ===== Supporting activities ===== | ===== Supporting activities ===== | ||
| + | 2021-05-13: New attempt to add support in OpenWrt | ||
| + | * different flash-layout than previous attempt | ||
| + | * enables installing OpenWRT from within stock firmware | ||
| + | * Pull request: https:// | ||
| + | |||
| + | |||
| 2019-10-21: Currently the device is able to boot OpenWrt and seems to be full functional. Patch/ | 2019-10-21: Currently the device is able to boot OpenWrt and seems to be full functional. Patch/ | ||
| * OpenWrt forum thread: https:// | * OpenWrt forum thread: https:// | ||
| - | |||
| - | |||
| - | |||
| - | ===== Experimental firmware ===== | ||
| - | |||
| - | See build instructions for NWA1123-NI [[#Build Instructions|here]] | ||
| ===== 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. | + | {{: |
| - | **Technical references** | + | Flashing OpenWrt is straight forward: |
| - | * [[docs:techref: | + | |
| - | * [[docs: | + | |
| - | * [[docs: | + | |
| - | {{: | + | * 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. | ||
| + | |||
| + | |||
| + | ===== Debricking ===== | ||
| + | -> [[docs:guide-user: | ||
| - | * 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 | ||
| + | |||
| + | | ||
| + | | ||
| * Establish a [[docs: | * Establish a [[docs: | ||
| * 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: | Hit any key to stop autoboot: | ||
| </ | </ | ||
| - | | + | * Set IP-Address of Device and TFTP-server and try to ping the server: |
| - | < | + | |
| - | setenv bootcmd 'bootm 0x9f050000' | + | |
| - | setenv bootargs | + | |
| - | saveenv | + | |
| - | </ | + | |
| - | | + | |
| < | < | ||
| setenv ipaddr 192.168.1.11 | setenv ipaddr 192.168.1.11 | ||
| Line 74: | Line 77: | ||
| ping $serverip | ping $serverip | ||
| </ | </ | ||
| - | * Flash firmware (Do not erase before | + | * Flash the kernel-image and after it the file-system: |
| < | < | ||
| - | tftp 0x80060000 fw.bin | + | run lk |
| - | erase 0x9f050000 +$filesize | + | run lf |
| - | cp.b $fileaddr 0x9f050000 $filesize | + | |
| </ | </ | ||
| - | Done, after flashing power-cycle the device (or enter " | + | Done, after flashing power-cycle the device (or enter " |
| - | + | ||
| - | + | ||
| - | ===== Debricking ===== | + | |
| - | -> [[docs: | + | |
| - | + | ||
| - | + | ||
| /*** if info available: uncomment and fill in | /*** if info available: uncomment and fill in | ||
| Line 119: | Line 114: | ||
| - | |||
| - | ==== Buttons ==== | ||
| - | -> [[docs: | ||
| - | Here, we merely name the buttons, so we can use them in the above Howto. | ||
| - | |||
| - | The ZyXEL NWA1123-NI has the following buttons: | ||
| - | |||
| - | ^ BUTTON | ||
| - | | Reset | reset | | ||
| - | |||
| - | ==== LEDs ==== | ||
| - | |||
| - | ^ LED | ||
| - | | Power / Status | ||
| - | |::: | green | | ||
| ===== Hardware ===== | ===== Hardware ===== | ||
| Line 152: | Line 132: | ||
| ^ Serial | ^ Serial | ||
| ^ JTAG | [[# | ^ JTAG | [[# | ||
| + | |||
| + | ==== Buttons ==== | ||
| + | -> [[docs: | ||
| + | Here, we merely name the buttons, so we can use them in the above Howto. | ||
| + | |||
| + | The ZyXEL NWA1123-NI has the following buttons: | ||
| + | |||
| + | ^ BUTTON | ||
| + | | Reset | reset | | ||
| + | |||
| + | ==== LEDs ==== | ||
| + | |||
| + | ^ LED | ||
| + | | Power / Status | ||
| + | |::: | green | | ||
| Line 158: | Line 153: | ||
| === OpenWrt === | === OpenWrt === | ||
| - | ^ | + | Two flash partitions are concatenated to a " |
| + | |||
| + | ^ ZyXEL NWA1123-NI | ||
| ^ Layer0 | ^ Layer0 | ||
| - | ^ Layer1 | + | ^ Layer1 |
| - | ^ Layer2 | + | ^ Size in KiB | 256 KiB |
| - | ^ <color magenta> | + | ^ Name |
| - | ^ filesystem | + | ^ <color magenta> |
| - | ^ Layer3 | + | ^ filesystem |
| - | ^ Size in KiB | 256 KiB | + | |
| - | ^ Name | + | |
| - | ^ <color magenta> | + | |
| - | ^ filesystem | + | |
| + | ^ virtual firmware partition | ||
| + | ^ Layer0 | ||
| + | ^ Layer1 | ||
| + | ^ Layer2 | ||
| + | ^ <color magenta> | ||
| + | ^ filesystem | ||
| + | ^ Layer3 | ||
| + | ^ Size in KiB | 2048 KiB | ||
| + | ^ Name | ||
| + | ^ <color magenta> | ||
| + | ^ filesystem | ||
| === Stock Firmware === | === Stock Firmware === | ||
| Line 971: | Line 976: | ||
| ==== OpenWrt bootlog ==== | ==== OpenWrt bootlog ==== | ||
| + | |||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | |||
| + | U-boot MI124 | ||
| + | DRAM: Tap value selected = 0xf [0x0 - 0x1f] | ||
| + | Setting 0xb8116290 to 0x30602d0f | ||
| + | 64 MB | ||
| + | Top of RAM usable for U-Boot at: 84000000 | ||
| + | Reserving 220k for U-Boot at: 83fc8000 | ||
| + | Reserving 192k for malloc() at: 83f98000 | ||
| + | Reserving 44 Bytes for Board Info at: 83f97fd4 | ||
| + | Reserving 48 Bytes for Global Data at: 83f97fa4 | ||
| + | Reserving 128k for boot params() at: 83f77fa4 | ||
| + | Stack Pointer at: 83f77f88 | ||
| + | Now running in RAM - U-Boot at: 83fc8000 | ||
| + | Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18 | ||
| + | flash size 16MB, sector count = 256 | ||
| + | Flash: 16 MB | ||
| + | pci_init_board: | ||
| + | BOARD IS NOT CALIBRATED!!! | ||
| + | In: serial | ||
| + | Out: | ||
| + | Err: | ||
| + | Net: | ||
| + | Fetching MAC Address from 0x83fed7b8 | ||
| + | | ||
| + | WASP ----> F1 PHY * | ||
| + | : cfg1 0x80000000 cfg2 0x7114 | ||
| + | eth0: 00: | ||
| + | F1Phy reg init | ||
| + | ATHR_AUTONEG_ADVERT: | ||
| + | ATHR_1000BASET_CONTROL: | ||
| + | ATHR_PHY_CONTROL: | ||
| + | ATHRSF1_PHY: | ||
| + | ATHRSF1_PHY: | ||
| + | ethact=eth0 | ||
| + | |||
| + | ************ Post Result ******************* | ||
| + | POST memory PASSED | ||
| + | POST uart PASSED | ||
| + | POST ethernet PASSED | ||
| + | Hit any key to stop autoboot: | ||
| + | ## Booting image at 9f850000 ... | ||
| + | Image Name: MIPS OpenWrt Linux-5.4.111 | ||
| + | | ||
| + | Image Type: MIPS Linux Kernel Image (lzma compressed) | ||
| + | Data Size: 3265 Bytes = 3.2 kB | ||
| + | Load Address: 80060000 | ||
| + | Entry Point: | ||
| + | | ||
| + | | ||
| + | No initrd | ||
| + | ## Transferring control to Linux (at address 80060000) ... | ||
| + | ## Giving linux memsize in bytes, 67108864 | ||
| + | |||
| + | Starting kernel ... | ||
| + | |||
| + | |||
| + | |||
| + | OpenWrt kernel loader for AR7XXX/ | ||
| + | Copyright (C) 2011 Gabor Juhos < | ||
| + | Looking for OpenWrt image... found at 0xbf050000 | ||
| + | Decompressing kernel... done! | ||
| + | Starting kernel at 80060000... | ||
| + | |||
| + | [ 0.000000] Linux version 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] | ||
| + | [ 0.000000] Movable zone start for each node | ||
| + | [ 0.000000] Early memory node ranges | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff] | ||
| + | [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240 | ||
| + | [ 0.000000] Kernel command line: console=ttyS0, | ||
| + | [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, 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/ | ||
| + | [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, | ||
| + | [ 0.000000] NR_IRQS: 51 | ||
| + | [ 0.000000] random: get_random_bytes called from start_kernel+0x308/ | ||
| + | [ 0.000000] CPU clock: 560.000 MHz | ||
| + | [ 0.000000] clocksource: | ||
| + | [ 0.000010] sched_clock: | ||
| + | [ 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: | ||
| + | [ 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: | ||
| + | [ 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/ | ||
| + | [ 0.254250] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. | ||
| + | [ 0.285656] pinctrl-single 1804002c.pinmux: | ||
| + | [ 0.292992] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled | ||
| + | [ 0.300684] printk: console [ttyS0] disabled | ||
| + | [ 0.305363] 18020000.uart: | ||
| + | [ 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 " | ||
| + | [ 0.359044] 0x000000000000-0x000000040000 : " | ||
| + | [ 0.365291] 0x000000040000-0x000000050000 : " | ||
| + | [ 0.371965] 0x000000050000-0x000000850000 : " | ||
| + | [ 0.378455] 0x000000850000-0x000000860000 : " | ||
| + | [ 0.384712] 0x000000860000-0x000000fa0000 : " | ||
| + | [ 0.391236] 0x000000fa0000-0x000000fe0000 : " | ||
| + | [ 0.397483] 0x000000fe0000-0x000000ff0000 : " | ||
| + | [ 0.403553] 0x000000ff0000-0x000001000000 : " | ||
| + | [ 0.409807] Concatenating MTD devices: | ||
| + | [ 0.413698] (0): " | ||
| + | [ 0.416635] (1): " | ||
| + | [ 0.419550] into device " | ||
| + | [ 0.423501] 1 fixed-partitions partitions found on MTD device virtual_flash | ||
| + | [ 0.430578] Creating 1 MTD partitions on " | ||
| + | [ 0.436091] 0x000000000000-0x000000f40000 : " | ||
| + | [ 0.453694] 2 uimage-fw partitions found on MTD device firmware | ||
| + | [ 0.459777] Creating 2 MTD partitions on " | ||
| + | [ 0.464840] 0x000000000000-0x000000200000 : " | ||
| + | [ 0.470985] 0x000000200000-0x000000f40000 : " | ||
| + | [ 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 : " | ||
| + | [ 0.500832] libphy: Fixed MDIO Bus: probed | ||
| + | [ 0.845724] libphy: ag71xx_mdio: | ||
| + | [ 0.852169] ag71xx 19000000.eth: | ||
| + | [ 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 / | ||
| + | [ 0.906889] | ||
| + | [ 0.912215] | ||
| + | [ 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: | ||
| + | [ 0.955783] pci 0000: | ||
| + | [ 0.962732] pci 0000: | ||
| + | [ 0.969634] pci 0000: | ||
| + | [ 0.973718] pci 0000: | ||
| + | [ 0.980854] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 | ||
| + | [ 0.987639] pci 0000: | ||
| + | [ 0.995102] pci 0000: | ||
| + | [ 1.009289] VFS: Mounted root (squashfs filesystem) readonly on device 31:10. | ||
| + | [ 1.024565] Freeing unused kernel memory: 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 / | ||
| + | [ 2.586261] kmodloader: done loading kernel modules from / | ||
| + | [ 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/ | ||
| + | [ 7.697848] IPv6: ADDRCONF(NETDEV_CHANGE): | ||
| + | [ 8.956412] jffs2: notice: (523) jffs2_build_xattr_subsystem: | ||
| + | [ 8.973662] mount_root: switching to jffs2 overlay | ||
| + | [ 8.982784] overlayfs: upper fs does not support tmpfile. | ||
| + | [ 8.995054] urandom-seed: | ||
| + | [ 9.102201] eth0: link down | ||
| + | [ 9.120929] procd: - early - | ||
| + | [ 9.124101] procd: - watchdog - | ||
| + | [ 9.783832] procd: - watchdog - | ||
| + | [ 9.902115] procd: - ubus - | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | Please press Enter to activate this console. | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | |||
| + | |||
| + | |||
| + | BusyBox v1.33.0 () built-in shell (ash) | ||
| + | |||
| + | _______ | ||
| + | | ||
| + | | ||
| + | | ||
| + | |__| W I R E L E S S F R E E D O M | ||
| + | | ||
| + | | ||
| + | | ||
| + | === WARNING! ===================================== | ||
| + | There is no root password defined on this device! | ||
| + | Use the " | ||
| + | in order to prevent unauthorized SSH logins. | ||
| + | -------------------------------------------------- | ||
| + | root@OpenWrt:/# | ||
| + | Linux OpenWrt 5.4.111 #0 Sun Apr 18 10:06:57 2021 mips GNU/Linux | ||
| + | root@OpenWrt:/# | ||
| + | dev: size | ||
| + | mtd0: 00040000 00010000 " | ||
| + | mtd1: 00010000 00010000 " | ||
| + | mtd2: 00800000 00010000 " | ||
| + | mtd3: 00010000 00010000 " | ||
| + | mtd4: 00740000 00010000 " | ||
| + | mtd5: 00040000 00010000 " | ||
| + | mtd6: 00010000 00010000 " | ||
| + | mtd7: 00010000 00010000 " | ||
| + | mtd8: 00f40000 00010000 " | ||
| + | mtd9: 00200000 00010000 " | ||
| + | mtd10: 00d40000 00010000 " | ||
| + | mtd11: 00a70000 00010000 " | ||
| + | root@OpenWrt:/# | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== 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:// | ||
| + | |||
| + | If you are using this firmware, follow the instructions below to revert to stock firmware or the current OpenWrt firmware: | ||
| + | |||
| + | ==== Revert from old experimental firmware ==== | ||
| + | |||
| + | This instructions can also be used to directly flash the current OpenWrt firmware, use xxx-**factory-AAEO**.bin instead of the stock firmware image. | ||
| + | |||
| + | This instructions are based on the ZyXEL KnowledgeBase article //" | ||
| + | |||
| + | * Download the Firmware (either Zyxel or new OpenWrt) and extract files from .bin (bz2 compressed tar) | ||
| + | * Copy // | ||
| + | * Establish a [[docs: | ||
| + | * Power up the device, press any key to interrupt the boot process: | ||
| + | < | ||
| + | Hit any key to stop autoboot: | ||
| + | </ | ||
| + | * Change the boot-address and add the old bootargs | ||
| + | < | ||
| + | setenv bootcmd 'bootm 0x9f850000' | ||
| + | setenv bootargs ' | ||
| + | saveenv | ||
| + | </ | ||
| + | * Set IP-Address of Device and TFTP-server and try to ping the server: | ||
| + | < | ||
| + | setenv ipaddr 192.168.1.11 | ||
| + | setenv serverip 192.168.1.120 | ||
| + | ping $serverip | ||
| + | </ | ||
| + | * Flash the kernel-image and after it the file-system: | ||
| + | < | ||
| + | run lk | ||
| + | run lf | ||
| + | </ | ||
| + | |||
| + | Done, after flashing power-cycle the device (or enter " | ||
| + | |||
| + | ==== Installing OpenWrt (deprecated) ==== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | As the flash-layout and the boot-address changes it is not possible to flash the device via stock firmware. | ||
| + | |||
| + | **Technical references** | ||
| + | * [[docs: | ||
| + | * [[docs: | ||
| + | * [[docs: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * Start the TFTP server and put the // | ||
| + | * Establish a [[docs: | ||
| + | * Power up the device, press any key to interrupt the boot process: | ||
| + | < | ||
| + | Hit any key to stop autoboot: | ||
| + | </ | ||
| + | * Change the boot-address and remove old bootargs | ||
| + | < | ||
| + | setenv bootcmd 'bootm 0x9f050000' | ||
| + | setenv bootargs | ||
| + | saveenv | ||
| + | </ | ||
| + | * Set IP-Address of Device and TFTP-server and try to ping the server | ||
| + | < | ||
| + | setenv ipaddr 192.168.1.11 | ||
| + | setenv serverip 192.168.1.120 | ||
| + | ping $serverip | ||
| + | </ | ||
| + | * Flash firmware (Do not erase before the fw.bin got successfully loaded!) | ||
| + | < | ||
| + | tftp 0x80060000 fw.bin | ||
| + | erase 0x9f050000 +$filesize | ||
| + | cp.b $fileaddr 0x9f050000 $filesize | ||
| + | </ | ||
| + | |||
| + | Done, after flashing power-cycle the device (or enter " | ||
| + | |||
| + | ==== Flash Layout (deprecated) ==== | ||
| + | |||
| + | ^ ZyXEL NWA1123-NI | ||
| + | ^ Layer0 | ||
| + | ^ Layer1 | ||
| + | ^ Layer2 | ||
| + | ^ <color magenta> | ||
| + | ^ filesystem | ||
| + | ^ Layer3 | ||
| + | ^ Size in KiB | 256 KiB | ||
| + | ^ Name | ||
| + | ^ <color magenta> | ||
| + | ^ filesystem | ||
| + | |||
| + | ==== Build Instructions (deprecated) ==== | ||
| + | /* this section will be remove after successfull commit */ | ||
| + | |||
| + | Follow the instuctions here: [[docs: | ||
| + | |||
| + | Before running "make menuconfig" | ||
| + | |||
| + | **target/ | ||
| + | |||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | diff --git a/ | ||
| + | index fe74bddbf1..9e70d60f4b 100755 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -54,7 +54,8 @@ ath79_setup_interfaces() | ||
| + | ubnt, | ||
| + | ubnt, | ||
| + | wd, | ||
| + | - | ||
| + | + | ||
| + | + | ||
| + | ucidef_set_interface_lan " | ||
| + | ;; | ||
| + | avm, | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | **target/ | ||
| + | |||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | diff --git a/ | ||
| + | index acb1ab4b0b..d704e095b5 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -1008,3 +1008,11 @@ define Device/ | ||
| + | | ||
| + | endef | ||
| + | | ||
| + | + | ||
| + | +define Device/ | ||
| + | + ATH_SOC := ar9342 | ||
| + | + DEVICE_VENDOR := ZyXEL | ||
| + | + DEVICE_MODEL := NWA1123-NI | ||
| + | + IMAGE_SIZE := 15680k | ||
| + | +endef | ||
| + | +TARGET_DEVICES += zyxel_nwa1123-ni | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | **target/ | ||
| + | |||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | // SPDX-License-Identifier: | ||
| + | /dts-v1/; | ||
| + | |||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | #include " | ||
| + | |||
| + | / { | ||
| + | compatible = " | ||
| + | model = "ZyXEL NWA1123-NI"; | ||
| + | |||
| + | aliases { | ||
| + | led-boot = & | ||
| + | led-failsafe = & | ||
| + | led-running = & | ||
| + | led-upgrade = & | ||
| + | }; | ||
| + | |||
| + | leds { | ||
| + | compatible = " | ||
| + | |||
| + | status_amber: | ||
| + | label = " | ||
| + | gpios = <& | ||
| + | }; | ||
| + | |||
| + | status_green: | ||
| + | label = " | ||
| + | gpios = <& | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | keys { | ||
| + | compatible = " | ||
| + | |||
| + | reset { | ||
| + | label = " | ||
| + | linux, | ||
| + | gpios = <& | ||
| + | debounce-interval = <60>; | ||
| + | }; | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | &ref { | ||
| + | clock-frequency = < | ||
| + | }; | ||
| + | |||
| + | &uart { | ||
| + | status = " | ||
| + | }; | ||
| + | |||
| + | &gpio { | ||
| + | status = " | ||
| + | }; | ||
| + | |||
| + | &spi { | ||
| + | status = " | ||
| + | num-cs = <1>; | ||
| + | |||
| + | flash@0 { | ||
| + | compatible = " | ||
| + | reg = <0>; | ||
| + | spi-max-frequency = < | ||
| + | |||
| + | partitions { | ||
| + | compatible = " | ||
| + | # | ||
| + | # | ||
| + | |||
| + | partition@0 { | ||
| + | label = " | ||
| + | reg = < | ||
| + | read-only; | ||
| + | }; | ||
| + | |||
| + | partition@40000 { | ||
| + | label = " | ||
| + | reg = < | ||
| + | read-only; | ||
| + | }; | ||
| + | |||
| + | partition@50000 { | ||
| + | compatible = " | ||
| + | label = " | ||
| + | reg = < | ||
| + | }; | ||
| + | |||
| + | partition@fa0000 { | ||
| + | label = " | ||
| + | reg = < | ||
| + | read-only; | ||
| + | }; | ||
| + | |||
| + | partition@fe0000 { | ||
| + | label = " | ||
| + | reg = < | ||
| + | read-only; | ||
| + | }; | ||
| + | |||
| + | art: partition@ff0000 { | ||
| + | label = " | ||
| + | reg = < | ||
| + | read-only; | ||
| + | }; | ||
| + | }; | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | |||
| + | &pcie { | ||
| + | status = " | ||
| + | |||
| + | wifi@0,0 { | ||
| + | compatible = " | ||
| + | reg = <0x0000 0 0 0 0>; | ||
| + | mtd-mac-address = <& | ||
| + | mtd-mac-address-increment = <2>; | ||
| + | qca, | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | &wmac { | ||
| + | status = " | ||
| + | qca, | ||
| + | mtd-cal-data = <& | ||
| + | mtd-mac-address = <& | ||
| + | mtd-mac-address-increment = <1>; | ||
| + | }; | ||
| + | |||
| + | &mdio0 { | ||
| + | status = " | ||
| + | |||
| + | phy-mask = <0>; | ||
| + | |||
| + | phy0: ethernet-phy@0 { | ||
| + | reg = <0>; | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | ð0 { | ||
| + | status = " | ||
| + | |||
| + | /* default for ar934x, except for 1000M and 10M */ | ||
| + | pll-data = < | ||
| + | |||
| + | mtd-mac-address = <& | ||
| + | |||
| + | phy-mode = " | ||
| + | phy-handle = <& | ||
| + | |||
| + | gmac-config { | ||
| + | device = <& | ||
| + | rxdv-delay = <3>; | ||
| + | rxd-delay = <3>; | ||
| + | txen-delay = <3>; | ||
| + | txd-delay = <3>; | ||
| + | rgmii-gmac0 = <1>; | ||
| + | }; | ||
| + | }; | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | === OpenWrt bootlog (19.07) === | ||
| <WRAP bootlog> | <WRAP bootlog> | ||
| < | < | ||
| Line 1210: | Line 1808: | ||
| </ | </ | ||
| - | ===== Build Instructions ===== | + | |
| ===== Notes ===== | ===== Notes ===== | ||
| Line 1216: | Line 1814: | ||
| ===== Tags ===== | ===== Tags ===== | ||
| [[meta: | [[meta: | ||
| - | {{tag> | + | {{tag> |