|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Kernel Module Insert at BootupI have created a kernel module bitbake recipe and am having trouble getting it to load automatically. The module is a copy of the gadget-zero kernel module. Extracted from the kernel source for modification. I can load the module using "modprobe gadget-omap" it functions perfectly when manually inserted. The module is placed in the standard modules location @ /lib/modules/'uname -r'. When I modify the /etc/modules and /etc/modules.conf file the module is not loaded at bootup. in /etc/modules >>>> "gadget-omap" in /etc/modules.conf >>>> "alias gadget-omap gadget-omap" What am I doing wrong to get the module inserted at bootup? What should I add to the bitbake recipe to get the module loaded at bootup? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DESCRIPTION = "Omap USB Gadget Driver" HOMEPAGE = "" SECTION = "kernel/modules" PRIORITY = "base" LICENSE = "GPLv2" RDEPENDS = "kernel (${KERNEL_VERSION})" DEPENDS = "virtual/kernel" PR = "r0" SRC_URI = " \ file://composite.c \ file://config.c \ file://epautoconf.c \ file://f_loopback.c \ file://f_sourcesink.c \ file://gadget_chips.h \ file://gadget_omap.c \ file://gadget_omap.h \ file://usbstring.c \ file://Makefile \ " S = "${WORKDIR}" inherit module INSTALL_PATH = "${D}${base_libdir}/modules/${KERNEL_VERSION}/gadget-omap" do_compile () { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP oe_runmake 'MODPATH=${INSTALL_PATH}' \ 'KERNEL_SOURCE=${STAGING_KERNEL_DIR}' \ 'KDIR=${STAGING_KERNEL_DIR}' \ 'KERNEL_VERSION=${KERNEL_VERSION}' \ 'CC=${KERNEL_CC}' \ 'LD=${KERNEL_LD}' } do_install () { install -d ${INSTALL_PATH} install -m 0644 ${S}/gadget_omap*${KERNEL_OBJECT_SUFFIX} ${INSTALL_PATH} } >>>>>>>>>>>>>>>>>>>>>> -- View this message in context: http://www.nabble.com/Kernel-Module-Insert-at-Bootup-tp24261582p24261582.html Sent from the Gumstix mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ gumstix-users mailing list gumstix-users@... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
| Free embeddable forum powered by Nabble | Forum Help |