What is the format of image which is causing pblm and what is the format of correct image ... Have u checked this ...
It seems that ur image is not in correct format odrwise at least f/w upgrade would
have happened ..
For .config file u can use the same .config avlbl in the downloaded src code ..
But I dnt think ur pblm has got anything to do with .config ..
Categories: KWGR614 (Legacy)
Hi
I know this is a legacy product but having just bought one I was hopping for a little help.
I have been able to get the source code to compile and create a run.bix image.
However the router will not load the image, it starts ok but bombs out after less than 1 minute with the message
'Firmware upgrade failed. Please check your file.'
Now I have uploaded various other images created by users and netgear with out a problem so I known that the upgrade process works OK.
My question is this, does any one known how to debug the image ?
It could be that I am creating an incorrect image so I would apresiate it if some one had a build file '.config' that I could use to test my build process.
(my build file is below)
.config
#
# Automatically generated by make menuconfig: don't edit
#
#
# Target Platform Selection
#
CONFIG_DEFAULTS_REALTEK_RTL865XB=y
CONFIG_DEFAULTS_KERNEL_2_4=y
# CONFIG_DEFAULTS_LIBC_UC_LIBC is not set
CONFIG_DEFAULTS_LIBC_UCLIBC=y
# CONFIG_DEFAULTS_OVERRIDE is not set
# CONFIG_DEFAULTS_VENDOR is not set
# CONFIG_DEFAULTS_VENDOR_UPDATE is not set
CONFIG_VENDOR=Realtek
CONFIG_PRODUCT=RTL865XB
CONFIG_LINUXDIR=linux-2.4.x
CONFIG_LIBCDIR=uClibc
CONFIG_LANGUAGE=
To get this far I have had to do the following
Most of the changes are taken from information on the forum/web I have included links to the relavent parts at the bottom, many thanks to the people who wrote them.
go to your home directory and create a place to work on the code
cd /home/myhome/
mkdir netgear
cd netgear
mkdir ap
cd ap
mkdir clibc
unpack sources
leave the KWGR614_V1.0.1_10.17WW in the ap directory but move the toolchain_mips_20050831 to the clibc directory and rename it
mv toolchain_mips_20050831 clibc/toolchain_mips
create link from root / to clibc directory
cd /
ln -s /home/myhome/netgear/ap/clibc clibc
I should now have two dircectories under ap -
KWGR614_V1.0.1_10.17WW
uclibc/toolchain_mips
and a link from the root / directory to uclibc
before we patch the source we need a copy of the original
cp KWGR614_V1.0.1_10.17WW KWGR614_V1.0.1_10.17WW.orig
Now we need to patch the Source
(you will need the patch RPM/APT)
from the ap directory
wget http://www.bleu-pastel.org/uploads/File/kwgr614Files/patch_KWGR614_V1_0_1_10.... />
chmod 777 patch_KWGR614_V1_0_1_10.17WW_RTL865XB_Makefile_hvdp_20070830
cd KWGR614_V1.0.1_10.17WW
cat ../patch_KWGR614_V1.0.1_10.17WW_RTL865XB_Makefile_hvdp_20070830 | patch -p1 -b
Make files to be edited
This can be done by editing the file "vendors/Realtek/RTL865XB/Makefile
change all entries of done\ to done \ and then\ to then \ (space between 'done' and '\' same for 'then')
Next we need to modify following 3 files
KWGR614_V1.0.1_10.17WW/user/boa/src/dni/basic.c
KWGR614_V1.0.1_10.17WW/user/boa/src/dni/board.c
KWGR614_V1.0.1_10.17WW/user/boa/src/rtl865x/rome_asp.c
Just add in the following line
#define CONFIG_RTL8185
Due to compile errors I have added the following link
cd /home/myhome/netgear/ap/KWGR614_V1.0.1_10.17WW/uClibc/include
ln -s /home/myhome/netgear/ap/KWGR614_V1.0.1_10.17WW/lib/include/bits bits
And finally you can change the code version to reflect your changes
You can change the identifier of the firmware by editing the file
KWGR614_V1.0.1_10.17WW/user/dniutil/nvram_realtek.c
(not user/dni/nvram_realtek.c as indicated in the doc), and replacing the line
# define OS_VERSION "V1.0.1_10.17"
with our own version number.
Remember if you are not root that you will need to use sudo when compiling
you will need gcc flex bison ncurser and ncurser_development installed first (not sure what else) so check your RPM's/APTS
build process - 3 step process
make menuconfig (graphical, this need the ncurser stuff) or make config (text based)
make dep
make
should create the image directory below KWGR614_V1.0.1_10.17WW/image
various files will be in hear including run.bix which is your new image.
Links to info of use
http://www.bleu-pastel.org/compilation-du-firmware - need to translate from french very useful contains updated images
http://forum1.netgear.com/showthread.php?p=77819 - this forum notes on compilation and getting it to work
http://rtl8181.sourceforge.net/rtl8181_toolchain.php - code info on toolchains
Hardware info -

RSS

