Thread (5 messages) flat view 5 messages, 4 authors, 2007-12-16

Re: [PATCH 1/7] bootwrapper: Add a firmware-independent "raw" target.

From: Grant Likely <hidden>
Date: 2007-12-14 15:23:42

On 12/14/07, Milton Miller [off-list ref] wrote:
On Fri Dec 14 10:43:27 EST 2007,  Stephen Neuendorffer wrote:
quoted
From: Grant Likely <grant.likely at secretlab.ca>

This target produces a flat binary rather than an ELF file,
fixes the entry point at the beginning of the image, and takes
a complete device tree with no fixups needed.

The device tree must have labels on /#address-cells, the timebase
frequency, and the memory size.

Signed-off-by: Grant Likely <grant.likely at secretlab.ca>
For the record; this patch was lifted from my dev tree and in turn I
stole it from Scott Wood.
quoted
+$(obj)/zImage.raw: vmlinux $(dts) $(wrapperbits)
+       $(call if_changed,wrap,raw,$(dts))
This should be handled by the standard zImage% rule.
It's weird.  On my system the standard zImage rule wouldn't do this
target.  I had to add this rule just to get it to compile.  I've not
yet been motivated to revisit and fix it.
I'm not sure exactly what platform you are using this on.  Apparently
it is a legacy firmware that loads the image and jumps to it leaving
interrupts on and not invalidating the cache.
Heh; actually it's a platform with *no* firmware.  :-)

It's on a Xilinx FPGA.  SDRAM is initialized by the FPGA design and
the kernel image is loaded either with a debugger, or via the
SystemACE device.  In either case, the kernel is the first thing to
run after reset.... oh, and reset is not as complete as one would
normally expect.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help