maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   automatically loading kernel modules (https://talk.maemo.org/showthread.php?t=13320)

jsgarvin 2007-12-18 01:54

automatically loading kernel modules
 
I've followed the instructions on this page for setting up NFS and have it working great. However, if I need to restart the tablet, I need to reload the kernel modules again before I can remount the nfs. This is stepping a little outside my linux comfort zone, and none of the instructions I've found for other distros seem to work here. Can anybody point me to some instructions for autoloading kernel modules in maemo? Thanks.

jsgarvin 2007-12-21 02:23

Re: automatically loading kernel modules
 
bumpitybump

JeffElkins 2007-12-21 02:50

Re: automatically loading kernel modules
 
This is a bit geeky, but I've done two things to accomplish this:

1. I created a script that loaded the modules on boot:
Code:

insmod /modulelocation/module1.ko
insmod /modulelocation/module2.ko
insmod /modulelocation/module3.ko

2. I compiled modprobe for my system and made a script that used it:

Code:

modprobe module1.ko
modprobe module2.ko
modprobe module3.ko

Either script is located in /etc/init.d. Once there, it's symlinked in /etc/rc2.d with a name like S20scriptname so it's started on boot.

Sorry, I don't recall the exact modules, I'm in post-update repository hell :)

linuxrebel 2007-12-21 03:20

Re: automatically loading kernel modules
 
modprobe.conf is where it needs to be setup. http://linux.die.net/man/5/modprobe.conf

penguinbait 2007-12-21 03:57

Re: automatically loading kernel modules
 
You can use my cdrom.deb file to load kernel modules

2008OS cdrom.deb will give you 5 modules

See here!
http://www.internettablettalk.com/fo...ighlight=cdrom

Ues the cdrom.deb file
http://www.internettablettalk.com/fo...3&d=1197230972


cdrom.deb will give you /etc/init.d/cdrom.sh (Edit this file)
Just add the lines for your modules and you can comment out the cdrom kernel modules if you like. All this does is load 5 kernel modules on boot. As a bonus you would have CDROM/DVD support also ;)

jsgarvin 2007-12-21 05:50

Re: automatically loading kernel modules
 
@jeff - Thanks. the script in /etc/rc2.d worked perfectly for me.

@linuxrebel - Thanks but I already tried that and it didn't work for me. Probably because despite some serious searching I couldn't find one example of what the modprobe.conf file is supposed to look like. IMO, the manpage seems to assume that I already know a lot about modprobe, which is kinda ******ed. No fault of yours though, and thanks for the suggestion.

@penguinbait - Thanks to you too, but that sounds like overkill. ;) A four line sh script (including the shebang) was plenty to get the job done. But since you brought it up, if I were to install your file, where do I insert DVD's into this thing?? I've looked all over it and can't get a CD/DVD tray to slide out anywhere. There must be a button I'm overlooking. ;)

aki 2007-12-21 06:20

Re: automatically loading kernel modules
 
Quote:

Originally Posted by jsgarvin (Post 112741)
... where do I insert DVD's into this thing?? I've looked all over it and can't get a CD/DVD tray to slide out anywhere. There must be a button I'm overlooking. ;)

You weren't trying hard enough. You just have to fold the CDs a few times and you'll be able to fit them into mini slot. Sometimes, you may even need to cut the disk into bits and feed them to the slot one by one. Like those game installs on old 3 1/2" disks. Isn't it obvious? ;)

I have an old sony usb external cdwriter/dvdplayer that's portable and it'd be neat to be able to hook it up to the n810 for backups. Also would be neat to just be able to have something like that for backups while on the road. I suppose ultraportable notebooks have reduced the need for stuff like that now...


All times are GMT. The time now is 11:05.

vBulletin® Version 3.8.8