Home

Forums

Statistics

Surveys

Top Ten

Your Account


Login
Nickname

Password

Security Code: Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like a private journal and posting comments or additions to articles.

Who's Online
There are currently, 10 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

Donations
If you find the information here useful,
help keep this web site online with a donation!
YTD Donations
$1.00
Thank You!

Host referer


  
Having problems with MAKE and INSTALL due to kernel source ?
Posted on Sunday, February 26 @ 21:41:21 CST
Topic: 3: More Magnia / Linux stuff

Extrapolated from: http://www.tldp.org/LDP/lkmpg/2.6/html/x380.html

Correcting your kernel source when using make and the script complains that your source does not match your kernel.

Install the kernel source that matches your current kernel.
You can issue a uname -a if you don't know.
2.4.20-28.8tosh in my case, so I need to find and install
kernel-source-2.4.20-28.8.i386.rpm.

Next I'm going to change the directory name from
/usr/src/linux-2.4.20-28.8 to
/usr/src/linux-2.4.20-28.8tosh
(this may not be absolutely necessary, but I'm going to do it anyway)

Next I'm going to edit the file /usr/src/linux-2.4.20-28.8tosh/include/linux/version.h to stick "tosh" in:


#include
#if defined(__module__smp)
#define UTS_RELEASE "2.4.20-28.8smp"
#elif defined(__module__BOOT)
#define UTS_RELEASE "2.4.20-28.8BOOT"
#elif defined(__module__bigmem)
#define UTS_RELEASE "2.4.20-28.8bigmem"
#else
#define UTS_RELEASE "2.4.20-28.8
tosh"
#endif
#define LINUX_VERSION_CODE 132116
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

and /usr/src/linux-2.4.20-28.8tosh/Makefile

VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 20
EXTRAVERSION = -28.8tosh

Then I'll use WebMin's File Manager, go to /usr/src/linux-2.4 symlink, and use
"Info" button in File Manager to edit and change link to linux-2.4.20-28.8tosh

ALL DONE! MAKE DOESN'T EXIT WITH AN ERROR ANY MORE!



Remember: Questions can be posted in the FORUM section !


 
Related Links
· More about 3: More Magnia / Linux stuff
· News by anoldman


Most read story about 3: More Magnia / Linux stuff:
UPDATED: Forwarding Ports on your Magnia SG20


Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


Options

 Printer Friendly Printer Friendly

 Send to a Friend Send to a Friend


Associated Topics

2: Toshiba Magnia hacks

Please take a second and vote for this article.
Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2003 by AnOldMan.com
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.07 Seconds