OpenWrt Forum Archive

Topic: TP Link WR1043ND 11n gigabit router

The content of this topic has been archived between 20 Jul 2013 and 7 May 2018. Unfortunately there are posts – most likely complete pages – missing.

MBS wrote:
uqbar wrote:

The 1043 is indeed a best seller, so it deserves better documentation. IMHO.

Indeed, and I have not yet come over another wiki page with that enormous amount of information. Your effort in improving the wiki article is highly appreciated, though I recommend to add only verified information.

It's been verified by actually doing it.

uqbar wrote:

It's been verified by actually doing it.

No offence, but in the wiki you mentioned:

uqbar wrote:

I temporarly don't have at hand my WR1043 to confirm.

That's why you could not see that the mtd command line you have posted in the wiki was invalid (openwrt uses a different mtd-partition labeling than dd-wrt/freewrt).
Anyway, I highly appreciate your effort in extending the wiki.

(Last edited by MBS on 31 Aug 2011, 09:21)

@uqbar: Whats actually the purpose of this in the wiki: [ [[https://forum.openwrt.org/viewtopic.php?pid=141869#p141869|reference]] ]

How do you test the WAN and LAN performance?
When I plug in my computer to WAN port the router refuses to give out IP address and echo pings.
Turning off the Firewall didn't help either.

@alphasparc

Think it this way: the Wan port is for the router to GET an address and act just like your pc when plugged into the LAN ports.  Router wont give you an IP on the wan port (at least not without some tweaking ) because it is expecting to receive one.

to test performance you can use iperf or simply transfer a big file from one computer to another. 100 Mbps should be 12.5 MB/s in ideal teorical. anything between 9.5 - 11.5 are fine.

also i recommend installing htop, so you can get an easy idea of the routers resources usage.

best regards.
Miguel

However even if I statically set an IP and Gateway it still doesn't send and receive the packets from router.

Del wrote:

OK, I have opened a ticket for the unstable wireless:
https://dev.openwrt.org/ticket/9950

The ticket is now closed. The testing I have done so far indicates that it is resolved. alphasparc, maybe you should give it a go too.

I`ve written an eMail to TP-Link Support regarding my issue of input voltage for the 1043ND, now they answered:

Thank you for your email requesting information about our product. This is
Kim from TP-LINK technical support department.Wish i could give you some
help.
Yes, it works with 10.5v--14v and will not damage the device.

So it seems to be working all good with a car battery smile
My 1043ND is since yesterday now on my 12V power supply (car battery backed-up, so around 13.4V).

Ronny

(Last edited by rcmc_ronny on 6 Sep 2011, 07:56)

Thanks Del.
I am now using R28186
So far I haven't seen errors in the logs.
However there is an issue with wifi.

Luci allows you to set the max txpower of 27dbm(501mw) after you set the region to US but luci only displays Tx-Power: 24 dBm after you set to 27dbm.
Is the max txpower 27dbm or 24dbm?

Currently I am trying to get openvpn server running on this router however I keep encountering errors when following the wiki.
At step:

Build your certificates
    Prime your cert database
    ->clean-all

I get the error: rm: cannot remove '/etc/easy-rsa/keys': Invalid argument

Then at step:

build-key-server server

After it prompts for the challenge password and the optional company name
It return the error messages below.

Using configuration from /etc/easy-rsa/openssl.cnf
/etc/easy-rsa/keys/index.txt: No such file or directory
unable to open '/etc/easy-rsa/keys/index.txt'
12623:error:02001002:lib(2):func(1):reason(2):NA:0:fopen('/etc/easy-rsa/keys/index.txt','r')
12623:error:20074002:lib(32):func(116):reason(2):NA:0:

Any help?

MBS wrote:

@khudko_denys: It seems your problem was solved already in this thread: https://forum.openwrt.org/viewtopic.php?id=30671
And also have a look at this: https://openwrt.org/support.html

Thanks for the answer, but the problem is different and not solved. Have discussed the problem with topic starter of above link - he had another initialization problem. My dongle is correctly initialized, as I have understood, but doesn't work properly.
Please look at my thread with problem details, maybe somebody know how to solve the matter.
https://forum.openwrt.org/viewtopic.php … 96#p143196

alphasparc wrote:

Luci allows you to set the max txpower of 27dbm(501mw) after you set the region to US but luci only displays Tx-Power: 24 dBm after you set to 27dbm.
Is the max txpower 27dbm or 24dbm?

I noticed the reduction too. Actually, I think the maximum you can set now is 20dBm (the ath9k driver doesn't support more), and it coincides with the maximum allowed transmit power in the US:
http://en.wikipedia.org/wiki/DBm
hardly a coincidence. I guess we can patch the driver to override it, but I have other bugs to hunt down higher up on my priority list.

alphasparc wrote:

Currently I am trying to get openvpn server running on this router

I have compiled in openvpn in my router, but sadly no time to fiddle with it yet. My starting point will be a simplistic walk-through at Linux.com. The whole linux-server infrastructure is down at the moment, so we will have to use web-cache:
http://webcache.googleusercontent.com/s … ent=ubuntu
Note that /etc/network/interfaces is debian specific, so it will not work on openwrt.

Anyone knows the file containing the value of the hashsize and max conntrack in the built files?
I have been hunting the the file but failed to spot anything.

(Last edited by alphasparc on 23 Sep 2011, 15:32)

Hello All,

just to comment about something that happened recently a couple of times.

Have a 16G usb as storage in the 1043nd with FAT32 partition and a 128 MB swap partition on it.

Now its the second time that deleting and trashing a torrent with its data corrupts the FAT partition..

i think this is memory related because if i try to fun a fsck.vfat on it, first complains about memory allocation
i then enable the 128MB swap and it start the process and then fails for something else.. or maybe its just
a little unstable the FAT kernel module..

i am using RC-5.

i also have a WRT160NL with a usb hub to its usb port, and two 500G usb hdd, both with ext4 partitions,
and i can add, delete and trash data form the disks without problem.

its a little strange that torrenting with the 1043 being a far more disk intensive task  (as it constantly reads and writes pieces to the FAT partition ) goes without problem, and is part of the reason why i dont use usb harddrives for it and preffer usb flash disks ), and fails with a simple file deletion.

i am doing checks remotely right now, but as soon as i get home i'll repair the FAT partition in my desktop computer and try some simple and massive file deletion with the router to see if its the deletion operations or I/O in general.

i'll be changing the vFAT to ext4 and retry.

Well, best regards,
hope this helps someone.

Did you consider the block size of flash media being 64k instead of 512 bytes on magnetic medias? Meaning, if you don't explicitly tell the filesystem driver to use 64k blocks, it will straight send a message to the flash chip, requesting to change a 512 bytes block. The flash chip then has to read the 64k block (maybe erase it) and write it back, including the changed 512 bytes. This is very slow (and wears out the flash) and might cause some timeouts.
Once I installed a linux on a flash card and had massive problems due to that fact. In that case it also helped a lot to disable atime.

Hi MBS,

thanks for the tip, i forgot that, where should i specify the option?
at the fstab as a mount option or some other place kernel module related?

it seems this has corrupted the partition very badly... as i havent been able
to repear the FAT filesystem...

EDIT: FAT repaired, now into the router... i get this..

<code>
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access     Kingston DT 100 G2        PMAP PQ: 0 ANSI: 0 CCS
usb-storage: device scan complete
sd 1:0:0:0: [sda] 31260672 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags "blocksize=65535"
yaffs: Bad mount option "blocksize=65535"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags "blocksize=65535"
yaffs: Bad mount option "blocksize=65535"
FAT: "blocksize=65535" option is obsolete, not supported now
Adding 131064k swap on /dev/sda2.  Priority:-1 extents:1 across:131064k
Adding 131064k swap on /dev/sda2.  Priority:-1 extents:1 across:131064k

i tried with size althougth its not a FAT mount option...

yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags "size=64k"
yaffs: Bad mount option "size=64k"
yaffs: dev is 8388609 name is "sda1"
yaffs: passed flags "size=64k"
yaffs: Bad mount option "size=64k"
</code>

i tried with blocksize=64k failed just the same.. so i think i'll move my data to a ext4 partition for now...

thanks anyway MBS.

(Last edited by miguel.arce on 29 Sep 2011, 04:08)

it actually starts with your partition setup. So you would need to make sure your partitions start at multiple of 128 blocks (of 512 bytes). then you need to force a block size of 64k when creating the filesystem (mkfs.vfat or mkfs.ext4). And it is probably better to turn off the journal of journaled filesystems (like ext3/4).

i see,

i'll give it a shot on weekend.

hey little on another matter, do you think is possible to use the openwrt image creation method to compile
the linux kernel for a board that is not a router like, the herotab M816 ..

an ARM machine with known ICs and procesos and i think samsung has even released the source for their procesor..
the guys at slatedroid.com seems to be having a hard time trying to build honeycomb ...

EDIT:

Couldn't wait til tomorroy:

Disk /dev/sda: 16.0 GB, 16005464064 bytes
64 heads, 32 sectors/track, 15264 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0xe82ae82a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               2         257      262144   82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2             258       15264    15367168   83  Linux
Partition 2 does not end on cylinder boundary.


root@TL-WR1043ND:~# mkfs.ext4 -b 65535 /dev/sda2
Warning: blocksize 65535 not usable on most systems.
mke2fs 1.41.11 (14-Mar-2010)
mkfs.ext4: 65535-byte blocks too big for system (max 4096)
Proceed anyway? (y,n)

is that right?

error: EXT4-fs (sda2): bad block size 32768
seems it didnt created 64k blocksize after all sad

(Last edited by miguel.arce on 30 Sep 2011, 04:24)

two things: 64k are actually 65536. Although that will probably not change mkfs.ext4's behavior to reject everything above 4096 (I didn't know about that restrictions so far). Second thing is in fdisk it seems to be ok, but it also helps to switch to extended mode, where the "p"-command actually displayes all values in bytes (to check if it is really multiples of 64k).

Hi MBS, good day

you are right, lol, i am so used to start count from 0
indeed 64k = 65536 bytes

yes, mkfs.ext4 only allowed 32768 (32k) blocks, but event at mounting it the system complained about
that 32k block size.

anyway, i am using now an ext4 with 4096 blocksize and was able to trash data from transmission without incident
i also doubled my initial swap space seems more stable now and better throughtput (256MB)

what is your opinion on the herotab thing?

In terms of the build environment I would say that buildroot is not the worst choice, but if you intend to build an openwrt image and put it on that tablet pc - then I'm in some doubt. openwrt seems to be more like server related (having several services running all the time), while a tablet is more a client (having other purposes, including mobility, which requires low cpu-usage).

hi MBS,

what i meant is that the slatedroid guys need first is a way to compile linux to support the
hardware these board has.

i dont think they will be compiling anything more than just the linux kernel, as android runs on top of the
linux kernel (i guess) its justa matter of compiling the kernel for a specific architecture, with an
specific set of drivers and support for things.

now how hard is to create a profile in openwrt's buildroot ? ( i dont know, maybe its harder than i think )

the way i understand it ( and i could be very wrong ), when you compile an openwrt image
you compile the kernel for the arch and components specific to a device, its switch
driver, the wireless driver, the driver for the flash, the driver for the usb, and some tweakings like vlan support, etc.
this is because the kernel is intended to be run in a network device, and all this with the limitation of the flash space.

but with these tablet devices you have no limitation in space as firmwares are stored in 2, 4, 8 GB and so MicroSD flash cards,
and are commongly composed of 2 parts the boot img that contains the bootloader, the kernel, and the initrd, and the system.img
that is where the android resides (  i guess compiled or configured for the kernel in boot.img, i am really at the begining of this).

so they just need a way to generate a working boot.img for the device..

then again i really dont know for sure what i am talking about, as i have a lot to learn but thats my general idea

(Last edited by miguel.arce on 1 Oct 2011, 00:15)

I couldn't clearly say yes or no, since I haven't messed too much with android yet. There are several things popping up in my mind about that:
- How is the driver support in the kernel vs in openwrt? Having a look into latest kernel sources show, that a lot of driver code came from openwrt developers.
- Is it only a kernel, that is needed? A kernel without further software is worth nothing.
- Is the filesystem layout of android the same as openwrt?
Creating a new profile in the build system is not too difficult, just take a look at the patches (for example when the 1043 got initially supported) in trunk.

A german version of the WR1043ND was reported in the wiki. Could someone with such a version, please execute

iw list

and then post the output?