linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: How to port ppc-linux to new custom boards? (virtexII)
@ 2004-08-24  6:27 Patrick Huesmann
  2004-08-24  7:25 ` Marc Leeman
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Patrick Huesmann @ 2004-08-24  6:27 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: samlinuxppc


Hi,

> Where did you download the Montavista 2_4_devel?

via anonymous rsync from montavista server. i followed the instructions at
http://penguinppc.org/dev/kernel.shtml

>> 1) Is there any comprehensive documentation / tutorial on how to port
>> the ppc-linux to new machines? Where does my board specific fixup
>> stuff go (for example, memory and IRQ declarations and such).
>
>See the following two valuable docs:
>http://www.denx.de/twiki/bin/view/PPCEmbedded/Introduction
>http://www.denx.de/twiki/bin/view/DULG/Manual

Unfortunately, neither of these docs talks about tailoring the kernel to
custom hardware. They only state that "some changes" have to be applied to
the startup code. I need some more specific information, because I'm not a
expert PPC guru.

>> vmlinux file and write it to flash directly, because zImage on powerpc
>> lacks decompressor code (at least with my configuration). But the
>> 1.3meg vmlinux file makes for pretty long turnaround times (I can only
>> upload at 115k at the moment).
>
>AFAIK, the key point of decompressing is boot loader
>itself. It has NOTHING to do with ppc linux. Both
>U-Boot and PlanetCore can do this job well.

this means that i also have to port u-boot and use 2 bootloaders in
sequence, or port u-boot's decompressor code to our own bootloader. Sigh.

Arm Linux provides a self-decompressing zImage. I thought it could be
possible to configure the ppc kernel just like that.

Thanx anyway,
Patrick


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

^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <31481.1093602240@www36.gmx.net>]
* How to port ppc-linux to new custom boards? (virtexII)
@ 2004-08-23 15:17 Patrick Huesmann
  2004-08-24  1:30 ` Song Sam
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Patrick Huesmann @ 2004-08-23 15:17 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 2088 bytes --]


Hi,

I'm trying to port Linux to a custom board built around a virtexII-fpga
which features a PPC-405 cpu.

I've downloaded the Montavista 2_4_devel tree, which already has some
platform and driver support for the ml300 eval board, and made a few changes
to the xilinx specific header files to reflect our FPGA design.
Then I changed the tophys macro in include/asm/ppc_asm.h to have a sensible
initial mmu.
#define MY_PHYS_RAM 0x90000000
#define tophys(rd,rs) addis	rd,rs,(MY_PHYS_RAM-KERNELBASE)@h;
#define tovirt(rd,rs) addis	rd,rs,(KERNELBASE-MY_PHYS_RAM)@h;

My kernel gets past the initial mmu setup, enters the C code and freezes in
the middle of early_init in arch/ppc/kernel/setup.c when (after?) memset_io
is called to zero the BSS region.

I've some experience with porting ARM-Linux but, unfortunately, the PPC port
seems to be significantly different (there are no mach-types and ATAG lists,
for example).

1) Is there any comprehensive documentation / tutorial on how to port the
ppc-linux to new machines? Where does my board specific fixup stuff go (for
example, memory and IRQ declarations and such).

2) What requirements and responsibilities are imposed on the bootloader? I
suspect that I can't use u-boot or something like that, because we have our
own "company-specific" bootloader so that all our products use the same
protocol for firmware updates.

3) Is there a way to get a self-decompressing kernel image? ARM linux
provides a zImage which the cpu just has to jump into (with some registers
initialized) and then decompresses vmlinux by itself. Now I have to use a
vmlinux file and write it to flash directly, because zImage on powerpc lacks
decompressor code (at least with my configuration). But the 1.3meg vmlinux
file makes for pretty long turnaround times (I can only upload at 115k at
the moment).

Any help is greatly appreciated ;)

Regards,
Patrick






--
Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl


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

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

end of thread, other threads:[~2004-08-27 11:18 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-24  6:27 How to port ppc-linux to new custom boards? (virtexII) Patrick Huesmann
2004-08-24  7:25 ` Marc Leeman
2004-08-25  7:34   ` Marius Groeger
2004-08-25  7:57     ` Marc Leeman
2004-08-25 13:52     ` David Ho
2004-08-25 14:30       ` Peter Vandenabeele
2004-08-25 20:08         ` Handling of cascaded interrupt controllers Jeff Domogala
2004-08-26  7:02         ` How to port ppc-linux to new custom boards? (virtexII) Marc Leeman
2004-08-24  8:01 ` Oliver Fuchs
2004-08-24  8:31 ` Peter Ryser
     [not found] <31481.1093602240@www36.gmx.net>
2004-08-27 11:18 ` Patrick Huesmann
  -- strict thread matches above, loose matches on Subject: below --
2004-08-23 15:17 Patrick Huesmann
2004-08-24  1:30 ` Song Sam
2004-08-24  4:14 ` Peter Ryser
2004-08-24  8:51 ` Peter 'p2' De Schrijver
2004-08-24  9:14   ` Patrick Huesmann
2004-08-24  9:42     ` Peter 'p2' De Schrijver
2004-08-24 10:01     ` Song Sam
2004-08-25  2:00   ` Song Sam

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