PDA

Bekijk de volledige versie : Recompiling with mipsel



smarechal
20-03-2005, 11:36
Hi,

I'm newbie for recompiling firmware, what is the command line to compil with mipsel?

i've read the documentation but when i made "make " in folder src, i've got these lines:


root@Biscotte:/home/siegfried/Desktop/broadcom/src # make
make -C router all
make[1]: entrant dans le répertoire « /home/siegfried/Desktop/broadcom/src/router »
[ ! -d libcrypto ] || make -C libcrypto
find: /home/siegfried/Desktop/broadcom/src/router/mipsel-uclibc/target: No such file or directory
make[2]: Entering directory `/home/siegfried/Desktop/broadcom/src/router/libcrypto'
mipsel-uclibc-ld -shared -o libcrypto.so /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/aes.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/aeskeywrap.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/rijndael-alg-fst.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/dh.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/bn.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/sha1.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/passhash.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/prf.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/md5.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/hmac.o /home/siegfried/Desktop/broadcom/src/router/libcrypto/prebuilt/rc4.o
make[2]: mipsel-uclibc-ld: Command not found
make[2]: *** [libcrypto.so] Error 127
make[2]: Leaving directory `/home/siegfried/Desktop/broadcom/src/router/libcrypto'
make[1]: *** [libcrypto] Erreur 2
make[1]: quittant le répertoire « /home/siegfried/Desktop/broadcom/src/router »
make: *** [all] Erreur 2

Thanks for your help,

Best regards

Siegfried

Jean-Fabrice
20-03-2005, 18:30
You MUST have /opt/brcm/hndtools-mipsel-uclibc/bin and /opt/brcm/hndtools-mipsel-linux/bin in your path.
Then :

make kernel in src/wl500g-1.9.2.7-4

then


make in src/gateway

then


make package-WLxxx where xxx is 500g, HDD, 500b, etc in src/gateway

trx firmware is then created in src/gateway/mipsel-linux

What I don't know is what to do for new firmware compilation.

For now I do :
make kernel-mrproper in src/wl500g-1.9.2.7-4
make clean in src/wl500g-1.9.2.7-4
rm -rf src/gateway
make in src/wl500g-1.9.2.7-4 (no make kernel)

I think there is a shorten way but get no information on this.
By the way, such informations is available in details on oleg (http://wl500g.dyndns.org/)'s homepage. Look at the 1.8.1.7 firmware compilation tips

smarechal
21-03-2005, 06:21
Thanks a lot for your help,

I'll try this !

Best regards.

Siegfried


Ps: when you say "you Must have .. in your path", it means that i copy the folder found with asus GPL " /opt " in my folder wl500g?

Jean-Fabrice
21-03-2005, 08:20
Ps: when you say "you Must have .. in your path", it means that i copy the folder found with asus GPL " /opt " in my folder wl500g?

No. Add those directories to your PATH variable

smarechal
21-03-2005, 11:17
Ok thank you :)

And last question (sorry :D ) what is the command line to put it on PATH ?...

Thanks thanks thanks :)

Jean-Fabrice
21-03-2005, 11:23
export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin

smarechal
21-03-2005, 11:48
thank you, it's ok, now i'll try to change webcam configuration ... :D

Best regards

Siegfried