Hello! I am tring to install a LFS(Linux From Scrach) system from the LFS live CD. My system is a Toshiba M45-S169 notebook. and i am having problems with hibernating when i am in the LFS Live CD envoroment creating the LFS system. I read the README file. and did some research on the net but i am unabel of sloving my problem :-( I've created a swap parttion whcih is only for the LFS system. and i started the LFS live CD like "linux resume=/dev/hda5" where hda5 is my swap drive. and after starting the LFS live CD i executed the following commands so it would create swap space from start
(i started sshd on my notebook and got connected to it from a another PC in the LAN and executed the commands so that i could get atleast some of the output in the logs) (and please note that i am not using X when hibernaing) ------------------------------------------------------------------------------------- lfslivecd:root | Wed Dec 20 04:20:24 2006 | ~# mkswap /dev/hda5 Setting up swapspace version 1, size = 625082 kB no label, UUID=0db2090a-a143-4266-81e5-e53a792a8a83 lfslivecd:root | Wed Dec 20 04:20:44 2006 | ~# swapon /dev/hda5 lfslivecd:root | Wed Dec 20 04:20:56 2006 | ~# hibernate Stopping dhcpcd on the eth0 interface... [ OK ] Bringing down the eth0 interface... //Comment //Then of cause i lost the connection. //I manually typed the message that i got on my notebook's screen below... Freezing cups ... Stopping tasks: ==================| Shrinking memory... done (0 pages freed) ACPI: PCI interrupt for device 0000:02:06.0 disabled ACPI: PCI interrupt for device 0000:00:13.2 disabled ACPI: PCI interrupt for device 0000:00:13.1 disabled ACPI: PCI interrupt for device 0000:00:13.0 disabled swsusp: Need to copy 21982 pages swsusp: critical section/: done (21982 pages copied) Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. swsusp: Restoring Highmem ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 16 ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 16 //After this message was displayed the notebook was frozen. but i kind of feel that the CPU has stopped or atleast the fan has stopped. and when i restart he notebook with the pressing of the power button. i noticed that my screen brightness has been reset by the hibernation prosess. anyways although i start the LFS live cd with "linux resume=/dev/hda5" it is not comming to the previous system. it just starts off like normal :-( Anyone knows whats going wrong here? ------------------------------------------------------------------------------------ And i have included the output of the dmesg command, it have some ACPI messages in it... and after that i've put the part of the README of LFS Live CD which talks about Resuming the Build with use of hibernate command. ------------------------------------------------------------------------------------- lfslivecd:root | Wed Dec 20 04:19:28 2006 | ~# dmesg Linux version 2.6.16.28 ([EMAIL PROTECTED]) (gcc version 4.0.3) #1 SMP Sun Sep 10 00:46:36 GMT 2006 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009f800 (usable) BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved) BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000001beb0000 (usable) BIOS-e820: 000000001beb0000 - 000000001beb8000 (ACPI data) BIOS-e820: 000000001beb8000 - 000000001bf00000 (ACPI NVS) BIOS-e820: 000000001bf00000 - 000000001c000000 (reserved) BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved) BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved) BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved) 0MB HIGHMEM available. 446MB LOWMEM available. found SMP MP-table at 000f7890 On node 0 totalpages: 114352 DMA zone: 4096 pages, LIFO batch:0 DMA32 zone: 0 pages, LIFO batch:0 Normal zone: 110256 pages, LIFO batch:31 HighMem zone: 0 pages, LIFO batch:0 DMI present. ATI board detected. Disabling timer routing over 8254. ACPI: RSDP (v000 TOSINV ) @ 0x000f7840 ACPI: RSDT (v001 TOSINV RSDT 0x06040000 LTP 0x00000000) @ 0x1beb428e ACPI: FADT (v001 TOSINV Goldfish 0x06040000 ATI 0x000f4240) @ 0x1beb7ef6 ACPI: MADT (v001 TOSINV APIC 0x06040000 LTP 0x00000000) @ 0x1beb7f6a ACPI: MCFG (v001 TOSINV MCFG 0x06040000 LTP 0x00000000) @ 0x1beb7fc4 ACPI: SSDT (v001 TOSINV Cpu0Cst 0x00003001 INTL 0x20030224) @ 0x1beb44c1 ACPI: SSDT (v001 TOSINV CpuPm 0x00003000 INTL 0x20030224) @ 0x1beb42c6 ACPI: DSDT (v001 TOSINV SB400 0x06040000 MSFT 0x0100000e) @ 0x00000000 ACPI: PM-Timer IO Port: 0x8008 ACPI: Local APIC address 0xfee00000 ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) Processor #0 6:13 APIC version 20 ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1]) ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 1, version 33, address 0xfec00000, GSI 0-23 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 21 low level) ACPI: IRQ0 used by override. ACPI: IRQ2 used by override. Enabling APIC mode: Flat. Using 1 I/O APICs More than 8 CPUs detected and CONFIG_X86_PC cannot handle it. Use CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP. Using ACPI (MADT) for SMP configuration information Allocating PCI resources starting at 20000000 (gap: 1c000000:c4000000) Built 1 zonelists Kernel command line: initrd=initramfs_data_cpio.gz BOOT_IMAGE=linux resume=/dev/hda5 mapped APIC to ffffd000 (fee00000) mapped IOAPIC to ffffc000 (fec00000) Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 2048 (order: 11, 32768 bytes) Detected 1596.096 MHz processor. Using pmtmr for high-res timesource Console: colour VGA+ 80x25 Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 447564k/457408k available (2768k kernel code, 9240k reserved, 1341k data, 296k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 3200.05 BogoMIPS (lpj=16000267) Mount-cache hash table entries: 512 CPU: After generic identify, caps: afe9fbff 00000000 00000000 00000000 00000000 00000000 00000000 CPU: After vendor identify, caps: afe9fbff 00000000 00000000 00000000 00000000 00000000 00000000 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 1024K CPU: After all inits, caps: afe9fbff 00000000 00000000 00000040 00000000 00000000 00000000 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. Checking 'hlt' instruction... OK. CPU0: Intel(R) Celeron(R) M processor 1.60GHz stepping 08 Total of 1 processors activated (3200.05 BogoMIPS). ENABLING IO-APIC IRQs ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1 ..MP-BIOS bug: 8254 timer not connected to IO-APIC ...trying to set up timer (IRQ0) through the 8259A ... failed. ...trying to set up timer as Virtual Wire IRQ... works. Brought up 1 CPUs migration_cost=0 checking if image is initramfs... it is Freeing initrd memory: 185k freed NET: Registered protocol family 16 ACPI: bus type pci registered PCI: PCI BIOS revision 2.10 entry at 0xfd84c, last bus=4 PCI: Using MMCONFIG ACPI: Subsystem revision 20060127 ACPI: Interpreter enabled ACPI: Using IOAPIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) PCI: Probing PCI hardware (bus 00) PCI: Ignoring BAR0-3 of IDE controller 0000:00:14.1 Boot video device is 0000:01:05.0 PCI: Transparent bridge - 0000:00:14.4 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKB] (IRQs 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKC] (IRQs 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKD] (IRQs 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKE] (IRQs 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKF] (IRQs 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKG] (IRQs 10 11) *0, disabled. ACPI: PCI Interrupt Link [LNKH] (IRQs 10 11) *0, disabled. ACPI: Embedded Controller [EC0] (gpe 7) interrupt mode. ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT] ACPI: Power Resource [PFA1] (off) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 10 devices SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report pnp: 00:08: ioport range 0x1080-0x1080 has been reserved pnp: 00:08: ioport range 0x220-0x22f has been reserved pnp: 00:08: ioport range 0x400-0x401 has been reserved pnp: 00:08: ioport range 0x40b-0x40b has been reserved PCI: Bridge: 0000:00:01.0 IO window: 9000-9fff MEM window: c0100000-c01fffff PREFETCH window: d0000000-dfffffff PCI: Bus 3, cardbus bridge: 0000:02:06.0 IO window: 0000a400-0000a4ff IO window: 0000a800-0000a8ff PREFETCH window: 20000000-21ffffff MEM window: 22000000-23ffffff PCI: Bridge: 0000:00:14.4 IO window: a000-afff MEM window: c0200000-c02fffff PREFETCH window: 20000000-21ffffff ACPI: PCI Interrupt 0000:02:06.0[A] -> GSI 19 (level, low) -> IRQ 16 Machine check exception polling timer started. apm: BIOS not found. audit: initializing netlink socket (disabled) audit(1166588119.340:1): initialized Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered ACPI: AC Adapter [ADP0] (on-line) ACPI: Battery Slot [BAT0] (battery present) ACPI: Power Button (FF) [PWRF] ACPI: Power Button (CM) [PWRB] ACPI: Lid Switch [LID] ACPI: Fan [FAN1] (off) Using specific hotkey driver ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3]) ACPI: Processor [CPU0] (supports 8 throttling states) ACPI: Thermal Zone [TZCR] (52 C) ibm_acpi: ec object not found isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Real Time Clock Driver v1.12ac Non-volatile memory driver v1.2 PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12 serio: i8042 AUX port at 0x60,0x64 irq 12 serio: i8042 KBD port at 0x60,0x64 irq 1 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled ACPI: PCI Interrupt 0000:00:14.6[B] -> GSI 17 (level, low) -> IRQ 17 ACPI: PCI interrupt for device 0000:00:14.6 disabled floppy0: no floppy controllers found RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ATIIXP: IDE controller at PCI slot 0000:00:14.1 ACPI: PCI Interrupt 0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 18 ATIIXP: chipset revision 0 ATIIXP: not 100% native mode: will probe irqs later ide0: BM-DMA at 0x8430-0x8437, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0x8438-0x843f, BIOS settings: hdc:DMA, hdd:pio Probing IDE interface ide0... hda: HTS541080G9AT00, ATA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 Probing IDE interface ide1... hdc: MATSHITADVD-RAM UJ-841S, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 hda: max request size: 512KiB hda: 156301488 sectors (80026 MB) w/7539KiB Cache, CHS=16383/255/63, UDMA(100) hda: cache flushes supported hda: hda1 hda3 < hda5 hda6 hda7 hda8 > hdc: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 Loading Adaptec I2O RAID: Version 2.4 Build 5go Detecting Adaptec I2O RAID controllers... Adaptec aacraid driver (1.1-4 Sep 10 2006 00:41:53) scsi: <fdomain> Detection failed (no card) NCR53c406a: no available ports found sym53c416.c: Version 1.0.0-ac qlogicfas: no cards were found, please specify I/O address and IRQ using iobase= and irq= optionsEmulex LightPulse Fibre Channel SCSI driver 8.1.1 Copyright(c) 2004-2005 Emulex. All rights reserved. Failed initialization of WD-7000 SCSI card! megaraid cmm: 2.20.2.6 (Release Date: Mon Mar 7 00:01:03 EST 2005) megaraid: 2.20.4.7 (Release Date: Mon Nov 14 12:27:22 EST 2005) megasas: 00.00.02.04 Fri Feb 03 14:31:44 PST 2006 GDT-HA: Storage RAID Controller Driver. Version: 3.04 GDT-HA: Found 0 PCI Storage RAID Controllers 3ware Storage Controller device driver for Linux v1.26.02.001. 3ware 9000 Storage Controller device driver for Linux v2.26.02.007. nsp32: loading... libata version 1.20 loaded. SCSI Media Changer driver v0.25 Fusion MPT base driver 3.03.07 Copyright (c) 1999-2005 LSI Logic Corporation Fusion MPT SPI Host driver 3.03.07 Fusion MPT FC Host driver 3.03.07 Fusion MPT SAS Host driver 3.03.07 ieee1394: Initialized config rom entry `ip1394' ACPI: PCI Interrupt 0000:02:0a.0[A] -> GSI 19 (level, low) -> IRQ 16 ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[16] MMIO=[c0215800-c0215fff] Max Packet=[2048] IR/IT contexts=[4/8] ieee1394: sbp2: Driver forced to serialize I/O (serialize_io=1) ieee1394: sbp2: Try serialize_io=0 for better performance usbmon: debugfs is not available ACPI: PCI Interrupt 0000:00:13.2[A] -> GSI 19 (level, low) -> IRQ 16 ehci_hcd 0000:00:13.2: EHCI Host Controller ehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:13.2: irq 16, io mem 0xc0002000 ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 8 ports detected ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 19 (level, low) -> IRQ 16 ohci_hcd 0000:00:13.0: OHCI Host Controller ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:13.0: irq 16, io mem 0xc0000000 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 4 ports detected ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 19 (level, low) -> IRQ 16 ohci_hcd 0000:00:13.1: OHCI Host Controller ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:13.1: irq 16, io mem 0xc0001000 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found hub 3-0:1.0: 4 ports detected USB Universal Host Controller Interface driver v2.3 Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. usbcore: registered new driver hiddev usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver mice: PS/2 mouse device common for all mice input: AT Translated Set 2 keyboard as /class/input/input0 input: PC Speaker as /class/input/input1 device-mapper: 4.5.0-ioctl (2005-10-04) initialised: [EMAIL PROTECTED] padlock: VIA PadLock not detected. NET: Registered protocol family 2 IP route cache hash table entries: 4096 (order: 2, 16384 bytes) TCP established hash table entries: 16384 (order: 5, 131072 bytes) TCP bind hash table entries: 16384 (order: 5, 131072 bytes) TCP: Hash tables configured (established 16384 bind 16384) TCP reno registered ip_conntrack version 2.4 (3573 buckets, 28584 max) - 212 bytes per conntrack TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 Using IPI No-Shortcut mode Synaptics Touchpad, model: 1, fw: 6.2, id: 0xa5a0b1, caps: 0xa04713/0x0 synaptics: Toshiba Satellite M45 detected, limiting rate to 40pps. input: SynPS/2 Synaptics TouchPad as /class/input/input2 ACPI wakeup devices: LID OHC1 OHC2 EHCI P2P LANC AUDO MODM ACPI: (supports S0 S3 S4 S5) Freeing unused kernel memory: 296k freed ISO 9660 Extensions: RRIP_1991A ieee1394: Host added: ID:BUS[0-00:1023] GUID[a00d0800d5ce25d1] Linux agpgart interface v0.101 (c) Dave Jones 8139too Fast Ethernet driver 0.9.27 ACPI: PCI Interrupt 0000:02:07.0[A] -> GSI 18 (level, low) -> IRQ 19 eth0: RealTek RTL8139 at 0xa000, 00:a0:d1:25:ce:d5, IRQ 19 eth0: Identified 8139 chip type 'RTL-8100B/8139D' ACPI: PCI Interrupt 0000:02:06.0[A] -> GSI 19 (level, low) -> IRQ 16 Yenta: CardBus bridge found at 0000:02:06.0 [1179:ff10] Yenta: Enabling burst memory read transactions Yenta: Using CSCINT to route CSC interrupts to PCI Yenta: Routing CardBus interrupts to PCI Yenta TI: socket 0000:02:06.0, mfunc 0x01111122, devctl 0x64 Yenta: ISA IRQ mask 0x0ef8, PCI irq 16 Socket status: 30000006 pcmcia: parent PCI bridge I/O window: 0xa000 - 0xafff cs: IO port probe 0xa000-0xafff: clean. pcmcia: parent PCI bridge Memory window: 0xc0200000 - 0xc02fffff pcmcia: parent PCI bridge Memory window: 0x20000000 - 0x21ffffff cs: IO port probe 0x100-0x3af: clean. cs: IO port probe 0x3e0-0x4ff: excluding 0x4d0-0x4d7 cs: IO port probe 0x820-0x8ff: excluding 0x878-0x87f cs: IO port probe 0xc00-0xcf7: excluding 0xc00-0xc07 0xc10-0xc17 0xc50-0xc57 0xc68-0xc6f 0xcd0-0xcdf cs: IO port probe 0xa00-0xaff: clean. eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 ---------------------------------------------------- RESUMING THE BUILD =========================== There is a hint "How to resume your work after a break at different LFS stages" available at: http://www.linuxfromscratch.org/hints/downloads/files/stages-stop-and-resume.txt Instructions from there should work on this CD, however, there is a simpler (but highly experimental) method described below. 1) Make sure you have (or are planning to create) a swap partition not used by other Linux systems installed on your hard drive. The text below assumes that /dev/hda2 is your (existing or planned) swap partition. 2) Pass "resume=/dev/hda2" as one of the kernel arguments when booting this CD. I.e., the complete boot line may look as: linux LANG=ru_RU.UTF-8 TZ=Asia/Yekaterinburg resume=/dev/hda2 3) In chapter 2, the book tells you to create (if you didn't do it already), format that partition with mkswap, and activate it with swapon. Follow the instructions in the book. 4) If you use X window system, take the following into account: * Users of old S3 video cards should uncomment the "EnableVbetool" line in the /etc/hibernate/common.conf file. * Hibernation is incompatible with the proprietary "nvidia" driver. 5) Follow the book as your time permits. 6) When your time runs out, execute the "hibernate" command as root. It is not necessary to stop the compilation, but running this command during a testsuite may lead to failures that would not occur otherwise. NOTE: you must unmount all USB flash drives and all partitions used by other operating systems installed on your computer before hibernating! Don't attempt to mount partitions used by a hibernated system from other systems (even read-only, because there is no true read-only mount on journaled filesystems)! 7) The computer will save its state to your swap partition and power down. This CD will remain in the drive. 8) When you are ready to resume the build, boot this CD again and pass exactly the same "vga=..." and "resume=..." arguments that you used earlier. 9) The computer will load its state from the swap partition and behave as if you didn't power it off at all (except breaking all network connections). The build will automatically continue. The procedure is a bit more complicated if your swap is on a LVM volume or on software RAID. In this case, instead of passing the resume=... argument, you should boot the CD as usual and make actions needed for the kernel to see the swap device (for LVM, that's "vgchange -ay"). After doing that, note the major and minor device number for that device (assigning persistent numbers is highly recommended), and echo them to /sys/power/resume. E.g., for LVM: # ls -lL /dev/myvg/swap brw------- 1 root root 254, 3 2006-07-10 17:51 /dev/myvg/swap # echo 254:3 >/sys/power/resume In the case of the first boot, this will print an error, but store the device numbers to be used for hibernation. Ignore the error and hibernate when needed. On the second boot (i.e., after hibernating), this "echo" command will restore the computer state from the swap device. THANKS
-- http://linuxfromscratch.org/mailman/listinfo/livecd FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
