Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel 3.0.1 How-to
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Thu Jan 15, 2004 12:54 am    Post subject: genkernel 3.0.1 How-to Reply with quote

A few changes have been made recently to the genkernel package that has changed the way it works. I saw today that genkernel-3.0.1_beta4 became stable So I thought a how to would be appropriate, seeing on how much confusion it has been causing in regards to the "Kernel panic: VFS: unable to mount root fs" error.

The good side of the new genkernel is that it can now integreate bootsplash into the default initrd, as well as new options that were not available in previous versions of genkernel. The bad side is it is a bit more complicated than before


The first thing I would do is to replace the new default config with your old config. If you have been using genkernel 1.8 or older your configs can be found in /etc/kernels/config-2.x.x-sourcename (ex. config-2.6.1-gentoo) otherwise /usr/src/linux/.config

Code:

cp /etc/kernels/config-$(uname -r) /usr/share/genkernel/your arch(x86, x86_64)/kernel-config-2.6
(depending on your kernel use kernel-config-2.4 if running a 2.4 kernel)


Also a good Idea would be to copy your existing kernel

Code:

cp /boot/kernel-2.x.x-source /boot/kernel-failsafe
cp /boot/initrd-2.x.x-source /boot/initrd-failsafe




Genkernel now requires a target. example: genkernel all --clean --mrproper.

The old genkernel --config command will now generate the following showing you the new options:


Code:
     
        all                     Build all steps
        kernel                  Build only kernel and modules (not done yet)
        initrd                  Build only initrd (not done yet)
 
Available Options:
  Debug settings
        --debuglevel=<0-5>      Debug Verbosity Level
        --debugfile=<outfile>   Output file for debug info
        --color                 Output debug in color
        --no-color              Do not output debug in color
  Kernel Compile settings
        --menuconfig            Run menu config after oldconfig
        --no-menuconfig         Do no run menu config after oldconfig
        --mrproper              Run make mrproper before compilation
        --clean                 Run make clean before compilation
        --no-clean              Do not run make clean before compilation
        --no-mrproper           Do not run make mrproper before compilation
        --bootsplash            Install bootsplash to initrd
        --no-bootsplash         Do not use bootsplash
        --install               Install kernel after building
        --no-install            Do not install kernel after building
        --kerneldir=<dir>       Location of kernel source
        --kernel-config=<file>  Kernel configuration file to use for compilation
        --no-initrdmodules      Don't copy modules to initrd
  Low-Level Compile settings
        --kernel-cc=<compiler>  Compiler to use for kernel (e.g. distcc)
        --kernel-ld=<linker>    Linker to use for kernel
        --kernel-as=<assembler> Assembler to use for kernel
        --kernel-make=<makeprg> GNU Make to use for kernel
        --utils-cc=<compiler>   Compiler to use for utils (e.g. busybox, modutils)
        --utils-ld=<linker>     Linker to use for utils
        --utils-as=<assembler>  Assembler to use for utils
        --utils-make=<makeprog> GNU Make to use for utils
        --makeopts=<makeopts>   Make Opts such as -j2, etc
  Internals
        --arch-override=<arch>  Force to arch instead of autodetect (cross-compile?)
        --busybox-config=<file> Busybox configuration file to use
        --busybox-bin=<file>    Don't compile busybox, use this _static_ bzip2'd binary
  Misc Settings
        --max-kernel-size=<k>   Maximum kernel size
        --max-initrd-size=<k>   Maximum initrd size
        --max-kernel-and-initrd-size=<k>        Maximum combined initrd + kernel size
  Output Settings
        --minkernpackage=<tbz2> File to output a .tar.bz2'd kernel and initrd to.
                                These will be renamed to simply 'kernel' and 'initrd'
                                inside the package without any path information.
                                No modules outside of the initrd will be included
 


To simplify things you can edit the genkernel config file in /etc/genkernel.conf

here are the options I like to use in my genkernel.conf:


Code:
 
MENUCONFIG="yes"
CLEAN="yes"
MRPROPER="yes"
BOOTSPLASH="yes"
NOINSTALL="yes"
USECOLOR="yes"



Now instead of typing

Code:

genkernel all --menuconfig --mrproper --bootsplash --clean


I now type:

Code:

genkernel all


Required kernel options:

Code:

Device Drivers > Block Devices

 <*> Loopback device support
 <*> RAM disk support                                                                                     
 (8192) Default RAM disk size                                                                             
 [*] Initial RAM disk (initrd) support

edit::
File systems >
 [*] ext2 file system (for initrd)

File systems > Psudo File Systems

 [*] /dev file system support (OBSOLETE)                       
 [ ]   Automatically mount at boot       
 [*] /dev/pts file system for Unix98 PTYs


Quote:


edit::
Some have had problems with building with genkernel. Before building make sure the following are available in your current kernel. In mine I had loopback as a module and ram disk compiled in. Im thinking it might need loopback and ramdisk support to build the new kernel and initrd.


<M> Loopback device support
<*> RAM disk support
(8192) Default RAM disk size
[*] Initial RAM disk (initrd) support


I will try to test it out soon and porst the results


For Bootsplash to be integrated into the initrd enable the following kernel options. (Assuming you have already emerged bootsplash)

Code:


Device Drivers > Graphics Support >
   [*] Support for frame buffer devices
   [*]   VESA VGA graphics support   

Device Drivers > Graphics Support >  Console display driver support  --->
   [*]   Video mode selection support   
   <*> Framebuffer Console support

Device Drivers > Graphics Support >  Bootsplash configuration  --->
   [*] Bootup splash screen 


New boot options used:

Code:

GRUB:
real_root= needs to point to your root partition
root=  needs to point to the ramdisk (should stay at /dev/ram0)
init= needs to point to the linuxrc file to execute on the ramdisk
vga= should be the resolution you want your screen at  0x317 indicates
      1024x768 - 16bpp   and you'll get a pretty bootsplash if configured properly


Here is where the VFS error comes into play. In the past we did root=/dev/hdx the way the new genkernel does it is root=/dev/ram0 to process the initrd.

Example grub config:


Code:

title=Linux 2.6.1 genkernel
root (hd0,0)
kernel (hd0,4)/boot/kernel-2.6.1-gentoo root=/dev/ram0 init=/linuxrc real_root=/dev/hda7 video=vesa:ywrap,mtrr vga=0x317
initrd (hd0,4)/boot/initrd-2.6.1-gentoo


Last edited by Suicidal on Tue Jan 20, 2004 3:38 am; edited 2 times in total
Back to top
View user's profile Send private message
puddpunk
l33t
l33t


Joined: 20 Jul 2002
Posts: 681
Location: New Zealand

PostPosted: Thu Jan 15, 2004 9:48 pm    Post subject: Reply with quote

Very nice, Suicidal. Quite helpful.

IMO, the best feature of the new genkernel is it's ability to handle the new 2.6 kernels. YESS!!!
Back to top
View user's profile Send private message
Shapierian
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2003
Posts: 88

PostPosted: Thu Jan 15, 2004 10:06 pm    Post subject: Reply with quote

Does this new genkernel support multiple configs? I often play with new patch sets and the old genkernel had configs for each one e.g. /etc/kernels/config-2.6.1-mm2, /etc/kernels/config-2.6.1-love2, etc.
Back to top
View user's profile Send private message
rrrkkkttt
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2003
Posts: 96

PostPosted: Thu Jan 15, 2004 10:51 pm    Post subject: Reply with quote

kernel: gentoo-dev-sources-2.6.1

I followed this guide and I have the bootsplash and framebuffer.. however when I tried doing df -ah :
Code:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hdb3              24G   17G  7.3G  69% /
none                     0     0     0   -  /tmp/.initrd/dev
/dev/hdb3              24G   17G  7.3G  69% /
none                     0     0     0   -  /proc
none                     0     0     0   -  /sys
none                     0     0     0   -  /dev
none                     0     0     0   -  /dev/pts
/dev/fd0              0.0K  0.0K  0.0K   -  /mnt/floppy
none                  125M     0  125M   0% /dev/shm
none                     0     0     0   -  /proc/bus/usb


my root is mounted two times!
and there was some error mesg in dmesg:
Code:

Linux version 2.6.1-gentoo (root@gentoobox) (gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)) #1 Thu Jan 15 14:11:29 PST 2004
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000ffc0000 (usable)
 BIOS-e820: 000000000ffc0000 - 000000000fff8000 (ACPI data)
 BIOS-e820: 000000000fff8000 - 0000000010000000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffb80000 - 00000000ffc00000 (reserved)
 BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
255MB LOWMEM available.
On node 0 totalpages: 65472
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 61376 pages, LIFO batch:14
  HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 AMI                                       ) @ 0x000ff980
ACPI: RSDT (v001 D850MV MV85010A 0x20011114 MSFT 0x00001011) @ 0x0fff0000
ACPI: FADT (v001 D850MV MV85010A 0x20011114 MSFT 0x00001011) @ 0x0fff1000
ACPI: MADT (v001 D850MV MV85010A 0x20011114 MSFT 0x00001011) @ 0x0ffe36ef
ACPI: DSDT (v001 D850MV MV85010A 0x00000004 MSFT 0x0100000b) @ 0x00000000
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 15:2 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
Building zonelist for node : 0
Kernel command line: root=/dev/ram0 init=/linuxrc real_root=/dev/hdb3 video=vesa:ywrap,mtrr vga=0x31A splash=verbose
bootsplash: verbose mode.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 1024 (order 10: 8192 bytes)
Detected 1595.648 MHz processor.
Using tsc for high-res timesource
Console: colour dummy device 80x25
Memory: 253460k/261888k available (2891k kernel code, 7724k reserved, 1205k data, 156k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 3145.72 BogoMIPS
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 668k freed
CPU:     After generic identify, caps: 3febfbff 00000000 00000000 00000000
CPU:     After vendor identify, caps: 3febfbff 00000000 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU:     After all inits, caps: 3febfbff 00000000 00000000 00000080
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU#0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU#0: Thermal monitoring enabled
CPU: Intel(R) Pentium(R) 4 CPU 1.60GHz stepping 04
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1594.0986 MHz.
..... host bus clock speed is 99.0686 MHz.
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfda95, last bus=2
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20031203
ACPI: IRQ9 SCI: Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: Power Resource [FDDP] (off)
ACPI: Power Resource [URP1] (off)
ACPI: Power Resource [URP2] (off)
ACPI: Power Resource [LPTP] (off)
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
Linux Kernel Card Services
  options:  [pci] [cardbus] [pm]
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 5
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 9
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKG] enabled at IRQ 11
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
vesafb: framebuffer at 0xe0000000, mapped to 0xd0807000, size 16384k
vesafb: mode is 1280x1024x16, linelength=2560, pages=24
vesafb: protected mode interface info at c000:550c
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
fb0: VESA VGA frame buffer device
Machine check exception polling timer started.
cpufreq: P4/Xeon(TM) CPU On-Demand Clock Modulation available
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
devfs: v1.22 (20021013) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver 2.1.5 [Flags: R/O].
udf: registering filesystem
Supermount version 2.0.3 for kernel 2.6
ACPI: Power Button (FF) [PWRF]
ACPI: Processor [CPU1] (supports C1)
bootsplash 3.1.3-2003/11/14: looking for picture...... silentjpeg size 75071 bytes, found (1280x1024, 26385 bytes, v3).
Console: switching to colour frame buffer device 153x54
pty: 256 Unix98 ptys configured
lirc_dev: IR Remote Control driver registered, at major 61
Non-volatile memory driver v1.2
hw_random hardware driver 1.0.0 loaded
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
orinoco.c 0.13e (David Gibson <hermes@gibson.dropbear.id.au> and others)
orinoco_cs.c 0.13e (David Gibson <hermes@gibson.dropbear.id.au> and others)
orinoco_pci.c 0.13e (David Gibson <hermes@gibson.dropbear.id.au> & Jean Tourrilhes <jt@hpl.hp.com>)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 0000:00:1f.1
ICH2: chipset revision 4
ICH2: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA
hda: ST380021A, ATA DISK drive
hdb: WDC WD1200JB-00DUA3, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: LITE-ON LTR-52246S, ATAPI CD/DVD-ROM drive
hdd: Pioneer DVD-ROM ATAPIModel DVD-116 0122, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
 /dev/ide/host0/bus0/target0/lun0: p1
hdb: max request size: 1024KiB
hdb: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100)
 /dev/ide/host0/bus0/target1/lun0: p1 p2 p3 p4 < p5 >
hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI 40X DVD-ROM drive, 256kB Cache, UDMA(33)
ohci1394: $Rev$ Ben Collins <bcollins@debian.org>
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[9]  MMIO=[ff9fe800-ff9fefff]  Max Packet=[2048]
raw1394: /dev/raw1394 device initialized
sbp2: $Rev$ Ben Collins <bcollins@debian.org>
Console: switching to colour frame buffer device 153x54
drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
uhci_hcd 0000:00:1f.2: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: irq 5, io base 0000ef40
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
uhci_hcd 0000:00:1f.4: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: irq 9, io base 0000ef80
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
drivers/usb/core/usb.c: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.
drivers/usb/core/usb.c: registered new driver hiddev
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
Advanced Linux Sound Architecture Driver Version 1.0.0rc2.
request_module: failed /sbin/modprobe -- snd-card-0. error = -16
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00023c002106656c]
ALSA device list:
  #0: Sound Blaster Audigy (rev.3) at 0xdf80, irq 11
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET: Registered protocol family 1
NET: Registered protocol family 17
cpufreq: No CPUs supporting ACPI performance management found.
ACPI: (supports S0 S1 S4 S5)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 156k freed
hub 2-0:1.0: new USB device on port 2, assigned address 2
hub 2-2:1.0: USB hub found
hub 2-2:1.0: 4 ports detected
VFS: Can't find ext3 filesystem on dev hdb3.
VFS: Can't find ext2 filesystem on dev hdb3.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev hdb3.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev hdb3.
Unable to identify CD-ROM format.
NTFS-fs error (device hdb3): read_ntfs_boot_sector(): Primary boot sector is invalid.
NTFS-fs error (device hdb3): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device hdb3): ntfs_fill_super(): Not an NTFS volume.
VFS: Can't find a romfs filesystem on dev hdb3.
found reiserfs format "3.6" with standard journal
Reiserfs journal params: device hdb3, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (hdb3) for (hdb3)
Using r5 hash to sort names
Adding 522072k swap on /dev/hdb5.  Priority:-1 extents:1
Real Time Clock Driver v1.12
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel i850 Chipset.
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: AGP aperture is 64M @ 0xf8000000
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
eth0: 0000:02:08.0, 00:03:47:DC:5A:BA, IRQ 11.
  Board assembly 000000-000, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
  General self-test: passed.
  Serial sub-system self-test: passed.
  Internal registers self-test: passed.
  ROM checksum self-test: passed (0x04f4518b).
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[fglrx] Maximum main memory to use for locked dma buffers: 197 MBytes.
[fglrx] module loaded - fglrx 3.2.8 [Sep 21 2003] on minor 0
bootsplash 3.1.3-2003/11/14: looking for picture.... found (1280x1024, 26385 bytes, v3).
bootsplash: status on console 0 changed to on
bootsplash 3.1.3-2003/11/14: looking for picture.... found (1280x1024, 26385 bytes, v3).
bootsplash: status on console 1 changed to on
bootsplash 3.1.3-2003/11/14: looking for picture.... found (1280x1024, 26385 bytes, v3).
bootsplash: status on console 2 changed to on
bootsplash 3.1.3-2003/11/14: looking for picture.... found (1280x1024, 26385 bytes, v3).
bootsplash: status on console 3 changed to on
bootsplash 3.1.3-2003/11/14: looking for picture.... found (1280x1024, 26385 bytes, v3).
bootsplash: status on console 4 changed to on
bootsplash 3.1.3-2003/11/14: looking for picture.... found (1280x1024, 26385 bytes, v3).
bootsplash: status on console 5 changed to on
mtrr: 0xe0000000,0x4000000 overlaps existing 0xe0000000,0x1000000
[fglrx:firegl_addmap] *ERROR* mtrr allocation failed (-22)
[fglrx] AGP detected, AgpState   = 0x1f000217 (hardware caps of chipset)
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode
[fglrx] AGP enabled,  AgpCommand = 0x1f000314 (selected caps)
[fglrx] free  AGP = 54800384
[fglrx] max   AGP = 54800384
[fglrx] free  LFB = 49283072
[fglrx] max   LFB = 49283072
[fglrx] free  Inv = 0
[fglrx] max   Inv = 0
[fglrx] total Inv = 0
[fglrx] total TIM = 0
[fglrx] total FB  = 0
[fglrx] total AGP = 16384
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0).


first off my root is reiserfs and I have no idea how it mounted it as ext2...
Code:

VFS: Mounted root (ext2 filesystem) readonly.


why is it trying to guess the filesystem?
Code:

VFS: Can't find ext3 filesystem on dev hdb3.
VFS: Can't find ext2 filesystem on dev hdb3.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev hdb3.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev hdb3.
Unable to identify CD-ROM format.
NTFS-fs error (device hdb3): read_ntfs_boot_sector(): Primary boot sector is invalid.
NTFS-fs error (device hdb3): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device hdb3): ntfs_fill_super(): Not an NTFS volume.
VFS: Can't find a romfs filesystem on dev hdb3.


finally found the proper root:
Code:

found reiserfs format "3.6" with standard journal
Reiserfs journal params: device hdb3, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (hdb3) for (hdb3)
Using r5 hash to sort names


here's my /etc/fstab:
Code:

# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.13 2003/07/17 19:55:18 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb2      /boot      ext3      noauto,noatime      1 2
/dev/hdb3      /      reiserfs   noatime         0 1
/dev/hdb5      none      swap      sw         0 0
/dev/cdroms/cdrom0   /mnt/cdrw   iso9660      noauto,ro,user      0 0
/dev/cdroms/cdrom1   /mnt/dvd   is09660      noauto,ro,user      0 0
#/dev/hdc      /mnt/cdrw   supermount   dev=/dev/cdroms/cdrom0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850   0 0
#/dev/hdd      /mnt/dvd   supermount   dev=/dev/cdroms/cdrom1,fs=auto,ro,--,iocharset=iso8859-1,codepage=850   0 0
/dev/fd0      /mnt/floppy   supermount   dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850   0 0

# NOTE: The next line is critical for boot!
none         /proc      proc      defaults      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none         /dev/shm   tmpfs      defaults      0 0



and here's my grub.conf:
Code:

default 0
timeout 10
splashimage=(hd0,1)/boot/grub/powered-by.xpm.gz
 
title=Gentoo Linux
root (hd0,1)
kernel (hd0,1)/boot/kernel-2.6.1-gentoo root=/dev/ram0 init=/linuxrc real_root=/dev/hdb3 video=vesa:ywrap,mtrr vga=0x31A splash=verbose
initrd (hd0,1)/boot/initrd-2.6.1-gentoo
 
title=Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1


need some desperate help please....
Back to top
View user's profile Send private message
brantgurga
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2003
Posts: 75
Location: Indianapolis, IN

PostPosted: Thu Jan 15, 2004 11:08 pm    Post subject: Reply with quote

I am having issues with the new genkernel as well. A gripe is that it doesn't save the kernel configuration you last used and reload it each time as the previous version did. Additionally, it keeps not finding the root properly.

/dev/hda2 ext3 /boot
/dev/hda3 reiserfs /

I've tried tinkering with root= and real_root=, but am not successful. I've also tried compiling the filesystems directly into the kernel and that isn't working either.
Back to top
View user's profile Send private message
Nu-Bee_4VR
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 245

PostPosted: Fri Jan 16, 2004 12:00 am    Post subject: Reply with quote

Shapierian wrote:
Does this new genkernel support multiple configs? I often play with new patch sets and the old genkernel had configs for each one e.g. /etc/kernels/config-2.6.1-mm2, /etc/kernels/config-2.6.1-love2, etc.


Yes, it does quite nicely. All you need do is use the command:

Code:
--kernel-config=<file>

_________________
-Joseph-

In the majority of any Democrat/Republican or Liberal/Conservative Debates on TV, pay close attention to how much MORE often the Liberal/Democrat butts in and rudely talks 'over' the Conservative/Republican.

Think about it...
Back to top
View user's profile Send private message
Nu-Bee_4VR
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 245

PostPosted: Fri Jan 16, 2004 12:05 am    Post subject: Reply with quote

NOTE:

The fact that the bootsplash must be read in 16 bit graphics can confuse people, I know it did me for quite a while. The kernel config option:

Code:
VGA 16-color graphics support


...must not be turned on.

I must have compiled 50 times trying to get a bootsplash before I finally turned this off...and got the bootsplash immediately upon reboot.

BTW, this is my grub command line:

Quote:
root=/dev/ram0 init=/linuxrc real_root=/dev/hda7 devfs=mount acpi=ht resume=/dev/hda8 spl
ash=silent vga=788


Both vga=788 and vga=0x314 work. (800x600)
_________________
-Joseph-

In the majority of any Democrat/Republican or Liberal/Conservative Debates on TV, pay close attention to how much MORE often the Liberal/Democrat butts in and rudely talks 'over' the Conservative/Republican.

Think about it...
Back to top
View user's profile Send private message
rrrkkkttt
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2003
Posts: 96

PostPosted: Fri Jan 16, 2004 1:26 am    Post subject: Reply with quote

so is having two root's mounted dangerous?
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Fri Jan 16, 2004 1:41 am    Post subject: Reply with quote

Excellent observation rrrkkkttt

Quote:
so is having two root's mounted dangerous?


Im not sure but I usually mount my / with options notail and here is my output:

Code:
#mount
/dev/hda8 on / type reiserfs (rw,noatime,notail)
/dev/hda8 on / type reiserfs (rw,noatime)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev type devfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)


Im just glad it doesnt automatically mount /boot because If I remember correctly reiserfs doesnt work with grub unless it is mounted with the notail option. I files a bug report to see if this is normal or not.

As far as it mounting root ext2 I am wondering if that is what the initrd is formated in. I get the same message but I dont have any ext2 or ext3 partitions on my system.

Quote:
I am having issues with the new genkernel as well. A gripe is that it doesn't save the kernel configuration you last used and reload it each time as the previous version did. Additionally, it keeps not finding the root properly.


I always compile my / and /boot into the kernel, as far as the default config It's not as good as the one in 1.8, I hope after the beta is done they move the configs back to /etc/kernels/
I also think they need to update the install manual or mask this build, They way it sits right now it is going to confuse alot of n00bs trying gentoo for the first time.


Last edited by Suicidal on Fri Jan 16, 2004 3:34 am; edited 2 times in total
Back to top
View user's profile Send private message
gonzalo
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2004
Posts: 104
Location: CL

PostPosted: Fri Jan 16, 2004 2:27 am    Post subject: Reply with quote

Nu-Bee_4VR wrote:
The fact that the bootsplash must be read in 16 bit graphics can confuse people, I know it did me for quite a while. The kernel config option:
Code:
VGA 16-color graphics support


...must not be turned on.


there's no problem if you set it as module
Back to top
View user's profile Send private message
Nu-Bee_4VR
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 245

PostPosted: Fri Jan 16, 2004 3:15 am    Post subject: Reply with quote

gonzalo wrote:
Nu-Bee_4VR wrote:
The fact that the bootsplash must be read in 16 bit graphics can confuse people, I know it did me for quite a while. The kernel config option:
Code:
VGA 16-color graphics support


...must not be turned on.


there's no problem if you set it as module


Thank you for noting this, I hadn't tried it. I was so frustrated after having compiled so many kernels that I was just happy to finally get it working.

Not this similar thing though; I read in one file that the ATI drivers must be off, but: loading the ATI stuff as drivers also works fine.
_________________
-Joseph-

In the majority of any Democrat/Republican or Liberal/Conservative Debates on TV, pay close attention to how much MORE often the Liberal/Democrat butts in and rudely talks 'over' the Conservative/Republican.

Think about it...
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Sat Jan 17, 2004 1:42 am    Post subject: Reply with quote

In regards to it mounting root twice i havent heard back from bugzilla, but I am wondering if that is the reason that loopback needs to be compiled into the kernel.
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1218

PostPosted: Sat Jan 17, 2004 3:14 am    Post subject: Reply with quote

Suicidal,
can you post bug number?

BTW, I also have root partition mounted twice.
Back to top
View user's profile Send private message
OhSh33t
Apprentice
Apprentice


Joined: 03 Sep 2003
Posts: 169
Location: South-Seattle Park

PostPosted: Sat Jan 17, 2004 2:40 pm    Post subject: Reply with quote

Hey Suicidal,

Thanks for taking the time to write this howto. This was very nicely written. Easy to understand and to the point. Much appreciated.

For all the other Portage Hell that I can't seem to shake on my other server, has all been made better with this nice howto and a boost in Gentoo Moral now that I've got one server completely up to date, (with stable packages that is :D ) and running the new 2.4.22-gentoo-r5 and new genkernel-3.0.1_beta4.

The only part of you directions I wasn't able to apply were the grub vga settings. I have a Compaq with Video buit into the Motherboard. Fun.. Fun... Fun... Having a hard time determining how to set that up. Another day of research. Heh... Heh.. :D

Thanks again.
_________________
JB
Back to top
View user's profile Send private message
olias2
Apprentice
Apprentice


Joined: 23 Aug 2003
Posts: 234
Location: CANADA

PostPosted: Sat Jan 17, 2004 5:26 pm    Post subject: Reply with quote

Thanks Suicidal for this How-to. I followed to the point of 'genkernel all' and got this error...
Code:
GenKernel v3.0.1_beta4-3
* ARCH: x86
* KERNEL VER: 2.6.1-gentoo
* Your kernel does not appear to have loop device support.
* Please 'modprobe loop' if it is a module before running genkernel
* gen_die(): ----Load loop support----
When I try to 'modprobe loop' I get "FATAL: Module loop not found."

BTW, I'm currently using 2.6.0-gentoo sources.

Thanks again for any help, olias
_________________
A wise man realizes that he too is a fool and then humbles himself to learn that which is greater than he.
Back to top
View user's profile Send private message
vortex01
n00b
n00b


Joined: 27 Oct 2003
Posts: 6

PostPosted: Sat Jan 17, 2004 8:19 pm    Post subject: double root mount Reply with quote

It seems as though genkernel does not like Suicidal's suggestion of loopback compiled into the kernel. Genkernel seems to error if it is compiled into kernel.

I too have root partition mounted twice, but however I got there, I can't correct it!! :cry:

Has anyone found correction to this double mount issue?

AdThanksVance,

.vortex


Last edited by vortex01 on Sun Jan 18, 2004 2:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
Nu-Bee_4VR
Apprentice
Apprentice


Joined: 12 Dec 2003
Posts: 245

PostPosted: Sat Jan 17, 2004 10:46 pm    Post subject: Reply with quote

I just found, and am going to add my own comments to this bug:

https://bugs.gentoo.org/show_bug.cgi?id=38360
_________________
-Joseph-

In the majority of any Democrat/Republican or Liberal/Conservative Debates on TV, pay close attention to how much MORE often the Liberal/Democrat butts in and rudely talks 'over' the Conservative/Republican.

Think about it...
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Sun Jan 18, 2004 4:00 am    Post subject: Reply with quote

Quote:

The only part of you directions I wasn't able to apply were the grub vga settings. I have a Compaq with Video buit into the Motherboard. Fun.. Fun... Fun... Having a hard time determining how to set that up. Another day of research. Heh... Heh.


Try the options below on vga=
On my Dell Inspirion laptop I use vga=0x317


Code:

    | 640x480  800x600  1024x768 1280x1024
----+-------------------------------------
256 |  0x301    0x303    0x305    0x307   
32k |  0x310    0x313    0x316    0x319   
64k |  0x311    0x314    0x317    0x31A   
16M |  0x312    0x315    0x318    0x31B   


You might want to try and take ywap and mtrr off of the vesa line if the vid card in the laptop is a bit slow.

First I would try to take off ywrap and then mtrr


Quote:

Suicidal,
can you post bug number?

BTW, I also have root partition mounted twice.


My bug is the one that Nu-Bee_4VR posted at the bottom of the page

https://bugs.gentoo.org/show_bug.cgi?id=38360

Quote:
When I try to 'modprobe loop' I get "FATAL: Module loop not found."


I was reading the readme again it seems you need the following enabled in your current kernel before running genkernel:

Quote:

To build a kernel with GenKernel you must have
"Block devices->Loopback device support"
"Block devices->RAM disk support"


I guess I need to update the howto.
Back to top
View user's profile Send private message
olias2
Apprentice
Apprentice


Joined: 23 Aug 2003
Posts: 234
Location: CANADA

PostPosted: Sun Jan 18, 2004 4:27 am    Post subject: Reply with quote

Suicidal wrote:

Quote:
When I try to 'modprobe loop' I get "FATAL: Module loop not found."

I was reading the readme again it seems you need the following enabled in your current kernel before running genkernel:
Thanks, I figured that may be the case. So what you're saying is that I can't run the new genkernel with my current kernel. Funny that my current kernel was generated with genkernel 1.8 :( . I guess I will have to compile a new kernel the old fashioned way and add the following block devices.
Code:
"Block devices->Loopback device support"
"Block devices->RAM disk support"
Sorry I asked something that you already covered. I stopped reading at the point that I got hung up. I've since gone back and read all your directions and have to say you did a fine job with these details.

olias
_________________
A wise man realizes that he too is a fool and then humbles himself to learn that which is greater than he.
Back to top
View user's profile Send private message
SoulSe
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2003
Posts: 134
Location: South Africa

PostPosted: Sun Jan 18, 2004 9:26 am    Post subject: Reply with quote

For people having problems with their .config dissapearing: Edit /etc/genkernel.conf (after the first compile) and set it to not run mrproper. That should prevent your .config from being wiped out.

The tutorial worked for me, but I am also having problems with the root partition, my root partition is hda3, but on boot, it will only work if I pass hda1 (which is supposed to be /boot) to the kernel. However, no matter what I set as root= in lilo, it does not work.

Also, I have no sound :?
_________________
AMD AthlonXP 2500+
512MB RAM
Geforce FX5700
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Sun Jan 18, 2004 11:26 am    Post subject: loop Reply with quote

I was looking at the cvs it looks like the loop problem is being addressed in beta6.
Back to top
View user's profile Send private message
thc013
n00b
n00b


Joined: 30 Dec 2003
Posts: 18

PostPosted: Sun Jan 18, 2004 1:10 pm    Post subject: Reply with quote

great and the old genkernel 1.8 can't be emerged and now i can't do genernel --config and cant find new option in genkernel to config my kernel with extra options


it is great that new thing are created but it is not made easier to configure your kernel

was way easy run genkernel --config set extra options in your kernel and lets do genkernel the rest but noiw i can't find a qay to do it
Back to top
View user's profile Send private message
s0m3body
n00b
n00b


Joined: 16 Nov 2003
Posts: 11

PostPosted: Sun Jan 18, 2004 1:20 pm    Post subject: Reply with quote

mhodak wrote:

BTW, I also have root partition mounted twice.


are you sure ? ;-)
i would bet that it is just because your real root is mounted over the rootfs (ramfs)
have a look at output of:
cat /proc/mounts

you should see something like:

rootfs / rootfs rw 0 0
/dev/hda1 / reiserfs rw,noatime 0 0

output of df is wrong in this case, it sees two records for '/' in /proc/mounts (or /etc/mtab); then it calls statfs two times and the result is always the same (because the input parameter is '/' in both times)

i don't think that it is dangerous, it may be confusing, thought
it WON'T happen if you are not using initrd because there you mount root partition directly to '/' - but if you have your root partition on a drive where you need a module to be loaded to get an access there (not supported (not in kernel) ide controllers, etc ...)

i believe that you can simply ignore that
Back to top
View user's profile Send private message
thc013
n00b
n00b


Joined: 30 Dec 2003
Posts: 18

PostPosted: Sun Jan 18, 2004 3:13 pm    Post subject: Reply with quote

still get

could not mount initrd filesystem

and have loopback initrd and the other things exlained above but still get that error

and can't emerge genkernel-1.8 to run genkernel --config and have no problems
Back to top
View user's profile Send private message
olias2
Apprentice
Apprentice


Joined: 23 Aug 2003
Posts: 234
Location: CANADA

PostPosted: Sun Jan 18, 2004 6:17 pm    Post subject: Reply with quote

s0m3body wrote:
have a look at output of:
cat /proc/mounts

you should see something like:

rootfs / rootfs rw 0 0
/dev/hda1 / reiserfs rw,noatime 0 0
I finally got this thing working... nice Gentoo splash now :D. But, I too have the root mounted twice when I check #df...
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3              8008148   4364300   3643848  55% /
/dev/hda3              8008148   4364300   3643848  55% /
/dev/hda4             69029192  33139776  35889416  49% /home
none                    452200         0    452200   0% /dev/shm
So I did as s0m3body sugested 'cat /proc/mounts' and mine is different than your output...
Code:
rootfs / rootfs rw 0 0
/dev/root /tmp/.initrd ext2 rw 0 0
none /tmp/.initrd/dev devfs rw 0 0
/dev/hda3 / reiserfs rw,noatime 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev devfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/hda4 /home reiserfs rw,noatime 0 0
none /dev/shm tmpfs rw 0 0
none /proc/bus/usb usbfs rw 0 0
I have 4 primary partitions like this...
hda1 = /boot
hda2 = swap
hda3 = /
hda4 = /home
Can anybody help me understand the output of 'cat /proc/mounts'. Thanks to All for this guide.
_________________
A wise man realizes that he too is a fool and then humbles himself to learn that which is greater than he.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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