Hi Dave,

your build output looks ok to me. The /lib/modules folder is created if the
symbol "MODULES" is set
in the Linux kernel configuration.

...
if [ "$CONFIG_MODULES" = "y" ]; then \
[ -d /home/christian/uClinux-dist/romfs/lib/modules ] || mkdir -p
/home/christian/uClinux-dist/romfs/lib/modules; \
...

Have you enabled the option "Enable loadable module support" in the Linux
Kernel Configuration that sets this symbol?

Regards,
Christian

-----Ursprüngliche Nachricht-----
Von: uclinux-dev-boun...@uclinux.org
[mailto:uclinux-dev-boun...@uclinux.org] Im Auftrag von David Wooff
Gesendet: Freitag, 11. Dezember 2009 11:21
An: uClinux development list
Betreff: RE: [uClinux-dev] Loadable module on uCLinux (ATSAM9G20 ARM)

Thanks Christian,
I don't have a /lib/modules/ directory.  I must be missing an option
somewhere.

This is the output of my build:

[?????]$ make ARCH=arm
CROSS_COMPILE=~/buildroot-v23434/build_arm/staging_dir/usr/bin/arm-linux-
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CALL    scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
  CHK     include/linux/compile.h
  CC      arch/arm/kernel/compat.o
  CC      arch/arm/kernel/setup.o
  LD      arch/arm/kernel/built-in.o
  CC      arch/arm/mm/init.o
  CC      arch/arm/mm/mmu.o
  LD      arch/arm/mm/built-in.o
  CC      arch/arm/mach-at91/board-sam9g20ek.o
  LD      arch/arm/mach-at91/built-in.o
  LD      drivers/misc/built-in.o
  CC [M]  drivers/misc/atmel_dave.o
  LD      drivers/built-in.o
  CC      sound/soc/atmel/sam9g20_wm8731.o
  LD      sound/soc/atmel/snd-soc-atmel-pcm.o
  LD      sound/soc/atmel/snd-soc-atmel_ssc_dai.o
  LD      sound/soc/atmel/snd-soc-sam9g20-wm8731.o
  LD      sound/soc/atmel/built-in.o
  LD      sound/soc/built-in.o
  LD      sound/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/piggy.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  Building modules, stage 2.
  MODPOST 31 modules
  CC      drivers/misc/atmel_dave.mod.o
  LD [M]  drivers/misc/atmel_dave.ko

Thanks,
Dave.

Hi Dave,

if you build the loadable module with the make process for the image the
loadable modules should be in /lib/modules/<version>/kernel/...

Regards,
Christian

Hi,
I have successfully built a simple driver module configured for built in
operation and it runs at startup - great so far.
 
I then built it for loadable operation and it builds ok.  I am left with a
.ko file.
When I download my new image to the target, I cannot see the ko file in
order to load it.  Do I have to download the module separately or should it
be part of the image and visible somewhere?
 
Is there anything else I need to do other than enabling loadable module
support and selecting the loadable module <M> in the config?
 
I'm running 2.6.30 btw.
 
Thanks,
Dave W.


_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


This electronic transmission is strictly confidential and intended solely
for the addressee(s). If you are not the intended addressee, you must not
disclose, copy or take any action in reliance of this email.  If you have
received this email in error please notify the sender as soon as possible.
Any views expressed within this email may not necessarily be the views held
by Calrec Audio Ltd.  Calrec Audio Ltd have taken measures to ensure this
email is free from computer viruses, however it is recommended that you also
employ anti-virus measures on your computer systems.
Calrec Audio Ltd. Registered in England. Registration number: 02392336. WEEE
registration number: WEE/JE0051TQ/PRO. Registered address: Nutclough Mill,
Hebden Bridge, West Yorks, HX7 8EZ.

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to