[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#426395: initramfs-tools: omission of libgcc_s.so.1 from initramfs makes Linksys NSLU2 unbootable



Package: initramfs-tools
Version: 0.87b
Severity: critical
Tags: patch
Justification: breaks the whole system

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I cross-compiled an arm kernel from linux-source-2.6.21 using make-kpkg. After installing it on my Linksys NSLU2, the system became unbootable. Here is the console output:

Booting kernel at 0x00008000...
Uncompressing
Linux........................................................................
......... done, booting the kernel.
Linux version 2.6.21-slug (2.6.21-2) (marcus <at> melech) (gcc version 4.1.3
20070518 (prerelease) (Debian 4.1.2-8)) #2 Tue May 22 13:35:38 CEST 2007
CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=0000397f
Machine: Linksys NSLU2
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists.  Total pages: 8128
Kernel command line: rtc-x1205.probe=0,0x6f console=ttyS0,115200
rtc-x1205.probe=0,0x6f noirqdebug
IRQ lockup detection disabled
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 25796KB available (2236K code, 213K data, 96K init)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers disabled
dmabounce: registered device 0000:00:01.0 on pci bus
dmabounce: registered device 0000:00:01.1 on pci bus
dmabounce: registered device 0000:00:01.2 on pci bus
NET: Registered protocol family 2
Time: OSTS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 4096K
NetWinder Floating Point Emulator V0.97 (double precision)
audit: initializing netlink socket (disabled)
audit(4.370:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler cfq registered (default)
IXP4xx Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
6 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 6 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00040000 : "RedBoot"
NSLU2 MAC: 00:13:10:d6:1b:1b
0x00040000-0x00060000 : "SysConf"
0x00060000-0x00080000 : "Loader"
0x00080000-0x001e0000 : "Kernel"
0x001e0000-0x007e0000 : "Ramdisk"
0x007e0000-0x00800000 : "FIS directory"
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
x1205 0-006f: chip found, driver version 1.0.7
x1205 0-006f: rtc core: registered x1205 as rtc0
Registered led device: ready
Registered led device: status
Registered led device: disk-1
Registered led device: disk-2
NET: Registered protocol family 26
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
XScale DSP coprocessor detected.
x1205 0-006f: setting the system clock to 2007-05-22 12:03:58 (1179835438)
Freeing init memory: 96K
libgcc_s.so.1 must be installed for pthread_cancel to workKernel panic - not
syncing: Attempted to kill init!


Adding libgcc_s.so.1 to the initramfs and reflashing it solved the problem.

Please see this discussion [1] for more details.

Marcus

[1] http://thread.gmane.org/gmane.linux.debian.ports.arm/4187/focus=4218



- -- Package-specific info:
- -- /proc/cmdline
rtc-x1205.probe=0,0x6f console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug

- -- /proc/filesystems
	cramfs
	ext3
	fuseblk
	reiserfs
	xfs

- -- lsmod
Module                  Size  Used by
des                    19392  1330 
cbc                     4672  1330 
blkcipher               6116  1 cbc
ledtrig_heartbeat       3008  0 
nfs                   267076  0 
nfsd                  238572  17 
exportfs                5696  1 nfsd
lockd                  69912  3 nfs,nfsd
nfs_acl                 3936  2 nfs,nfsd
xfs                   560420  1 
reiserfs              268756  2 
fuse                   46996  1 
rtc_sysfs               4736  0 
rtc_proc                4324  0 
rpcsec_gss_krb5         8876  665 
auth_rpcgss            43172  3 rpcsec_gss_krb5
sunrpc                179632  16 nfs,nfsd,lockd,nfs_acl,rpcsec_gss_krb5,auth_rpcgss
ixp4xx_rng              1728  0 
rng_core                5348  1 ixp4xx_rng
rtc_dev                 7464  0 
ixp4xx_mac             19380  0 
hci_usb                17052  0 
bluetooth              55972  1 hci_usb
evdev                  10496  0 
ixp4xx_qmgr             8460  5 ixp4xx_mac
ixp4xx_npe             14176  2 ixp4xx_mac
firmware_class         10272  1 ixp4xx_npe
ixp4xx_beeper           3520  0 
ext3                  135400  9 
jbd                    59112  1 ext3
mbcache                 9028  1 ext3
sd_mod                 19248  5 
dm_mirror              21652  0 
dm_snapshot            17664  0 
dm_mod                 60844  29 dm_mirror,dm_snapshot
usb_storage            38340  3 
scsi_mod              103428  2 sd_mod,usb_storage
ehci_hcd               32652  0 
ohci_hcd               18404  0 
usbcore               129148  5 hci_usb,usb_storage,ehci_hcd,ohci_hcd

- -- /etc/kernel-img.conf
# Kernel Image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
postinst_hook = flash-kernel


- -- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto


- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: arm (armv5tel)

Kernel: Linux 2.6.21-slug
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.1.3-4  Tiny utilities for small and embed
ii  cpio                          2.7-1      GNU cpio -- a program to manage ar
ii  klibc-utils                   1.4.34-1   small statically-linked utilities 
ii  module-init-tools             3.3-pre4-2 tools for managing Linux kernel mo
ii  udev                          0.105-4    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

- -- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "sv_SE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGWtgWXjXn6TzcAQkRAvqYAKDsPIMCICBQQoR531sLElUUAMb7/gCfcXx3
soMOU0a8dVVsfHrED6KoeuQ=
=n+Hd
-----END PGP SIGNATURE-----



Reply to: