This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Getting Closer


Hi everyone,

In my last post, I wrote:

> I downloaded the generated S-record file (mentioned above) to the board, but
> it wouldn't run like an example that came with the board. So, I'm still
> missing some critical pieces. (And still missing some critical "mental maps"
> related to how all this works!)

I did modify the specs file to reference the rm_rom.ld file I found and I
tried to compile the rm_crt0.S file I found.  I could not compile it. I
received the following error:

m68k-coff-gcc -s rm_crt0.S
/usr/local/m68k-coff/bin/ld: cannot open rm_crt0.o: No such file or
directory

So, with the changes I made, a compilation is looking for the very file I'm
trying to create. I don't quite know what to do...

So, I thought, well there is the .o file that exists under windows, perhaps
that will work. So I brought it over and put it in the directory that I'm
working in and issued the following command:

m68k-coff-gcc -oformat=srec -o hello hello.c

and this produced an S-record file.  I downloaded this to the board, hit
reset, and got the following:

-----------------------------------------------
CPU32Bug Debugger/Diagnostics - Version  1.00
 (C) Copyright 1991 by Motorola Inc.

Booting from address $90010

Exception: F-line
Format/Vector=002C
PC   =00090D98 SR   =2700=TR:OFF_S_7_.....   VBR  =00000000
SFC  =5=SD     DFC  =5=SD     USP  =0000FC00 SSP* =00007DAC
D0   =00000000 D1   =0000001F D2   =00000000 D3   =00000000
D4   =00000000 D5   =00000000 D6   =00000000 D7   =00000000
A0   =00003246 A1   =0000300C A2   =00000000 A3   =00000000
A4   =00000000 A5   =00000000 A6   =00007F9C A7   =00007DAC
00090D98 F227               DC.W        $F227
CPU32Bug>
-----------------------------------------------


Now, the first thing to say is that this output *is* better than what I saw
before (when I compiled using bcc.ld and crt0.o).  This is because of the
line:

Booting from address $90010

which is present when I download an S-record file I generate under
Windows/gcc.  So, things are a bit better.

However, I am not adept at reading the above error display, so if there are
hints in that as to what I still need, those hints are eluding me.

So, once again, if anyone has any suggestions for how to move forward, I
would very much appreciate them.

Thanks!


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]