Hanging in Init

2001-08-01 Thread Der Herr Hofrat

>
> MOB> I have been trying to get a custom PPC860 board up using MonteVista's 
> Hard
> MOB> Hat
> MOB> 2.0 distribution using a vxWorks bootrom.  I have made alot of progress 
> in
> MOB> the last
> MOB> few days but have got stuck at the point here init is executed.  The 
> IMMR is
> MOB> set
> MOB> to 0x0220.  I ran across some old posts on the list referring to this
> MOB> being set
> MOB> too low for linux.  Could this be the problem?  If not does anyone have 
> any
> MOB> suggestions on what could be wrong?  Attached is the boot up output from 
> the
> MOB> console.
>
> MOB> Thanks,
> MOB> Mike O'Brien
>
> MOB> Attaching network interface cpm0... done.
> MOB> Attaching network interface lo0... done.
> MOB> Loading... 504934
> MOB> WARNING: CRC mismatch (calculated 0x1a946201 expected 0x017c1f7c)
> MOB> Starting at 0x118...
>
> MOB> loaded at: 0118 0118A1DC
> MOB> relocated to:  0018 0018A1DC
> MOB> board data at: 001801C0 001801DC
> MOB> relocated to:  00200100 0020011C
> MOB> zimage at: 01187000 011F828A
> MOB> avail ram: 00201000 0200
>
> MOB> Linux/PPC load: root=/dev/nfs rw init=/bin/sh
> MOB> Uncompressing Linux...done.
> MOB> Now booting the kernel
> MOB> Linux version 2.4.2_hhl20 (root at palm) (gcc version 2.95.3 20010315
> MOB> (release/Mon1
> MOB> On node 0 totalpages: 8192
> MOB> zone(0): 8192 pages.
> MOB> zone(1): 0 pages.
> MOB> zone(2): 0 pages.
> MOB> Kernel command line: root=/dev/nfs rw init=/bin/sh
> MOB> Decrementer Frequency = 12375/60
> MOB> Warning: real time clock seems stuck!
> MOB> Calibrating delay loop... 32.87 BogoMIPS
> MOB> Memory: 30940k available (864k kernel code, 320k data, 48k init, 0k 
> highmem)
> MOB> Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
> MOB> Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
> MOB> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
> MOB> Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
> MOB> POSIX conformance testing by UNIFIX
> MOB> Calling smp_init()...
> MOB> Calling kernel_thread()...
> MOB> Calling unlock_kernel()...
> MOB> Entered init()...
> MOB> Calling do_basic_setup()...
> MOB> Linux NET4.0 for Linux 2.4
> MOB> Based upon Swansea University Computer Society NET3.039
> MOB> Starting kswapd v1.8
> MOB> i2c-core.o: i2c core module
> MOB> CPM UART driver version 0.03
> MOB> ttyS00 at 0x0280 is a SMC
> MOB> pty: 256 Unix98 ptys configured
> MOB> block: queued sectors max/low 20488kB/6829kB, 64 slots per queue
> MOB> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> MOB> eth0: CPM ENET Version 0.2 on SCC1, 08:00:3e:26:15:59
> MOB> loop: loaded (max 8 devices)
> MOB> NET4: Linux TCP/IP 1.0 for NET4.0
> MOB> IP Protocols: ICMP, UDP, TCP, IGMP
> MOB> IP: routing cache hash table of 512 buckets, 4Kbytes
> MOB> TCP: Hash tables configured (established 2048 bind 2048)
> MOB> Sending BOOTP requests OK
> MOB> IP-Config: Got BOOTP answer from 192.168.101.239, my address is
> MOB> 192.168.101.98
> MOB> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> MOB> Looking up port of RPC 13/2 on 192.168.101.239
> MOB> Looking up port of RPC 15/2 on 192.168.101.239
> MOB> VFS: Mounted root (nfs filesystem).
> MOB> Freeing unused kernel memory: 48k init 4k openfirmware
> MOB> Unlock kernel...
> MOB> Open console...
> MOB> Call /sbin/init...
>

try


Linux/PPC load: root=/dev/nfs rw nfsroot=A.B.C.D:/NFSROOT 
nfsaddrs=IP_OF_TARGET:IP_OF_NFSROOT_SERVER:IP_OF_DEFAULT_GATEWAY:NETMASK

so I use

Linux/PPC load: root=/dev/nfs rw nfsroot=192.168.1.2:/ppc 
nfsaddrs=192.168.1.22:192.168.1.2:192.168.1.8:255.255.255.0

how should it ever find /sbin/init if it never mounts the nfs-root filesystem ?
and from the kernel messages you sent it did not mount any root filesystem .

hofrat

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





Hanging in Init

2001-08-01 Thread Wolfgang Denk

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 Ricardo Scop

Mike,

As far as I know, Linux requires IMMR = 0xF000. Read the file
./Documentation/powerpc/SBC8260_memory_mapping.txt in the Linux source
tree for more information.

[]'s, Scopmailto:scop at digitel.com.br

Wednesday, August 01, 2001, 3:01:59 PM, you wrote:


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

MOB> Thanks,
MOB> Mike O'Brien

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

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

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

MOB> [hang]

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


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





Coffboot & jffs2

2001-08-01 Thread Billalabeitia, Jose Carlos (IndSys, GEPM)

Hi everybody:

I have a PPC860T custom board and it is working
with PPCBoot 0.7.1 and Linux 2.4.4 kernel source
from:

ftp.denx.de/pub/LinuxPPC/usr/src/linux-2.4.4-2001-05-12.tar.bz2

Everything goes fine, but right now I want to use
the flash as a hard-disk through jffs2. The problem
is that I am not able of getting a linux kernel with
coffboot and jffs2 directories, at the same time.

I also have the HardHat 2.0 Journeyman Edition that
comes with jffs2, but it doesn?t have the coffboot
directory, so I can?t create the kernel image to
be booted by PPCBoot. How can I create a kernel
image for the PPCBoot from this distribution ?
Where can I get a linux kernel with these two
features at the same time ?



Thank you


Billa


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





Redirecting printk to a file

2001-08-01 Thread Rod Boyce

Guys,

We are having a bit of a quandary we are trying to redirect the output of
printk from our v24 port to a file in our debug environment / embedded
system so we can use the V24 port for something else.  We are newish to the
world of Linux and cannot seem to figure this our does anybody have any
suggestions?

Regards,
Rod Boyce

** 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/





Redirecting printk to a file

2001-08-01 Thread James Petterson

On Tuesday 31 July 2001 21:11, Dan Malek wrote:
> Rod Boyce wrote:
> > We are having a bit of a quandary we are trying to redirect the output of
> > printk
>
> Don't assign a system console, or bump the loglevel real high.
> Then just use the syslog daemon to move it from the kernel circular
> buffer to a file.  This is all standard Linux stuff.
>
>   -- Dan
For debugging purposes, there's another option that I've found easier to
setup:

1. Set the loglevel to a high priority
echo 1 > /proc/sys/kernel/printk

2. Open a telnet session to your board and, in the opened session:
cat /proc/kmsg

James

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





Where can I configure the base address?

2001-08-01 Thread Masahide Tomita

Hello,

I'm struggling to get the kernel (zvmlinux) run on our custom board with
860T, but I think I get it loaded on wrong address.
I want the kernel starts from address 0x, but I can't figure out
which file to set the base address for memory map.

And, I find System.map file in top directory ./linux-2.2.14 , but it seems
like it's a system map for vmlinux.
I also would like to know how to get the system map of zvmlinux (zImage),
if it's possible.

Thanks in advance.

--

Masahide Tomita

tomita at itl.nyc.co.jp

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