linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* modifying boot loader
@ 1999-03-29 21:48 Dave Weis
  1999-03-29 23:36 ` David Edelsohn
  0 siblings, 1 reply; 13+ messages in thread
From: Dave Weis @ 1999-03-29 21:48 UTC (permalink / raw)
  To: linuxppc-dev



hello

i'm trying to modify the coffboot loader to produce an object file that
looks like the one below:

Disassembly of section .text:

00000000 <pin_obj_start>:
       0:       00 00 00 00     .long 0x0
       4:       ba df ca 11     lm      r22,-13807(r31)
        ...

00000024 <start>:
      24:       code here..............

What would the magic incantation be? I have modified LD_ARGS in the
makefile to be
LD_ARGS = -e _start -T ld.script -Ttext 0 -Tdata 10000 -Bstatic

which gives me this header

Disassembly of section .text:

00000000 <_start>:
       0:       00 00 00 0c     .long 0xc
        ...

0000000c <__start>:
       c:       3d 20 00 00     liu     r9,0
      10:       3d 00 00 00     liu     r8,0
      14:       39 08 5c a4     cal     r8,23716(r8)
      18:       7c 00 48 ac     .long 0x7c0048ac
      1c:       7c 00 4f ac     .long 0x7c004fac
      20:       39 29 00 20     cal     r9,32(r9)
      24:       28 09 00 08     cmpli   0,r9,8
      28:       41 80 ff f0     blt     18 <__start+0xc>
      2c:       48 00 00 04     b       30 <start>

00000030 <start>:
      30:       7c 2c 0b 78     mr      r12,r1
      34:       38 21 ff e0     cal     r1,-32(r1)


Also, does anyone know off-hand what the two constants at 0x18 and 0x1c
are?

Thanks for any help

djweis

-- 
David Weis                | 10520 New York Ave, Des Moines, IA 50322
djweis@plconline.com      | Voice 515-278-0133 Ext 231
http://www.plconline.com/ | "Great spirits will always encounter violent
                          | opposition from mediocre minds" - Einstein


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: modifying boot loader
@ 1999-03-30  9:52 Andrew J Benie
  1999-03-30 14:12 ` Norman R Weathers
  0 siblings, 1 reply; 13+ messages in thread
From: Andrew J Benie @ 1999-03-30  9:52 UTC (permalink / raw)
  To: David Edelsohn, Dave Weis; +Cc: linuxppc-dev


Hi
I would have thought that linuxPPC would work on the PowerPC 601 chip as 
that is the chip that was in the first generation PCI based powermacs 
such as the 7200. LinuxPCC definately works on the 7200 as I am currently 
running release 4 on one.

yours
Andy

Laboratory of Structural Biochemistry,
Molecular and Cellular Biology,
Division of Biomedical Sciences,
Queen Mary and Westfield College,
Mile End Road
London E1 4NS

Tel:(44) 171 982 6976
Fax:(44) 181 983 0531
Messages&Paging: 04325 397544
http://newton.biochem.bms.qmw.ac.uk/wwwfolder/people/ab.html


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

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

end of thread, other threads:[~1999-03-31  7:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-29 21:48 modifying boot loader Dave Weis
1999-03-29 23:36 ` David Edelsohn
1999-03-29 23:38   ` Dave Weis
1999-03-29 23:49     ` David Edelsohn
1999-03-30  3:05       ` Dave Weis
1999-03-30  4:05         ` David Edelsohn
1999-03-30  4:25           ` Dave Weis
1999-03-30  8:13             ` Gabriel Paubert
1999-03-30 14:51               ` David A. Gatwood
1999-03-31  7:12                 ` Erik Karlberg
1999-03-30  9:38           ` Gary Thomas
  -- strict thread matches above, loose matches on Subject: below --
1999-03-30  9:52 Andrew J Benie
1999-03-30 14:12 ` Norman R Weathers

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