cross compiling a kernel module for angstrom beagleboard

1,898 views
Skip to first unread message

mohit hada

unread,
Mar 25, 2011, 11:30:33 AM3/25/11
to beagl...@googlegroups.com, angstrom-d...@linuxtogo.org, mohit hada, nidhi mittal

Hi all

please ignore previous mail ..

Referring the link for BeagleBoard xm

http://www.ibm.com/developerworks/linux/library/l-beagleboard-xm/

we have installed a "Basic image" of angstrom on it taken from this link 

"Final image" of angstrom has been taken following the below link

http://processors.wiki.ti.com/index.php/Getting_Started_With_C6Run_On_Beagleboard

--------------------------------------------------------------------------------------------------------------------------------------------------------------

Now i want to recompile one kernel module for angstrom but i dont have source code/not even headers of kernel

available with me on BB ...to compile module for BB 

Where can i get angstrom source folder and how do i cross compile a kernel module from ubuntu machine for Beagleboard arm machine

please help ..any type of pointers doc link will be most helpful...



mohit hada

unread,
Mar 26, 2011, 6:46:50 AM3/26/11
to beagl...@googlegroups.com, angstrom-d...@linuxtogo.org, mohit hada, nidhi mittal
Thanks to  koen kooyi suggested the link ....
http://www.angstrom-distribution.org/building-angstrom

The little i could understand from this link is ..i will have to use bitbake and oebb.sh ....to cross compile a module for Angstrom Beagleboard.
But I need to recompile a kernel module after a change in source made by me .........
for that

1)I need to get module source code of module for angstrom image ...as i saw its linux kernel 2.6.32 ..
so should i pick module source from normal linux source available o ninternet ...?


2)i need to cross compile this changed module from my ubuntu host for angstrom beagleboard ......


pl help ....

Thanks
Nidhi

Koen Kooi

unread,
Mar 26, 2011, 6:49:18 AM3/26/11
to beagl...@googlegroups.com, angstrom-d...@linuxtogo.org, mohit hada, nidhi mittal
Just follow the instructions at http://www.angstrom-distribution.org/building-angstrom and that will get you the sources you need. If you don't want to follow my advice, stop asking questions on these mailinglists.

> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

mohit hada

unread,
Mar 26, 2011, 7:01:45 AM3/26/11
to Koen Kooi, beagl...@googlegroups.com, angstrom-d...@linuxtogo.org, nidhi mittal
Sorry kooyi ..perhaps i am not able to understand it ..
i have some confusion

as steps suggested by this link are
http://www.angstrom-distribution.org/building-angstrom


MACHINE=beagleboard ./oebb.sh update
MACHINE=beagleboard ./oebb.sh bitbake virtual/kernel

#Build some more # you can specify machine on the cmdline:
MACHINE=your_machine ./oebb.sh bitbake base-image
MACHINE=your_machine ./oebb.sh bitbake console-image
============================================================================================================

But I have already used below link ...which seem to suggest similar steps ...PLease correct me if i am wrong
http://processors.wiki.ti.com/index.php/Getting_Started_With_C6Run_On_Beagleboard

OpenEmbedded and Angstrom Setup

  1. Create local repository for OEBB:
      ~/Git$ git clone git://gitorious.org/angstrom/angstrom-setup-scripts.git angstrom-setup-scripts
  2. From repository, run OEBB config (select the platform you want to build for) and update. This may take a while to execute:
     ~/Git/angstrom-setup-scripts$ ./oebb.sh config beagleboard
     ~/Git/angstrom-setup-scripts$ ./oebb.sh update
    Note that if you later switch platforms you need to manually delete the build/conf path, as the oebb.sh script does not create a new one if one already exists.
     ~/Git/angstrom-setup-scripts$ rm -Rf build/conf

ource the OpenEmbedded environment settings.

 ~/Git/angstrom-setup-scripts$ . ~/.oe/environment
  • Use Angstrom to build console-image for the configured platform. This can take an extremely long time (>24 hours).
     ~/Git/angstrom-setup-scripts$ bitbake base-image console-image

At this point, you will have a base console root filesystem and binary bootloader and kernel images in the angstrom-setup-scripts/build/tmp-angstrom_2008_1/deploy/glibc/images/beagleboard directory.

==============================================================================================================

and after following these steps which take >24 hr  i dont have angstrom source in my PC ..what i have is compiled image ...
as i dont have knowhow of bitbake etc ..even ..please guide me if i am mistaken .....




Thanks
Nidhi
--
Mohit Hada (owner)
Technid Solutions(An Embedded and FPGA based Design and Development Company)

Registered Office :

Flat No- 7,
73, Ashutosh Mukherjee Road,
Kolkata - 700025

ph : 08820074382 (preferred) / 09322156564


Ass No : 110720200429

Vat No. - 19415754062



Vladimir Pantelic

unread,
Mar 26, 2011, 8:13:14 AM3/26/11
to beagl...@googlegroups.com
On 03/26/2011 12:01 PM, mohit hada wrote:
> Sorry kooyi ..perhaps i am not able to understand it ..
> i have some confusion

> and after following these steps which take >24 hr i dont have angstrom


> source in my PC ..what i have is compiled image ...
> as i dont have knowhow of bitbake etc ..even ..please guide me if i am
> mistaken .....

see:
http://groups.google.com/group/beagleboard/msg/0898a8e9ce5af510

and yes, it takes long to build a full image, so just build
the kernel...

Koen Kooi

unread,
Mar 26, 2011, 8:35:42 AM3/26/11
to mohit hada, beagl...@googlegroups.com, angstrom-d...@linuxtogo.org, nidhi mittal
Op 26 mrt 2011, om 12:01 heeft mohit hada het volgende geschreven:

> Sorry kooyi ..perhaps i am not able to understand it ..

There's no 'y' in my last name.

> i have some confusion

[..]

> But I have already used below link ...which seem to suggest similar steps ...PLease correct me if i am wrong
> http://processors.wiki.ti.com/index.php/Getting_Started_With_C6Run_On_Beagleboard

Any wiki that provides "similar" steps is wrong and unsupported untill angstrom developers say otherwise. The instructions at http://www.angstrom-distribution.org/building-angstrom are maintained, checked regularly and kept up to date.

The above c6run wiki starts by pointing to the outdated git repo for the setupscripts, which doesn't bode well for the rest of the instructions.

regards,

Koen

Amine Bouzidi

unread,
Apr 5, 2011, 7:40:34 AM4/5/11
to beagl...@googlegroups.com
hello

 i am compiling a simple hello world program on beagleboard C3 and I am getting this error:

arm-angstrom-linux-gnueabi-gcc hello.c

/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status

I have tried to fix it by running this command 
ln -s /lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1
as there was a symbolic link missing.

unfortunately I still have the same problem.
can anyone possibly provide me with a solution to fix this matter

many thanks
amine

Zhivko

unread,
Apr 16, 2012, 5:58:55 AM4/16/12
to beagl...@googlegroups.com
I manage to cross-compile using instructions in  http://www.lvr.com/eclipse1.htm

Zhivko

vjvargas

unread,
Dec 12, 2012, 6:56:21 PM12/12/12
to beagl...@googlegroups.com, mohit hada, angstrom-d...@linuxtogo.org, nidhi mittal
Hi Koen,

I don't know if I am a bit lost here, but I'm trying to use Angstrom on a BeagleBoard RevC5 without a SD card, so far I have been able to download a built image from the narcissus online tool, and managed to flash it on BB NAND, next thing is that I'm trying to connect a resistive touchscreen to the BB. When I connect the usb touchscreen output to the BB I can see that the device is enumerated and that the event driver is recognizing it as a USBHID device (a normal mouse for example) but when I try to use the screen as an input the cursor is always at the left top corner of the screen and I can't calibrate the device since the cursor is always is the same coordinate. There is a propietary driver from the screen manufacturer, but the instructions state that I have to make sure some modules are loaded in the kernel I'm working with. Here is when I get lost, so far I haven't been able to do some configuration to the angstrom kernel or see the modules loaded (lsmod gives me a empty list) to make sure the driver is going to work once I install it. On ubuntu I can "make menuconfig" to load the modules I need, etc, also lsmod list the modules currently loaded in the ubuntu kernel, but in the angstrom kernel I haven't been able to do the configuration steps. Now I'm trying to build the kernel from the instrutions in this link but I don't see the part when I can configure the modules or drivers I want to build for my kernel, any help or direction would be very appreciated, thatks in advance and best regards,

Victor
Reply all
Reply to author
Forward
0 new messages