WR841N CIFS/Samba Kernel Modules

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
popcop
DD-WRT Novice


Joined: 08 May 2017
Posts: 7

PostPosted: Tue Sep 19, 2017 17:40    Post subject: WR841N CIFS/Samba Kernel Modules Reply with quote
Hello there!
I'm currently using DD-WRT v3.0-r31277 std (02/07/17) on my TP-Link WR841N. Kernel version 3.18.47.
I want to be able to use user scripts like YAMon, but my router doesn't have a usb port.
I would like to install the kernel modules necessary to support CIFS. I have a NAS that i will be able to wget the files from to the ram, and insmod the right modules to mount a folder on my router.
I have the Linux experience to write a startup scripts to do so, but i dont know how to compile a kernel or module to my specific arch.
Hope you guys can help me to accomplish this.

EDIT: something like http://www.dd-wrt.com/phpBB2/viewtopic.php?p=534871
Sponsor
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2319
Location: Canada

PostPosted: Wed Sep 20, 2017 3:06    Post subject: Better Router Reply with quote
You need a better router, one with more RAM and Flash space. Also, in your case a USB port is pretty much required.

Look at something like the TP-Link Archer C7 or even a lower priced model like the TP-Link WDR3600 v1, etc.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
popcop
DD-WRT Novice


Joined: 08 May 2017
Posts: 7

PostPosted: Thu Sep 21, 2017 15:05    Post subject: Reply with quote
Well, I don't want to add anther router to my small house. already 2 of the cheap WR841N.
Are you sure? 11MB of ram available. the cifs module is about 300Kb.
I tried to compile the module myself last night. followed a lot of guides and managed to compile cifs.ko to my linux kernel. dmesg showed a lot of errors. i think i used the wrong toolchain.
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2319
Location: Canada

PostPosted: Thu Sep 21, 2017 17:56    Post subject: RAM vs Flash Reply with quote
RAM is temporary, Flash is for programs and firmware.
RAM space does not hold the programs.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
popcop
DD-WRT Novice


Joined: 08 May 2017
Posts: 7

PostPosted: Thu Sep 21, 2017 18:41    Post subject: Reply with quote
Because the RAM is temporary, I will write a startup script that will download the modules from a local NAS. Then load the module to the kernel and remove the downloaded module to free up space. After that it will mount a local folder to /jffs and will load this small script: https://github.com/vortex-5/ddwrt-bwmon

Think it might work?
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Fri Oct 06, 2017 1:48    Post subject: Reply with quote
popcop wrote:
Because the RAM is temporary, I will write a startup script that will download the modules from a local NAS. Then load the module to the kernel and remove the downloaded module to free up space. After that it will mount a local folder to /jffs and will load this small script: https://github.com/vortex-5/ddwrt-bwmon

Think it might work?


Yes that might work... however, you will also have to copy the data files back to your NAS drive on a regular basis (or look at the FTP options in YAMon). If not, you will lose you data files everytime your router reboots.

Or look at mounting your NAS drive through Samba or CIFS...

As someone said earlier by the time you built and tested the script you've described above, I expect that a new router will seem cheap Smile.

Al
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum