OpenWrt Forum Archive

Topic: WNDR4300 [update] - building the image

The content of this topic has been archived on 2 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I would like to build image for the WNDR4300.

For the first try I was not able to build the files for flashing.

I have downloaded the source files from netgear webpage and from it I have build the firmware files => building enviroment is ok.

I have compared the Makefile in the source and in trunk of openwrt for WNDR4300 profile.
In the trunk of openwrt the profile WNDR4300 call Build NetgearNAND - this build process is not defined.
I changed the profile WNDR4300 to call Build Netgear => I got the file "ready to flash".

I flashed the file to router. It was minimalistic configuration.

I can ping to router
I can not telnet, ssh, ...

I flashed back the original firmware over tftp.


Is anyone interested in next results?

Can anyone help me to make correct config file and correct profile for WNDR 4300?
I have no expirience with it.

(Last edited by treborr on 1 Feb 2013, 23:29)

I am sorry, I did not want to delete the text of original post.

(Last edited by treborr on 1 Feb 2013, 23:57)

Hi all,
I have built the firmware (ready to flash file) from source files and flashed it (version V1.0.1.42). It is working. I used for building Debian.
I compared the router boot log (my file flashed) with boot log (flashed file from Netgear) and the boot logs are almost the same. There are differences in the date of image creation, the user, who image created and the machine name, on the image was created.  Here is part of the boot log (flashed file from Netgear):

U-Boot 1.1.4 (Jun 28 2012 - 10:12:47)

U-boot dni29 V0.3 for DNI HW ID: 29763948 flash 128MB RAM 128MB 1st Radio 2x2 2nd Radio 3x3


DRAM:  128 MB
Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd.
Ath Nand ID[87ff0178]: 2c:f1:80:95:02
ONFI MICRON      MT29F1G08ABADAWP   
Micron NAND 128MiB 3,3V 8-bit [128MB]
====== NAND Parameters ======
sc = 0x87ff0158 bbt = 0x87f68008 bbt_size = 0x100 nf_ctrl = 0x344
page = 0x800 block = 0x20000 oob = 0x40
size = 128MB
Setting 0xb8116290 to 0x4c982d0f
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
 4096 bytes read: OK
Fetching MAC Address from 0x87fe7928
 wasp  reset mask:c02300 
WASP  ----> S17 PHY *
: cfg1 0x80000000 cfg2 0x7114
eth0: 10:0d:7f:50:6f:b7
athrs17_reg_init: complete
eth0 up
eth0
Hit any key to stop autoboot:  2  1  0 
dup 1 speed 1000

 Client starts...[Listening] for ADVERTISE...Tchecksum bad
checksum bad
checksum bad
TT
Retry count exceeded; boot the image as usual

 nmrp server is stopped or failed !

Loading from device 0: ath-nand (offset 0x6c0000)

** check kernel image **
   Verifying Checksum ... OK

** check rootfs image **
   Verifying Checksum ... OK
## Booting image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.31
   Created:      2012-11-26  11:13:13 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1086998 Bytes =  1 MB
   Load Address: 80002000
   Entry Point:  80282bc0
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Booting Atheros AR934x
Linux version 2.6.31 (root@dnixm-compiler1) (gcc version 4.3.3 (GCC) ) #10 Mon Nov 26 19:12:49 CST 2012

I have tried to build the ready flash file with current trunk files. I have used some profile files from Netgear source files. At the end I got ready flash file. I have flashed the file from the original web interface. It was ok. There is a problem during the boot: Here is the log:

U-Boot 1.1.4 (Jun 28 2012 - 10:12:47)

U-boot dni29 V0.3 for DNI HW ID: 29763948 flash 128MB RAM 128MB 1st Radio 2x2 2nd Radio 3x3


DRAM:  128 MB
Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd.
Ath Nand ID[87ff0178]: 2c:f1:80:95:02
ONFI MICRON      MT29F1G08ABADAWP   
Micron NAND 128MiB 3,3V 8-bit [128MB]
====== NAND Parameters ======
sc = 0x87ff0158 bbt = 0x87f68008 bbt_size = 0x100 nf_ctrl = 0x344
page = 0x800 block = 0x20000 oob = 0x40
size = 128MB
Setting 0xb8116290 to 0x4c982d0f
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
 4096 bytes read: OK
Fetching MAC Address from 0x87fe7928
 wasp  reset mask:c02300 
WASP  ----> S17 PHY *
: cfg1 0x80000000 cfg2 0x7114
eth0: 10:0d:7f:50:6f:b7
athrs17_reg_init: complete
eth0 up
eth0
Hit any key to stop autoboot:  2  1  0 
dup 1 speed 1000

 Client starts...[Listening] for ADVERTISE...checksum bad
Tchecksum bad
checksum bad
Tchecksum bad
T
Retry count exceeded; boot the image as usual

 nmrp server is stopped or failed !

Loading from device 0: ath-nand (offset 0x6c0000)

** check kernel image **
   Verifying Checksum ... OK

** check rootfs image **

** Bad Magic Number 0x0 **

The Router is in TFTP Server Firmware Recovery mode NOW!

Does anyone have any idea? Check kernel image is ok, but the check rootfs image not sad

** check kernel image **
   Verifying Checksum ... OK

** check rootfs image **

** Bad Magic Number 0x0 **

The discussion might have continued from here.