On Tue, Apr 27, 1999, Russell King - ARM Linux Admin
<[EMAIL PROTECTED]> wrote:

>Benjamin Herrenschmidt writes:
>> So basically, for the bios to work in elf, (after fixing all the compile
>> and link problems, mostly due to missing includes and too many "_" in
>> some names like string.S stuffs), I made the following .lds file :
>
>Ok, thanks for the info.  There is now bios-1.01 on the FTP site, which
>has some of this stuff incorporated.  However, mkaif does not recognise
>ELF files yet.

Enclosed is a first test version of an elf mkaif.c. Note that for it to
work with my ESBA card, the text address must be set to xxxxxxC0 and not
xxxxxxA0. (Different Angel version ?). It should work on big-endian
machines (actually, I only tested it on a linux-pmac installation, a good
Mac is a Mac running linux ;-).

I had to do more fixes here or there, I'll compare with your version and
send you the patches. The asm crt0.S works but seems to detect the wrong
amount of memory. The C code still crashes, apparently when calling
set_msg thru the display_fn variable (I commented out all the PCI and VGA
stuffs for now until I'm sure the C code works via the serial port).
Directly calling set_msg works. Since I'm learning all those tools and
the ARM ABI at the same time as debugging, I'm a little bit slow fixing
the various issues.



-- 
           E-Mail: <mailto:[EMAIL PROTECTED]>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>

mkaif.c.gz.sit

Reply via email to