Modify

Opened 6 years ago

Closed 6 years ago

Last modified 3 years ago

#11107 closed defect (no_response)

Modules not loaded automatically

Reported by: François Dausseur <fdausseur@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: functions.sh load_modules Cc:

Description

I'm on the trunk of openwrt (a few days old version). I built my own target derived from kirkwood (xcale target) version.

Everything is working, but I had to include all the modules in the kernel because they were not loaded automatically by default.

I identified that, in the /lib/fonctions.sh file, the following function:

load_modules() {
       [ -d /etc/modules.d ] && {
               cd /etc/modules.d
               sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
       }
}

did not work because it tries to execute, in the /etc/modules.d, dir the command:

...
insmod blabla.ko
...

If I modify the sed with the following line it works:

sed 's/^\([^#].*\)/insmod \/lib\/modules\/3\.1\.4\/\1\.ko/' $* | ash 2>&- || :

(yes, I know it ugly)

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by jogo

insmod is expecting the modules in /lib/modules/`uname -r`, so I would guess uname -r does not match "3.1.4" for your kernel.

Do you have by chance some localversion set for your kernel?

comment:2 Changed 6 years ago by nbd

  • Resolution set to no_response
  • Status changed from new to closed

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:4 Changed 3 years ago by anonymous

in the command file, remove the 'insmod'

...
insmod blabla.ko
...

to

...
blabla.ko
...

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.