[OpenWrt-Users] Installing OpenWRT on a D-Link DSL-G684T

georg.lippold at gmx.de georg.lippold at gmx.de
Fri Mar 23 13:44:48 CET 2007


Dear OpenWRT developers (and users),

I am trying to install OpenWRT on a D-Link DSL-G684T. This device is listed in your database as WiP, and maybe you can give me some hints as to what I might try to get it to work.

I attached my (stripped) .config to this mail, but it compiles fine for me and so I suppose that this is not the problem.

When following the instructions on http://wiki.openwrt.org/OpenWrtDocs/InstallingAR7, everything is fine except that my ADAM2 has the following (predefined) partition layout:

mtd0                  0x90091000,0x903f0000
mtd1                  0x90010090,0x90091000
mtd2                  0x90000000,0x90010000
mtd3                  0x903f0000,0x90400000
mtd4                  0x90010000,0x903f0000

GETENV mtd5
501 mtd5 environment variable not set.

It seems to me that partition 4 is already what I want. There is but one tiny flaw: the kernel starts with an offset of 0x90 to that partition. I tried to create a partition that started at the correct kernel offset and flashing the openwrt-ar7-2.4-squashfs.bin to it but ADAM2 told me that erasing from that position failed and stopped flashing.

Next I tried flashing the openwrt image to mtd4, this time with success. But it wouldn't boot (probably due to the wrong kernel offset).

Thus I downloaded the TI source package for this device from d-link.de. It didn't compile for me, but it offers their Makefiles and so I tried to to figure out what they are doing. In the toplevel, there is a Makefile.board that links to Builds/Makefile.NSP.AR7RD. In line 264 of this Makefile, they are generating the filesystem and I tried the same with build_mipsel/linux-2.4-ar7/vmlinux.bin and build_mipsel/linux-2.4-ar7/root.squashfs from OpenWRT in the following way (/opt/src/nsp/ is where I extracted the D-Link package to):

/opt/src/nsp/tools/bin/mknspimg -o nsp_image.bin -i ../vmlinux.bin ../root.squashfs -a 0 4096 -v

The tool produced the following output:

****************** NSP Image Summary ******************
Magic:             0x4d544434
Image Header Size: 0x90 bytes
Total Image Size:  2034540 bytes
Product ID:        0x4030201
Release ID:        0x10203040
Info String:       NSP 3.5.1 Release
Header Checksum:   0xc1d
Image Checksum:    0xf6f7b49
+++ Section Information +++
+++++ Section 0 +++++
Size:   486423 bytes
Offset: 0x90
++++++++++++++++++++++
+++++ Section 1 +++++
Size:   1547973 bytes
Offset: 0x77000
++++++++++++++++++++++
*******************************************************
Generated total 2034540 bytes

It seems to me, that the kernel is now aligned to the correct offset. The image is flashable to mtd4, but it won't boot either.

Maybe you can give me a hint what to do next. In the above mentioned makefile, they are building the kernel with the target ram_zimage (in line 113). How do I configure kernel build targets in OpenWRT?

One other thing might be the offset of the squashfs. This is controlled by the last parameter of the mknspimg tool, as it seems. With the above command line, it is aligned on a 4096 byte boundary, I also aligned it to a 0 byte boundary (i.e. directly after the end of the kernel image) and a 512 byte boundary (which is a common disk sector size), but to no avail.

Please tell me how I should proceed.

Regards,

George
-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenWRT.config
Type: application/octet-stream
Size: 13083 bytes
Desc: not available
Url : http://lists.openwrt.org/pipermail/openwrt-users/attachments/20070323/7ab48d40/OpenWRT.obj


More information about the openwrt-users mailing list