View previous topic :: View next topic |
Author |
Message |
okasion n00b
Joined: 21 Jan 2007 Posts: 19
|
Posted: Sun Jan 21, 2007 5:25 am Post subject: 2006.1 livecd kernel header [SOLVED] |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Jan 21, 2007 3:11 pm Post subject: |
|
|
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
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
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 |
|
|
okasion n00b
Joined: 21 Jan 2007 Posts: 19
|
Posted: Sun Jan 21, 2007 4:28 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Jan 21, 2007 6:19 pm Post subject: |
|
|
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 |
|
|
okasion n00b
Joined: 21 Jan 2007 Posts: 19
|
Posted: Sun Jan 21, 2007 11:52 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
|
Back to top |
|
|
okasion n00b
Joined: 21 Jan 2007 Posts: 19
|
Posted: Sun Jan 28, 2007 6:59 pm Post subject: finally |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Jan 28, 2007 7:40 pm Post subject: |
|
|
okasion,
On some hardware you need to 'up' the interface before iwconfig can talk to it.
Thats Code: | ifconfig <if_name> up |
look in 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 |
|
|
okasion n00b
Joined: 21 Jan 2007 Posts: 19
|
Posted: Sun Jan 28, 2007 9:22 pm Post subject: |
|
|
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 |
|
|
|