OpenWrt Forum Archive

Topic: Planex (PCI) MZK-W04NU Atheros AP81 platform router with USB

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

Thank you hkubota!

MZK-W04NU it shall be.

You made my decision making very easy smile

Eri Hyva wrote:

http://www.ecost.com/Detail/Wireless+Ne … px?navid=0

accept input of 220v? Is it a 100V-220V adapter or 100V only? Can someone who owns MZK-W04NU check it....

The Trendnet AP81's and Planex have a very similar power supply, both are 60Hz (USA/Japan) only.  They are 5v 2.5 or 3 amps, shouldn't be too hard to source something compatible.

I've started a new thread generic to all AP81 routers to discuss the pre-built binary firmware images for these routers that I'm building/distributing.  See: http://forum.openwrt.org/viewtopic.php?id=19475

When doing an upgrade within OpenWrt using MTD, I got some errors:

root@OpenWrt:/tmp# mtd -r write openwrt_r14959_manyUSB1_ar71xx-mzk-w04nu-squashf
s.bin firmware
Unlocking firmware ...
Writing from openwrt_r14959_manyUSB1_ar71xx-mzk-w04nu-squashfs.bin to firmware ...  [w]
Rebooting ...
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 577d9, size 5602
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 577d9, size 5602
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 577d9, size 5602
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 577d9, size 5602
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 577d9, size 5602
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 577d9, size 5602
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 5cddb, size 5b57
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 4c080, size 5e55
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 4c080, size 5e55
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 4c080, size 5e55
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 4c080, size 5e55
SQUASHFS error: lzma returned unexpected result 0x1
SQUASHFS error: Unable to read page, block 4c080, size 5e55

I had to control-C and issuing "reboot" didn't do anything.  A cold boot of the device came up normal with the newly-flashed firmware.

I included a whole ton of USB drivers for video cameras, CD drives, LAN ethernet, etc.  Config here: http://sites.google.com/a/roundsparrow. … 959_v1.txt  Here is space I get on first boot:

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    3.3M      3.3M         0 100% /
/dev/root                 3.3M      3.3M         0 100% /rom
tmpfs                    14.6M    108.0k     14.5M   1% /tmp
tmpfs                   512.0k         0    512.0k   0% /dev
mini_fo:/tmp/root         3.3M      3.3M         0 100% /tmp/root
/dev/mtdblock4            2.9M    268.0k      2.7M   9% /jffs
mini_fo:/jffs             3.3M      3.3M         0 100% /

(Last edited by RoundSparrow on 23 Mar 2009, 00:50)

using the binary firmware ( r14959_manyUSB1 ) I uploaded today, here is some results of plugging in various hard disks/USB memory sticks, and one USB to serial converter:

root@OpenWrt:/#
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access     Corsair  Flash Voyager    0.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 31588352 512-byte hardware sectors: (16.1 GB/15.0 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 31588352 512-byte hardware sectors: (16.1 GB/15.0 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
EXT2-fs warning (device sda1): ext2_fill_super: mounting ext3 filesystem as ext2
root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /dev type tmpfs (rw,size=512k)
devpts on /dev/pts type devpts (rw,mode=600)
mini_fo:/tmp/root on /tmp/root type mini_fo (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/mtdblock4 on /jffs type jffs2 (rw)
mini_fo:/jffs on / type mini_fo (rw)
/dev/sda1 on /mnt/sda1 type ext2 (rw,errors=continue)
root@OpenWrt:/# ls /mnt/sda1
VBox1       lost+found
root@OpenWrt:/#

usb 1-1: USB disconnect, address 2
Buffer I/O error on device sda1, logical block 967
lost page write due to I/O error on sda1
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1

usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           8.01 PQ: 0 ANSI: 0 CCS
sd 1:0:0:0: [sda] 15682559 512-byte hardware sectors: (8.02 GB/7.47 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] 15682559 512-byte hardware sectors: (8.02 GB/7.47 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 1:0:0:0: [sda] Attached SCSI removable disk
sd 1:0:0:0: Attached scsi generic sg0 type 0
scsi 1:0:0:1: CD-ROM            SanDisk  Cruzer           8.01 PQ: 0 ANSI: 0
scsi 1:0:0:1: Attached scsi generic sg1 type 5
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
UDF-fs: No VRS found

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    3.3M      3.3M         0 100% /
/dev/root                 3.3M      3.3M         0 100% /rom
tmpfs                    14.6M    108.0k     14.5M   1% /tmp
tmpfs                   512.0k         0    512.0k   0% /dev
mini_fo:/tmp/root         3.3M      3.3M         0 100% /tmp/root
/dev/mtdblock4            2.9M    272.0k      2.7M   9% /jffs
mini_fo:/jffs             3.3M      3.3M         0 100% /
/dev/sda1                 7.5G      2.3G      5.2G  31% /mnt/sda1
root@OpenWrt:/# ls /mnt/sda1
Documents           casper-rw           pool
LaunchU3.exe        dists               preseed
README.diskdefines  install             syslinux
System              ldlinux.sys         syslinux.cfg
autorun.inf         md5sum.txt          umenu.exe
casper              pics                wubi.exe
root@OpenWrt:/#

usb 1-1: USB disconnect, address 3
Buffer I/O error on device sda1, logical block 1
lost page write due to I/O error on sda1
scsi 1:0:0:0: rejecting I/O to dead device

usb 1-1: new high speed USB device using ar71xx-ehci and address 4
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access     Hitachi  HTS545050KTA300  BKFO PQ: 0 ANSI: 0
sd 2:0:0:0: [sda] 976773168 512-byte hardware sectors: (500 GB/465 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] 976773168 512-byte hardware sectors: (500 GB/465 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 2:0:0:0: [sda] Attached SCSI disk
sd 2:0:0:0: Attached scsi generic sg0 type 0
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 8.1, "sda1"
NTFS volume version 3.1.

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    3.3M      3.3M         0 100% /
/dev/root                 3.3M      3.3M         0 100% /rom
tmpfs                    14.6M    108.0k     14.5M   1% /tmp
tmpfs                   512.0k         0    512.0k   0% /dev
mini_fo:/tmp/root         3.3M      3.3M         0 100% /tmp/root
/dev/mtdblock4            2.9M    272.0k      2.7M   9% /jffs
mini_fo:/jffs             3.3M      3.3M         0 100% /

/dev/sda1               465.8G     15.1G    450.7G   3% /mnt/sda1
root@OpenWrt:/# 
root@OpenWrt:/# ls /mnt/sda1
Click Here To Start.hta    LinuxBackup
Fabrik Backup Solutions    System Volume Information
root@OpenWrt:/#

usb 1-1: USB disconnect, address 4

usb 1-1: new full speed USB device using ar71xx-ehci and address 5
usb 1-1: configuration #1 chosen from 1 choice
pl2303 1-1:1.0: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB0

As you can see, I was able to mount NTFS, ext2/3, etc. Yha, I did not unmount before I pulled them from the USB port wink

(Last edited by RoundSparrow on 24 Mar 2009, 13:48)

Eri Hyva wrote:

Does the power adapter that comes with

http://www.ecost.com/Detail/Wireless+Ne … px?navid=0

accept input of 220v? Is it a 100V-220V adapter or 100V only? Can someone who owns MZK-W04NU check it....

The MZK-W04N and NU come with 100V-only power adapters. 12V/1A resp. 5V/3A secondary.

Eri Hyva wrote:

I assume 80W will be more than enough for MZK-W04NU?

http://www.dealextreme.com/photogallery.dx/sku.14322
http://www.dealextreme.com/details.dx/sku.3529

Way overkill wink  5x3=15 watts.

Most people I assume just get an inexpensive universal AC to DC adapter from a local source.  Porbably cheaper, and less messy electronically.  5v is pretty common, you probably can find native 5V power supply in your area.  For something that runs 24x7, this is probably better...

(Last edited by RoundSparrow on 23 Mar 2009, 14:53)

Sure, we have plenty of 5V universal AC-DC adapters here.... But the cheaper ones are usually 500mA-1A, max 2A. MZK-W04NU requires 3A according to that Ecost page.

@hkubota (and everybody):

12V/1A resp?

Does MZK-W04NU accept 12V/1A, too? That kind of cheap adapter would be very easy to find.

Does anyone have picture of the sticker in the bottom of MZK-W04NU?

Thanks.

If the 12V/1A is a no-go, I'll walk couple hundred meters to a brick and mortar shop and get this:

http://www.clasohlson.fi/Product/Produc … d=41937284

50VA

(From the Ecost MZK-W04NU page :
Power Consumption: 10W max)

Eri Hyva wrote:

Does MZK-W04NU accept 12V/1A, too? That kind of cheap adapter would be very easy to find.

Does anyone have picture of the sticker in the bottom of MZK-W04NU?

No picture needed. It's 5V in (at 3A, probably including 0.5A for USB). 12V is not 5V. Since USB
uses 5V, chances are that those 5V in will simply be available on the USB bus. 12V in would result
in 12V on the USB bus. Your guess what will happen once you try to use that.

A 5V 2.5A brick would be ok too I guess if you only use self-powered USB devices,
but given that those adapters are a dime a dozen (here in Akihabara at least) that should be really no issue.

The transformer will work too and if that's easier/cheaper to get, then go for it.

But don't try to let 12V near the NU model.

Probably does not help you directly, but just for reference:
http://www.akizukidenshi.com/catalog/c/c5v
1000 Yen is about US$10. Plenty cheap.

I'm sure in your country there are similar shops.

(Last edited by hkubota on 24 Mar 2009, 13:04)

Please, i have 3 of these routers here.  Ignore all the misinformation!

You need a PSU that produces 5volts DC, 3.0 amps or more.

Nothing more. 10W is not going to be enough, that's an error.  The Trendnet without the USB uses more than that.

Well, it looks like I've hosed my mzk-40nu firmware and have no serial console experience.  Will this router accept tftp connections at boot?  Is there a tftp password?  I've been trying to tftp in via the wiki directions to 192.168.1.1 with no luck.  It doesn't seem to accept connections during boot.  I've tried several permutations (holding the reset button while booting, etc) w/ no luck.  Any advice?

whuddell wrote:

Well, it looks like I've hosed my mzk-40nu firmware and have no serial console experience.  Will this router accept tftp connections at boot?  Is there a tftp password?  I've been trying to tftp in via the wiki directions to 192.168.1.1 with no luck.  It doesn't seem to accept connections during boot.  I've tried several permutations (holding the reset button while booting, etc) w/ no luck.  Any advice?

How did it happen?

You are the first?  What wiki tftp directions?  Anything related to the Linksys isn't going to work on these....

Serial may be your one and only option.  Unless someone comes up with a recovery mode / button sequence, but I haven't seen one.

What are your options on serial?  The instruction for opening the case are posted earlier in the thread.

I encourage you not to get too frustrated.  Mistakes are par for the course. this router is not as easy to recover as the Trendnet ones... but it has better hardware.  If you are unable to do the serial port, maybe see if we can hook you up with another Linux router users and get together in person?

(Last edited by RoundSparrow on 27 Mar 2009, 14:52)

RoundSparrow wrote:
whuddell wrote:

Well, it looks like I've hosed my mzk-40nu firmware and have no serial console experience.  Will this router accept tftp connections at boot?  Is there a tftp password?  I've been trying to tftp in via the wiki directions to 192.168.1.1 with no luck.  It doesn't seem to accept connections during boot.  I've tried several permutations (holding the reset button while booting, etc) w/ no luck.  Any advice?

How did it happen?

You are the first?  What wiki tftp directions?  Anything related to the Linksys isn't going to work on these....

Serial may be your one and only option.  Unless someone comes up with a recovery mode / button sequence, but I haven't seen one.

What are your options on serial?  The instruction for opening the case are posted earlier in the thread.

I encourage you not to get too frustrated.  Mistakes are par for the course. this router is not as easy to recover as the Trendnet ones... but it has better hardware.  If you are unable to do the serial port, maybe see if we can hook you up with another Linux router users and get together in person?

It happened with a poorly executed wget command (despite the warnings):
http://wiki.openwrt.org/OpenWrtDocs/Ins … 422fe8aa02

To restore by tftp, I've been using:
http://wiki.openwrt.org/OpenWrtDocs/Ins … WrtViaTftp

I've tried tftp clients on linux and mac, but it doesn't appear to me that the router listens for tftp connections at boot.  I'm thinking serial in my only option.  I hope to pick up a rs232 to ttl converter and connect to the serial port on an openbsd laptop.  I think I found the set of 4 holes on the router's circuit board to connect to (J1).  But I'm not sure which it which.  I think I should be looking for a gnd, Tx and Rx.

whuddell wrote:

I'm thinking serial in my only option.  I hope to pick up a rs232 to ttl converter and connect to the serial port on an openbsd laptop.  I think I found the set of 4 holes on the router's circuit board to connect to (J1).  But I'm not sure which it which.  I think I should be looking for a gnd, Tx and Rx.

I encourage you to consider the Nokia DKU-5 cable.  I've purchased dozens from this guy on eBay for $3.88 shipped (he was selling for $3.30 at one point, but I guess we drove up the demand wink ) http://search.stores.ebay.com/topvsbott … d5QQsofpZ0

The pinout is the same as the Trendnet AP81 routers.  I updated the first post of this thread with serial port pinout:  pin 1 (square box) = +3.3V, pin 2 = RX, pin 3 = TX, pin 4 = Ground.  You only need to connect pin 2,3,4 (for a total of three wires).

RoundSparrow wrote:
whuddell wrote:

I'm thinking serial in my only option.  I hope to pick up a rs232 to ttl converter and connect to the serial port on an openbsd laptop.  I think I found the set of 4 holes on the router's circuit board to connect to (J1).  But I'm not sure which it which.  I think I should be looking for a gnd, Tx and Rx.

I encourage you to consider the Nokia DKU-5 cable.  I've purchased dozens from this guy on eBay for $3.88 shipped (he was selling for $3.30 at one point, but I guess we drove up the demand wink ) http://search.stores.ebay.com/topvsbott … d5QQsofpZ0

The pinout is the same as the Trendnet AP81 routers.  I updated the first post of this thread with serial port pinout:  pin 1 (square box) = +3.3V, pin 2 = RX, pin 3 = TX, pin 4 = Ground.  You only need to connect pin 2,3,4 (for a total of three wires).

Thanks,

That dku-5 cable is on the way.  I soldered header pins to the board in anticipation of connecting the dku-5 to it.  I expect then that I'll be able to plug the other end into a usb port on say a linux box, boot the router and get a serial console?  At that point, will I be able to flash new firmware through a cfe interface?  Or perhaps, I can start tftp from the serial console and flash from a tftp client?  This is all new to me and I appreciate your assistance.  I'm enjoying all that I'm learning through the process.

whuddell wrote:

That dku-5 cable is on the way.  I soldered header pins to the board in anticipation of connecting the dku-5 to it.  I expect then that I'll be able to plug the other end into a usb port on say a linux box, boot the router and get a serial console?  At that point, will I be able to flash new firmware through a cfe interface?  Or perhaps, I can start tftp from the serial console and flash from a tftp client?  This is all new to me and I appreciate your assistance.  I'm enjoying all that I'm learning through the process.

I suggest on a Linux box you use screen.  Such as "screen /dev/ttyUSB0 115200".  Then connect power to the router, you should see output.  These routers do not use cfe, they use u-boot.  From u-boot you can set an IP address and do a tftp pull of the firmware (from your Linux host) then write it to flash.  The specific commands for this router are listed in the first post of this thread.

FYI,

I just successfully recovered from a situation where the kernel kept panicing and had to resort to a uboot flash. I have the DKU-5 on order from HK but I am somewhat impatient. smile I discovered the Nokia DLR-3P actually works with this router!

See here: http://forum.openwrt.org/viewtopic.php?pid=34932#p34932 and here: http://www.nslu2-linux.org/wiki/HowTo/AddASerialPort

Note, you have to connect the +3.3V line (pin 1 square box as mentioned by RoundSparrow in the first post of this thread.) as the DLR-3P requires it for power (that's why the link mentions 4 wires instead of 3).

The settings in putty I used: 115200,N,8,1

(Last edited by tusc on 1 Apr 2009, 16:02)

Yha, almost all routers have the same basic serial port, there is noting special about this one.  Once you figure the poinout...   Any console port solution (serial port) that works with the Linksys WRT54GL in terms of voltage and such will work fine with this router.

(Last edited by RoundSparrow on 1 Apr 2009, 16:45)

RoundSparrow wrote:
whuddell wrote:

That dku-5 cable is on the way.  I soldered header pins to the board in anticipation of connecting the dku-5 to it.  I expect then that I'll be able to plug the other end into a usb port on say a linux box, boot the router and get a serial console?  At that point, will I be able to flash new firmware through a cfe interface?  Or perhaps, I can start tftp from the serial console and flash from a tftp client?  This is all new to me and I appreciate your assistance.  I'm enjoying all that I'm learning through the process.

I suggest on a Linux box you use screen.  Such as "screen /dev/ttyUSB0 115200".  Then connect power to the router, you should see output.  These routers do not use cfe, they use u-boot.  From u-boot you can set an IP address and do a tftp pull of the firmware (from your Linux host) then write it to flash.  The specific commands for this router are listed in the first post of this thread.

My cable (actually a CA-42) came yesterday and I successfully got serial and was able to tftp new firmware to the box.  Now it's back to compiling and testing from trunk.  FWIW, the last firmware I compiled with your .config (I ran a make old config with r15038) boots fine.  Although I'm having trouble with wireless and my USB flash thumb drive isn't working.  I try another compile from the latest and not tinker with your .config as I did before and see how that goes.  I'll also check out the latest thread that you've started on these routers.  Thanks again.

I have compiled the latest trunk is there anything special in  RoundSparrow's build that makes 11n AP work faster. Maximum I get is around 1.8MBytes/S. Connection info says I am connected at 54MBits. I am using MZK-W04NU. I do get > 2MBytes/s in 11g.

I just compiled and installed hostapd 0.7.0. on MZK-W04NU and now I am getting speed >5MBytes/s, and softirq is around 20% during data transfer over the wireless. I have not played with it much but looks like problem lies in hostapd 0.6.9.

Hi all

hur wrote:

I just compiled and installed hostapd 0.7.0. on MZK-W04NU and now I am getting speed >5MBytes/s, and softirq is around 20% during data transfer over the wireless. I have not played with it much but looks like problem lies in hostapd 0.6.9.

Do you mean with latest hostapd git snapshot? Can you post how to do this?
Thanks