PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : gentoo - kernel kompiliert - aber falscher :( hilfe


Gast
2004-12-31, 18:11:05
livecd portage # genkernel all
* Gentoo Linux Genkernel; Version 3.1.0c
* Compiling Linux Kernel 2.4.28 for x86...

* kernel: >> Running mrproper...
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.4
* Previous config backed up to .config.bak
* >> Running oldconfig...
* kernel: >> Cleaning...
* kernel: >> Making dependencies...
* >> Compiling 2.4.28 bzImage...


mit - ich sehe gerade der kompiliert einen s.4er kernel. dabei will ich einen 2.6er kernel - besonders wegen s-ata

was soll ich da jetzt machen?

Capitan
2004-12-31, 18:37:00
einfach die gentoo-dev-sources oder vanilla-dev-sources emergen und den alten kernel wieder unmergen.
du kannst das entweder im laufenden betrieb machen (unter gnome, kde) oder falls du noch bei der installation bist per chroot.
wenn du den 2.4er kernel trotzdem behalten willst kannst du auch einmal den 2.4er und 2.6er in der grub.conf eintragen - dann hast du die wahl.

Gast
2004-12-31, 18:37:23
kam jetzt eh eine fehlermeldung:


.
.
.
.
.
trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=sequencer_syms -DEXPORT_SYMTAB -c sequencer_syms.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=sound_timer -c -o sound_timer.o sound_timer.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=sys_timer -c -o sys_timer.o sys_timer.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=ixj_pcmcia -c -o ixj_pcmcia.o ixj_pcmcia.c
ixj.h:41: warning: `ixj_h_rcsid' defined but not used
/usr/src/linux-2.4.28/include/linux/ixjuser.h:45: warning: `ixjuser_h_rcsid' defined but not used
--
make[3]: Leaving directory `/usr/src/linux-2.4.28/drivers/usb/host'
make -C serial modules
make[3]: Entering directory `/usr/src/linux-2.4.28/drivers/usb/serial'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=omninet -c -o omninet.o omninet.c
matroxfb_g450.c: In function `g450_compute_bwlevel':
matroxfb_g450.c:134: warning: duplicate `const'
matroxfb_g450.c:135: warning: duplicate `const'
--
ld -e stext -r -o sisfb.o sis_main.o init.o init301.o sis_accel.o
make[3]: Leaving directory `/usr/src/linux-2.4.28/drivers/video/sis'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=aty128fb -c -o aty128fb.o aty128fb.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -I../../scsi/ -nostdinc -iwithprefix include -DKBUILD_BASENAME=sddr09 -c -o sddr09.o sddr09.c
aty128fb.c: In function `aty128fb_ioctl':
aty128fb.c:2485: warning: unused variable `fb'
aty128fb.c:2486: warning: unused variable `value'
aty128fb.c:2487: warning: unused variable `rc'
aty128fb.c: At top level:
aty128fb.c:1066: warning: `aty128_set_crt_enable' defined but not used
aty128fb.c:1076: warning: `aty128_set_lcd_enable' defined but not used
--
ld -r -o auerswald.o auerbuf.o auerchain.o auerchar.o auermain.o auerisdn.o auerisdn_b.o
make[2]: Leaving directory `/usr/src/linux-2.4.28/drivers/usb'
make[1]: Leaving directory `/usr/src/linux-2.4.28/drivers'
* Gentoo Linux Genkernel; Version 3.1.0c

* ERROR: Failed to compile the "modules" target...

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
livecd portage #

Gast
2004-12-31, 18:39:40
ich bau mal selber einen kernel

Gast
2004-12-31, 18:42:31
einfach die gentoo-dev-sources oder vanilla-dev-sources emergen und den alten kernel wieder unmergen.
du kannst das entweder im laufenden betrieb machen (unter gnome, kde) oder falls du noch bei der installation bist per chroot.
wenn du den 2.4er kernel trotzdem behalten willst kannst du auch einmal den 2.4er und 2.6er in der grub.conf eintragen - dann hast du die wahl.


also emerge gentoo-dev-sources

und dann selber bauen oder halt genkernel...

Exxtreme
2004-12-31, 19:06:59
Um den 2.6'er Vanilla-Kernel zu nutzen, muss man development-sources emergen. Dann gibt es noch gentoo-dev-sources mit einigen Patches etc. Wenn man "emerge -s sources" eingibt, sieht man alle verfügbaren Kernel. Ich habe gute Erfahrungen mit development-sources und gentoo-dev-sources gemacht.

Gast
2004-12-31, 19:14:08
habe emerge gentoo-dev-sources ausgeführt...

hat nen 2.6er kernel genommen...

aber genkernel fängt wieder mit einem 2.4er an... habe dann abgebrochen...

muss dann wohl selber einen kernel bauen...

hmmmmmmm... wollte mir das heute nicht antuen...

cd /usr/src/linux
make menuconfig

was bedeutet genau m = module im filesystem... kann man stehen lassen oder?

kurze tipps wären nicht schlecht...

Exxtreme
2004-12-31, 19:16:11
Schau auf welches Verzeichnis /usr/src/linux zeigt. :) Es kann sein, daß das Ding immer noch auf die alten Kernel-Sourcen zeigt. In dem Fall müsstest du den Link umbiegen.

Und mit "genkernel --menuconfig all" kann man die Genkernel-Konfiguration anpassen. :)

Gast
2004-12-31, 19:22:59
Schau auf welches Verzeichnis /usr/src/linux zeigt. :) Es kann sein, daß das Ding immer noch auf die alten Kernel-Sourcen zeigt. In dem Fall müsstest du den Link umbiegen.

Und mit "genkernel --menuconfig all" kann man die Genkernel-Konfiguration anpassen. :)

ja das ist die lösung. zeigt auf die alten kernel-sourcen... war da wohl nicht gerade aufmerksam... thx :)

rm /usr/src/linux && ln -s /usr/src/linux-2.4.24 /usr/src/linux

wie ändere ich das jetzt aber um ?

Gast
2004-12-31, 19:27:09
sry - ist glaube ich klar... bin wohl etwas neben der kapppppppp ;D

Exxtreme
2004-12-31, 19:30:54
Mach mal:

ln -s /usr/src/linux /usr/src/linux-2.6.xx-xx

xx durch die richtigen Dinge ersetzen.

Gast
2004-12-31, 19:34:01
livecd linux # rm /usr/src/linux && ln -s /usr/src/gentoo-dev-sources-2.6.9-r13/usr/src/linux
livecd linux # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 37 Dec 31 19:31 /usr/src/linux -> /usr/src/gentoo-dev-sources-2.6.9-r13


habe das jetzt gemacht! geht das nicht?

habe gentoo-dev-sources...

Gast
2004-12-31, 19:36:34
sorry - was tippe ich...

habe hier das gemacht


livecd linux # rm /usr/src/linux && ln -s /usr/src/linux-2.6.9-r13 /usr/src/linux
livecd linux # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 24 Dec 31 19:35 /usr/src/linux -> /usr/src/linux-2.6.9-r13

Exxtreme
2004-12-31, 19:41:00
Gut, jetzt machste "genkernel --menuconfig all" und schon kannst du alles nach Herzenslust anpassen. Schaust halt, daß der Kernel auch für die richtige Prozessorarchitektur erstellt wird (IIRC ist 486 voreingestellt), und daß die benötigten Treiber als Modul oder fest einkompiliert geladen werden.

Gast
2004-12-31, 19:41:25
ivecd linux # genkernel all
* Gentoo Linux Genkernel; Version 3.1.0c
grep: /usr/src/linux/Makefile: Too many levels of symbolic links
grep: /usr/src/linux/Makefile: Too many levels of symbolic links
grep: /usr/src/linux/Makefile: Too many levels of symbolic links
grep: /usr/src/linux/Makefile: Too many levels of symbolic links
* Compiling Linux Kernel .. for x86...

* ERROR: Error: No kernel .config specified, or file not found!

* -- Grepping log... --

* Gentoo Linux Genkernel; Version 3.1.0c

* Compiling Linux Kernel .. for x86...
* Gentoo Linux Genkernel; Version 3.1.0c

* ERROR: Error: No kernel .config specified, or file not found!

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
livecd linux #


mehreres versucht

:((

ich glaube ich lasse es für heute ;D

Gast
2004-12-31, 19:41:51
Gut, jetzt machste "genkernel --menuconfig all" und schon kannst du alles nach Herzenslust anpassen. Schaust halt, daß der Kernel auch für die richtige Prozessorarchitektur erstellt wird (IIRC ist 486 voreingestellt), und daß die benötigten Treiber als Modul oder fest einkompiliert geladen werden.


ok.. versuche das noch

Gast
2004-12-31, 19:42:54
livecd linux # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 3.1.0c
grep: /usr/src/linux/Makefile: Too many levels of symbolic links
grep: /usr/src/linux/Makefile: Too many levels of symbolic links
grep: /usr/src/linux/Makefile: Too many levels of symbolic links
grep: /usr/src/linux/Makefile: Too many levels of symbolic links
* Compiling Linux Kernel .. for x86...

* ERROR: Error: No kernel .config specified, or file not found!

* -- Grepping log... --

* Gentoo Linux Genkernel; Version 3.1.0c

* Compiling Linux Kernel .. for x86...
* Gentoo Linux Genkernel; Version 3.1.0c

* ERROR: Error: No kernel .config specified, or file not found!

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!

Exxtreme
2004-12-31, 19:44:56
Liegt daran, daß er keine Kernel-Config findet. Ich versuche mal eine Kernel-Config anzuhängen.

Edit: Diese Datei kopierst du in dein /usr/src/linux-Verzeichnis und benennst sie in ".config" um. Aber Vorsicht, diese ist für einen 2.6.10-Kernel gemacht worden.

Gast
2004-12-31, 19:50:21
ja danke :)

und wieso findet der keine kernel-config... bin nach der anleitung vorgegangen?

Gast
2004-12-31, 19:53:34
Edit: Diese Datei kopierst du in dein /usr/src/linux-Verzeichnis und benennst sie in ".config" um. Aber Vorsicht, diese ist für einen 2.6.10-Kernel gemacht worden.


naja - dann mach ich halt einfach ein entsprechendes emerge... um auch einen 2.6.10er kernel zu bekommen...

das emerge wäre?

kannst du mir gerade für die bash den kopierbefehl schreiben... bin noch nicht so vertraut mit der bash... nicht, dass ich dann da noch mit rumhänge?

Exxtreme
2004-12-31, 19:57:42
Also um den 2.6.10'er Kernel zu bekommen muss man "ACCEPT_KEYWORDS="~x86" emerge gentoo-dev-sources" eingeben. ACCEPT_KEYWORDS ist zwar böse... aber egal. :D

Kopierbefehl:

cp /OrtderabgespeichertenDatei/config.txt /usr/src/linux/.config

Gast
2004-12-31, 20:08:48
ok danke...

aber warum die config fehlte???

Exxtreme
2004-12-31, 21:03:08
ok danke...

aber warum die config fehlte???
Sie wurde nie erstellt und sie ist nicht standardmässig dabei.

Gast
2004-12-31, 21:08:41
Sie wurde nie erstellt und sie ist nicht standardmässig dabei.


dann müsste das aber im "Handbook" erwähnt sein...


jedenfalls scheint er jetzt den richtigen kernel zu kompilieren...

bin etwas anders vorgegangen als von dir zum beschrieben ziel zu kommen und habe dadurch etwas gelernt :)

danke...


bin mal gespannt ob es funzt...

habe übrigens genkernel --menuconfig all asugeführt aber nichts geändert...

das läuft gerade


livecd linux-2.6.10-gentoo-r1 # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 3.1.0c
* Compiling Linux Kernel 2.6.10-gentoo-r1 for x86...

* kernel: >> Running mrproper...
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.6
* Previous config backed up to .config.bak
* >> Running oldconfig...
* kernel: >> Cleaning...
* config: >> Invoking menuconfig...
#
# using defaults found in .config
#


Your kernel configuration changes were NOT saved.

* >> Compiling 2.6.10-gentoo-r1 bzImage...


bin mal gespannt... bin wohl gleich weg...


guten rutsch und danke...

Exxtreme
2004-12-31, 21:13:37
Wie gesagt, das ist MEINE Kernel-Config. Mit der Option --menuconfig kannst du es nachträglich anpassen. :) Man muss aber auch speichern wenn man was ändert und das hast du nicht gemacht.

Gast
2004-12-31, 21:17:18
Wie gesagt, das ist MEINE Kernel-Config. Mit der Option --menuconfig kannst du es nachträglich anpassen. :) Man muss aber auch speichern wenn man was ändert und das hast du nicht gemacht.


ja - habe auch nichts geändert.

netzwerk (via kt600) geht aber mit deiner config oder?

kompilieren wird wohl lange dauern...

Exxtreme
2004-12-31, 21:19:20
netzwerk (via kt600) geht aber mit deiner config oder?

Weiss ich nicht. Ich habe eigentlich nur 3COM drinne.

Gast
2004-12-31, 21:28:22
hmmmmmmmmmm... meinst du ich soll das kompilieren unterbrechen? falls das netz nicht geht, dann kann ich doch erneut kompilieren (auch wenn es umständlich ist)...



falls ich nichts mehr von dir höre: guten rutsch!!!

Gast
2004-12-31, 21:29:14
ergänzung


Your kernel configuration changes were NOT saved.

* >> Compiling 2.6.10-gentoo-r1 bzImage...
* >> Compiling 2.6.10-gentoo-r1 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.10-gentoo-r1
* dietlibc: >> Compiling...
* >> Installing...
* >> Copying to bincache...
* busybox: >> Configuring...
* busybox: >> Compiling...
* busybox: >> Copying to cache...
* module-init-tools: >> Configuring
* >> Compiling...
* >> Copying to cache...
* devfsd: >> Compiling...
* >> Copying to cache...
* initrd: >> Initializing...
* >> Copying modules...
* >> Copying auxilary files...
* :: Size is at 4140K
* >> Creating loopback filesystem...
* >> Moving initrd files to the loopback...
* >> Cleaning up and compressing the initrd...
* >> No bootsplash detected; skipping!
*
* Kernel compiled successfully!
*
* Required Kernel Parameters:
* root=/dev/ram0 real_root=/dev/$ROOT init=/linuxrc
* ramdisk_size=8192
* [ And "vga=0x317 splash=verbose" if you use a framebuffer ]
*
* Where $ROOT is the device node for your root partition as the
* one specified in /etc/fstab
*
* If you require Genkernel's hardware detection features; you MUST
* tell your bootloader to use the provided initrd file. Otherwise;
* substitute the root argument for the real_root argument if you are
* not planning to use the initrd...
*
* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest genkernel before reporting bugs.


dachte das dauert länger

Exxtreme
2004-12-31, 21:31:17
Jetzt musst du deine /boot/grub.conf anpassen und gut ist's. :)

Gast
2004-12-31, 21:34:32
daja... im handbook folgen andere schritte...

du meinst wohl damit ich den rechner ausschalten kann?

lasse den einfach laufen...

und bin gleich wirklich weg... hätte zwar gerne den rechner jetzt am kompilieren, wo ich eh weg bin... aber was solls


mache dann morgen weiter...

prost

Gast
2005-01-01, 14:02:00
/dev/sda1 1 1275 10241406 7 HPFS/NTFS
/dev/sda2 1276 20023 150593310 f W95 Ext'd (LBA)
/dev/sda5 1276 4463 25607578+ 7 HPFS/NTFS
/dev/sda6 * 4464 4476 104391 83 Linux
/dev/sda7 4477 4668 1542208+ 82 Linux swap / Solaris
/dev/sda8 4669 7218 20482843+ 83 Linux
/dev/sda9 7219 8493 10241406 83 Linux
/dev/sda10 8494 9131 5124703+ 83 Linux
/dev/sda11 9132 10406 10241406 83 Linux
/dev/sda12 10407 14230 30716248+ 7 HPFS/NTFS
/dev/sda13 14231 15505 10241406 7 HPFS/NTFS
/dev/sda14 15506 18054 20474811 7 HPFS/NTFS
/dev/sda15 18055 18693 5132736 7 HPFS/NTFS
/dev/sda16 18694 20023 10683193+ b W95 FAT32



sda1 -> windows xp

sda 6 boot
sda7 swap
sda8 /
sda9 home
sda10 usr



ist die fstab so ok? -> cd-brenner?


/dev/sda6 /boot ext2 noauto,noatime 1 2
/dev/sda7 none swap sw 0 0
/dev/sda8 / ext3 noatime 0 1
/dev/sda9 home ext3 noatime 0 2
/dev/sda10 usr ext3 noatime 0 2


none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0

/dev/cdroms/cdrom0 /mnt/dvdrom auto noauto,user 0 0
/dev/cdroms/cdrom1 /mnt/cdbrenner auto noauto,user 0 0


wie würde man jetzt einen usb-stick einbinden?


grub:

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6
root (hd0,3)
kernel (hd0,3)/kernel-2.6.10-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda8
initrd (hd0,3)/initrd-2.6.10-gentoo-r1

# Nur wenn Sie einen Dual-Boot einrichten möchten
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1



ist die grub.conf so ok?

Gast
2005-01-01, 15:57:16
grub:

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6
root (hd0,5)
kernel (hd0,5)/kernel-2.6.10-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda8
initrd (hd0,5)/initrd-2.6.10-gentoo-r1

# Nur wenn Sie einen Dual-Boot einrichten möchten
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1




also grub geht, nur der bildschirm bleibt schwarz. rat?

kann aber gentoo und win starten!

nur gentoo bootet nicht wirklich...

es kommt die fehlermeldung:

>> block device /dev/sda8 is not a valid root device
>> the root block device is unspecified or not detected. please sepcify a device to boot, or "shell" for a shell

:(

Der Entspannte
2005-01-01, 18:50:15
www.suse.de
www.linuxbu.ch
www.linuxfibel.de

www.gentoo-ist-nichts-für-dich.de

Interessant das alles zu lesen. Anfänger und Windozer nähert sich Linux durch Gentoo an.
Geht es bitte noch didaktisch beschissener?

MfG
P.

Gast
2005-01-01, 19:41:02
www.gentoo-ist-nichts-für-dich.de
Vorher aber bei www.ich-bin-gebannt.de vorbeischauen.