* Problem running kernel 2.6.14 (DENX) on MPC866
@ 2005-11-28 23:47 Gil Madar
2005-11-29 8:08 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Gil Madar @ 2005-11-28 23:47 UTC (permalink / raw)
To: linuxppc-embedded
Hi All,
I load linux from u-boot, and manage to go all the way until the call to cpu_idle() from rest_init().
The system claims mounts a root file system over NFS. Sniffer logs and host logs support this claim.
If I do a while ( 1 ) printk( whatever ), just before cpu_idle(), the system continues to run.
If I let it call cpu_idle(), the system hangs.
If I powercycle the board, I see many occurences of exceptions in the log_buf. They all claim there has
been an access to an invalid address as in "<4>Oops: kernel access of bad area, sig: 11".
The exceptions are never printed and the 'bad address' is offset 0x1C from the IMMR. The access
is from m8xx_get_irq().
Has anybody else faced similar problems?
Note: I had to workaround the
ppc_md.set_rtc_time = m8xx_set_rtc_time;
ppc_md.get_rtc_time = m8xx_get_rtc_time;
initialisations in m8xx_setup.c.
What additional modifications are needed for the MPC866?
Is there something broken in my setup?
Is there a need for additional information?
As I'm doing this without an emulator, I appreciate any ideas.
Thanks for your time. I appreciate any response,
Gil
Here is a log of the run.
U-Boot 1.1.3 (Nov 22 2005 - 00:26:43)
CPU: unknown MPC86x (0x08010004) at 133 MHz: 16 kB I-Cache 8 kB D-Cache FEC present
*** Warning: CPU Core has Silicon Bugs -- Check the Errata ***
Board: IDU()
DRAM: 16 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: FEC ETHERNET
Monitor Command Prompt:>setenv gatewayip 10.0.0.138;setenv ethaddr 00:01:02:03:04:05; setenv console ttyCPM0,38400n8; setenv
ipaddr 10.0.0.4;setenv serverip 10.0.0.2;setenv hostname idu;setenv netmask 255.0.0.0; setenv rootpath /mnt/iso1
Monitor Command Prompt:>setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) console=$(console) ethaddr=$(ethad
dr) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off
Monitor Command Prompt:>tftpboot 600000 uImage
Using FEC ETHERNET device
TFTP from server 10.0.0.2; our IP address is 10.0.0.4
Filename 'uImage'.
Load address: 0x600000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
####
done
Bytes transferred = 1350694 (149c26 hex)
Monitor Command Prompt:>bootm 600000
## Booting image at 00600000 ...
Image Name: Linux-2.6.14
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1350630 Bytes = 1.3 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Current stack ends at 0x00F9DBB0 => set upper limit to 0x00800000
## cmdline at 0x007FFF00 ... 0x007FFF90
memstart = 0x00000000
memsize = 0x01000000
flashstart = 0x00000000
flashsize = 0x00000000
flashoffset = 0x00000000
sramstart = 0x00000000
sramsize = 0x00000000
immr_base = 0x0F000000
bootflags = 0x00000001
intfreq = 133 MHz
busfreq = 66.500 MHz
ethaddr = 00:01:02:03:04:05
IP addr = 10.0.0.4
baudrate = 38400 bps
No initrd
## Transferring control to Linux (at address 00000000) ...
Linux version 2.6.14 (xxxx@yyyy) (gcc version 3.3.3 (DENX ELDK 3.1.1 3.3.3-10)) #44 Tue Nov 29 00:41:34 IST 2005
Built 1 zonelists
Kernel command line: root=/dev/nfs rw nfsroot=10.0.0.2:/mnt/iso1 console=ttyCPM0,38400n8 ethaddr=00:01:02:03:04:05 ip=10.0.0
.4:10.0.0.2:10.0.0.138:255.0.0.0:idu::off
PID hash table entries: 128 (order: 7, 2048 bytes)
Decrementer Frequency = 498750000/60
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 13084k available (2364k kernel code, 656k data, 84k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
NTFS driver 2.1.24 [Flags: R/W].
JFS: nTxBlock = 102, nTxLock = 819
Initializing Cryptographic API
Serial: CPM driver $Revision: 0.01 $
ttyCPM0 at MMIO 0xf000a80 (irq = 20) is a CPM UART
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
loop: loaded (max 8 devices)
eth0: FEC ENET Version 0.2, FEC irq 3, addr 00:01:02:03:04:05
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -2, 1024 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
IP-Config: Complete:
device=eth0, addr=10.0.0.4, mask=255.0.0.0, gw=10.0.0.138,
host=idu, domain=, nis-domain=(none),
bootserver=10.0.0.2, rootserver=10.0.0.2, rootpath=
Looking up port of RPC 100003/2 on 10.0.0.2
Looking up port of RPC 100005/1 on 10.0.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 84k init
---------here the system hangs -----------------
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Problem running kernel 2.6.14 (DENX) on MPC866
2005-11-28 23:47 Problem running kernel 2.6.14 (DENX) on MPC866 Gil Madar
@ 2005-11-29 8:08 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2005-11-29 8:08 UTC (permalink / raw)
To: gil-ad; +Cc: linuxppc-embedded
In message <200511290147.05220.gil-ad@myrealbox.com> you wrote:
>
> I load linux from u-boot, and manage to go all the way until the call to cpu_idle() from rest_init().
> The system claims mounts a root file system over NFS. Sniffer logs and host logs support this claim.
> If I do a while ( 1 ) printk( whatever ), just before cpu_idle(), the system continues to run.
> If I let it call cpu_idle(), the system hangs.
For 8xx you could / should use the kernel.org tree. We don't use 2.6
on 8xx yet.
> U-Boot 1.1.3 (Nov 22 2005 - 00:26:43)
>
> CPU: unknown MPC86x (0x08010004) at 133 MHz: 16 kB I-Cache 8 kB D-Cache FEC present
> *** Warning: CPU Core has Silicon Bugs -- Check the Errata ***
You should fix this.
> Monitor Command Prompt:>setenv gatewayip 10.0.0.138;setenv ethaddr 00:01:02:03:04:05; setenv console ttyCPM0,38400n8; setenv
You use an illegal MAC address; please read the FAQ, especially
http://www.denx.de/wiki/view/DULG/EthernetDoesNotWork and
http://www.denx.de/wiki/view/DULG/WhereCanIGetAValidMACAddress
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
How many seconds are there in a year? If I tell you there are 3.155 x
10^7, you won't even try to remember it. On the other hand, who could
forget that, to within half a percent, pi seconds is a nanocentury.
-- Tom Duff, Bell Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Problem running kernel 2.6.14 (DENX) on MPC866
@ 2005-11-29 8:41 Gil Madar
0 siblings, 0 replies; 3+ messages in thread
From: Gil Madar @ 2005-11-29 8:41 UTC (permalink / raw)
To: 'Wolfgang Denk', gil-ad; +Cc: linuxppc-embedded
Thanks for your reply Wolfgang!
From: Wolfgang Denk [mailto:wd@denx.de]
Sent: Tuesday, November 29, 2005 10:09 AM
>
> I load linux from u-boot, and manage to go all the way until the
call to cpu_idle() from rest_init().
> The system claims mounts a root file system over NFS. Sniffer logs
and host logs support this claim.
> If I do a while ( 1 ) printk( whatever ), just before cpu_idle(),
the system continues to run.
> If I let it call cpu_idle(), the system hangs.
For 8xx you could / should use the kernel.org tree. We don't use
2.6
on 8xx yet.
I will try that.
> U-Boot 1.1.3 (Nov 22 2005 - 00:26:43)
>
> CPU: unknown MPC86x (0x08010004) at 133 MHz: 16 kB I-Cache 8 kB
D-Cache FEC present
> *** Warning: CPU Core has Silicon Bugs -- Check the
Errata ***
You should fix this.
OK.
> Monitor Command Prompt:>setenv gatewayip 10.0.0.138;setenv ethaddr
00:01:02:03:04:05; setenv console ttyCPM0,38400n8; setenv
You use an illegal MAC address; please read the FAQ, especially
http://www.denx.de/wiki/view/DULG/EthernetDoesNotWork and
http://www.denx.de/wiki/view/DULG/WhereCanIGetAValidMACAddress
The ethernet address is ok. not mine, but legal ;-) I checked at
standards.ieee.org:
00-01-02 (hex) 3COM CORPORATION
000102 (base 16) 3COM CORPORATION
5400 Bayfront Plaza - MS: 4220
Santa Clara CA 95052
UNITED STATES
Thanks for your time,
Gil
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-29 9:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-28 23:47 Problem running kernel 2.6.14 (DENX) on MPC866 Gil Madar
2005-11-29 8:08 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2005-11-29 8:41 Gil Madar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox