List Info

Thread: cannot reach /lib/modules directory from within scratchbox




cannot reach /lib/modules directory from within scratchbox
user name
2007-09-10 10:09:42
Hi, I'm a newbie to scratchbox so if I describe my system or use some terminology impropperly, please correct me.
The administrator of the company I'm working for installed scratchbox 0.98 on apc with linux suse 9.3 os and 2.6.11.4-20a-default kernel.
Within scratchbox I created a target for arm and my task is tol compile a couple of open source softwares and drivers for arm processor.
Currently, I have no "true" arm based computer attached to the host machine, so I'm using the qemu emulator from within scratchbox.
One of the drivers I need to compile is a usb driver (ft245_driver-lin26-203).
Uncompressing the appropriate file, I don't get any configure script, just a Makefile and one C source file.
When I execute "make" I get the following lines:
make -C /lib/modules/2.6.11.4-20a-default/build M=/home/rafi/ft245 modules
make: *** /lib/modules/2.6.11.4-20a-default/build: No such file or directory. Stop.
make: *** [default] Error 2
 
Generally speaking, there is not modules in /lib within scratchbox. This, through, does exist outside scratchbox.
What should I do now? does this exist in some other place so I can modify the makefile accordingly? or should I build the kernel from within scratchbox? Please, I need help here.
Thanks, Rafi.
Re: cannot reach /lib/modules directory from within scratchbox
user name
2007-09-12 00:01:28
Hi Rafi,

On 9/10/07, Rafi Cohen <raficbezeqint.net> wrote:
> Within scratchbox I created a target for arm and my
task is tol compile a
> couple of open source softwares and drivers for arm
processor.
> When I execute "make" I get the following
lines:
> make -C /lib/modules/2.6.11.4-20a-default/build
> M=/home/rafi/ft245 modules
> make: *** /lib/modules/2.6.11.4-20a-default/build: No
such
> file or directory. Stop.
> make: *** [default] Error 2
make is trying to change its working directory into
/lib/modules/2.6.11.4-20a-default/build. I guess you have
this folder
in your computer ? If so, copy it
into your /scratchbox/users/<your user
name>/targets/<targetname>/,
then try again.

Shana Tova,
Sfora.

PS I recommend you to not  use scratchbox to compile kernel
modules
(i.e drivers).
It can be done, but why the hassle ? It is very easy to
cross compile
a linux kernel, or parts of it. Just ask in
kernelnewbiesnl.linux.org
how to do that.
_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )