Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel missed my pentium 4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cesar
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2003
Posts: 124

PostPosted: Thu Sep 11, 2003 7:03 am    Post subject: genkernel missed my pentium 4 Reply with quote

Hello all:

I installed Gentoo using the LiveCD I downloaded for x86. I'm using IBM T30 which comes with Pentium 4 and an ATI card, RAM is 768.

When I was trying to get the xfree-drm to compile and load the modules, I had several errors. I found a post in the forums that said the error was because the processor was not 486 or higher. So I went to my .config and listed the processor type and realized it was set to 386.

I thought it was stange. I thought that during the installation genkernel would find and select my P4, but it did not do so. So I recompiled the kernel now selecting P4 and xfree-drm worked OK. Did genkernel select 386 processor because it was the default "x86" type?

This is just the beginning of my .config, the other things I changed were the Toshiba laptop support which was enabled by default! Did I do well, wrong? Are there other things I should watch over that could have been uncorrectly set? Or was everything OK and I'm doing it wrong?

Code:

#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
# CONFIG_LOLAT is not set
# CONFIG_LOLAT_SYSCTL is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M586MMX31 is not set
# CONFIG_M686 is not set
# CONFIG_MPPRO31 is not set
# CONFIG_M68631 is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMIII31 is not set
CONFIG_MPENTIUM4=y
# CONFIG_MPENTIUM431 is not set
# CONFIG_MK6 is not set
# CONFIG_MK6231 is not set
# CONFIG_MK7 is not set
# CONFIG_MK731 is not set
# CONFIG_MXP31 is not set
# CONFIG_MMP31 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_X86_HAS_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_F00F_WORKS_OK=y
# CONFIG_X86_MCE is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_HIGHMEM is not set
CONFIG_1GB=y
# CONFIG_2GB is not set
# CONFIG_3GB is not set
# CONFIG_05GB is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
# CONFIG_SMP is not set
# CONFIG_PREEMPT is not set
# CONFIG_X86_UP_APIC is not set
# CONFIG_X86_UP_IOAPIC is not set
# CONFIG_X86_TSC_DISABLE is not set
CONFIG_X86_TSC=y
Back to top
View user's profile Send private message
cesar
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2003
Posts: 124

PostPosted: Tue Sep 16, 2003 11:37 am    Post subject: Re: genkernel missed my pentium 4 Reply with quote

Well, just for the record...

When I posted the above message I realized I was using the LiveCD for x86, I did not notice there was an "optimized" one for Pentium 4 just in another directory in Gentoo servers.

During the weekend I downloaded that CD which was supposed to be for P4 and reinstalled everything, using again stage 3. I thought this time I would not miss my processor type, but I was very much surprised to see that the .config file in /usr/src/gentoo still had the 386 option on, not any higher number!!! The configuration file was the same as that for x86.

That was with the 2.4.20-gentoo-r5 default sources. After "emerge sync" I got the 2.4.20-gentoo-r7 ones and right away started to recompile. Using genkernel --config I noticed again that it picked the 386 processor along with all sound/video drivers (not just the ones I needed).

I decided to do it myself and forget about genkernel. I typed

Code:

make mrproper
make oldconfig
make menuconfig

and was happy to see that just that 'oldconfig' found my radeon, AC97 sound driver, etc and even picked PentiumIII (not P4???). So I trusted the defaults which seemed to be pretty much OK and continued installation. Many other things were missing like support for reiserfs, fat, etc, which I just included into the kernel itself after somehow careful checking.

When I rebooted, there was a warning saying that Gentoo used DEVFS and that I did not compile it. However I booted OK, no kernel panic or else.

I went back to menuconfig and looked for DEVFS, but it did not appear in the menu (graphical menu). In the .config there was just

Code:

grep DEVFS .config

# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set


I thought of changing it by hand (i.e. editing .config myself) so I wrote
Code:

CONFIG_DEVFS_FS=y


and continue to make dep, but compilation failed!!!

When I used menuconfig and the .config from 2.4.20-gentoo-r5 I could find DEVFS right from the graphical menu under File systems. However, when I used menuconfig with the .config I obtained from "make oldconfig" DEVFS was missing. The graphical menu seemed much different in both cases also.

So I guess I wasted my time all over the weekend trying to "optimize" my system. I went back to the old 2.4.20-gentoo-r5 default configuration file, copied it to 2.4.20-gentoo-r7 directory and just changed the 386 for pentium 4 processor type.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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