**** BEGIN LOGGING AT Mon Feb 09 02:59:57 2009 Feb 09 08:48:39 markus * r14459 /trunk/target/linux/x86/config-2.6.28: Feb 09 08:48:39 - added cs5535 ide driver Feb 09 08:48:39 - change memory allocator to "SLUB" Feb 09 09:06:13 juhosg: I am stumped on tftpboot of tp-link tl-wr941nd Feb 09 09:13:12 here is pastebin of my attempts: http://openwrt.pastebin.com/f5fce4294 Feb 09 09:13:41 maybe if you have time look at the download .bin from tp-link and see if you can determine what magic is in their file that my openwrt images lack? Feb 09 09:42:32 RoundSparrow: this seems to be a non standard u-boot image :/ Feb 09 09:55:50 yha, the u-boot is modified for sure Feb 09 09:56:18 is odd to me that the flag file can also be tftpbooted, I try this idea, but I did not expect it to work Feb 09 09:56:23 the flash file Feb 09 09:57:46 they have a GPL download, perhaps it has utility to build image and/or u-boot code http://www.tp-link.com/GPL/11N_GPL.tgz Feb 09 09:59:48 nope, i have checked it already Feb 09 10:00:22 RoundSparrow, a uboot compressed image? Feb 09 10:01:13 yes, it claims to fail gzip Feb 09 10:01:29 what if you upload a uncompressed one? Feb 09 10:01:57 juhosg: the u-boot is modified not only to require 'tp' at login, but the saveenv command is missing ;) Feb 09 10:02:21 as is an annoyance they set u-boot at 9600bps and kernel at 115200, but they won't let you save that change Feb 09 10:02:31 heh Feb 09 10:02:46 install jtag and replace uboot? :P Feb 09 10:02:50 and this firmware file is _not_ an u-image Feb 09 10:03:10 RoundSparrow: can you dump the original flash contents somehow? Feb 09 10:03:37 RoundSparrow, does the uboot sources include the mkimage? Feb 09 10:03:46 maybe they modified it too Feb 09 10:04:49 I don't think they include u-boot source, but I have not looked over the GPL download much Feb 09 10:05:04 no u-boot source in that tarball Feb 09 10:05:07 juhosg: some way to do this from u-boot? Feb 09 10:05:48 RoundSparrow, do you have jtag?-) Feb 09 10:05:58 or access to a shell in the device Feb 09 10:07:46 no jtag, one on order, but never used one before ;) Feb 09 10:07:55 yha, I can get root, need to locate password Feb 09 10:07:59 this thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=40041&postdays=0&postorder=asc&start=0 Feb 09 10:08:07 RoundSparrow: maybe, if the u-boot contains the 'md' command Feb 09 10:09:44 he says: The official firmware is exactly concatenated kernel image (0x0010000, 1024KB) and rootfs (0x002c0000, 2816KB) with padding. Extracting rootfs is as easy as $ dd if=wr941n_cn_3_3_10_up\(080630\).bin of=squashfs.bin bs=1K skip=1024 Feb 09 10:10:12 I just can't think of any way to upload images from the uboot to something else Feb 09 10:10:32 it obviously can read the flash Feb 09 10:10:38 RoundSparrow: heh, I just figured that out too Feb 09 10:10:53 telltale squashfs signature a 0x100000 Feb 09 10:10:53 he says: wr941n's uboot seems to be modified, so when given a kernel image, it will skip a header. I haven't found out the header size yet, possible 0x200. The header contains 2 checksum, which I think is md5sum, for example (start from 0x4d) Feb 09 10:10:53 Feb 09 10:11:34 dd-wrt forums don't allow you to link to specific messages in thread? Feb 09 10:11:43 he has some assembly on the checksum Feb 09 10:12:40 lark (person who did this work) was only interested in reworking the stock kernel; I don't think he ever tried tftpboot Feb 09 10:13:37 ok, so he did flash it: flash my testing rootfs : erase bf120000 +2c0000; tftp 81000000 newfs.bin; cp.b 81000000 bf120000 2c0000 ;;; flash factory rootfs : erase bf120000 +2c0000; tftp 81000000 squashfs.bin; cp.b 81000000 bf120000 2c0000 Feb 09 10:14:01 maligor: 'md.b 0xbf000000 0x400000', capture the terminal output, then process it with some scripts ;) Feb 09 10:14:27 yeah, you could do that with kermit I guess Feb 09 10:14:48 fixsum program at http://download.lark.net.cn/wr941n/hack/ Feb 09 10:15:10 juhosg, and hope there isn't transmission errors? :P Feb 09 10:15:17 "TP-Link's technical staff rejected my request for u-boot source code and firmware format. Then I read disassembled code and write a fixsum tool. " Feb 09 10:15:47 gpl violations? Feb 09 10:15:57 I think u-boot is dual license? Feb 09 10:16:21 RoundSparrow: but they still need to release the code to generate firmware images. Feb 09 10:16:57 and *obviously* that, along with everything else needed is in the GPL tarball because it has GPL in its name. Feb 09 10:20:07 ok, he left a howto: http://download.lark.net.cn/wr941n/hack/0README Feb 09 10:20:48 so I am ignorant of openwrt's format, how do I accomplish this same combining manually? I can then try to tftpboot it Feb 09 10:21:12 $ cat header.bin kernel.bin newfs.bin > myfirmware.bin Feb 09 10:54:05 ok guys, so i'm closer ;) Feb 09 10:54:18 so what in openwrt is kernel.bin and rootfs.bin ? Feb 09 11:03:45 no work: cat /home/TPLink1/lark/header.bin openwrt-ar71xx-vmlinux.bin openwrt-ar71xx-rootfs.tgz > tplinktry3.bin Feb 09 11:07:00 it tries to start kernel if I do: cat /home/TPLink1/lark/header.bin openwrt-ar71xx-vmlinux.gz openwrt-ar71xx-root.squashfs > tplinktry4.bin Feb 09 12:02:01 factory firmare works, but my openwrt kernel just dies. Here is a dump of the first few blocks of memory: http://openwrt.pastebin.com/f74dab33e Feb 09 12:34:17 markus * r14460 /trunk/target/linux/x86/config-2.6.28: Feb 09 12:34:17 - removed cs5535 driver again, mixed it up with 5536 chipset Feb 09 12:34:17 - added support for "AMD and nVidia IDE support" which works Feb 09 12:34:17 on my Alix.6b2 without further configuration. Feb 09 13:28:03 juhosg * r14461 /trunk/ (3 files in 3 dirs): [kernel] netfilter: remove CHAOS, TARPIT and DELUDE references Feb 09 16:53:57 Still looking for ideas from those who know a lot more than I do. The TP-Link tries to start kernel if I load this binary and start it: it tries to start kernel if I do: cat /home/TPLink1/lark/header.bin openwrt-ar71xx-vmlinux.gz openwrt-ar71xx-root.squashfs > tplinktry4.bin -- but it just dies immediately, before any serial port output. dump compare here: http://openwrt.pastebin.com/f74dab33e Feb 09 19:44:36 how could I get an init script to start by default in the buildroot? Feb 09 19:44:50 for example instead of typing /etc/rc.d/service enable on bootup ? Feb 09 19:45:59 initscripts automatically enabled for packages installed in the image. packages installed afterwards requires /etc/init.d/foo enable Feb 09 21:39:32 claudio * r14462 /trunk/target/linux/etrax/ (9 files in 5 dirs): Add i2c driver (to etrax) improved by Geert Vancompernolle Feb 09 21:51:02 claudyus: \o/ :) Feb 09 22:57:27 ok, so on tp-link I notice: Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled /// serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A Feb 09 22:57:27 On trendnet router I notice: Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing disabled /// serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A Feb 09 23:00:19 My console dies on kernel boot... it come to me that perhaps the serial port is the cause! As something wierd with how tp-link chooses to go 9600bps on u-boot when all other AP81's use 115200. And the factory firmware emits a unique message that the other AP81's do not. Feb 10 00:07:01 ok, I officially opened the u-boot GPL violation can of worms. http://lists.denx.de/pipermail/u-boot/2009-February/047227.html Hopefully I am not a fool in suggestion this. Feb 10 00:12:39 RoundSparrow: I did the same for the WRP400, and it was followed up by the u-boot author and resolved very quickly with Linksys. Feb 10 00:17:11 that is encouraging. I am curious about the Linksys non-USA routers ("version 2" for outside USA) that use atheros - if they use u-boot. The Broadcom ones here do not use it. Feb 10 00:18:14 The only one in USA I know of that is Atheros AP83 (newer 9000 generation) is Linksys WAP-4410N - as their firmware release notes reference "AP83". But I have not heard of anyone attaching serial and seeing bootloader. Feb 10 00:22:26 THe release notes for that particular Linksys product say: Driver version: LSDK_7.1.3.58_AP83FUSAtheros Feb 10 00:23:44 http://www-ca.linksys.com/servlet/Satellite?c=L_Download_C2&childpagename=CAen%2FLayout&cid=1153781261058&packedargs=sku%3D1175247696518&pagename=Linksys%2FCommon%2FVisitorWrapper&lid=6105896518B03 Feb 10 00:24:06 And the "L" in "LSDK" stands for Atheros Linux SDK. But i see Linksys has no GPL download for this router. **** ENDING LOGGING AT Tue Feb 10 02:59:57 2009