peter s
06-01-2010, 20:57
folks,
having failed to find anything better than How to mount a Windows share (http://wl500g.info/showthread.php?p=120236) on an asus wl-500g (using oleg's 1.9.2.7-9), i decided to try and find a solution to mount remote shares without using local hdd or flash storage.
i believe this can be accomplished using cifs, which appears more lightweight than smbfs, and therefore should fit into /usr (flash).
so using debian on your pc or vm, Oleg-FW selber compilieren ... wie? from the german discussion board (http://wl500g.info/showthread.php?t=11884) and HowTo Recompile the OLEG firmware (http://www.macsat.com/forum/index.php/topic,12.0.html) as a reference
download the sources to /root
(note that you probably only need su privileges for a few symlinks later, so it is quite nasty to do all this as root, but else you have to correct the paths):
the GPL Sources from the ASUS website for the WL500g (i used http://files.wl500g.info/asus/wl500g/gpl/GPL_1927.zip instead)
OLEG's sources for the desired version (i used http://oleg.wl500g.info/1.9.2.7-9/wl500g-1.9.2.7-9.tar.bz2)
the updated toolchain http://oleg.wl500g.info/uClibc-0.9.19/hndtools-mipsel-uclibc-3.2.3-full.tar.bz2
unpacked them:
cd /root
tar -xzf GPL_1927.zip
tar -C broadcom/src/ -xjf wl500g-1.9.2.7-9.tar.bz2
tar -C broadcom/ -xjf hndtools-mipsel-uclibc-3.2.3-full.tar.bz2
create symlinks to /opt and the new toolchain
ln -s /root/broadcom/opt/brcm /opt/brcm
rm /root/broadcom/opt/brcm/hndtools-mipsel-uclibc
ln -s /root/broadcom/opt/brcm/hndtools-mipsel-uclibc-3.2.3-full /root/broadcom/opt/brcm/hndtools-mipsel-uclibc
update path for the new tools
PATH=$PATH:/root/broadcom/tools:/root/broadcom/opt/brcm/hndtools-mipsel-uclibc/bin:/root/broadcom/opt/brcm/hndtools-mipsel-linux/bin
export PATH
apply oleg's patches
cd /root/broadcom/src/wl500g-1.9.2.7-9
make kernel
make
and voila - you are ready to rebuild or extend oleg's fw.
e.g.
go back to /root:
cd /root
download cifs for linux kernel 2.4 (http://us1.samba.org/samba/ftp/cifs-cvs/cifs-1.20c-2.4.tar.gz)
unpack it into the kernel source tree:
tar -C broadcom/src/linux -xzf cifs-1.20c-2.4.tar.gz
apply the patch (i think this threw some error, but nothing serious):
cd /root/broadcom/src/linux/linux
patch -p1 < cifs_24.patch
configure in cifs as a module, e.g.:
make menuconfig
file systems -> network file systems -> cifs support -> m -> exit saving changes
make:
make dep
make modules
and you obtain cifs.o in /root/broadcom/src/linux/linux/fs/cifs/ :)
guess i will supply flash installation and usage details later due to lack of time, but the module worked for me.
of course you can enable other modules that you might need as well as patch in other 2.4 backports to extend the kernel if you wish.
regards
peter
having failed to find anything better than How to mount a Windows share (http://wl500g.info/showthread.php?p=120236) on an asus wl-500g (using oleg's 1.9.2.7-9), i decided to try and find a solution to mount remote shares without using local hdd or flash storage.
i believe this can be accomplished using cifs, which appears more lightweight than smbfs, and therefore should fit into /usr (flash).
so using debian on your pc or vm, Oleg-FW selber compilieren ... wie? from the german discussion board (http://wl500g.info/showthread.php?t=11884) and HowTo Recompile the OLEG firmware (http://www.macsat.com/forum/index.php/topic,12.0.html) as a reference
download the sources to /root
(note that you probably only need su privileges for a few symlinks later, so it is quite nasty to do all this as root, but else you have to correct the paths):
the GPL Sources from the ASUS website for the WL500g (i used http://files.wl500g.info/asus/wl500g/gpl/GPL_1927.zip instead)
OLEG's sources for the desired version (i used http://oleg.wl500g.info/1.9.2.7-9/wl500g-1.9.2.7-9.tar.bz2)
the updated toolchain http://oleg.wl500g.info/uClibc-0.9.19/hndtools-mipsel-uclibc-3.2.3-full.tar.bz2
unpacked them:
cd /root
tar -xzf GPL_1927.zip
tar -C broadcom/src/ -xjf wl500g-1.9.2.7-9.tar.bz2
tar -C broadcom/ -xjf hndtools-mipsel-uclibc-3.2.3-full.tar.bz2
create symlinks to /opt and the new toolchain
ln -s /root/broadcom/opt/brcm /opt/brcm
rm /root/broadcom/opt/brcm/hndtools-mipsel-uclibc
ln -s /root/broadcom/opt/brcm/hndtools-mipsel-uclibc-3.2.3-full /root/broadcom/opt/brcm/hndtools-mipsel-uclibc
update path for the new tools
PATH=$PATH:/root/broadcom/tools:/root/broadcom/opt/brcm/hndtools-mipsel-uclibc/bin:/root/broadcom/opt/brcm/hndtools-mipsel-linux/bin
export PATH
apply oleg's patches
cd /root/broadcom/src/wl500g-1.9.2.7-9
make kernel
make
and voila - you are ready to rebuild or extend oleg's fw.
e.g.
go back to /root:
cd /root
download cifs for linux kernel 2.4 (http://us1.samba.org/samba/ftp/cifs-cvs/cifs-1.20c-2.4.tar.gz)
unpack it into the kernel source tree:
tar -C broadcom/src/linux -xzf cifs-1.20c-2.4.tar.gz
apply the patch (i think this threw some error, but nothing serious):
cd /root/broadcom/src/linux/linux
patch -p1 < cifs_24.patch
configure in cifs as a module, e.g.:
make menuconfig
file systems -> network file systems -> cifs support -> m -> exit saving changes
make:
make dep
make modules
and you obtain cifs.o in /root/broadcom/src/linux/linux/fs/cifs/ :)
guess i will supply flash installation and usage details later due to lack of time, but the module worked for me.
of course you can enable other modules that you might need as well as patch in other 2.4 backports to extend the kernel if you wish.
regards
peter