Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9125 closed defect (fixed)

sr_mod.ko not copied to rootfs (CD / DVD support)

Reported by: rossb@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:


backfire / trunk latest / x86, applies to all platforms

Selecting kernel config CONFIG_BLK_DEV_SR=m does result in sr_mod.ko being built, but is not copied to rootfs (/lib/modules/$kernel/).

Have tracked this down to a missing entry in package/kernel/modules/ of following form. ???? = not sure of field:

define KernelPackage/????

TITLE:=Kernel support for CD / DVD drives????




AUTOLOAD:=$(call AutoLoad,????,sr_mod)


$(eval $(call KernelPackage,????))

Fixing this is currently beyond my expertise and manually copying sr_mod.ko to rootfs is ineffective.

Can someone reply with the proper fields in above entry and fix this?


Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by anonymous

The module "sr_mod.ko" depends on the "cdrom.ko" module as well.

define KernelPackage/scsi-cdrom
  TITLE:=Kernel support for CD / DVD drives
  FILES:= \
    $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
  AUTOLOAD:=$(call AutoLoad,30,cdrom) $(call AutoLoad,45,sr_mod)
  $(call AddDepends/scsi)

$(eval $(call KernelPackage,scsi-cdrom))

comment:2 Changed 7 years ago by anonymous

You don't need to mess with the make kernel_menuconfig stuff, simply add the above entry to package/kernel/modules/ (before the scsi-generic entry) and in make menuconfig be sure to select the package kmod-scsi-cdrom as M (built as package) or * (added to the firmware).


comment:3 Changed 7 years ago by rossb@…

Works perfectly, /dev/sr0 created and can be mounted...

Only suggestion is config option is in wrong place in menuconfig, suggestion adding:

define KernelPackage/scsi-generic

TITLE:=Kernel support for SCSI generic

to above, all else OK

Thanks a lot. This bug was in my face, gating progress...

comment:4 Changed 7 years ago by hauke

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

Thank you for the patch.

This was applied in r26548.

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.