• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / Kernel / Problem for loading kernel from ftp on: June 16, 2010, 07:05:01 AM
I managed to compile a kernel on the sheevaplug itself

I moved the /linux-2.6.34/arch/arm/boot/uImage to my ftp server

I tried to access and download the uImage from a 3rd computer (IP 192.168.1.7) by using:
wget http://ftp://192.168.1.4/uImage

everything is working fine

then I access to the sheeva:
screen /dev/ttyUSB0 115200

I stopped the boot process and  try to load the uImage with ftp:
setenv ipaddr 192.168.1.9
setenv serverip 192.168.1.4
tftpboot 0x2000000 uImage

but I get the message:
Using egiga0 device
TFTP from server 192.168.1.4; our IP address is 192.168.1.9
Filename 'uImage'.
Load address: 0x2000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again

I guess there is something wrong with the ftp server but what?


2  Linux Stuff / Kernel / Re: How to use headers from sheeva.with-linux.com on: June 15, 2010, 12:14:21 PM
Thank you for the help but it doesn t work.

If I untar the sources of the driver, I don't have any "configure" file inside so the command below is not working:

./configure --target=arm-elf --with-headers=$SYSROOT/usr/include --with-sysroot=$SYSROOT

I just have a "Makefile" in the directory of my driver sources and inside this "Makefile" I can set some path as:

LINUX_SRC =
LINUX_SRC_MODULE =
CROSS_COMPLE =

But as I don't know what to set. I try to use the path of the linux-headers for LINUX_SRC and also the path of my cross sompile folder for CROSS_COMPILE but nothing worked.

Anyway, for me it seems to be much more coplicated to do cross compilation as I can compile the driver on the sheevaplug itself.

I just want to use the headers from sheeva.with-linux.com on the sheevaplug.
3  Linux Stuff / Kernel / How to use headers from sheeva.with-linux.com on: June 15, 2010, 07:23:34 AM
When I download the headers from sheeva.with-linux.com and I untar the tarball I get a "usr" folder with inside a "include" folder with 10 other folders inside like "asm", asm-generic", "drm", "linux", "mtd", ...

I want to compile a driver with those headers but I don't know what to do with this "usr" folder, I don't know where to copy it, and there is no README.txt inside the tarball.

Is there someone that used those headers already for compilation?
4  Linux Stuff / Kernel / Re: I can't load wifi driver on: June 15, 2010, 07:01:02 AM
Hi and thanks for the help,

the command "modinfo rt2870sta.ko |grep vermagic" answer me:
vermagic:       2.6.32-5-kirkwood mod_unload modversions ARMv5

and the command "uname -r" answer me:
2.6.32.5

so maybe the solution is tu use the linux-headers from http://sheeva.with-linux.com but when I download them and untar the tarball I get a "usr" folder with inside a "include" folder with 10 other folders inside like "asm", asm-generic", "drm", "linux", "mtd", ...
and I don't know what to do with this "usr" folder, I don't know where to copy it, and there is no README.txt inside the tarball.

Well maybe I should add a new topic on this forum for "How to use headers from sheeva.with-linux.com"


5  Linux Stuff / Kernel / I can't load wifi driver on: June 14, 2010, 05:10:51 PM
First of all I ve installed Debian Squeeze on my Sheevaplug using the ShevaPlug Installer.
Then I have updated the kernel to the 2.6.32.5 using http://sheeva.with-linux.com/sheeva/README-2.6.32.5

in order to compile the driver on the plug I installed the packages "build-essential" and "linux-headers-2.6.32-5-all" via aptitude on the plug.

because the links "build" & "source" were bad  in /lib/modules/2.6.32.5/, I ve done
rm /lib/modules/2.6.32.5/build
rm /lib/modules/2.6.32.5/source
ln -s /usr/src/linux-headers-2.6.32-5-kirkwood/ /lib/modules/2.6.32.5/build
ln -s /usr/src/linux-headers-2.6.32-5-common/ /lib/modules/2.6.32.5/source

the compilation of the driver is fine on the sheevaplug but when I try to use it with:
insmod rt2870sta.ko

I have an error:
insmod: error inserting 'rt2870sta.ko': -1 Invalid module format

I don't understand why the module format is wrong and I don't have any idea why I have it.

If someone have any idea for helping it would be nice.
Pages: [1]