860T cold boot
I have been following the linuxppc-embedded discussions for some time while pottering with an i-Mac and the Bright Star ipEngine, in preparation for our new 860T-based hardware to be designed and built. It had been so easy to use both these systems, I was unprepared for the ordeal involved in getting the 860T hardware going without the assistance of a boot-loader.
Using the (rather unreliable) SDS SingleStep development kit and BDM cable, I can address all the CPU memory-mapped registers, set up the SIU, load zImages into RAM or flash and make them run. I can write simple programs that waggle I/O ports and generally test that the hardware is present and correct. But when I try to run a zImage it all goes wrong. The debugger doesn't seem able to insert working breakpoints after the first ``rfi'' so I can't tell exactly what's the matter, but inevitably it crashes with some sort of exception, usually with PC=0x1100 (TLB miss exception) where there is no code. I've tried booting from RAM and flash, with code, RAM and registers at various addresses, with various kernels. I'm sure that the basics are correct and as nobody else seems to be talking about problems with this low-level stuff, either you're all using proprietary boot loaders or I'm missing something obvious (or it's a hardware problem:-).
I currently set up 25 registers plus the UPM table with values derived initially from Motorola's hopeless mcuinit tool, later much tinkered with by reference to the 860UM/AD manual. I'm sure that's all I should need to get it going. Am I right? If anybody has a working set of initialisation instructions that they could share, or even just a register dump of how their boot-loader leaves things set, I should be most grateful.
Robin O'Leary.
Signature · 4 lines
email: [email protected] Equiinet Ltd., Innovation Centre, Singleton Park, Tel.: +44 1792 540008 Swansea SA2 8PP, Wales, U.K. 51.6101N 3.9831W ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 7 lines · Robin O'Leary
Using the (rather unreliable) SDS SingleStep development kit and BDM cable, I can address all the CPU memory-mapped registers, set up the SIU, load zImages into RAM or flash and make them run. I can write simple programs that waggle I/O ports and generally test that the hardware is present and correct. But when I try to run a zImage it all goes wrong. The debugger doesn't seem able to insert working breakpoints after the first ``rfi'' so I can't tell exactly what's the matter,
The trouble is Linux+MMU+BDM doesn't work. Once the MMU is enabled by the rfi, BDM debuggers don't understand the world and keep poking around and breaking things.
When trying to run Linux, you must use a BDM debugger that allows you to disable all debugging hooks. All you can do is download the kernel, disable all debugging, and then push the 'go' button. Or, use a kernel-aware BDM debugger for Linux, which doesn't exist.....yet.
Quoted 5 lines
I currently set up 25 registers plus the UPM table with values derived initially from Motorola's hopeless mcuinit tool, later much tinkered with by reference to the 860UM/AD manual. I'm sure that's all I should need to get it going.
There are lots of 8xx internal registers that have to be set properly depending upon your hardware configuration. If you didn't sit down with a hardware engineer to derive your DRAM timing, I doubt the UPM tables are correct. You also need to set several multifunction pin configurations depending upon the external bus connections and external devices.
Since you were able to get something downloaded and running at least that far, some of the hardware configuration is correct. The worst case bus timing occurs when you start up an Ethernet port which performs burst mode DMA while the PPC core has copyback caches enabled. That's when you are going to start looking for software bugs, but the real problem is DRAM timing or other hardware configuration problems.
Quoted 3 lines
....If anybody has a working set of initialisation instructions that they could share, or even just a register dump of how their boot-loader leaves things set, I should be most grateful.
That is a place to start, but these values have to be properly set for your hardware design.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/