options problem - config file for Beagleboard-xm

hello
while trying to cross compile kernel 2.6.32 for BB-xm
i copied .config file from arch/arm/configs/omap3_beagle_defconfig
and
i found that

USB port drivers

Is there a specific reason your using such an old kernel?

Here's my last 2.6.32 config:
http://rcn-ee.homeip.net:81/dl/mirrors/deb/kernel/beagle/lucid/v2.6.32.11-l13/defconfig

Regards,

i already have angstrom image on Bb-xm which has this version …my BB-xm image comes from

in your config file too
# CONFIG_USB_FILE_STORAGE is not set

# CONFIG_USB_GADGET_DUMMY_HCD is not set
i want to use them for compiling two modules .

should i set them as m ?

Nidhi

Hello Robert …
I used this config file as you mentioned …

happily # CONFIG_USB_FILE_STORAGE was set as per my requirement

but still dummy CONFIG_USB_GADGET_DUMMY_HCD was not set

i set it as = y as m option is not valid – somehwere in between make warned me that …

now i do make -j3 ARCH=arm CROSS_COMPILE=/home/mohit/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- uImage
scripts/kconfig/conf -s arch/arm/Kconfig

it again gives error for option CONFIG_USB_GADGET_MUSB_HDRC

i again changed it to CONFIG_USB_GADGET_MUSB_HDRC=y

now

root@mohit-desktop:~/files/beagle/linux-2.6.32# make -j3 ARCH=arm CROSS_COMPILE=/home/mohit/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- uImage
scripts/kconfig/conf -s arch/arm/Kconfig
.config:2176:warning: override: USB_GADGET_DUMMY_HCD changes choice state

Hi Robert,

I am now stuck at I have used .config file as you told …from the link
http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/linux/linux-omap-psp-2.6.32/beagleboard/defconfig

and not changed anything in it …now …and just used make
make -j3 ARCH=arm CROSS_COMPILE=/home/mohit/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- uImage
and it compiled okay …asking some questions … i pressed enter.

now i compiled my module
make M=drivers/usb/gadget/ -C /home/mohit/files/beagle/linux-2.6.32/ ARCH=arm CROSS_COMPILE=/home/mohit/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- modules

i got g_file_storage.ko as required.

Now i insert it into BB-xm …it gives error …
root@beagleboard:~/drivers# insmod g_file_storage.ko
[ 147.671417] g_file_storage: disagrees about version of symbol module_layout
insmod: error inserting ‘g_file_storage.ko’: -1 Invalid module format
root@beagleboard:~/drivers# modinfo g_file_storage.ko
filename: g_file_storage.ko
license: Dual BSD/GPL
author: Alan Stern
description: File-backed Storage Gadget
srcversion: 8A39D3EA7720D3216DE31FE
depends:
vermagic: 2.6.32 preempt mod_unload modversions ARMv7
parm: file:names of backing files or devices (array of charp)
parm: ro:true to force read-only (array of bool)
parm: luns:number of LUNs (uint)
parm: removable:true to simulate removable media (bool)
parm: stall:false to prevent bulk stalls (bool)
parm: cdrom:true to emulate cdrom instead of disk (bool)

and the already compiled module .ko file which came with this image that is inserted successfully is
root@beagleboard:~# modinfo g_file_storage.ko
filename: g_file_storage.ko
license: Dual BSD/GPL
author: Alan Stern
description: File-backed Storage Gadget
srcversion: 72E35C1FB53B89518F5FB90
depends:
vermagic: 2.6.32 mod_unload modversions ARMv7
parm: file:names of backing files or devices (array of charp)
parm: ro:true to force read-only (array of bool)
parm: luns:number of LUNs (uint)
parm: removable:true to simulate removable media (bool)
parm: stall:false to prevent bulk stalls (bool)
parm: cdrom:true to emulate cdrom instead of disk (bool)

There is no difference in modinfo …still my module is not inserted properly.
I think still my config file is not correct …
Pl tell me how do i get correct config file ?

or
i will have to change uImage that is already there in BB-xm …
how do i change that …i think that for that we dont need to rebuild whole image we can just change kernel …
could you point me to some link on how to do that …

Thanks

What do you expect when using a different compiler?

i m not using different compiler …but i found that version is one lower in BB-xm than ubuntu .
Could my problem be becase of that ?
shd i lower version of ubuntu m/c …to match it to angstrom ?

Nidhi

i m not using different compiler

So you are saying that angstrom is actually built with codesourcery and that I don't know which toolchain angstrom is using. Really? Are you seriously trying to say that?

Hello Robert and all

Oh Lord…

I some how feel that you ask a lot of questions !

More than I do !!

I wish your problems are solved soon…

regards…

Better compile complete image first with all the modules and install them on BB.

Then you will not face these problems.