Bekijk de volledige versie : [How To] mount cifs shares

peter s
06-01-2010, 20:57

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, 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/
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-
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

export PATH

apply oleg's patches

cd /root/broadcom/src/wl500g-
make kernel

and voila - you are ready to rebuild or extend oleg's fw.

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 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.