PDA

Bekijk de volledige versie : How to compile firmware fro WL-HDD?



ezhikov
03-02-2005, 08:14
I tryed to compile Oleg's firmware, but failed to upload it ...
steps:

1 Unarchive GPL 1.9.2.7
2 Create link to /opt/brcm to make compiler and tools accessible
3 Unarchive Oleg's sources in broadcom/src
4 Run make kernel in broadcom/src/wl500.... to pathc kernel
5 Run make in same dir to prepare src/gateway
6 Unarchive lzma from Oleg's firmware in src and patched it
7 Changed path in some Makefile from '/root/broadcom' to my path
8 Run make from src/gateway ...
9 Run make models in src/gateway and bingo - i have trx file ....
10 Tryed to upload i my WL-HDD byt it say's what firmware is incorrect ...

Help anyone ... :confused:

Oleg
03-02-2005, 08:44
6 Unarchive lzma from Oleg's firmware in src and patched it

this should be done by makefile itself...



7 Changed path in some Makefile from '/root/broadcom' to my path

hm... where you've found this reference?


9 Run make models in src/gateway and bingo - i have trx file ....

make image-WLHDD

ezhikov
03-02-2005, 09:31
I had to unzip lzma and patch it myself, other way build faild becouse couldn't find LZMA_Lib directory .

broadcom/src/gateway/rcamdmips/Makefile contain hardcoded path -> LINUXKERNELSRC = /root/broadcom/src/linux/linux/

Anyway i already build images for all models, and tryed to upload one for WLHDD ... WL-HDD said Firmware upgrade failed ....
my WLHDD-1.9.2.7-3c.trx was few kbs smaller when your WLHDD-1.9.2.7-3c.trx.

hugo
03-02-2005, 12:39
upload it using emergency firmware recovery mode, not web interface

majx
03-02-2005, 12:48
Take a look at the last lines of output after you typed
"make install" in the src/gateway directory...(look for addver....)
Had the same Prob...uploaded the file using Recoverymode...that did it

ezhikov
03-02-2005, 14:48
Hmmm .....
Olegs firmware load's with web-interface ! Why Oleg's firmware compiled by me can not be uploaded this way ?

Oleg
03-02-2005, 17:37
Hmmm .....
Olegs firmware load's with web-interface ! Why Oleg's firmware compiled by me can not be uploaded this way ?
Sometimes web iface works strange for updates.
And, yes, please be sure, that you've addver executable (it's not included in the GPL_1927 tarball for some reason). Use one which I've posted to the forum.

ezhikov
03-02-2005, 17:54
Oleg thanks, a tryied addver just before your answer :)
my WL-HDD didn't boot - it's bad, but i found strange thing ...
recover.sh tryed to use 182.168.1.1 byt my wl-hdd listen on 10.0.0.1 after reset .....
Anyway addver helped to create loadable firmware .... i'l dig deeper ....

Oleg
03-02-2005, 18:01
recover.sh tryed to use 182.168.1.1 byt my wl-hdd listen on 10.0.0.1 after reset .....

well, recover.sh was tested with wl500g only.
also, there are several different tftp clients available for the linux and recover.sh works with one of them only.
I'm already have 2 different recover script versions...

ezhikov
03-02-2005, 18:44
Just one more question....
Is it importamn to change MODEL in src/gateway/Makefile to my one ?

Oleg
03-02-2005, 18:56
this is not needed unless you recompile packages manually. if you do so, then you need change both model and defaut flags to match wl-hdd.