Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble Compiling Kernel For New Install
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
ts1971
n00b
n00b


Joined: 06 Oct 2012
Posts: 52

PostPosted: Sat Oct 20, 2012 4:53 am    Post subject: Trouble Compiling Kernel For New Install Reply with quote

Hi,

I'm pretty new to a lot of this stuff so apologies in advance for what are probably silly questions. Anyway, having arrived at the 'Configuring the Kernel' chapter of the install guide I decided to have a go at the Manual Configuration Option. I was able to configure and compile the kernel and copied it to /boot. However, not having a lot of faith that I hadn't messed somethng up with menuconfig I decided to also use genkernel, thinking that if the kernel I created manually didn't work, I would have the genkerneled kernel to fall back on. Unfortunatly the command 'genkernel all' ended with the error you can see in the attached screen shot.

http://i1327.photobucket.com/albums/u672/ts1971/P1000352_zps05f0b830.jpg

So here are my probably silly questions:

(1) does having run menuconfig somehow interfere with subsequently running genkernel? I would imagine that the selections I make in menuconfig are written to a config file somwhere. Does that config file become an input to genkernel? If I hadn't manually created the kernel, might genkernel have worked?

(2) I kicked off the installation with the rescue cd so CTRL-ALT-F7 gives me access to a x environment with a browser (midori) so I can access the forums. However, I can't figure out how to copy data from the installation environment to this environment to include them along with the post? How can I do that? Can I open a terminal and do a chroot or something? I'm kind of paranoid about doing something which will mess up my install. At this point I just want to get a system up and running so that I can start to learn it.

(3) Since I already have the kernel from the first attempt, can I just ignore that compiler error and continue with the installation instructions? Or did it possibly leave my system in a bad state?

Thanks.
Back to top
View user's profile Send private message
piedar
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2010
Posts: 82

PostPosted: Sat Oct 20, 2012 5:52 am    Post subject: Re: Trouble Compiling Kernel For New Install Reply with quote

ts1971 wrote:
(2) I kicked off the installation with the rescue cd so CTRL-ALT-F7 gives me access to a x environment with a browser (midori) so I can access the forums. However, I can't figure out how to copy data from the installation environment to this environment to include them along with the post? How can I do that? Can I open a terminal and do a chroot or something?

Yes, see chapter 6 of the handbook, specifically Code Listing 1.5. Just do that to chroot in to the install from a terminal application.
ts1971 wrote:
(3) Since I already have the kernel from the first attempt, can I just ignore that compiler error and continue with the installation instructions? Or did it possibly leave my system in a bad state?

Just give your kernel a go and see what happens. If something goes wrong, boot the rescue CD again, chroot in, and reconfigure it.
To clean up your kernel sources, you can do a make clean.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat Oct 20, 2012 5:56 am    Post subject: Reply with quote

(1) genkernel failed because the default configuration being supplied at the moment is trying to build a module that has bad source code. nothing you did. to fix: boot cd, mount gentoo partitions, enter the chroot, nominally:
Code:
  mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
then
Code:
mv /usr/src/linux/.config /usr/src/linux/.configold
genkernel --menuconfig all
edit menuconfig to remove the bad module
Quote:
Device Drivers --->
SCSI device support --->
[ ] SCSI low-level drivers --->
which will eliminate the offending <M> LibFC module as well as a lot of SCSI low-level drivers for equipments you don't have. Exit out of menuconfig saving the configuration and allow genkernel to complete.
(2) Easiest is to boot sysresccd to the xfce4 GUI plus terminal and use firefox. network manager icon lower right in desktop. when in the chroot,
Code:
emerge wgetpaste
and use it to post large amounts of data.
(3)You can proceed with the install without the genkernel fix. If you have disk drivers and file systems builtin and get grub right .... good place to visit -- http://kernel-seeds.org/
_________________
Defund the FCC.
Back to top
View user's profile Send private message
ts1971
n00b
n00b


Joined: 06 Oct 2012
Posts: 52

PostPosted: Sat Oct 20, 2012 6:44 am    Post subject: Reply with quote

Thanks Donahue and Piedar. After posting, I did locate the relevant thread with the genkernal fix so now my genkernel completes without issues. I was surprised to see that the genkerneled kernel was actually smaller than the one I built manually. My understanding was that it included 'everything'. Shouldn't it be bigger?

Thanks again.

-ts1971
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat Oct 20, 2012 7:27 am    Post subject: Reply with quote

Never noticed or thought about it, but built as a module means not built in the kernel. all those extra modules end up installed in /lib/modules/<kernel version>/ instead of in the kernel.
_________________
Defund the FCC.
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