Hanging in Init

2001-08-02 Thread Mike O'Brien

Thanks...

Since I am trying to use a vxWorks bootloader which sets IMMR
to 0x0220 I added the following code right after interrupts
are turned off in head.S:

lis r4, 0xf000 at ha
addir4, r4, 0xf000 at l
mtspr   IMMR, r4/* initialize the IMMR register */

This seems to work.  The kernel starts to boot but ends up hanging
alittle earlier.  I am not sure yet if the hang is related to these
changes.  Do you see any problem with changing IMMR in the head.S?

Thanks,
Mike

.
.
.
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 20485kB/6828kB, 64 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Machine check in kernel mode.
Caused by (from SRR1=9032): Unknown values in msr
Oops: machine check, sig: 7
NIP: C010D3C8 XER: 2000 LR: C010D368 SP: C01F9E40 REGS: c01f9d90 TRAP:
0200
MSR: 9032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c01f8000[1] 'swapper' Last syscall: 120
last math  last altivec 
GPR00: 000110C0 C01F9E40 C01F8000 001E C008AAC0 C009 C009
0030
GPR08:  0002FD3D C0124DD4 FE04 8424  

GPR16:      C00F C01CDE70
C01F9E48
GPR24: FA00 C01CDE00 9000 C01CDC00 F9C0 F0003C00 F0002A48

Call backtrace:
C010D368 C010C4BC C010C4F8 C010D944 C010A934 C0109C70 C0105830
C0105900 C00023C0 C0004F00

-Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:owner-linuxppc-embedded at lists.linuxppc.org]On Behalf Of Wolfgang
Denk
Sent: Wednesday, August 01, 2001 11:38 AM
To: Mike O'Brien
Cc: linuxppc-embedded at lists.linuxppc.org
Subject: Re: Hanging in Init



In message <000101c11ab4$0fc48f60$6865a8c0 at airfiber.com> you wrote:
>
> 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 0x0220.  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

Sure. Your system will crash as soon as the first  user-land  program
is running.

See
http://penguinppc.org/usr/embedded/howto/PowerPC-Embedded-HOWTO-10.html#ss10
.2

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"The algorithm to do that is extremely nasty. You might want  to  mug
someone with it."   - M. Devine, Computer Science 340



-Original Message-
From: [EMAIL PROTECTED]
[mailto:owner-linuxppc-embedded at lists.linuxppc.org]On Behalf Of Wolfgang
Denk
Sent: Wednesday, August 01, 2001 11:38 AM
To: Mike O'Brien
Cc: linuxppc-embedded at lists.linuxppc.org
Subject: Re: Hanging in Init



In message <000101c11ab4$0fc48f60$6865a8c0 at airfiber.com> you wrote:
>
> 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 0x0220.  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

Sure. Your system will crash as soon as the first  user-land  program
is running.

See
http://penguinppc.org/usr/embedded/howto/PowerPC-Embedded-HOWTO-10.html#ss10
.2

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"The algorithm to do that is extremely nasty. You might want  to  mug
someone with it."   - M. Devine, Computer Science 340


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





Hanging in Init

2001-08-01 Thread Mike O'Brien

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 0x0220.  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 0x118...

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

Linux/PPC load: root=/dev/nfs rw init=/bin/sh
Uncompressing Linux...done.
Now booting the kernel
Linux version 2.4.2_hhl20 (root at 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 = 12375/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 13/2 on 192.168.101.239
Looking up port of RPC 15/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/