linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Hanging in Init
@ 2001-08-01 18:01 Mike O'Brien
  2001-08-01 18:37 ` Wolfgang Denk
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Mike O'Brien @ 2001-08-01 18:01 UTC (permalink / raw)
  To: linuxppc-embedded


I have been trying to get a custom PPC860 board up using MonteVista's Hard
Hat
2.0 distribution using a vxWorks bootrom.  I have made alot of progress in
the last
few days but have got stuck at the point here init is executed.  The IMMR is
set
to 0x02200000.  I ran across some old posts on the list referring to this
being set
too low for linux.  Could this be the problem?  If not does anyone have any
suggestions on what could be wrong?  Attached is the boot up output from the
console.

Thanks,
Mike O'Brien

Attaching network interface cpm0... done.
Attaching network interface lo0... done.
Loading... 504934
WARNING: CRC mismatch (calculated 0x1a946201 expected 0x017c1f7c)
Starting at 0x1180000...

loaded at:     01180000 0118A1DC
relocated to:  00180000 0018A1DC
board data at: 001801C0 001801DC
relocated to:  00200100 0020011C
zimage at:     01187000 011F828A
avail ram:     00201000 02000000

Linux/PPC load: root=/dev/nfs rw init=/bin/sh
Uncompressing Linux...done.
Now booting the kernel
Linux version 2.4.2_hhl20 (root@palm) (gcc version 2.95.3 20010315
(release/Mon1
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/nfs rw init=/bin/sh
Decrementer Frequency = 123750000/60
Warning: real time clock seems stuck!
Calibrating delay loop... 32.87 BogoMIPS
Memory: 30940k available (864k kernel code, 320k data, 48k init, 0k highmem)
Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Calling smp_init()...
Calling kernel_thread()...
Calling unlock_kernel()...
Entered init()...
Calling do_basic_setup()...
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
i2c-core.o: i2c core module
CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
pty: 256 Unix98 ptys configured
block: queued sectors max/low 20488kB/6829kB, 64 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: CPM ENET Version 0.2 on SCC1, 08:00:3e:26:15:59
loop: loaded (max 8 devices)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 192.168.101.239, my address is
192.168.101.98
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 192.168.101.239
Looking up port of RPC 100005/2 on 192.168.101.239
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 48k init 4k openfirmware
Unlock kernel...
Open console...
Call /sbin/init...

[hang]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Hanging in Init
@ 2001-08-02  4:35 Paul Chu
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Chu @ 2001-08-02  4:35 UTC (permalink / raw)
  To: linuxppc-embedded


Hello everyone,

    I have similar problems on my MPC8240 board with kernel 2.4.6.
After kernel mount the rootfs on the disk and execve("/sbin/init"),
the console shows as follows:
    Freeing unused kernel memory: 180k init
    INIT: version 2.77 booting
    Kernel panic: Attempted to kill init!
    Reboot in 180 seconds...
When I reboot the system and kernel runs to execve init, there is
nothing shown on the console after the "Freeing..." message. It seems
that the init program has been modified in the previous booting. And,
at this moment the console is still capable of echo any keys I pressed.
    I replace the init program with my testing progarm (staticly-linked
with libs); I found when I do fork(), the program hangs without
any messages. I added checkpoints in the kernel and found that kernel
completed sys_fork() without errors.
    My rootfs on the disk can be mounted and be kicked-off well with
kernel 2.2.17 on our board. The library is libc-2.1.3.so and ld-2.1.3.so.
My GCC is 2.95.2. The kernel booting messages are attached also.
    Does it have anything to do with memory management setup ? Please
advise me to deal with this. Any comments are welcome. Thank you.

Regards,
Paul Chu

Decompressing kernel....done.
Total memory = 64MB; using 256kB for hash table (at c01c0000)
Linux version 2.4.6 (gcc version 2.95.2 19991024 (1
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
OpenPIC Version 1.2 (1 CPUs and 24 IRQ sources) at fdf40000
time_init: decrementer frequency = 26.214400 MHz
Date from real time clock: 8/2/2001 11:1:53
Calibrating delay loop... 174.48 BogoMIPS
Memory: 62384k available (1172k kernel code, 388k data, 180k init, 0k
highmem)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
VFS: Diskquotas version dquot_6.4.0 initialized
pty: 256 Unix98 ptys configured
Serial driver version 5.05a (2001-03-20) with SHARE_IRQ enabled
ttyS00 at 0x03f8 (irq = 16) is a 16550A
ttyS01 at 0x02f8 (irq = 16) is a 16550A
block: queued sectors max/low 41397kB/13799kB, 128 slots per queue
RAMDISK driver initialized: 16 RAM disks of 24576K size 1024 blocksize
SCSI subsystem driver Revision: 1.00
sym53c8xx: at PCI bus 0, device 18, function 0
sym53c8xx: 53c895 detected
sym53c895-0: rev 0x1 on pci bus 0 device 18 function 0 irq 20
sym53c895-0: ID 7, Fast-40, Parity Checking
sym53c895-0: SCSI bus mode change from 80 to 80.
sym53c895-0: SCSI bus mode change from c0 to c0.
scsi0 : sym53c8xx-1.7.3a-20010304
  Vendor: IBM       Model: DDRS-34560D       Rev: DC1B
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 1, lun 0
sym53c895-0-<1,*>: FAST-20 WIDE SCSI 40.0 MB/s (50.0 ns, offset 15)
SCSI device sda: 8925000 512-byte hdwr sectors (4570 MB)
Partition check:
 sda: sda1 sda2 sda3 sda4
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 180k init
INIT: version 2.77 booting
Kernel panic: Attempted to kill init!


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-08-02 20:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-01 18:01 Hanging in Init Mike O'Brien
2001-08-01 18:37 ` Wolfgang Denk
2001-08-02 16:18   ` Mike O'Brien
2001-08-01 19:57 ` Ricardo Scop
2001-08-01 20:33   ` Der Herr Hofrat
2001-08-02 19:43 ` Jan Roelens
2001-08-02 20:15   ` Mark Hatle
  -- strict thread matches above, loose matches on Subject: below --
2001-08-02  4:35 Paul Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).