Help booting MBX through bootd
Gentlemen:
I am trying to use a Motorola MBX860 board in an embedded project.
I download the root.min.tgz system to testing, and I put this configuration in the MBX:
NIOT
EPPC-Bug>niot
Controller LUN =00? 20
Device LUN =00?
Node Control Memory Address =003C8000?
Client IP Address =132.254.169.30?
Server IP Address =132.254.169.90?
Subnet IP Address Mask =255.255.255.0?
Broadcast IP Address =255.255.255.255?
Gateway IP Address =0.0.0.0?
Boot File Name ("NULL" for None) =/ppc/zImage?
Argument File Name ("NULL" for None) =?
Boot File Length =00000000? Boot File Byte Offset =00000000? BOOTP/RARP Request Retry =00? TFTP/ARP Request Retry =00?
Trace Character Buffer Address =00000000? BOOTP/RARP Request Control: Always/When-Needed (A/W)=W?
BOOTP/RARP Reply Update Control: Yes/No (Y/N) =Y?
Update Non-Volatile Memory (Y/N)? Y
Updating Non-Volatile Memory - Standby...
------------------------------------------------------------------------
I am using an SCO machine for boot...
I make a /ppc directory and ungzip-untar the file inside.
I configure inetd for bootpd and tftp, and nfs to export the /ppc directory,
When i run the download command from the MBX I get this response:
EPPC-Bug>pl 20 0
Network Booting from: MPC860, Controller 20, Device 0
Loading: /ppc/zImage
Client IP Address = 132.254.169.30 Server IP Address = 132.254.169.90 Gateway IP Address = 0.0.0.0
Subnet IP Address Mask = 255.255.255.0
Boot File Name = /ppc/zImage
Argument File Name =
Bytes Received =&492532, Bytes Loaded =&492532
Bytes/Second =&246266, Elapsed Time =2 Second(s.loaded at: 00210000
0030E42C
relocated to: 00100000 001FE42C board data at: 003F4228 003F4250 relocated to: 00200100 00200128 zimage at: 00216000 00276D6D avail ram: 0030E42C 00400000
Linux/PPC load:
Uncompressing Linux...done.
Now booting the kernel
Linux version 2.1.119 ([email protected]) (gcc version egcs-2.90.25 980302 (egcs-1.0.2 prerelease)) #31 Mon Sep 7 18:14:20 EDT 1998 Boot arguments: root=/dev/nfs nfsaddrs=132.254.169.30:132.254.169.90 nfsroot=132.254.169.90:/ppctime_init: decrementer frequency = 150000000/60
Memory: 2872k available (732k kernel code, 456k data, 36k init) [c0000000,c0400000]
PCI: Probing PCI hardware
Calibrating delay loop... 39.63 BogoMIPS
POSIX conformance testing by UNIFIX
Swansea University Computer Society NET3.039 for Linux 2.1
NET3: Unix domain sockets 0.16 for Linux NET3.038.
Swansea University Computer Society TCP/IP for NET3.037
IP Protocols: ICMP, UDP, TCP, IGMP
Starting kswapd v 1.5
CPM UART driver version 0.02
ttyS00 at 0x0280 is a SMC
ttyS01 at 0x0380 is a SMC
ttyS02 at 0x0100 is a SCC
ttyS03 at 0x0200 is a SCC
CPM ENET Version 0.1, 08:00:3e:26:24:52
PPP: version 2.3.3 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California PPP line discipline registered.
Looking up port of RPC 100003/2 on 132.254.169.90
Looking up port of RPC 100005/1 on 132.254.169.90
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 36k init 28k prep
After the last message, the system hangs up and never restart...
Can anyone help me?
Thanks
Miguel Ceniceros
----------------------------------------------------------------------------
--------------------------------------------------
Miguel Ceniceros SEPAC, S.A. de C.V.
Special Projects Manager Fundidores #2, Fracc. Ind. Xhala
E-mail: [email protected] Cuautitlan de Romero, Edo. de Mexico
54840
Mexico
URL: http://www.sepac.com.mx Phone: +52 (5) 872-4888, Fax +52 (5)
872-4065
----------------------------------------------------------------------------
--------------------------------------------------
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Hi there!
There are a few problems today with 8xx linux.
People out there: Correct me if I'm wrong.
I blame some of the strange problems on silicon bugs in the mpc860 chip. Read the chip errata.
My MBX board has a XPC860ENZPA.
I think I have a C1 chip on a other board which works better.
The memory management is a bit strange.
On some boards is it neccesary to reserve a few tlb entries.
One other problem is that the 8xx series don't have a fpu. That is not a kernel problem, more a libc problem.
The last problem I know is that the 8xx has a smaller (4 words) cahce line length compared to 60x.
I think you should get a crosscompiler.
Cheers /
Magnus
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Hi,
in message <[email protected]> Magnus Damm
Quoted 3 lines · wrote:
There are a few problems today with 8xx linux. People out there: Correct me if I'm wrong.
Ok, I'll comment on this; I intended to summarize my experience with my firsrt port of 2.2p7 and 2.2.5 to a custom board anyway, so here it comes:
Quoted 2 lines
I blame some of the strange problems on silicon bugs in the mpc860 chip. Read the chip errata.
This is indeed a problem. Many (old) MBX boards have old revisions of the 860, which have some severe problems. Especially the data cache corruption bug hits hard. Make sure that you have a silicon revision C1 at least.
Quoted 1 line
My MBX board has a XPC860ENZPA.
Maybe it's a A. The mask revision is encoded in the low 8 bits of the IMMR. Check there!
Quoted 1 line
I think I have a C1 chip on a other board which works better.
Yes, definitely.
Quoted 2 lines
The memory management is a bit strange.
On some boards is it neccesary to reserve a few tlb entries.
I haven't seen this so far. But all my CPU's were mask revision C1.
Quoted 2 lines
One other problem is that the 8xx series don't have a fpu. That is not a kernel problem, more a libc problem.
No, this *is* a kernel problem. When running some applications you will find quite a lot that will produce "Bad emulation" / "Illegal Instruction" exceptions. So far the suggested solution is to compile the relevant code with `-mcpu=860'. But this solves only some problems...
Linux on the 860 makes only sense for a certain class of projects:
embedded systems, especially in telecomminucations. While it *is* easy to compile the target application so that it does not need the FP emulation, we also must provide a *development* environment, both for application and driver code. In many cases the easiest solution is native development on the target, running with a complete Linux environment using a NFS mounted root filesystem. And this implies that *every* application must run on the 860, may it be perl or awk or date or anything else.
Either we can use any standard PPC distribution for that, or we would have to recompile *everything*, from the standard libraries to the last tool anybody might ever use. Is there anybody who volunteers to provide up-to-date MPC8xx Linux releases? No, this doesn't make sense.
The FP emulation should be fixed so that it allows to run *any* PPC Linux binary on the 8xx, too.
Leif Lindholm <[email protected]> volunteers to implement the missing instructions, starting a couple of weeks from now.
Quoted 2 lines
The last problem I know is that the 8xx has a smaller (4 words) cahce line length compared to 60x.
Is this really a problem?
I noticed some other problems in the (2.2.5) MBX8xx code:
* There are multiple versions of the same functions, for instance udelay (for the kernel as assembler inline in include/asm-ppc/delay.h, for the boot code in arch/ppc/mbxboot/head.S).
* I don't think the udelay in arch/ppc/mbxboot/head.S provides really the timing it's supposed to give; not even on 66 MHz systems.
* The whole file arch/ppc/mbxboot/head.S is a complex mix of #ifdef'ed and #ifndef'ed code - trying to add yet another bard architecture is a nightmare. It was much easier to me to _remove_ all the unneeded cases and write a new version for my own board only.
* We should keep in mind that we will have to support a growing number of custom boards. IMHO we *must* find a way to separate hardware dependend code into asmalls et of configuration files - something like the BSP's (board support packages) you get for commercial RTOS. Just to give an example: how many files do you have to change when you want to run your MBX860 board with another console speed than the default 9600 bps? And how do you find all those places? Are you sure you didn't forget a few places where the bus clock is hard coded?
There is already provision for the board information data - something like that should be used for all hardware versions. [This is what I did for my ports; once done, it saved me a lot of work.]
Another are of problems is port pin assignement and CPM configu- ration in general. Which SCC is used for your ethernet interface? Which BRG's does it use? Is your console on a SMC or a SCC? Which port pins have to be used? Which clocks? Etc. etc. - right now this configuration is distributed to many places in the code, which makes changes in the configuration difficult.
I don't think I'm the first who notices this problem. Is there already any work being done in this direction?
* Does the reset code in m8xx_gorom() [arch/ppc/kernel/head.S] work for somebody? I could not get it working on the MBX board, nor did it work on the custom 860 boards I've seen so far. In all cases the system just hangs, I have to manually reset them. Any ideas why?
Wolfgang
Signature · 8 lines
Phone: (+49)-8142-4596-87 Fax: -88 Home: -86 Email: [email protected] The only person who always got his work done by Friday was Robinson Crusoe. [[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]] [[ and http://www.linuxppc.org/ for useful information before posting. ]]