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

Re: NSLU2 clock drift



Riku Voipio <riku.voipio <at> iki.fi> writes:
> On Tue, May 22, 2007 at 02:11:59PM +0200, Marcus Better wrote:
> > 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!

> Broken initramfs? Seems libgcc_s.so.1 does not end up in the initramfs on
> arm with glibc 2.5.

Should I file a bug report somewhere? nslu2-utils?

Since the slug is now unbootable, I tried to modify and rebuild the initramfs 
using slugimage on another machine. Is there any solid documentation on this? 
I only found this:
  http://www.nslu2-linux.org/wiki/Debian/BuildImage

I used these steps to rebuild the image:
  find . | cpio -o -H newc | gzip -9 > ../ramdisk-swap.gz
  dd if=ramdisk-swap.gz of=ramdisk-pad.gz ibs=4M conv=sync
  devio '<< ramdisk-pad.gz; xp $ 4' > ramdisk.gz

After flashing the new initramfs with upslug it gets stuck at boot, see the 
attached output.

Marcus


... Resetting.+Ethernet eth0: MAC address 00:13:10:d6:1b:1b
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> boot;exec 0x01d00000
have eRcOmM
copy kernel code from flash to RAM
copy ramdisk file from flash to RAM
run kernel
Using base address 0x01d00000 and length 0x0001ffe0


APEX Boot Loader 1.4.15 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xa78c   (42892 bytes)
  env  => nor:0x7c000+15k         (no-write)

Use the command 'help help' to get started.

# copy -s $kernelsrc $bootaddr
# copy -s fis://kernel 0x00008000
1310688 bytes transferred
# copy -s $ramdisksrc $ramdiskaddr
# copy -s fis://ramdisk 0x01000000
6422512 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
# boot
ATAG_HEADER
ATAG_MEM: start 0x00000000  size 0x02000000
ATAG_CMDLINE: (55 bytes) 'console=ttyS0,115200 rtc-x1205.probe=0,0x6f 
noirqdebug'
ATAG_INITRD2: start 0x01000000  size 0x00400000
ATAG_END
Booting kernel at 0x00008000...




Reply to: