Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BeagleBone:: Kernel.....and the modules???
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message

Joined: 06 Sep 2012
Posts: 25

PostPosted: Sat Sep 08, 2012 5:24 am    Post subject: BeagleBone:: Kernel.....and the modules??? Reply with quote


I followed this instructions:

and got a system up and running.

Unfortunately I found no instructions how to build and
and install the modules the kernel needs...

How can I do that?

Best regards,
Back to top
View user's profile Send private message

Joined: 01 Nov 2005
Posts: 356
Location: Salem, OR

PostPosted: Sun Sep 09, 2012 2:05 pm    Post subject: Reply with quote

Here's a start:
hermes linux-am33x # time make -j9 ARCH=arm CROSS_COMPILE=armv7a-unknown-linux-gnueabi- modules
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/
  CC [M]  drivers/usb/gadget/ether.o
  CC [M]  drivers/usb/gadget/file_storage.o
  CC [M]  drivers/usb/gadget/mass_storage.o
  CC [M]  drivers/scsi/scsi_wait_scan.o
  CC [M]  drivers/w1/slaves/w1_smem.o
  CC [M]  drivers/w1/slaves/w1_ds2408.o
  CC [M]  drivers/w1/masters/ds2482.o
  CC [M]  drivers/w1/masters/ds1wm.o
  CC [M]  drivers/w1/slaves/w1_ds2423.o
  CC [M]  drivers/w1/slaves/w1_ds2433.o
  CC [M]  drivers/w1/slaves/w1_ds2431.o
  CC [M]  drivers/w1/slaves/w1_ds2760.o
  CC [M]  drivers/w1/slaves/w1_ds2780.o
  CC [M]  drivers/w1/slaves/w1_bq27000.o
  LD [M]  drivers/usb/gadget/g_ether.o
  LD [M]  drivers/usb/gadget/g_file_storage.o
  LD [M]  drivers/usb/gadget/g_mass_storage.o
  Building modules, stage 2.
  MODPOST 14 modules
  CC      drivers/scsi/scsi_wait_scan.mod.o
  CC      drivers/usb/gadget/g_ether.mod.o
  CC      drivers/usb/gadget/g_file_storage.mod.o
  CC      drivers/usb/gadget/g_mass_storage.mod.o
  CC      drivers/w1/masters/ds1wm.mod.o
  CC      drivers/w1/masters/ds2482.mod.o
  CC      drivers/w1/slaves/w1_bq27000.mod.o
  CC      drivers/w1/slaves/w1_ds2408.mod.o
  CC      drivers/w1/slaves/w1_ds2423.mod.o
  CC      drivers/w1/slaves/w1_ds2431.mod.o
  CC      drivers/w1/slaves/w1_ds2433.mod.o
  CC      drivers/w1/slaves/w1_ds2760.mod.o
  CC      drivers/w1/slaves/w1_ds2780.mod.o
  CC      drivers/w1/slaves/w1_smem.mod.o
  LD [M]  drivers/scsi/scsi_wait_scan.ko
  LD [M]  drivers/usb/gadget/g_ether.ko
  LD [M]  drivers/usb/gadget/g_file_storage.ko
  LD [M]  drivers/usb/gadget/g_mass_storage.ko
  LD [M]  drivers/w1/masters/ds1wm.ko
  LD [M]  drivers/w1/slaves/w1_bq27000.ko
  LD [M]  drivers/w1/slaves/w1_ds2408.ko
  LD [M]  drivers/w1/slaves/w1_ds2423.ko
  LD [M]  drivers/w1/masters/ds2482.ko
  LD [M]  drivers/w1/slaves/w1_ds2433.ko
  LD [M]  drivers/w1/slaves/w1_ds2431.ko
  LD [M]  drivers/w1/slaves/w1_smem.ko
  LD [M]  drivers/w1/slaves/w1_ds2760.ko
  LD [M]  drivers/w1/slaves/w1_ds2780.ko

real    0m16.102s
user    0m6.810s
sys     0m0.800s
hermes linux-am33x #

I found the module manifests in:
hermes linux-am33x # ls -la mod*
-rw-r--r-- 1 root root 6804 Sep  9 06:59 modules.builtin
-rw-r--r-- 1 root root  537 Sep  9 06:59 modules.order
hermes linux-am33x #

I'm guessing here: the modules.builtins lists those included in the uImage. The modules.order are those that would need to be copied over to the file system, though I do not know where as I always rely on the make scripts provided by Gentoo to place them where they should be. I'm seeing on my cross compiler box, hermes, top level directories of /lib32 and /lib64, with the /lib64 having underneath as follows:

My Beaglebone has a top level directory: /lib; however, there is no immediate subdirectory "modules". I'm guessing that a subdirectory "modules" is only created by the a make script that installs modules.

Why not try compiling the modules you need and then for one's you would be using and can test, copy them over to /lib/modules...

Don't forget to post your results here so others, including myself, might learn from your attempt.

I don't have a particular modules at this time that I need and could therefore test if the above approach works.
Back to top
View user's profile Send private message

Joined: 06 Sep 2012
Posts: 25

PostPosted: Sun Sep 09, 2012 2:20 pm    Post subject: Reply with quote


unfortunately "make modules_install" tries to install the modules
on the host system.

But following the instructions which are displayed via "make help"
one can steer the place, where all things get installed. May current
"solution" is the following script:
[code]#! /bin/sh
make ARCH=arm CROSS_COMPILE=armv7a-unknown-linux-gnueabi- am335x_evm_defconfig
make -j1 ARCH=arm CROSS_COMPILE=armv7a-unknown-linux-gnueabi- uImage modules modules_install firmware_install[/code]

which installs the stuff under the directory ./MODULES and ./FIRMWARE
but the as it turns out, everything gets installed under MODULES, which
is as fine as a seperated installation, as a simple (as root)
cp- av ./MODULES/* ./where/the/rootfs/is/.

Best regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

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