• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / Kernel / Re: Correct way to install new Kernel? on: December 04, 2009, 02:20:06 AM
Thank-you Snake!

I wrote the compiled uImage onto the NAND partition, restarted.
It worked straight away.  Smiley

Havn't had a single problem since.
After everything I had tried, didn't expect it to be as easy as that.

Thanks again.
2  Linux Stuff / Kernel / Correct way to install new Kernel? on: December 03, 2009, 12:16:23 AM
I have been trying to get a custom kernel going on the nand, with no success.

First I tried re-compiling sheeva-with-linux 2.6.31.6, but was unable to even get "make" going.

I put the orion v2.6.31.1 source on a usb drive (not enough space on nand), ran through make uImage, make modules, make modules_install
with-out any errors.
Copied uImage into /boot.
And on restart it just loaded into the previous installed 2.6.31.6.

Created modules.tar.gz with the correct structure, to use with installer-1.0,
It flashed ok, but did not boot.
Looked at creating rootfs.tar.gz, but i cant figure out which files are needed.

Is there a way that I can compile orion v2.6.31.1, from a usb drive, onto the nand?
Or am I going about this the wrong way?
3  Linux Stuff / General Linux questions / Re: How to "Make" a driver? on: November 28, 2009, 10:11:13 PM
Ok, I downloaded the 2.6.31.6 kernel source from kernel.org.
Changed the build/source symbolic links from /home/kelly/src/Sheeva/SheevaPlug_LSP/Sources/linux-2.6.31.6,
to the location of the extracted source.
Also merged the kernal headers from sheeva-with-linux into newly extracted source.

make config, now works without a hitch.
make all, fails

Now that I know a little bit more about whats going on, I'll try reflashing the plug to default.
Then do this all over again from scratch.

Thanks for your help Birdman.
4  Linux Stuff / General Linux questions / Re: How to "Make" a driver? on: November 28, 2009, 06:51:43 AM
Unsure what you mean by moving the include directory next to the rt73 module and linking to the parent.
I tried pointing to the extracted include directory :
Code:
-------------------- Ralink RT73 Station Configuration --------------------

  Linux kernel source directory [/usr/src/linux-2.6.31.6]: /usr/include

  Linux kernel source directory : /usr/include

sed: can't read /usr/include/Makefile: No such file or directory
sed: can't read /usr/include/Makefile: No such file or directory
sed: can't read /usr/include/Makefile: No such file or directory
sed: can't read /usr/include/Makefile: No such file or directory
expr: syntax error
./Configure: line 104: [: -lt: unary operator expected
  Module install directory : /lib/modules/2.6.31.6/kernel/drivers/net

root@ubuntu:/usr/2009_0713_RT73_Linux_STA_Drv1.1.0.3/Module#
Which didn't work.
I was able to find that both build and source in /lib/modules/2.6.31.6 are links to /home/kelly/src/Sheeva/SheevaPlug_LSP/Sources/linux-2.6.31.6 .
http://www.cyprusmania.net/plug-computing/usb-wireless-access-point/ has more information on the problem,
but their only fix was to make a custom kernel.
5  Linux Stuff / General Linux questions / How to "Make" a driver? on: November 28, 2009, 03:23:20 AM
Im stuck trying to build a driver for 2.6.31.6
Its a RT73 Wireless USB device.

root@ubuntu:/usr/2009_0713_RT73_Linux_STA_Drv1.1.0.3/Module# lsusb
Bus 001 Device 004: ID 148f:2573 Ralink Technology, Corp. RT2501USB Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation root hub

root@ubuntu:/usr/2009_0713_RT73_Linux_STA_Drv1.1.0.3/Module# make config

-------------------- Ralink RT73 Station Configuration --------------------

  Linux kernal source directory [/usr/src/linux-2.31.6]"

Linux source tree '/usr/src/linux/linux-2.6.31.6' is incomplete or missing!

Configuration failed

make: *** [config] Error 1

sheeva-with-linux has the headers @
http://sheeva.with-linux.com/sheeva/2.6.31.6/sheeva-2.6.31.6-KernelHeaders.tar.gz
But im not sure how to install them.
Tried extracting the .tar.gz and pointing the Config to them, with no luck.

How do I install the headers?
Pages: [1]