Bug#524441: suspend to RAM stopped working with linux-image-2.6.26-2-686

2009-04-17 Thread Giorgos D. Pallas
Package: linux-image-2.6.26-2-686
Version: 2.6.26-15
Severity: normal


After upgrading my debian testing from linux-image-2.6.26-1-686 to 
linux-image-2.6.26-2-686, suspend to RAM stopped working.
It blacks the screen, it does not turn off, and is completely frozen. It needs 
hard restart...


-- Package-specific info:
** Version:
Linux version 2.6.26-2-686 (Debian 2.6.26-15) (da...@debian.org) (gcc version 
4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Thu Mar 26 01:08:11 UTC 
2009

** Command line:
root=/dev/mapper/evg-root vga=791 ro quiet SELINUX_INIT=NO 

** Tainted: P (1)

** Kernel log:
[   16.556446] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[   16.565936] ACPI: AC Adapter [ADP0] (on-line)
[   16.576438] input: Power Button (FF) as /class/input/input4
[   16.583406] ACPI: Power Button (FF) [PWRF]
[   16.583688] input: Power Button (CM) as /class/input/input5
[   16.586180] ACPI: Power Button (CM) [PWRB]
[   16.586421] input: Lid Switch as /class/input/input6
[   16.596334] ACPI: Lid Switch [LID0]
[   16.596563] input: Sleep Button (CM) as /class/input/input7
[   16.607499] input: PC Speaker as /class/input/input8
[   16.615747] ACPI: Sleep Button (CM) [SLPB]
[   16.621016] ACPI: Battery Slot [BAT0] (battery present)
[   16.623724] input: Video Bus as /class/input/input9
[   16.637800] ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)
[   16.694345] Yenta: CardBus bridge found at :06:04.0 [1558:04a0]
[   16.694646] PCI: Bus 7, cardbus bridge: :06:04.0
[   16.694854]   IO window: 0x4400-0x44ff
[   16.695046]   IO window: 0x4800-0x48ff
[   16.695248]   PREFETCH window: 0x9000-0x903f
[   16.695460]   MEM window: 0x8800-0x8bff
[   16.695655] Yenta: Enabling burst memory read transactions
[   16.695889] Yenta: Using CSCINT to route CSC interrupts to PCI
[   16.696149] Yenta: Routing CardBus interrupts to PCI
[   16.696361] Yenta TI: socket :06:04.0, mfunc 0x0022, devctl 0x64
[   16.705778] NET: Registered protocol family 23
[   16.748265] ieee80211_crypt: registered algorithm 'NULL'
[   16.751216] ieee80211: 802.11 data/management/control stack, git-1.1.13
[   16.751505] ieee80211: Copyright (C) 2004-2005 Intel Corporation 
jketr...@linux.intel.com
[   16.806162] ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 
1.2.2kmprq
[   16.820005] ipw2200: Copyright(c) 2003-2006 Intel Corporation
[   16.928841] Yenta: ISA IRQ mask 0x, PCI irq 22
[   16.938594] Socket status: 3086
[   16.950596] Yenta: Raising subordinate bus# of parent bus (#06) from #06 to 
#0a
[   16.960338] pcmcia: parent PCI bridge I/O window: 0x4000 - 0x4fff
[   16.970016] cs: IO port probe 0x4000-0x4fff: clean.
[   16.980035] pcmcia: parent PCI bridge Memory window: 0xc800 - 0xc80f
[   16.991568] ACPI: PCI Interrupt :00:1b.0[A] - GSI 20 (level, low) - 
IRQ 20
[   16.997968] PCI: Setting latency timer of device :00:1b.0 to 64
[   16.998043] Yenta: CardBus bridge found at :06:04.1 [1558:04a0]
[   17.007902] PCI: Bus 11, cardbus bridge: :06:04.1
[   17.019896]   IO window: 0x4c00-0x4cff
[   17.029714]   IO window: 0x1400-0x14ff
[   17.039562]   PREFETCH window: 0x9040-0x907f
[   17.047073]   MEM window: 0x8c00-0x8fff
[   17.059080] Yenta: Using CSCINT to route CSC interrupts to PCI
[   17.066378] Yenta: Routing CardBus interrupts to PCI
[   17.075872] Yenta TI: socket :06:04.1, mfunc 0x0022, devctl 0x64
[   17.111057] hda_codec: Unknown model for ALC880, trying auto-probe from 
BIOS...
[   17.193090] ACPI: PCI Interrupt :00:1f.3[B] - GSI 19 (level, low) - 
IRQ 19
[   17.316818] Yenta: ISA IRQ mask 0x, PCI irq 21
[   17.326124] Socket status: 3006
[   17.335304] Yenta: Raising subordinate bus# of parent bus (#06) from #0a to 
#0e
[   17.347308] pcmcia: parent PCI bridge I/O window: 0x4000 - 0x4fff
[   17.356664] cs: IO port probe 0x4000-0x4fff: clean.
[   17.366060] pcmcia: parent PCI bridge Memory window: 0xc800 - 0xc80f
[   17.376410] ACPI: PCI Interrupt :06:03.0[A] - GSI 20 (level, low) - 
IRQ 20
[   17.385205] ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
[   17.395561] firmware: requesting ipw2200-bss.fw
[   17.598379] ipw2200: Detected geography ZZR (14 802.11bg channels, 0 802.11a 
channels)
[   17.619296] udev: renamed network interface eth0 to eth2
[   17.707379] input: ImPS/2 Logitech Wheel Mouse as /class/input/input10
[   19.073719] EXT3 FS on dm-1, internal journal
[   20.047551] fuse init (API version 7.9)
[   20.261621] kjournald starting.  Commit interval 5 seconds
[   20.271074] EXT3 FS on hda2, internal journal
[   20.282974] EXT3-fs: mounted filesystem with ordered data mode.
[   20.329764] kjournald starting.  Commit interval 5 seconds
[   20.339771] EXT3 FS on dm-2, internal journal
[   20.351482] EXT3-fs: recovery complete.
[   20.361257] EXT3-fs: mounted filesystem with ordered data mode.
[   20.817316] ip_tables: (C) 

Bug#481104: [Pkg-cryptsetup-devel] /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2008-07-09 Thread Giorgos D. Pallas

David Härdeman wrote:

On Sun, July 6, 2008 17:54, [EMAIL PROTECTED] wrote:
  

maximilian attems wrote:


right send output of
a) sh -x mkinitramfs -o /tmp/foo
b) sh -x update-initramfs -u
  

Sending requested outputs a) - out1, b) - out2



Ok, I see the problem.

During the initramfs build, mkinitramfs will ln -s all config files into
the build dir. Later when the cryptsetup hook is executed it will write
config lines to the cryptroot config file in the build dir (which is
linked to the /etc... file outside the build dir).

I'm not 100% sure how we should solve this (why do you have a cryptroot
file by the way? It's supposed to be a cryptsetup internal config file)


If I understood your question well, my answer is this: I have 
/etc/initramfs-tools/conf.d/*cryptroot containing the line:

**target=lukspace,source=/dev/hda3,key=none,lvm=vg-root*
because I have my root partition sitting on LVM, which sits on LUKS. So, 
somehow the initrd image must know that it has to find a LUKS partition 
and ask me for its passphrase.


I hope I'm not talking nonsense. When I tried to set up encrypted root 
partition, I used googling, a bit hacking and imagination. So, there is 
the possibility that an easier method eludes me.


Cheers,
Giorgos




smime.p7s
Description: S/MIME Cryptographic Signature


Bug#481104: /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2008-05-13 Thread Giorgos D. Pallas
Package: initramfs-tools
Version: 0.92a
Severity: minor
File: /usr/sbin/update-initramfs

Look at that: (updating initrd, duplicates the content of the cryptroot config 
file...)

mordor:/etc/initramfs-tools/conf.d# cat cryptroot
target=lukspace,source=/dev/hda3,key=none,lvm=evg-root
mordor:/etc/initramfs-tools/conf.d#
mordor:/etc/initramfs-tools/conf.d#
mordor:/etc/initramfs-tools/conf.d# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.24-1-686
mordor:/etc/initramfs-tools/conf.d# cat cryptroot
target=lukspace,source=/dev/hda3,key=none,lvm=evg-root
target=lukspace,source=/dev/hda3,key=none,lvm=evg-root
mordor:/etc/initramfs-tools/conf.d# reportbug update-initramfs



-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/evg-root vga=791 ro quiet SELINUX_INIT=NO 

-- /proc/filesystems
ext3
fuseblk

-- lsmod
Module  Size  Used by
michael_mic 2528  6 
arc42016  6 
ecb 3552  6 
ieee80211_crypt_tkip10144  3 
fglrx1542188  20 
vmnet  33524  9 
parport_pc 33668  0 
parport34280  1 parport_pc
vmmon1802156  0 
ipv6  240836  10 
fuse   45204  3 
zc0301 47076  0 
compat_ioctl32  1408  1 zc0301
pcmcia 37036  0 
snd_hda_intel 275264  1 
snd_pcm_oss38272  0 
snd_mixer_oss  15296  1 snd_pcm_oss
snd_pcm71780  2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy   3780  0 
snd_seq_oss29472  0 
snd_seq_midi8160  0 
snd_rawmidi22624  1 snd_seq_midi
snd_seq_midi_event  6976  2 snd_seq_oss,snd_seq_midi
snd_seq46544  6 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer  21092  2 snd_pcm,snd_seq
snd_seq_device  7820  5 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
ipw2200   134568  0 
snd48612  11 
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
gspca 663216  0 
ieee80211  31048  1 ipw2200
ieee80211_crypt 5888  2 ieee80211_crypt_tkip,ieee80211
container   4864  0 
video  18672  0 
output  3744  1 video
firmware_class  9312  2 pcmcia,ipw2200
yenta_socket   24844  2 
rsrc_nonstatic 11872  1 yenta_socket
pcmcia_core36884  3 pcmcia,yenta_socket,rsrc_nonstatic
irtty_sir   8096  0 
soundcore   7552  1 snd
serio_raw   6660  0 
videodev   26304  2 zc0301,gspca
battery13572  0 
ac  6116  0 
button  8432  0 
i2c_i8019232  0 
joydev 11360  0 
sir_dev15460  1 irtty_sir
snd_page_alloc 10056  2 snd_hda_intel,snd_pcm
v4l2_common16608  2 zc0301,videodev
v4l1_compat13220  1 videodev
psmouse36464  0 
iTCO_wdt   11268  0 
pcspkr  3200  0 
i2c_core   22432  1 i2c_i801
intel_agp  23412  0 
agpgart31688  2 fglrx,intel_agp
irda  174236  2 irtty_sir,sir_dev
evdev  11104  8 
crc_ccitt   2176  1 irda
rtc13052  0 
ext3  122888  3 
jbd43732  1 ext3
mbcache 8288  1 ext3
sha256_generic 11040  0 
aes_generic27776  0 
aes_i586   33376  2 
cbc 4416  1 
blkcipher   6724  2 ecb,cbc
dm_crypt   13220  1 
dm_mirror  21600  0 
dm_snapshot16964  0 
dm_mod 55812  10 dm_crypt,dm_mirror,dm_snapshot
ide_cd 36224  0 
cdrom  32512  1 ide_cd
ide_disk   15648  4 
generic 4388  0 [permanent]
ata_piix   17092  0 
usbhid 28096  0 
hid34272  1 usbhid
piix7492  0 [permanent]
ide_core  108292  4 ide_cd,ide_disk,generic,piix
ahci   26084  0 
ata_generic 7428  0 
firewire_ohci  17760  0 
firewire_core  39232  1 firewire_ohci
crc_itu_t   2176  1 firewire_core
libata144464  3 ata_piix,ahci,ata_generic
scsi_mod  141164  1 libata
ehci_hcd   32524  0 
uhci_hcd   23376  0 
usbcore   132940  6 zc0301,gspca,usbhid,ehci_hcd,uhci_hcd
sky2   43172  0 
thermal16028  0 
processor  36520  2 thermal
fan 4772  0 

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no

Bug#445615: linux-image-2.6.22-2-686: package broke my grub menu.lst file

2007-10-07 Thread Giorgos D. Pallas
Package: linux-image-2.6.22-2-686
Version: 2.6.22-4
Severity: grave
Justification: renders package unusable

I had a custom built kernel (2.6.20.10).
This was the conf in the menu.lst file:

title   Debian GNU/Linux, kernel 2.6.20.10
root(hd0,1)
kernel  /boot/vmlinuz-2.6.20.10 root=/dev/hda2 ro
savedefault

After installing the stock kernel (linux-image-2.6.22-2-686) this configuration 
was changed to:


title   Debian GNU/Linux, kernel 2.6.20.10
root(hd0,2)
kernel  /boot/vmlinuz-2.6.20.10 root=/dev/hda3 ro
savedefault

And of course the system could not boot since it is installed in the second 
partition (/dev/hda2).

The configuration which the stock kernel package generated for it self was also 
wrong (it pointed to /dev/hda3, instead of the correct /dev/hda2).

So, I had to manually edit /boot/grub/menu.lst in order to change all (hd0,2) 
back to (hd0,1) and all hda3 back to hda2.

I can't really guess why it thought that the system is installed on /dev/hda3...

-- Package-specific info:
** Version:
Linux version 2.6.22-2-686 (Debian 2.6.22-4) ([EMAIL PROTECTED]) (gcc version 
4.1.3 20070812 (prerelease) (Debian 4.1.2-15)) #1 SMP Fri Aug 31 00:24:01 UTC 
2007

** Tainted: PFSRMB

** Kernel log:
nsc-ircc, Found chip at base=0x02e
nsc-ircc, Wrong chip version ff
nsc-ircc, Found chip at base=0x02e
nsc-ircc, Wrong chip version ff
nsc-ircc, chip-init
nsc-ircc, Found chip at base=0x02e
nsc-ircc, Wrong chip version ff
nsc-ircc, Found chip at base=0x02e
nsc-ircc, Wrong chip version ff
pnp: Device 00:08 disabled.
intel_rng: FWH not detected
Adding 586332k swap on /dev/hda5.  Priority:-1 extents:1 across:586332k
EXT3 FS on hda2, internal journal
loop: module loaded
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: [EMAIL PROTECTED]
fuse init (API version 7.8)
NTFS driver 2.1.28 [Flags: R/W MODULE].
NTFS volume version 3.1.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ACPI: Battery Slot [BAT0] (battery present)
ACPI: AC Adapter [ADP0] (on-line)
input: Power Button (FF) as /class/input/input5
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input6
ACPI: Power Button (CM) [PWRB]
input: Lid Switch as /class/input/input7
ACPI: Lid Switch [LID0]
input: Sleep Button (CM) as /class/input/input8
ACPI: Sleep Button (CM) [SLPB]
vmmon: module license 'unspecified' taints kernel.
/dev/vmmon[3043]: Module vmmon: registered with major=10 minor=165
/dev/vmmon[3043]: Module vmmon: initialized
/dev/vmnet: open called by PID 3076 (vmnet-bridge)
/dev/vmnet: hub 0 does not exist, allocating memory.
/dev/vmnet: port on hub 0 successfully opened
bridge-eth2: peer interface eth2 not found, will wait for it to come up
bridge-eth2: attached
/dev/vmnet: open called by PID 3085 (vmnet-natd)
/dev/vmnet: hub 8 does not exist, allocating memory.
/dev/vmnet: port on hub 8 successfully opened
/dev/vmnet: open called by PID 3086 (vmnet-netifup)
/dev/vmnet: port on hub 8 successfully opened
/dev/vmnet: open called by PID 3110 (vmnet-dhcpd)
/dev/vmnet: port on hub 8 successfully opened
[fglrx] Maximum main memory to use for locked dma buffers: 929 MBytes.
[fglrx] USWC is disabled in module parameters
[fglrx] PAT is disabled!
[fglrx] module loaded - fglrx 8.40.4 [Jul 31 2007] on minor 0
ACPI: PCI Interrupt :01:00.0[A] - GSI 16 (level, low) - IRQ 16
[fglrx] total  GART = 130023424
[fglrx] free   GART = 114032640
[fglrx] max single GART = 114032640
[fglrx] total  LFB  = 134086656
[fglrx] free   LFB  = 84529152
[fglrx] max single LFB  = 84529152
[fglrx] total  Inv  = 134217728
[fglrx] free   Inv  = 134217728
[fglrx] max single Inv  = 134217728
[fglrx] total  TIM  = 0
vmnet8: no IPv6 routers present
bridge-eth2: enabling the bridge
bridge-eth2: up
ieee80211_crypt: registered algorithm 'TKIP'
bridge-eth2: disabling the bridge
bridge-eth2: down
bridge-eth2: enabling the bridge
bridge-eth2: up
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky [EMAIL PROTECTED]
eth2: no IPv6 routers present
usb 4-1: new high speed USB device using ehci_hcd and address 4
usb 4-1: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi4 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 4:0:0:0: Direct-Access WDC WD32 00JB-00KFA0   PQ: 0 ANSI: 0
sd 4:0:0:0: [sda] 625142448 512-byte hardware sectors (320073 MB)
sd 4:0:0:0: [sda] Write Protect is off
sd 4:0:0:0: [sda] Mode Sense: 27 00 00 00
sd 4:0:0:0: [sda] Assuming drive cache: write through
sd 4:0:0:0: [sda] 625142448 512-byte hardware sectors (320073 MB)
sd 4:0:0:0: [sda]