knoppmyth.net Forum Index knoppmyth.net
The home of KnoppMyth.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

So you want the kernel source...
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    knoppmyth.net Forum Index -> General
View previous topic :: View next topic  
Author Message
cecil
Site Admin


Joined: 19 Sep 2003
Posts: 2634
Location: Fontana, Ca

PostPosted: Wed Jan 03, 2007 6:37 pm    Post subject: So you want the kernel source... Reply with quote

Code:
wget ftp://knoppmyth.net/R5/linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb
dpkg -i linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb
cd /usr/src
tar xjvf linux-source<tab>
Back to top
View user's profile Send private message
Speed_D



Joined: 19 Feb 2006
Posts: 31

PostPosted: Tue Jan 09, 2007 4:01 pm    Post subject: Reply with quote

Thanks cecil Smile
Back to top
View user's profile Send private message
jimmyfergus



Joined: 18 Jan 2005
Posts: 100
Location: MA, USA

PostPosted: Wed Jan 10, 2007 5:26 am    Post subject: Reply with quote

Great - thanks. Somehow, I missed this post, though search on "kernel source" gets it no problem. I think I was focusing on kernel headers, which is all I originally thought I needed. So, this post is simply to insert the words "kernel headers" into this thread Smile.
Back to top
View user's profile Send private message
samilliken



Joined: 17 Jan 2006
Posts: 20
Location: Smyrna, TN

PostPosted: Thu Jan 11, 2007 10:32 am    Post subject: Reply with quote

Thanks, cecil!

Perhaps this should become a sticky thread, at least until the next release?

Scott Milliken
Back to top
View user's profile Send private message
dwaine



Joined: 30 Nov 2005
Posts: 135

PostPosted: Fri Jan 12, 2007 5:39 am    Post subject: Reply with quote

Thanks, cecil!

Dwaine
Back to top
View user's profile Send private message
jimmyfergus



Joined: 18 Jan 2005
Posts: 100
Location: MA, USA

PostPosted: Fri Jan 12, 2007 6:22 am    Post subject: Reply with quote

BTW, I had some trial-and-error messing around to compile it - most specifically, I had to have the /usr/src/linux link remain pointing to the headers, to compile the source, and then after I could move the link to the source. See the VMWareServer Wiki page for cut/paste instructions.
Back to top
View user's profile Send private message
Zach Welch



Joined: 16 Jan 2007
Posts: 1

PostPosted: Tue Jan 16, 2007 1:43 pm    Post subject: add this to the next release? Reply with quote

Would it be asking too much to put this sequence into a small shell script located in /usr/src, along with a short README.linux-source file? It would be worth adding the following commands, which were derived from the earlier comments and the VMWare page on the KnoppMythWiki:
Code:
# rebuild the kernel package using the existing configuration
cd /usr/src/linux-source-2.6.18-chw-13
cp /boot/config-2.6.18-chw-13 .config
make-kpkg kernel_image
# change the main source symlink to point at the sources
cd /usr/src
rm linux
ln -s linux-source-2.6.18-chw-13 linux

After these steps, additional out-of-tree drivers can be built using the kernel sources (such as the HD-5500 drivers).
Back to top
View user's profile Send private message
jimmyfergus



Joined: 18 Jan 2005
Posts: 100
Location: MA, USA

PostPosted: Tue Jan 16, 2007 5:46 pm    Post subject: Re: add this to the next release? Reply with quote

Zach Welch wrote:
Would it be asking too much to put this sequence into a small shell script located in /usr/src, along with a short README.linux-source file?


I think, though I'd love to have someone more knowledgeable clarify this, that there was something lacking about the R5E50 kernel headers installed, that made all these steps necessary.

I think that VMWare, driver builds etc., ought to be happy with simply the kernel headers, not needing the entire source.

Also, there's a thread about the Nvidia drivers where it indicates how you can get around building the entire kernel (and the associated wait), though it's a bit of a hack.

So, it's my belief that future releases won't need all this messing around. Anyone?
Back to top
View user's profile Send private message
randomhtpcguy



Joined: 07 Nov 2005
Posts: 153

PostPosted: Wed Jan 17, 2007 7:03 am    Post subject: Reply with quote

My two cents is that I hope it will be possible on future releases to be able to recompile lirc. I use a remote that uses the serial module but a unique packard_bell driver. I also use a usb-uirt remote that requires an lirc patch and compile.

I think lirc needs kernel source? Module-assistant can be used with the headers only to build lirc-modules; i believe.

it just seems, for flexibility sake, we should have access working copies of both.
Back to top
View user's profile Send private message
bzImage



Joined: 01 Feb 2006
Posts: 45

PostPosted: Sat Jan 20, 2007 9:09 am    Post subject: Reply with quote

it was too hard to include the kernel source on the cd ?
Back to top
View user's profile Send private message
tjc



Joined: 25 Mar 2004
Posts: 9115
Location: Arlington, MA

PostPosted: Sat Jan 20, 2007 10:20 am    Post subject: Reply with quote

Setting up an install CD is already an excercise in getting 40 lbs. of stuff in a 20 lb. sack. All through the R5C and R5D series having the image not fit on a CD was a nagging concern (there was a point where it would only fit on a 700 Mb/80 minute CD and not a "standard" 640Mb/72min. one). As a result, with he R5E series Cecil started from scratch with a minmal image and added things back only as necessary.

With the header files set up properly you really shouldn't need the kernels source to build modules, and Cecil tried to take andvantage of that. It would be far more productiive to sort out the issue with the header file set up rather than giving him grief about the decision.
Back to top
View user's profile Send private message
kmkittre



Joined: 12 Jul 2005
Posts: 597
Location: Phoenix, AZ

PostPosted: Sat Jan 20, 2007 11:24 am    Post subject: Reply with quote

Along those lines. If Cecil wants to pack more features into Knoppmyth maybe we can go to a DVD image? I know I would be fine with it.

Maybe two versions of KM? A slim and a beefy one, CD and DVD?
Back to top
View user's profile Send private message
jimmyfergus



Joined: 18 Jan 2005
Posts: 100
Location: MA, USA

PostPosted: Wed Jan 24, 2007 6:32 am    Post subject: Reply with quote

I think not including the kernel source is fine, particularly if there is a well known way to get it.

VMWare seemed upset about the installed headers because /usr/src/linux/Makefile did not exist, and said something like "headers exist, but don't appear to be part of a source tree". Very odd. I don't know whether it really needs the source, or is just unnecessarily demanding Smile.

Has it been contemplated (I'm sure it has, apologies if I missed the posts) to host a KnoppMyth .deb repository so that extra packages can be left off the install disk, but easily available via apt-get? I have no idea what's actually involved. The current .deb download is no hassle, but it requires documentation etc., whereas a repository would mean people could just use all the apt tools.

<dream mode>I imagine that those crucial .deb packages which currently would mess everything up with an apt-get upgrade, could be in the KM repository (listed first in /etc/apt/sources.list), and then the day could come when you really could do an apt-get upgrade to get the latest knoppmyth.</dream mode>
Back to top
View user's profile Send private message
neutron68



Joined: 28 Mar 2006
Posts: 689
Location: Minneapolis, MN

PostPosted: Fri Jan 26, 2007 8:23 pm    Post subject: how to? Reply with quote

tjc wrote:
With the header files set up properly you really shouldn't need the kernels source to build modules, and Cecil tried to take andvantage of that.


How can we set up the header files properly? If you know how to do it, DO TELL!

Incidently, I'd also be fine with a KM DVD iso file rather than a cd iso. Blank DVDs are cheap too. Bring it on! Smile
_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
subliminalurge



Joined: 22 Mar 2006
Posts: 5

PostPosted: Sat Jan 27, 2007 12:42 pm    Post subject: Re: how to? Reply with quote

I also agree with moving to a DVD image, given the amount of stuff that seems to be being left out in the interest of saving space. Out of 5 network cards that have always "just worked" with other Linux distros, including previous releases of KM, I've only got one of them functioning so far under R5E50. I have yet to get my Linksys Gigabit card up and running, which is what led me in search of the kernel source to begin with.

It seems to me that the drawbacks of staying within the confines of a CD image are great, while the downsides of moving to a DVD image would be quite minimal. It seems to me that leaving out vital functionality, and therefore requiring the user to jump through hoops to get their system functional, is in direct opposition to the original spirit that KM was developed in. Much more so than simply adding a few hundred megs to the download and requiring a blank DVD rather than a blank CD.

Myth pretty much requires network functionality to be useful. If drivers for common network cards are now being left out in the interest of fitting on a CD, the usefulness of KM will be hugely hindered.

One other interesting approach is what the Smoothwall folks are doing. With their latest alpha release, they also have a full "developers edition" that installs the same functional system as the normal release, but also includes the development tools to build the whole system from scratch, including the installable ISO image.

But really, for the moment I'd just be happy with the full kernel tree so I can build my sk98lin driver! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    knoppmyth.net Forum Index -> General All times are GMT - 8 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group