linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Linux on 8260 using ELDK..Help?!?
@ 2002-09-04  7:37 Flavio Pereira
  2002-09-04 13:41 ` Wolfgang Denk
  2002-09-04 13:55 ` Allen Curtis
  0 siblings, 2 replies; 11+ messages in thread
From: Flavio Pereira @ 2002-09-04  7:37 UTC (permalink / raw)
  To: linuxppc-embedded


Hi All
 
I'm a _newbie_ to Linux and am busy porting Linux to a MPC8260ADS board. PPCBoot is working fine and the Linux kernel seems to boot up okay up and till the point where it begins to load init, it then crashes. The trace is shown below. I've also tried forcing sh and bash as the start-up but these also fail with similar errors. I'm using the binaries provided by the ELDK development package. Also my changes to the base kernel code (2.4.4) are minimal and are limited to uart.c (force SCC1 as serial port) and tty_io.c (don't call rs_8xx_init). Can anyone please point me in the right direction...? If the information above is not sufficient please let me know what more I could provide. Something tries to restart the system and then it crashes on trying to reboot. Someone please tell me what I should be looking at?

 
Dump: Cut here
 
## Booting image at 00100000 ...
   Image Name:   Linux-2.4.4
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    458345 Bytes = 447 kB = 0 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
 
Total memory = 16MB; using 0kB for hash table (at 00000000)
Linux version 2.4.4 (root@gladiator) (gcc version 2.95.3 20010315 (release)) #10
Tue Sep 3 09:27:13 SAST 2002
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/nfs rw console=ttyS0 nfsroot=192.168.1.58:/usr/lo
cal/eldk/ppc_82xx ip=192.168.1.246:192.168.1.58
Warning: real time clock seems stuck!
Calibrating delay loop... 87.85 BogoMIPS
Memory: 14796k available (872k kernel code, 356k data, 52k init, 0k highmem)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
block: queued sectors max/low 9746kB/3248kB, 64 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: FCC ENET Version 0.2, 00:00:00:40:00:01
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 1024 bind 1024)
IP-Config: Guessing netmask 255.255.255.0
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 192.168.1.58
Looking up port of RPC 100005/2 on 192.168.1.58
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 52k init
reeing unused kernel memory: 52k init
Freeing unused kernel memory: 52k init
Warning: unable to open an initial console.
Restarting system.
Oops: machine check, sig: 7
NIP: 40000104 XER: 20000000 LR: 40000104 SP: C0CC1D50 REGS: c0cc1ca0 TRAP: 0200
MSR: 00041000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
TASK = c0cc0000[64] 'reboot' Last syscall: 162
last math c0cc0000 last altivec 00000000
GPR00: 00001032 C0CC1D50 C0CC0000 0012FE08 40000104 00001002 00003860 00000000
GPR08: F0000088 C0130000 0000C000 00000088 4422404C 10019924 00000000 100D4550
GPR16: 100D4790 00000003 7FFFFD0C 00000000 00009032 00CC1E80 00000000 C0003E2C
GPR24: C0003B60 00000001 00000001 00000000 00000000 10010000 00000000 40000104
Call backtrace:
00000003 

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

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

* Re: Linux on 8260 using ELDK..Help?!?
  2002-09-04  7:37 Flavio Pereira
@ 2002-09-04 13:41 ` Wolfgang Denk
  2002-09-04 13:58   ` Allen Curtis
  2002-09-04 13:55 ` Allen Curtis
  1 sibling, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2002-09-04 13:41 UTC (permalink / raw)
  To: Flavio Pereira; +Cc: linuxppc-embedded


Dear flavio,

in message <1E354700654661418593A0D6B5A9D41008943B@mail.azisa.co.za> you wrote:
>
> I'm a _newbie_ to Linux and am busy porting Linux to a MPC8260ADS
> board. PPCBoot is working fine and the Linux kernel seems to boot up
> okay up and till the point where it begins to load init, it then
> crashes. The trace is shown below. I've also tried forcing sh and

Did you fix the IMMR mapping in PPCBoot? The  CFG_DEFAULT_IMMR  defi-
nition  will  NOT  work with LInux; see the Linux memory map require-
ments - You _must_ map the IMMR at 0xF0000000 or above.

> bash as the start-up but these also fail with similar errors. I'm
> using the binaries provided by the ELDK development package. Also my
> changes to the base kernel code (2.4.4) are minimal and are limited
> to uart.c (force SCC1 as serial port) and tty_io.c (don't call
> rs_8xx_init). Can anyone please point me in the right direction...?

Are you sure this was done well?

> If the information above is not sufficient please let me know what
> more I could provide. Something tries to restart the system and then
> it crashes on trying to reboot. Someone please tell me what I should
> be looking at?

...
> Freeing unused kernel memory: 52k init

Looks good so far.

> Warning: unable to open an initial console.

Did you run the ELDK_MAKEDEV and ELDK_FIXPERM scripts as documented?

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
In C we had to code our own bugs, in C++ we can inherit them.

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

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

* RE: Linux on 8260 using ELDK..Help?!?
  2002-09-04  7:37 Flavio Pereira
  2002-09-04 13:41 ` Wolfgang Denk
@ 2002-09-04 13:55 ` Allen Curtis
  1 sibling, 0 replies; 11+ messages in thread
From: Allen Curtis @ 2002-09-04 13:55 UTC (permalink / raw)
  To: Flavio Pereira, linuxppc-embedded


> Warning: unable to open an initial console.
> Restarting system.
> Oops: machine check, sig: 7

Looks like you are missing the console device. Check your /dev
configuration.


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

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

* RE: Linux on 8260 using ELDK..Help?!?
  2002-09-04 13:41 ` Wolfgang Denk
@ 2002-09-04 13:58   ` Allen Curtis
  2002-09-04 16:08     ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Allen Curtis @ 2002-09-04 13:58 UTC (permalink / raw)
  To: Wolfgang Denk, Flavio Pereira; +Cc: linuxppc-embedded


> Did you fix the IMMR mapping in PPCBoot? The  CFG_DEFAULT_IMMR  defi-
> nition  will  NOT  work with LInux; see the Linux memory map require-
> ments - You _must_ map the IMMR at 0xF0000000 or above.

If he got this far in the boot, the IMMR is working.

> > Warning: unable to open an initial console.
>
> Did you run the ELDK_MAKEDEV and ELDK_FIXPERM scripts as documented?

Looks like this is the problem....

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

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

* RE: Linux on 8260 using ELDK..Help?!?
       [not found] <1E354700654661418593A0D6B5A9D410A3618E@mail.azisa.co.za>
@ 2002-09-04 14:40 ` Pete McCormick
  2002-09-04 16:10 ` Wolfgang Denk
  1 sibling, 0 replies; 11+ messages in thread
From: Pete McCormick @ 2002-09-04 14:40 UTC (permalink / raw)
  To: Flavio Pereira; +Cc: linuxppc-embedded


Flavio,

What do your file permissions look like on /dev/ttyS0?  Do you have read and
write access enabled?

Pete

P.S.  I am also using the linux 2.4.18 kernel on the MPC8260ADS board, so I
might be able to help on further issues...

--- Flavio Pereira <fpereira@azisa.com> wrote:
>
> Hi Wolfgang
>
> Firstly let me say thanks for your response.
>
> >Did you fix the IMMR mapping in PPCBoot? The  CFG_DEFAULT_IMMR  defi-
> >nition  will  NOT  work with LInux; see the Linux memory map require-
> >ments - You _must_ map the IMMR at 0xF0000000 or above.
>
> Yes I have fixed to IMMR mappings in PPCBoot to correspond to 0xF0000000
>
> > Are you sure this was done well?
>
> Well _no_ I'm not sure this was done well but I can tell you exactly
> what I have done. For uart.c I've completely removed SMC1 and SMC2 from
> serial_state rs_table and rs_brg_map[]. If I don't remove this my serial
> port does not come up at all initially. For tty_io.c I simply to do not
> call rs_8xx_init because it kills my serial port, i.e. if I let it this
> code execute there is no more output on my serial terminal.
>
> > Did you run the ELDK_MAKEDEV and ELDK_FIXPERM scripts as documented?
> I've run ELDK_MAKEDEV, so the dev/console file does exist and I've also
> run ELDK_FIXOWNER. I'm guessing that FIXOWNER = FIXPERM.
>
> Also in my var\log\messages I get the following...so init is trying to
> execute:
>
> Dec 31 19:00:13 192 kernel: Warning: unable to open an initial console.
> Dec 31 19:00:13 192 /sbin/mingetty[133]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:06 192 rc.sysinit: Mounting proc filesystem:  succeeded
> Dec 31 19:00:06 192 sysctl: net.ipv4.ip_forward = 0
> Dec 31 19:00:06 192 sysctl: net.ipv4.conf.all.rp_filter = 1
> Dec 31 19:00:07 192 sysctl: error: 'net.ipv4.ip_always_defrag' is an
> unknown key
> Dec 31 19:00:07 192 sysctl: error: 'kernel.sysrq' is an unknown key
> Dec 31 19:00:07 192 rc.sysinit: Configuring kernel parameters:
> succeeded
> Dec 31 19:00:07 192 date: Wed Dec 31 19:00:06 EST 1969
> Dec 31 19:00:07 192 rc.sysinit: Setting clock : Wed Dec 31 19:00:06 EST
> 1969 succeeded
> Dec 31 19:00:07 192 swapon: swapon: cannot open /etc/fstab: No such file
> or directory
> Dec 31 19:00:07 192 rc.sysinit: Activating swap partitions:  failed
> Dec 31 19:00:07 192 rc.sysinit: Setting hostname 192.168.1.246:
> succeeded
> Dec 31 19:00:10 192 rc.sysinit: Checking filesystems succeeded
> Dec 31 19:00:10 192 fsck: Checking all file systems.
> Dec 31 19:00:10 192 rc.sysinit: Mounting local filesystems:  failed
> Dec 31 19:00:10 192 fsck: WARNING: couldn't open /etc/fstab: No such
> file or directory
> Dec 31 19:00:10 192 mount: can't create lock file /etc/mtab~62:
> Permission denied (use -n flag to override)
> Dec 31 19:00:11 192 rc.sysinit: Enabling swap space:  succeeded
> Dec 31 19:00:11 192 init: can't open(/etc/ioctl.save, O_WRONLY):
> Permission denied
> Dec 31 19:00:13 192 /sbin/mingetty[134]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:11 192 init: Entering runlevel: 3
> Dec 31 19:00:14 192 /sbin/mingetty[135]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[136]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[137]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[138]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[139]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[140]: /dev/ttyS0: Operation not
> permitted
>
> Regards,
> Flavio
>
> -----Original Message-----
> From: Wolfgang Denk [mailto:wd@denx.de]
> Sent: Wednesday, September 04, 2002 3:41 PM
> To: Flavio Pereira
> Cc: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: Linux on 8260 using ELDK..Help?!?
>
> Dear flavio,
>
> in message <1E354700654661418593A0D6B5A9D41008943B@mail.azisa.co.za> you
> wrote:
> >
> > I'm a _newbie_ to Linux and am busy porting Linux to a MPC8260ADS
> > board. PPCBoot is working fine and the Linux kernel seems to boot up
> > okay up and till the point where it begins to load init, it then
> > crashes. The trace is shown below. I've also tried forcing sh and
>
> Did you fix the IMMR mapping in PPCBoot? The  CFG_DEFAULT_IMMR  defi-
> nition  will  NOT  work with LInux; see the Linux memory map require-
> ments - You _must_ map the IMMR at 0xF0000000 or above.
>
> > bash as the start-up but these also fail with similar errors. I'm
> > using the binaries provided by the ELDK development package. Also my
> > changes to the base kernel code (2.4.4) are minimal and are limited
> > to uart.c (force SCC1 as serial port) and tty_io.c (don't call
> > rs_8xx_init). Can anyone please point me in the right direction...?
>
> Are you sure this was done well?
>
> > If the information above is not sufficient please let me know what
> > more I could provide. Something tries to restart the system and then
> > it crashes on trying to reboot. Someone please tell me what I should
> > be looking at?
>
> ...
> > Freeing unused kernel memory: 52k init
>
> Looks good so far.
>
> > Warning: unable to open an initial console.
>
> Did you run the ELDK_MAKEDEV and ELDK_FIXPERM scripts as documented?
>
> Wolfgang Denk
>
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
> In C we had to code our own bugs, in C++ we can inherit them.
>
>

Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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

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

* RE: Linux on 8260 using ELDK..Help?!?
@ 2002-09-04 14:56 Flavio Pereira
  0 siblings, 0 replies; 11+ messages in thread
From: Flavio Pereira @ 2002-09-04 14:56 UTC (permalink / raw)
  To: Pete McCormick; +Cc: linuxppc-embedded


Hi Pete

Yes, both the read and write permissions are enabled for console and
tty0 in dev...

Flavio

-----Original Message-----
From: Pete McCormick [mailto:pete261@yahoo.com]
Sent: Wednesday, September 04, 2002 4:40 PM
To: Flavio Pereira
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: RE: Linux on 8260 using ELDK..Help?!?


Flavio,

What do your file permissions look like on /dev/ttyS0?  Do you have read
and
write access enabled?

Pete

P.S.  I am also using the linux 2.4.18 kernel on the MPC8260ADS board,
so I
might be able to help on further issues...

--- Flavio Pereira <fpereira@azisa.com> wrote:
>
> Hi Wolfgang
>
> Firstly let me say thanks for your response.
>
> >Did you fix the IMMR mapping in PPCBoot? The  CFG_DEFAULT_IMMR  defi-
> >nition  will  NOT  work with LInux; see the Linux memory map require-
> >ments - You _must_ map the IMMR at 0xF0000000 or above.
>
> Yes I have fixed to IMMR mappings in PPCBoot to correspond to
0xF0000000
>
> > Are you sure this was done well?
>
> Well _no_ I'm not sure this was done well but I can tell you exactly
> what I have done. For uart.c I've completely removed SMC1 and SMC2
from
> serial_state rs_table and rs_brg_map[]. If I don't remove this my
serial
> port does not come up at all initially. For tty_io.c I simply to do
not
> call rs_8xx_init because it kills my serial port, i.e. if I let it
this
> code execute there is no more output on my serial terminal.
>
> > Did you run the ELDK_MAKEDEV and ELDK_FIXPERM scripts as documented?
> I've run ELDK_MAKEDEV, so the dev/console file does exist and I've
also
> run ELDK_FIXOWNER. I'm guessing that FIXOWNER = FIXPERM.
>
> Also in my var\log\messages I get the following...so init is trying to
> execute:
>
> Dec 31 19:00:13 192 kernel: Warning: unable to open an initial
console.
> Dec 31 19:00:13 192 /sbin/mingetty[133]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:06 192 rc.sysinit: Mounting proc filesystem:  succeeded
> Dec 31 19:00:06 192 sysctl: net.ipv4.ip_forward = 0
> Dec 31 19:00:06 192 sysctl: net.ipv4.conf.all.rp_filter = 1
> Dec 31 19:00:07 192 sysctl: error: 'net.ipv4.ip_always_defrag' is an
> unknown key
> Dec 31 19:00:07 192 sysctl: error: 'kernel.sysrq' is an unknown key
> Dec 31 19:00:07 192 rc.sysinit: Configuring kernel parameters:
> succeeded
> Dec 31 19:00:07 192 date: Wed Dec 31 19:00:06 EST 1969
> Dec 31 19:00:07 192 rc.sysinit: Setting clock : Wed Dec 31 19:00:06
EST
> 1969 succeeded
> Dec 31 19:00:07 192 swapon: swapon: cannot open /etc/fstab: No such
file
> or directory
> Dec 31 19:00:07 192 rc.sysinit: Activating swap partitions:  failed
> Dec 31 19:00:07 192 rc.sysinit: Setting hostname 192.168.1.246:
> succeeded
> Dec 31 19:00:10 192 rc.sysinit: Checking filesystems succeeded
> Dec 31 19:00:10 192 fsck: Checking all file systems.
> Dec 31 19:00:10 192 rc.sysinit: Mounting local filesystems:  failed
> Dec 31 19:00:10 192 fsck: WARNING: couldn't open /etc/fstab: No such
> file or directory
> Dec 31 19:00:10 192 mount: can't create lock file /etc/mtab~62:
> Permission denied (use -n flag to override)
> Dec 31 19:00:11 192 rc.sysinit: Enabling swap space:  succeeded
> Dec 31 19:00:11 192 init: can't open(/etc/ioctl.save, O_WRONLY):
> Permission denied
> Dec 31 19:00:13 192 /sbin/mingetty[134]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:11 192 init: Entering runlevel: 3
> Dec 31 19:00:14 192 /sbin/mingetty[135]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[136]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[137]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[138]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[139]: /dev/ttyS0: Operation not
> permitted
> Dec 31 19:00:14 192 /sbin/mingetty[140]: /dev/ttyS0: Operation not
> permitted
>
> Regards,
> Flavio
>
> -----Original Message-----
> From: Wolfgang Denk [mailto:wd@denx.de]
> Sent: Wednesday, September 04, 2002 3:41 PM
> To: Flavio Pereira
> Cc: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: Linux on 8260 using ELDK..Help?!?
>
> Dear flavio,
>
> in message <1E354700654661418593A0D6B5A9D41008943B@mail.azisa.co.za>
you
> wrote:
> >
> > I'm a _newbie_ to Linux and am busy porting Linux to a MPC8260ADS
> > board. PPCBoot is working fine and the Linux kernel seems to boot up
> > okay up and till the point where it begins to load init, it then
> > crashes. The trace is shown below. I've also tried forcing sh and
>
> Did you fix the IMMR mapping in PPCBoot? The  CFG_DEFAULT_IMMR  defi-
> nition  will  NOT  work with LInux; see the Linux memory map require-
> ments - You _must_ map the IMMR at 0xF0000000 or above.
>
> > bash as the start-up but these also fail with similar errors. I'm
> > using the binaries provided by the ELDK development package. Also my
> > changes to the base kernel code (2.4.4) are minimal and are limited
> > to uart.c (force SCC1 as serial port) and tty_io.c (don't call
> > rs_8xx_init). Can anyone please point me in the right direction...?
>
> Are you sure this was done well?
>
> > If the information above is not sufficient please let me know what
> > more I could provide. Something tries to restart the system and then
> > it crashes on trying to reboot. Someone please tell me what I should
> > be looking at?
>
> ...
> > Freeing unused kernel memory: 52k init
>
> Looks good so far.
>
> > Warning: unable to open an initial console.
>
> Did you run the ELDK_MAKEDEV and ELDK_FIXPERM scripts as documented?
>
> Wolfgang Denk
>
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
> In C we had to code our own bugs, in C++ we can inherit them.
>
>

Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com


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

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

* Re: Linux on 8260 using ELDK..Help?!?
  2002-09-04 13:58   ` Allen Curtis
@ 2002-09-04 16:08     ` Wolfgang Denk
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Denk @ 2002-09-04 16:08 UTC (permalink / raw)
  To: acurtis; +Cc: Flavio Pereira, linuxppc-embedded


In message <NCBBIINEHIPFGJPLBEIFGEKFDLAA.acurtis@onz.com> you wrote:
>
> > Did you fix the IMMR mapping in PPCBoot? The  CFG_DEFAULT_IMMR  defi-
> > nition  will  NOT  work with LInux; see the Linux memory map require-
> > ments - You _must_ map the IMMR at 0xF0000000 or above.
>
> If he got this far in the boot, the IMMR is working.

You are wrong. If he uses the IMMR default value  of  0x0F010000  the
kernel  will  crash  as  soon as it starts executing application code
(because of overlapping address ranges).

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Each honest calling, each walk of life, has its own  elite,  its  own
aristocracy based on excellence of performance. - James Bryant Conant

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

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

* Re: Linux on 8260 using ELDK..Help?!?
       [not found] <1E354700654661418593A0D6B5A9D410A3618E@mail.azisa.co.za>
  2002-09-04 14:40 ` Pete McCormick
@ 2002-09-04 16:10 ` Wolfgang Denk
  1 sibling, 0 replies; 11+ messages in thread
From: Wolfgang Denk @ 2002-09-04 16:10 UTC (permalink / raw)
  To: Flavio Pereira; +Cc: linuxppc-embedded


Dear Flavio,

in message <1E354700654661418593A0D6B5A9D410A3618E@mail.azisa.co.za> you wrote:
>
> > Are you sure this was done well?
>
> Well _no_ I'm not sure this was done well but I can tell you exactly
> what I have done. For uart.c I've completely removed SMC1 and SMC2 from
> serial_state rs_table and rs_brg_map[]. If I don't remove this my serial
> port does not come up at all initially. For tty_io.c I simply to do not
> call rs_8xx_init because it kills my serial port, i.e. if I let it this
> code execute there is no more output on my serial terminal.

I recommend to return to the original code, and get this working. You
can probably use the driver in our  CVS  as  reference;  we  fixed  a
couple of issues for example in the area of BRG assignment.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
No journaling file system can recover your data if the disk dies.
                                 - Steve Rago in <D4Cw1p.L9E@plc.com>

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

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

* RE: Linux on 8260 using ELDK..Help?!?
@ 2002-09-05  8:20 Flavio Pereira
  2002-09-05  8:43 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Flavio Pereira @ 2002-09-05  8:20 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded


Hi Wolfgang

> I recommend to return to the original code, and get this working. You
> can probably use the driver in our  CVS  as  reference;  we  fixed  a
> couple of issues for example in the area of BRG assignment.

I have returned to the original uart.c. Although it still kills my
serial port it has nothing to do with the unable to open initial
console. Will the original uart.c I still get logging in
/var/log/messages and I can see it is still doing the same thing. Yes,
uart.c is probably something that I will still have to look at, but it
is not the root cause of my original problem. Any more suggestions would
be appreciated since I feel I've hit the brick wall quite severely now.
Besides file permissions (which Im conviced are fine now) what else
could cause the kernel to not be able to open a console?

Regards
Flavio


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

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

* Re: Linux on 8260 using ELDK..Help?!?
  2002-09-05  8:20 Flavio Pereira
@ 2002-09-05  8:43 ` Wolfgang Denk
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Denk @ 2002-09-05  8:43 UTC (permalink / raw)
  To: Flavio Pereira; +Cc: linuxppc-embedded


In message <1E354700654661418593A0D6B5A9D41008943F@mail.azisa.co.za> you wrote:
>
> I have returned to the original uart.c. Although it still kills my
> serial port it has nothing to do with the unable to open initial
> console. Will the original uart.c I still get logging in

Since your console _uses_ the serial port, this HAS something  to  do
with each other.

> uart.c is probably something that I will still have to look at, but it
> is not the root cause of my original problem. Any more suggestions would
> be appreciated since I feel I've hit the brick wall quite severely now.
> Besides file permissions (which Im conviced are fine now) what else
> could cause the kernel to not be able to open a console?

Maybe you did not initialize one, or you put it on an  unitialized  /
non-working port.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
If you're not part of the solution, you're part of the problem.

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

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

* Re: Linux on 8260 using ELDK..Help?!?
@ 2002-09-06 15:53 ghannon
  0 siblings, 0 replies; 11+ messages in thread
From: ghannon @ 2002-09-06 15:53 UTC (permalink / raw)
  To: Flavio Pereira; +Cc: linuxppc-embedded


Flavio,

>From your e-mail, it looks like your ramdisk is 5MB  and
you are sticking it into a 4 MB filesystem.
...
## Loading RAMDisk Image at ff800000 ...
   Image Name:   ERI 8260 Ramdisk Image
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    5594536 Bytes = 5463 kB = 5 MB
   Load Address: 00000000
...
...
driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: FCC ENET Version 0.2, 00:00:00:40:00:01
RAMDISK: Compressed image found at block 0
...

gunzip the file and see how big it is uncompressed.

Look in the kernel config for CONFIG_BLK_DEV_RAM_SIZE and
see if it's 4096.    If so, doubling it may solve the problem.

Hope that helps.
Gary Hannon
CSPI





"Flavio Pereira" <fpereira@azisa.com> on 09/06/2002 04:45:35 AM

To:   wd@denx.de
cc:   linuxppc-embedded@lists.linuxppc.org (bcc: Gary Hannon/CSP)
Subject:  Linux on 8260 using ELDK..Help?!?





Hi Wolfgang

I got hold of a working ram disk image from Pete McCormick for the
MPC8260ADS Board and I still have the same problems with the intial
console. So this kinda proves that the problem is not with permissions
etc on my nfs system. The serial dump is shown below.

Ive also fixed up the uart.c functions that you had recommended (going
back to original code). If you can please give me some indication of
what I should be looking at. I've debugged that console register
functions and they all seem fine, the console is in CON_ENABLED state,
so I don't know what else could be wrong?

Regards
Flavio

bootm 100000 ff800000
## Booting image at 00100000 ...
   Image Name:   Linux-2.4.4
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    458192 Bytes = 447 kB = 0 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at ff800000 ...
   Image Name:   ERI 8260 Ramdisk Image
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    5594536 Bytes = 5463 kB = 5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 00a09000, end 00f5eda8 ... OK
Total memory = 16MB; using 0kB for hash table (at 00000000) Linux
version 2.4.4 (root@gladiator) (gcc version 2.95.3 20010315 (release))
#14  Fri Sep 6 10:05:28 SAST 2002 On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram
ip=192.168.1.246:192.168.1.58:fast::off
Warning: real time clock seems stuck!
Calibrating delay loop... 87.85 BogoMIPS
Memory: 9332k available (872k kernel code, 356k data, 52k init, 0k
highmem) Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache
hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table
entries: 1024 (order: 1, 8192 bytes) POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer
Society NET3.039 Starting kswapd v1.8 CPM UART driver version 0.02 ttyS0
on SCC1 at 0x8000, BRG2 ttyS1 on SCC2 at 0x8100, BRG3 ttyS2 on SCC3 at
0x8200, BRG4 ttyS3 on SCC4 at 0x8300, BRG1
pty: 256 Unix98 ptys configured
block: queued sectors max/low 6101kB/2033kB, 64 slots per queue RAMDISK
driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: FCC ENET Version 0.2, 00:00:00:40:00:01
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 5463k freed
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 1024 bind 1024)
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Gateway not on directly connected network.
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 52k init
Warning: unable to open an initial console.
attempt to access beyond end of device
01:00: rw=0, want=8210, limit=4096
EXT2-fs error (device ramdisk(1,0)): ext2_read_inode: unable to read
inode block
 - inode=2150, block=8209
attempt to access beyond end of device
01:00: rw=0, want=8198, limit=4096
EXT2-fs error (device ramdisk(1,0)): ext2_read_inode: unable to read
inode block
 - inode=2049, block=8197
Kernel panic: No init found.  Try passing init= option to kernel.
Rebooting in 180 seconds..


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

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

end of thread, other threads:[~2002-09-06 15:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06 15:53 Linux on 8260 using ELDK..Help?!? ghannon
  -- strict thread matches above, loose matches on Subject: below --
2002-09-05  8:20 Flavio Pereira
2002-09-05  8:43 ` Wolfgang Denk
2002-09-04 14:56 Flavio Pereira
     [not found] <1E354700654661418593A0D6B5A9D410A3618E@mail.azisa.co.za>
2002-09-04 14:40 ` Pete McCormick
2002-09-04 16:10 ` Wolfgang Denk
2002-09-04  7:37 Flavio Pereira
2002-09-04 13:41 ` Wolfgang Denk
2002-09-04 13:58   ` Allen Curtis
2002-09-04 16:08     ` Wolfgang Denk
2002-09-04 13:55 ` Allen Curtis

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).