How to Build .CHK DD-WRT image

5 posts / 0 new
Last post
Raghu
Raghu's picture
How to Build .CHK DD-WRT image

Hello,

I have the Netgear WNR3500L router running stock Netgear firmware.
Upgrading it to DD-WRT is 2-stage process:
1. The special .CHK firmware is flashed initially
2. And then followed by .BIN file.

However, my objective is to cut down the 2stage process to a single step.
Meaning I have built my own DDWRT .BIN with Firmware Mod kit and would like to convert it to .CHK image that Stock Netgear bootloader accepts.
This way I will be able to flash directly from Netgear factory firmware to the one I made.
Please help me with the instructions to convert DDWRT .BIN file to .CHK file for Netgear.

Thanks in Advance,

Raghu

Kong
Kong's picture
Look at the dd-wrt makefile

Look at the dd-wrt makefile for Broadcom.
Note you can only flash a chk file if it doesn't exceed a file size limit.
I think it is around 3MB So building a large bin and adding the appropriate header is not working. That's the reason why chk files are always minibuilds.

Raghu
Raghu's picture
Kong said: Look at the dd-wrt

Kong said: Look at the dd-wrt makefile for Broadcom. Note you can only flash a chk file if it doesn't exceed a file size limit. I think it is around 3MB So building a large bin and adding the appropriate header is not working. That's the reason why chk files are always minibuilds.

Hi Kong,

Many Thanks for the reply. I am using mini version and the .BIN image is less in size (<3.8MB), So hoping this would fit in the routers ROM

I am using the firmware modification kit of the DD-WRT to build the images.

But this FMK kit generates only .BIN (TRX) images.

Did you mean the makefile for Broadcom from the DD-WRT sources?

For adding appropriate header to generate .CHK files, are there any specific tools to be used?

Please help me in this regard to provide some start pointers to look into the tools for adding headers.

 

Thanks in Advance

-Raghu

Kong
Kong's picture
See:
Raghu
Raghu's picture
Kong said: See: http://svn

Kong said: See: http://svn.dd-wrt.com:8000/browser//src/router/Makefile.brcm26 Starting from line 530.

Hi Kong

This works and generates the .CHK image. The image is around 4MB size and am able to flash it directly from the Netgear stock.
Many Thanks for your help.

Code:  

 ./netgear/packet -k $(ARCH)-uclibc/dd-wrt.v24-K26.trx -f netgear/emptyfile -b netgear/comp-wnr3500L.txt -ok kernel_image -oall dd-wrt.bin -or rootfs_image -i netgear/ambitCfg-wnr3500.h && \
   cp dd-wrt.bin.chk $(ARCH)-uclibc/dd-wrt.v24-K26_WNR3500L.chk

Thanks,
Raghu