Posted: Sun Dec 06, 2009 7:30 Post subject: TP-Link WR-1043ND
Started adding support for this router, almost the same as the WR941ND, differences are Gigabit network, USB2 Host and 8MB Flash.
So far I have OpenWrt running on it but without the switch support, The lan comes up at 1gb but no Vlan partitioning, Wlan works but only limited testing. 54g seems to work well.
My main issue is the Realtek RTL8366RB switch, there are no opensource drivers for it that I can find or the specific datasheet, Ive found binary only kernel modules, who knows what proprietary information they have to hide for a switch.
TP-Link have yet to release the GPL source for this model.
<Edit>
One other little problem is getting the run-time board detection to work, I see in prom.c that the board is picked up from flash somewhere and a list is parsed to find the platform, I followed how WR941nd was added but it doesnt work, gets detected as generic so for now I have to add board=TL-WR1043ND to the kernel command line.
Can someone in the know chime in here ?
Well, I found the rtl8366RB data sheet I need, so I should be able to sort that later.
Regarding the board detection, Ive been digging a little further.
From looking at the detection code in prom.c I see it uses the fw_arg2 for the memory address to look for specific board info, the bootloader must populate this information ?
Whats happening is the detection code is bailing out due to an invalid address, as can be seen below 0x00000010 is not right.
prom: fw_arg0=00000001, fw_arg1=81f77d24, fw_arg2=00000010, fw_arg3=fffffffe
< Edit >
Never mind, worked it out. I should have implemented my board properly in the first place then I would have noticed how the board detection is handled.
The source tarball is not very useful. None of the changes/modifactions for the WR1043ND are included.
It looks almost like the ap83 sdk they would of started with.
The only show stopper at the moment is the rtl8366RB switch support. We can get the switch up at 1gb with 5 ports but no vlan support.
I have source for the switch driver, it can be found in other manufactures tarballs, the one Im working from is Berklin F5D8235v2-2.01.07, they have source in the uboot network drivers folder, which is also a kernel module.
The switch mdio bus is gpio driven, so I have that working and can read/write to the registers. Its going to take time though.
The source tarball is not very useful. None of the changes/modifactions for the WR1043ND are included.
It looks almost like the ap83 sdk they would of started with.
I hope this doesn't have to do with a GPL violation e.g..
Quote:
The only show stopper at the moment is the rtl8366RB switch support. We can get the switch up at 1gb with 5 ports but no vlan support.
At least we need a WAN Port/4 LAN ports
Quote:
The switch mdio bus is gpio driven, so I have that working and can read/write to the registers. Its going to take time though.
I don't understand a word. I'm no developer. And please don't waste your time exlaining it to me :-)
Sounds like you are confident to get this work done. I should get a WR-1043ND and donate some of the euros I've saved compared to the Netgear WGR3500L's price.
Posted: Fri Jan 08, 2010 7:23 Post subject: my openwrt for tplink 1043nd
hello.
i compiled my own openwrt with vlan support.
changelog:
Quote:
- vlan`s (eth0.1 - lan, eth0.2 - wan)
- led wlan is blinking when wlan network is use
- led usb is on when you connect usb device and off when device is disconnect
- compiled webif gui
- repaired 2 bugs in webif
- button QSS run/halt transmission (if installed and configured). Led QSS on = transmission run, led off = transmission = halt)
- added default configuration of transmission (/etc/transmission)
- added default configuration of samba3 (/etc/samba/smb.conf-shibby)
- added default configuration of vsftpd (/etc/vsftpd.conf and /etc/vsftpd.users/shibby)
- added many aplications like nano, adduser, deluser, htop, tar, gzip, bash
- added full mc - added to mc FTP Link and Shell Link features
- added full wget
- added fdisk, mkfs.ext2/ext3/vfat
- added my repository to opkg.conf (openwrt.groov.pl)
- activated bash history
- opened ports from WAN (transmission gui 9091 and transmission port 50005, ftp 21, ssh 22 and port 80 for gui)
- failsafe mode works
- added script sda-to-root*
Transmission, samba and vsftpd are not in firmware. You have to install for using.
*sda-to-root - script make root (/) on sda1 (script is in polish language version). You have to first format sda1 as ext3 and mount to /mnt/sda1 then run /sbin/sda-to-root
I translate the questions of sda-to-root wizard
t - yes
n - no
Quote:
do you want continue? (t/n)
t
1. coping all from rom to /mnt/sda1
Done.
2. coping default settings from /etc to /mnt/sda1
Done.
3. disable automounting USB devide
Done.
4. Have you sda2 partition and want to mount sda2 to /nas? (t/n)
t
/dev/sda2 added mount to /nas
Done.
5. WARING!! SWAP is not recommented to use on flash disc
Do you want to create SWAP file? (t/n)
t
Making SWAP file... please wait
131072+0 records in
131072+0 records out
Setting up swapspace version 1, size = 67104 kB
no label, UUID=0a236ee6-812d-4bd2-bff1-bffa44611a84
Swap 64MB created and activated
Done.
6. changing init script
Done.
7. Done. Restart
root@OpenWrt:~#
Shibby´s openwrt firmware does quite a good job already. For dd-wrt this router isn´t even in the database - but maybe it´s just for the bigger surprise