View previous topic :: View next topic |
Author |
Message |
curator Apprentice
Joined: 10 Apr 2007 Posts: 193
|
Posted: Thu Apr 12, 2007 8:42 am Post subject: ThinkPad X40 |
|
|
Hi,
ich hab ein IBM Thinkpad X40 und versuche zZ einen Kernel dafür zu bauen. Habe allerdings nicht so den Plan von welcher Hardware da so verbaut ist/ welche Kernel module es da so gibt.
Daher meine Frage:
Hat eventuell jemand ein X40 mit aktuellem Gentoo Kernel, und kann mir die config mal schicken.
Hab eine ältere hier gefunden, aber selbst dabei stellt mich make oldconfig vor bömische Dörfer
http://www.mathematik.uni-marburg.de/~dfinke/html/howto.html
MfG
Alex |
|
Back to top |
|
|
Gibheer Guru
Joined: 27 Dec 2004 Posts: 300
|
Posted: Thu Apr 12, 2007 8:53 am Post subject: |
|
|
schau doch mit lspci nach, was alles im Notebook verbaut ist und dann gehst du den kernel schritt fuer schritt durch und schaust was du brauchst und was nicht. Es stehen fast ueberall auch Beschreibungen dazu (wenn man auf help geht). Und so gross ist der kernel garnicht.
Wenn du es trotzdem nicht schaffen solltest, poste hier einfach mal deine Ausgabe von lspci und cat /proc/cpuinfo |
|
Back to top |
|
|
curator Apprentice
Joined: 10 Apr 2007 Posts: 193
|
Posted: Thu Apr 12, 2007 9:04 am Post subject: |
|
|
Ok, ich versuchs übertag mal, sonst schreib ich noch mal, danke |
|
Back to top |
|
|
curator Apprentice
Joined: 10 Apr 2007 Posts: 193
|
Posted: Thu Apr 12, 2007 5:22 pm Post subject: |
|
|
Ok, hat nicht funktioniert, SFS System Error oder so, Kernel Panik (krieg die genaue Fehlermeldung nicht mehr hin, davon abgesehen, hab ich auch nicht viel von dem verstanden, was ich da eingestellt habe.
Hier die Daten:
lspci
Code: |
00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
02:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 8d)
02:00.1 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 13)
02:01.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet Controller
02:02.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
|
cat /proc/cpuinfo
Code: |
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 9
model name : Intel(R) Pentium(R) M processor 1200MHz
stepping : 5
cpu MHz : 1196.134
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up est tm2
bogomips : 2393.62
|
Bin für Lösungen sehr dankbar.
MfG
Alex |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3943 Location: Hamburg
|
Posted: Thu Apr 12, 2007 5:42 pm Post subject: |
|
|
Da gab's mal ein nettes Skript auf der LKML, um aus einem laufenden System heraus eine .config zu erstellen mit den aktuell geladenen Modulen, hier ist es :
Code: | n22 ~ # cat streamline_config-2.pl
#!/usr/bin/perl -w
#
# Copywrite 2005 - Steven Rostedt
#
# This code has no restrictions and NO WARRANTY.
# Use it at your own risk, do what you want with it,
# Just don't blame me.
#
# It's simple enough to figure out how this works.
# If not, then you can ask me at stripconfig@goodmis.org
#
# What it does?
#
# If you have installed a Linux kernel from a distribution
# that turns on way too many modules than you need, and
# you only want the modules you use, then this program
# is perfect for you.
#
# It gives you the ability to turn off all the modules that are
# not loaded on your system.
#
# Howto:
#
# 1. Boot up the kernel that you want to stream line the config on.
# 2. Change directory to the directory holding the source of the
# kernel that you just booted.
# 3. Copy the configuraton file to this directory as .config
# 4. Have all your devices that you need modules for connected and
# operational (make sure that their corresponding modules are loaded)
# 5. Run this script redirecting the output to some other file
# like config_strip.
# 6. Back up your old config (if you want too).
# 7. copy the config_strip file to .config
# 8. Run "make oldconfig"
#
# Now your kernel is ready to be built with only the modules that
# are loaded.
#
# Here's what I did with my Debian distribution.
#
# cd /usr/src/linux-2.6.10
# cp /boot/config-2.6.10-1-686-smp .config
# ~/bin/streamline_config > config_strip
# mv .config config_sav
# mv config_strip .config
# make oldconfig
#
my $config = ".config";
my $linuxpath = ".";
open(CIN,$config) || die "Can't open current config file: $config";
my @makefiles = `find $linuxpath -name Makefile`;
my %objects;
my $var;
my $cont = 0;
foreach my $makefile (@makefiles) {
chomp $makefile;
open(MIN,$makefile) || die "Can't open $makefile";
while (<MIN>) {
my $catch = 0;
if ($cont && /(\S.*)$/) {
$objs = $1;
$catch = 1;
}
$cont = 0;
if (/obj-\$\((CONFIG_[^)]*)\)\s*[+:]?=\s*(.*)/) {
$var = $1;
$objs = $2;
$catch = 1;
}
if ($catch) {
if ($objs =~ m,(.*)\\$,) {
$objs = $1;
$cont = 1;
}
foreach my $obj (split /\s+/,$objs) {
$obj =~ s/-/_/g;
if ($obj =~ /(.*)\.o$/) {
$objects{$1} = $var;
}
}
}
}
close(MIN);
}
my %modules;
open(LIN,"/sbin/lsmod|") || die "Cant lsmod";
while (<LIN>) {
next if (/^Module/); # Skip the first line.
if (/^(\S+)/) {
$modules{$1} = 1;
}
}
close (LIN);
my %configs;
foreach my $module (keys(%modules)) {
if (defined($objects{$module})) {
$configs{$objects{$module}} = $module;
} else {
print STDERR "$module config not found!!\n";
}
}
while(<CIN>) {
if (/^(CONFIG.*)=m/) {
if (defined($configs{$1})) {
print;
} else {
print "# $1 is not set\n";
}
} else {
print;
}
}
close(CIN);
|
|
|
Back to top |
|
|
curator Apprentice
Joined: 10 Apr 2007 Posts: 193
|
Posted: Thu Apr 12, 2007 6:45 pm Post subject: |
|
|
Hey, ich habs hingekriegt. Danke an alle wegen der Hilfe.
Hatte zwi fehler:
a) ext3 als M eingestellt
b) aus dem howTo für grub einac abgeschrieben, musste aber das init/bb weglassen
Also nochmal Danke |
|
Back to top |
|
|
Gibheer Guru
Joined: 27 Dec 2004 Posts: 300
|
Posted: Thu Apr 12, 2007 6:59 pm Post subject: |
|
|
gratulation zum ersten eigenen Kernel ^.^ |
|
Back to top |
|
|
|