Hi
For some reason using nbds package version 2536 for the ar7, When flashing to mtd4 I can't get the unit to boot up, I am assuming at the moment it is because the packages we build lack the 8 byte (16 Hex) checksum.
I have managed to get nbds ar7 firmware onto the unit by ftp to adam2 and by not using the "quote MEDIA FLSH" (therefore writing to SDRAM?) (do not quote REBOOT just exit and unit will boot)
I am then able to telnet into the unit
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
BusyBox v1.01 (2005.11.19-17:52+0000) 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
bleeding edge, r2536
root@OpenWrt:/#
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
Connecting to 192.168.1.5[192.168.1.5]:6621
kernel.bin 100% |*****************************| 466 KB 00:00 ETA
root@OpenWrt:/# mtd write kernel.bin mtd0
Unlocking mtd0 ...
Writing from kernel.bin to mtd0 ... [e]Erasing mtd failed: mtd0
root@OpenWrt:/# mtd write kernel.bin mtd1
Unlocking mtd1 ...
Writing from kernel.bin to mtd1 ... [w]
Ok so writing to mtd0 fails (why? bug in mtd? or problem with dlink?)
Writing to mtd1 works but is actually useless since we don't boot from it
Writing to mtd4 .... oh dear oh dear why did I do that
It erases the entire mtd first (why? is this really necessary, why not just erase up to our filesize or use the map that system detects to find mtd2/adam2 and protect it and mtd3/config?)
Anyways, unit doesn't boot mtd2/3 destroyed
FYI DLINK G604T REV B3 map
setenv mtd0 0x90091000,0x903f0000
setenv mtd1 0x90010090,0x90090000
setenv mtd2 0x90000000,0x90010000
setenv mtd3 0x903f0000,0x90400000
setenv mtd4 0x90010000,0x903f0000
put DLinkAU_DSL-G604T_singleimage_kernel_fs_V2.00B02.AU_20050914 mtd4
put config.DLinkAU_DSL-G604T.img mtd3
My suggestion is that if we are unable to write mtd0 (but mtd4 seems fine? bug?) maybe we can make a dlink firmware with adam2/config in the correct position so when (idiots like me) flash it we don't destroy our router?
-----------------
p.s. if anyone has a jtag and wants to post me it please email me
or if you know where I can get one in australia please post
Thanks
(Last edited by Z3r0 on 22 Mar 2006, 12:23)