OpenWrt Forum Archive

Topic: planex mzk-w300nh: ar9130/ar9102: trunk ramdisk image boot.

The content of this topic has been archived between 14 Apr 2018 and 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi Zukky,

yapoo wrote:

Now, Let's try setenv bootargs 'board=WNR2000'.

Can you try setenv bootargs 'board=MZK-W300NH' as well? ;-)

-Gabor

Good evening, Gabor.

Sure! I've just built image after your commit.

U-Boot 1.1.4 (Oct 25 2007 - 15:28:59)

AP81 (ar7100) U-boot
DRAM:
sri
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 222k for U-Boot at: 81fc8000
Reserving 192k for malloc() at: 81f98000
Reserving 44 Bytes for Board Info at: 81f97fd4
Reserving 36 Bytes for Global Data at: 81f97fb0
Reserving 128k for boot params() at: 81f77fb0
Stack Pointer at: 81f77f98
Now running in RAM - U-Boot at: 81fc8000
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7100_enet_initialize...
Fetching MAC Address from 0x81fedb10
eth0: 00:90:cc:fe:c8:68
dup 1 speed 100
eth0 up
eth0
====check reset button function====
### main_loop entered: bootdelay=4

### main_loop: bootcmd="bootm 0xbf050000"
Hit any key to stop autoboot:  0
ar7100> tftpboot 0x81000000 openwrt-ar71xx-uImage-gzip.bin
Using eth0 device
TFTP from server 192.168.1.230; our IP address is 192.168.1.10
Filename 'openwrt-ar71xx-uImage-gzip.bin'.
Load address: 0x81000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################################
done
Bytes transferred = 2604956 (27bf9c hex)
ar7100> setenv bootargs 'board=MZK-W300NH'
ar7100> printenv
bootcmd=bootm 0xbf050000
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
filesize=27bf9c
fileaddr=81000000
ipaddr=192.168.1.10
serverip=192.168.1.230
bootargs=board=MZK-W300NH

Environment size: 247/65532 bytes
ar7100> bootm
## Booting image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.27.10
   Created:      2009-01-07  18:49:33 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    2604892 Bytes =  2.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

Linux version 2.6.27.10 (owrt@debian) (gcc version 4.1.2) #8 Thu Jan 8 03:49:12 JST 2009
console [early0] enabled
CPU revision is: 00019374 (MIPS 24K)
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28224k/32768k available (1788k kernel code, 4544k reserved, 318k data, 1664k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
net_namespace: 592 bytes
NET: Registered protocol family 16
MIPS: machine is Planex MZK-W300NH
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  c 2001-2006 Red Hat, Inc.
yaffs Jan  6 2009 12:18:21 Installing.
msgmni has been set to 55
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
Atheros AR71xx SPI Controller driver version 0.2.2
m25p80 spi0.0: m25p64 (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
Creating 6 MTD partitions on "spi0.0":
0x00000000-0x00040000 : "u-boot"
0x00040000-0x00050000 : "u-boot-env"
0x00050000-0x001b0000 : "uImage"
0x001b0000-0x007c0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "spi0.0"
0x007c0000-0x007e0000 : "config"
0x007e0000-0x00800000 : "art"
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Freeing unused kernel memory: 1664k freed
Algorithmics/MIPS FPU Emulator v1.5
[sighandler]: No more events to be processed, quitting.
[cleanup]: Waiting for children.
[cleanup]: All children terminated.
- preinit -
Press CTRL-C for failsafe

Please press Enter to activate this console. cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
ath9k: 0.1
Registered led device: ath9k-phy0:radio
Registered led device: ath9k-phy0:assoc
Registered led device: ath9k-phy0:tx
Registered led device: ath9k-phy0:rx
phy0: Atheros AR9100 MAC/BB Rev:0, AR2122 RF Rev:a1, mem=0xb80c0000, irq=2
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)



BusyBox v1.11.3 (2009-01-06 11:47:07 JST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r13927) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# iwconfig
lo        no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
          Tx-Power=0 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@OpenWrt:/# cd /etc/config/
root@OpenWrt:/etc/config# vi wireless

config wifi-device  wlan0
        option type     mac80211
        option channel  5

        # REMOVE THIS LINE TO ENABLE WIFI:
#       option disabled 1

config wifi-iface
        option device   wlan0
        option network  lan
        option mode     ap
        option ssid     OpenWrt-ath9k-r13927
        option encryption none
~
~
~
~
~
~
~
~
~
~
root@OpenWrt:/etc/config# /etc/init.d/network restart
ifconfig: SIOCSIFADDR: No such device
device wlan0 entered promiscuous mode
Configuration file: /var/run/hostapd-wlan0.conf
br-lan: port 1(wlan0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 1(wlan0) entering forwarding state
wlan0: IEEE 802.11 Configured channel (5) not found from the channel list of current mode (1) IEEE 802.11g
wlan0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-1)
br-lan: port 1(wlan0) entering disabled state
enable_mac80211(wlan0): Failed to set up wpa for interface wlan0
root@OpenWrt:/etc/config# iwconfig
lo        no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.432 GHz  Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

br-lan    no wireless extensions.

root@OpenWrt:/etc/config# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:90:CC:FE:C8:68
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@OpenWrt:/etc/config# vi wireless

config wifi-device  wlan0
        option type     mac80211
#       option channel  5

        # REMOVE THIS LINE TO ENABLE WIFI:
#       option disabled 1

config wifi-iface
        option device   wlan0
        option network  lan
        option mode     ap
        option ssid     OpenWrt-ath9k-r13927
        option encryption none
~
~
~
~
~
~
~
~
~
~
root@OpenWrt:/etc/config# /etc/init.d/network restart
device wlan0 left promiscuous mode
br-lan: port 1(wlan0) entering disabled state
ifconfig: SIOCSIFADDR: No such device
device wlan0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 1(wlan0) entering forwarding state
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device wlan0 ; Operation not supported.
Configuration file: /var/run/hostapd-wlan0.conf
br-lan: port 1(wlan0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 1(wlan0) entering forwarding state
Using interface wlan0 with hwaddr 00:90:cc:fe:c8:68 and ssid 'OpenWrt-ath9k-r13927'
root@OpenWrt:/etc/config# br-lan: port 1(wlan0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 1(wlan0) entering forwarding state

root@OpenWrt:/etc/config# iwconfig
lo        no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.432 GHz  Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

br-lan    no wireless extensions.

mon.wlan0  IEEE 802.11bgn  Mode:Monitor  Frequency:2.432 GHz  Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:/etc/config# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:90:CC:FE:C8:68
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

mon.wlan0 Link encap:UNSPEC  HWaddr 00-90-CC-FE-C8-68-00-4C-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:90:CC:FE:C8:68
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wmaster0  Link encap:UNSPEC  HWaddr 00-90-CC-FE-C8-68-00-4C-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@OpenWrt:/etc/config#

Great.

Maybe I mistook selecting wireless channel. What channel can I select as of now?

good night,
zukky

Good news!  I notice your factory firmware show "ar7100_ehci" loaded, have you studied motherboard for possible place to add USB port?

Hi, RoundSparrow.

I cannot see patterns for usb on my device. Not implemented unfortunately. And it's difficult for me to get usb data line directly from cpu...

BTW, this has usb port. ar71xx/ap81 device.
http://www.planex.net/product/router/mzk-w04nu.htm

good night.
zukky

Very interesting!  is 3 antenna so likely AR9103 chip, plus the USB port.  The firmware does indeed show:

:~/planex$ strings mzkw04nu_v10016.bin | grep "ap81"
art_ap81.ko

The firmware bin file is 7864320 bytes in size, does it have 8MB of FLASH?!

I find them selling these in USA on eBay for $80
http://cgi.ebay.com/PLANEX-11n-Wireless … EN_Routers

But they want $42 for shipping cost within USA, ha!  So I seek a better seller. I find them selling one on Amazon for $60, I will try and order wink

(Last edited by RoundSparrow on 10 Jan 2009, 04:58)

I got my MZK-W04NU.  going over the firmware, both the MZK-W300NH and MZK-W04NU have 8MB of flash.  The key line is the "mtdparts=ar7100-nor0:256k(u-boot),64k(u-oot-env),1408k(uImage), 6208k(rootfs),128k(config),128k(ART)" on vendor firmware boot.  So it isn't just a mistake of u-boot like on one of the TP-Link routers.  The download bin file is also > 4MB.  The firmware has chinese,japanese,english integrated website - and supports such features such as WDS!

(Last edited by RoundSparrow on 14 Jan 2009, 20:50)

Hi, RoundSparrow.

I saw your new thread of MZK-W04NU. Good job!
I'll get one, sooner or later.

regards,
zukky

Any chance someone who owns this router can provide a  dd image of mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env" so I can experiment with a binary diff of the other Planex router?

If you are in Japan, can you please contact Planex and ask them to release GPL firmware and GPl u-boot?

thank you.

Hi, RoundSparrow.

OK. I sent Planex technical support your request to release source codes of mzk-w300nh and u-boot (and also many other models which they've not released yet).
I informed them of URL of this thread, too.

Planex has already settled a page for GPL source code.
http://www.planex.co.jp/support/downloa … _src.shtml
But nothing is found about recent models.

If Planex is a decent company, they'll do decent action.

If I receive reply from them, I'll show you it immediately.

regards,

zukky

Did this model get sent off to Juhosg for firmware build?

The discussion might have continued from here.