Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2006.1 livecd kernel header [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
okasion
n00b
n00b


Joined: 21 Jan 2007
Posts: 19

PostPosted: Sun Jan 21, 2007 5:25 am    Post subject: 2006.1 livecd kernel header [SOLVED] Reply with quote

hi guys, in order to build ndiswrapper on my system I need the kernel headers of my actual gentoo box (I just installed the 2006.1 livecd).
I searched for the linux kernel headers on the cd but couldnt find it, any help would be very appreciated.


Last edited by okasion on Mon Jan 29, 2007 1:19 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Jan 21, 2007 3:11 pm    Post subject: Reply with quote

okasion,

You need a properly configured complete kernel source tree to build more kernel modules, which includes ndiswrapper.
If you have a wired connection this is probably a good time to upgrade your kernel
Code:
uname -a
will tell you what kernel you have now
Code:
emerge -fp =gentoo-sources-2.6.....
will tell you what files you need to get the sources of your current kernel and its config file is at /proc/config.gz.

Install the source tree, set the /usr/src/linux symbolic link to point to it, copy and decompress /proc/config.gz to /usr/src/linux/.config and you are ready to
Code:
emerge ndiswrapper


The kernel sources are not on the liveCD.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
okasion
n00b
n00b


Joined: 21 Jan 2007
Posts: 19

PostPosted: Sun Jan 21, 2007 4:28 pm    Post subject: Reply with quote

yeah well, the reason I need the kernel headers is to be able to manually build the ndiswrapper module so I can connect to internet from gentoo; my idea was to download the kernel headers from windows (the laptop is dual boot), build the module, and from there start updating the system.
It seems I wont be able to continue my installation until I connect a LAN cable to the laptop right?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Jan 21, 2007 6:19 pm    Post subject: Reply with quote

okasion,

Nope, you can use Windows to download the files you need.
If you don't have a way to get the files to gentoo, USB stick or CDROM, you can borrow your swap partition.
In windows, format you swap as FAT32 and put the files there, Gentoo can read FAT32.

In gentoo, copy the files to /usr/portage/distfiles so emerge finds them. Gentoo will give an error message about the swap. Having copied the files, fix you swap.

This post describes sneakernet but it applies to dual boot boxes too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
okasion
n00b
n00b


Joined: 21 Jan 2007
Posts: 19

PostPosted: Sun Jan 21, 2007 11:52 pm    Post subject: Reply with quote

Thanks. I still dont know where to download gentoo-sources package. Emerge --search and --info says it download it from http://dev.gentoo.org/~dsd/genpatches/ , but I cant find the proper package.
Why it is so difficult to get the kernel headers of the live cd installation on a networkless installation?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Jan 22, 2007 12:01 am    Post subject: Reply with quote

okasion,

Thats the gentoo specific patch set.
Code:
emerge gentoo-sources -fp
gives me
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/distfiles/genpatches-2.6.19-5.base.tar.bz2
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/distfiles/linux-2.6.19.tar.bz2
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/distfiles/genpatches-2.6.19-5.extras.tar.bz2

I have an entry for each mirror in my mirror list but thats one set. Thats the current ~x86 kernel.
Your own
Code:
emerge gentoo-sources -fp
will give different results depending on your ACCEPT_KEYWORD, your arch and how up to date your portage tree is.

Like I say, you need the whole kernel. Gentoo has a separate kernel-headers package, which will be no use to you at all
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
okasion
n00b
n00b


Joined: 21 Jan 2007
Posts: 19

PostPosted: Sun Jan 28, 2007 6:59 pm    Post subject: finally Reply with quote

I downloaded a brand new 2.6-19 kernel from kernel.org and compiled it. Im using it with the gentoo livecd installation and so far everything works fine (works fine as in "it booted!")

Now I was able to correctly build ndiswrapper from sources, the same with wireless-tools.
I did what ndiswrapper installation said, everything is compiled and installed, the ndiswrapper module is loaded against my b44xx inf driver, the b44xx directory in /etc/ndiswrapper/ exists, but iwconfig shows no interface available, I dont know why. Any help would be very appreciated.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Jan 28, 2007 7:40 pm    Post subject: Reply with quote

okasion,

On some hardware you need to 'up' the interface before iwconfig can talk to it.
Thats
Code:
ifconfig <if_name> up

look in
Code:
ifconfig -a
to see if your interface is known to the kernel.

The kernel you fetched from kernel.org is Gentoos' vanillia-sources it will be fine.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
okasion
n00b
n00b


Joined: 21 Jan 2007
Posts: 19

PostPosted: Sun Jan 28, 2007 9:22 pm    Post subject: Reply with quote

its working. I have wireless with a HP 6325 using ndiswrapper & wireless tools on a gentoo live cd installation and latest vanilla kernel. Thanks for your help NeddySeagoon :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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