Dear All,<br>
<br>
<br>
I m new to U-Boot . Plz dont neglect me may be this a sily question but
I want to know is U-Boot is using directly physical address or virtual
address of a processor .<br>
<br>
plz reply this question . <br><br><div><span class="gmail_quote">On 7/26/08, <b class="gmail_sendername"><a href="mailto:u-boot-users-request@lists.sourceforge.net">u-boot-users-request@lists.sourceforge.net</a></b> <<a href="mailto:u-boot-users-request@lists.sourceforge.net">u-boot-users-request@lists.sourceforge.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send U-Boot-Users mailing list submissions to<br> <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a><br> <br> To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="https://lists.sourceforge.net/lists/listinfo/u-boot-users">https://lists.sourceforge.net/lists/listinfo/u-boot-users</a><br>
or, via email, send a message with subject or body 'help' to<br> <a href="mailto:u-boot-users-request@lists.sourceforge.net">u-boot-users-request@lists.sourceforge.net</a><br> <br> You can reach the person managing the list at<br>
<a href="mailto:u-boot-users-owner@lists.sourceforge.net">u-boot-users-owner@lists.sourceforge.net</a><br> <br> When replying, please edit your Subject line so it is more specific<br> than "Re: Contents of U-Boot-Users digest..."<br>
<br> <br> Today's Topics:<br> <br> 1. Re: Changing u-boot relocation scheme (Wolfgang Denk)<br> 2. Re: Changing u-boot relocation scheme (Wolfgang Denk)<br> 3. Re: Changing u-boot relocation scheme (Wolfgang Denk)<br>
4. Re: Changing u-boot relocation scheme (Grant Likely)<br> 5. Re: Changing u-boot relocation scheme (Grant Likely)<br> 6. Re: Changing u-boot relocation scheme (vb)<br> 7. Re: Changing u-boot relocation scheme (vb)<br>
8. Re: Changing u-boot relocation scheme (Grant Likely)<br> 9. Re: Changing u-boot relocation scheme (Grant Likely)<br> <br> <br> ----------------------------------------------------------------------<br> <br> Message: 1<br>
Date: Sat, 26 Jul 2008 07:36:35 +0200<br> From: Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>><br> Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br> To: kenneth johansson <<a href="mailto:kenneth@southpole.se">kenneth@southpole.se</a>><br>
Cc: vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>>, <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a>, Haavard<br> Skinnemoen <<a href="mailto:haavard.skinnemoen@atmel.com">haavard.skinnemoen@atmel.com</a>>, Jerry Van Baren<br>
<<a href="mailto:gerald.vanbaren@ge.com">gerald.vanbaren@ge.com</a>><br> Message-ID: <<a href="mailto:20080726053635.56011248BF@gemini.denx.de">20080726053635.56011248BF@gemini.denx.de</a>><br> Content-Type: text/plain; charset=ISO-8859-1<br>
<br> In message <1217006928.7972.47.camel@duo> you wrote:<br> ><br> > I know exactly what Grant did. But he is not using the elf relocation<br> > information as that is simply not included in the data that is the<br>
> u-boot.bin file.<br> <br> So what? Is this a problem? Why would we need to use XXX if we can<br> perform all we need to do by using YYY instead, especially if this is<br> simpler to implement?<br> <br> > Also this discussion is more about doing it in a way that is not powerpc<br>
> specific and documented, we already have as you mentioned code for the<br> > powerpc specific way but it's not using elf relocation information.<br> <br> Who says that we MUST use the ELF reloc info?<br> <br>
Or why?<br> <br> > I was afraid that what was needed was more or less a complete linker but<br> > it looks like if one generate the dynamic reloc table a much simpler<br> > linker(relocation function) is needed. Still probably a lot more complex<br>
> than the GOT and fixup code that is just a loop over a table. We may<br> > need a case also ;-)<br> <br> Please re-read Grant's patch. There were NO changes to the existing<br> simple code!<br> <br> Best regards,<br>
<br> Wolfgang Denk<br> <br> --<br> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel<br> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany<br> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: <a href="mailto:wd@denx.de">wd@denx.de</a><br>
Murder is contrary to the laws of man and God.<br> -- M-5 Computer, "The Ultimate Computer", stardate 4731.3<br> <br> <br> <br> ------------------------------<br> <br> Message: 2<br> Date: Sat, 26 Jul 2008 07:36:35 +0200<br>
From: Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>><br> Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br> To: Haavard Skinnemoen <<a href="mailto:haavard.skinnemoen@atmel.com">haavard.skinnemoen@atmel.com</a>><br>
Cc: vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>>, <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a>, Jerry Van<br> Baren <<a href="mailto:gerald.vanbaren@ge.com">gerald.vanbaren@ge.com</a>><br>
Message-ID: <<a href="mailto:20080726053635.65A47242FF@gemini.denx.de">20080726053635.65A47242FF@gemini.denx.de</a>><br> Content-Type: text/plain; charset=ISO-8859-1<br> <br> In message <20080725205017.564dedff@siona.local> you wrote:<br>
><br> > Ok, I'll stop the chest-beating now. But please stop trying to tell<br> > people that adding a powerpc-specific option (which nobody seems to<br> > know how really works) to the command line will work on any other<br>
> architectures than powerpc.<br> <br> OK - then please you explain exactly which other architectures have<br> problems with relocation?<br> <br> Best regards,<br> <br> Wolfgang Denk<br> <br> --<br> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel<br>
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany<br> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: <a href="mailto:wd@denx.de">wd@denx.de</a><br> I am more bored than you could ever possibly be. Go back to work.<br>
<br> <br> <br> ------------------------------<br> <br> Message: 3<br> Date: Sat, 26 Jul 2008 07:36:35 +0200<br> From: Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>><br> Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br>
To: "Joakim Tjernlund" <<a href="mailto:Joakim.Tjernlund@transmode.se">Joakim.Tjernlund@transmode.se</a>><br> Cc: 'vb' <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>>, <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a>, 'Haavard<br>
Skinnemoen' <<a href="mailto:haavard.skinnemoen@atmel.com">haavard.skinnemoen@atmel.com</a>><br> Message-ID: <<a href="mailto:20080726053635.36A81248BF@gemini.denx.de">20080726053635.36A81248BF@gemini.denx.de</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br> <br> In message <013a01c8ee5a$966d6c40$c34844c0$@<a href="mailto:Tjernlund@transmode.se">Tjernlund@transmode.se</a>> you wrote:<br> ><br> > I think the best bet is to make -mrelocatable work for PPC. Question is how<br>
> does the other arches do it? Do they include fixup ptrs by default or do<br> > they lack this functionality?<br> <br> The question that needs to answered first is if any other<br> architectures are affected at all, and if so, which ones.<br>
<br> For example, ARM and MIPS (and probably most others) do *NOT* perform<br> any relocation at all (this should be fixed, of course - being one of<br> the big probalems we inherited from the original ARMBoot port), but as<br>
is the whole discussion is a non-isssue on these architectures.<br> <br> Best regards,<br> <br> Wolfgang Denk<br> <br> --<br> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel<br> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany<br>
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: <a href="mailto:wd@denx.de">wd@denx.de</a><br> Systems programmers are the high priests of a low cult.<br>
-- R.S. Barton<br> <br> <br> <br> ------------------------------<br> <br> Message: 4<br> Date: Sat, 26 Jul 2008 01:43:31 -0400<br> From: "Grant Likely" <<a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca</a>><br>
Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br> To: vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>><br> Cc: <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a>, Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>><br>
Message-ID:<br> <<a href="mailto:fa686aa40807252243u4c2957f7y1f80ec22e234c622@mail.gmail.com">fa686aa40807252243u4c2957f7y1f80ec22e234c622@mail.gmail.com</a>><br> Content-Type: text/plain; charset=ISO-8859-1<br>
<br> On Thu, Jul 24, 2008 at 2:45 AM, vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>> wrote:<br> > Wolfgang, thank you for your reply, let me try to explain myself a bit clearer:<br> ><br> > On Wed, Jul 23, 2008 at 8:18 PM, Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>> wrote:<br>
>> In message <<a href="mailto:f608b67d0807231039i434e96dbvda86590776db2cb0@mail.gmail.com">f608b67d0807231039i434e96dbvda86590776db2cb0@mail.gmail.com</a>> you wrote:<br> >> If you invest time in solving such problems, than your time willbe<br>
>> much better iinvested if you try to help solving the remaining issues<br> >> with Grant's code.<br> >><br> >> What Grant suggests is the way to go. I do not think your approach has<br> >> chances for mainline.<br>
>><br> ><br> > I am sorry to hear this, especially since what I suggest would be<br> > completely compiler agnostic and would allow to avoid some of the<br> > limitations one must follow today while adding stuff to u-boot.<br>
<br> The problem is that the u-boot C runtime setup is insane and must be<br> fixed. Fix the C runtime and the problem goes away. The approach<br> being suggested here would have us *preserve* the insane C runtime and<br>
actually depend on the runtime to remain insane in order to work.<br> <br> Not a good approach.<br> <br> The C runtime problem is solvable, but I didn't have the time or<br> resources to properly dig into it and I got frustrated before it was<br>
fully debugged.<br> <br> g.<br> <br> --<br> Grant Likely, B.Sc., P.Eng.<br> Secret Lab Technologies Ltd.<br> <br> <br> <br> ------------------------------<br> <br> Message: 5<br> Date: Sat, 26 Jul 2008 01:48:09 -0400<br>
From: "Grant Likely" <<a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca</a>><br> Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br> To: "Kenneth Johansson" <<a href="mailto:kenneth@southpole.se">kenneth@southpole.se</a>><br>
Cc: vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>>, <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a>, Haavard<br> Skinnemoen <<a href="mailto:haavard.skinnemoen@atmel.com">haavard.skinnemoen@atmel.com</a>>, Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>><br>
Message-ID:<br> <<a href="mailto:fa686aa40807252248m33b205b9y521f01c4c8711471@mail.gmail.com">fa686aa40807252248m33b205b9y521f01c4c8711471@mail.gmail.com</a>><br> Content-Type: text/plain; charset=ISO-8859-1<br>
<br> On Thu, Jul 24, 2008 at 2:09 PM, Kenneth Johansson <<a href="mailto:kenneth@southpole.se">kenneth@southpole.se</a>> wrote:<br> > On Thu, 2008-07-24 at 10:37 -0700, vb wrote:<br> >> But as you pointed out, this would work on ppc only (with a 'good'<br>
>> compiler), and still remains to be proven, I will get to it a bit<br> >> later.<br> ><br> > I have run u-boot with everything compiled with -mrelocatable and normal<br> > relocation fixup code removed so I know it works fine. So consider it<br>
> proven. But since it apparently is a problem in some situation the best<br> > is probably to make it a configuration option.<br> <br> Can you test against various versions of gcc? That is where I ran into trouble.<br>
<br> g.<br> <br> --<br> Grant Likely, B.Sc., P.Eng.<br> Secret Lab Technologies Ltd.<br> <br> <br> <br> ------------------------------<br> <br> Message: 6<br> Date: Fri, 25 Jul 2008 22:51:26 -0700<br> From: vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>><br>
Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br> To: "Wolfgang Denk" <<a href="mailto:wd@denx.de">wd@denx.de</a>><br> Cc: <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a><br>
Message-ID:<br> <<a href="mailto:f608b67d0807252251p55fce269j9eb9e4d5052c8f83@mail.gmail.com">f608b67d0807252251p55fce269j9eb9e4d5052c8f83@mail.gmail.com</a>><br> Content-Type: text/plain; charset=ISO-8859-1<br>
<br> On Fri, Jul 25, 2008 at 10:36 PM, Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>> wrote:<br> > In message <<a href="mailto:f608b67d0807250751j137e70c0oe67affcf46399c8e@mail.gmail.com">f608b67d0807250751j137e70c0oe67affcf46399c8e@mail.gmail.com</a>> you wrote:<br>
><br> > Maybe I should have been more explicit right from the beginning. I<br> > repeat: forget it. This will *not* go into mainline. Zero chance.<br> ><br> <br> well, it's your call, I'ill stick with -mrelocatable on 'non native'<br>
modules then.<br> <br> cheers,<br> /vb<br> <br> > Best regards,<br> ><br> > Wolfgang Denk<br> ><br> > --<br> > DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel<br> > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany<br>
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: <a href="mailto:wd@denx.de">wd@denx.de</a><br> > How many seconds are there in a year? If I tell you there are 3.155 x<br> > 10^7, you won't even try to remember it. On the other hand, who could<br>
> forget that, to within half a percent, pi seconds is a nanocentury.<br>
>
-- Tom Duff, Bell Labs<br> ><br> <br> <br> <br> ------------------------------<br> <br> Message: 7<br> Date: Fri, 25 Jul 2008 22:54:51 -0700<br> From: vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>><br> Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br>
To: "Grant Likely" <<a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca</a>><br> Cc: <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a><br> Message-ID:<br>
<<a href="mailto:f608b67d0807252254o772fd6d1ma5f753763414e3e1@mail.gmail.com">f608b67d0807252254o772fd6d1ma5f753763414e3e1@mail.gmail.com</a>><br> Content-Type: text/plain; charset=ISO-8859-1<br> <br> On Fri, Jul 25, 2008 at 10:43 PM, Grant Likely<br>
<<a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca</a>> wrote:<br> ><br> > The problem is that the u-boot C runtime setup is insane and must be<br> > fixed. Fix the C runtime and the problem goes away. The approach<br>
> being suggested here would have us *preserve* the insane C runtime and<br> > actually depend on the runtime to remain insane in order to work.<br> ><br> <br> Grant, thank you for pitching in.<br> <br> It would be great if you could elaborate what exactly is insane about<br>
C runtime setup (especially since in u-boot its code comes from the<br> source tree and not from some obscure compiler dependent library) and<br> how its insanity is related here.<br> <br> TIA,<br> /vb<br> <br> > Not a good approach.<br>
><br> > The C runtime problem is solvable, but I didn't have the time or<br> > resources to properly dig into it and I got frustrated before it was<br> > fully debugged.<br> ><br> > g.<br> ><br> > --<br>
> Grant Likely, B.Sc., P.Eng.<br> > Secret Lab Technologies Ltd.<br> ><br> <br> <br> <br> ------------------------------<br> <br> Message: 8<br> Date: Sat, 26 Jul 2008 01:57:02 -0400<br> From: "Grant Likely" <<a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca</a>><br>
Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br> To: "kenneth johansson" <<a href="mailto:kenneth@southpole.se">kenneth@southpole.se</a>><br> Cc: vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>>, <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a>, Haavard<br>
Skinnemoen <<a href="mailto:haavard.skinnemoen@atmel.com">haavard.skinnemoen@atmel.com</a>>, Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>>,<br> Jerry Van Baren <<a href="mailto:gerald.vanbaren@ge.com">gerald.vanbaren@ge.com</a>><br>
Message-ID:<br> <<a href="mailto:fa686aa40807252257o7a6b966bve89cb2830a0da0ef@mail.gmail.com">fa686aa40807252257o7a6b966bve89cb2830a0da0ef@mail.gmail.com</a>><br> Content-Type: text/plain; charset=ISO-8859-1<br>
<br> On Fri, Jul 25, 2008 at 1:28 PM, kenneth johansson <<a href="mailto:kenneth@southpole.se">kenneth@southpole.se</a>> wrote:<br> > I was afraid that what was needed was more or less a complete linker but<br> > it looks like if one generate the dynamic reloc table a much simpler<br>
> linker(relocation function) is needed. Still probably a lot more complex<br> > than the GOT and fixup code that is just a loop over a table. We may<br> > need a case also ;-)<br> <br> The GOT relocation works. It works really well. As long as gcc and<br>
ld put the correct GOT bits into the GOT table. It seems not all<br> versions of gcc do it in the same way with the same flags.<br> <br> g.<br> <br> --<br> Grant Likely, B.Sc., P.Eng.<br> Secret Lab Technologies Ltd.<br>
<br> <br> <br> ------------------------------<br> <br> Message: 9<br> Date: Sat, 26 Jul 2008 02:06:36 -0400<br> From: "Grant Likely" <<a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca</a>><br>
Subject: Re: [U-Boot-Users] Changing u-boot relocation scheme<br> To: "Haavard Skinnemoen" <<a href="mailto:haavard.skinnemoen@atmel.com">haavard.skinnemoen@atmel.com</a>><br> Cc: vb <<a href="mailto:vb@vsbe.com">vb@vsbe.com</a>>, <a href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</a>, Wolfgang<br>
Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>>, Jerry Van Baren <<a href="mailto:gerald.vanbaren@ge.com">gerald.vanbaren@ge.com</a>><br> Message-ID:<br> <<a href="mailto:fa686aa40807252306p14e0fe43ta7fba15b4b43b492@mail.gmail.com">fa686aa40807252306p14e0fe43ta7fba15b4b43b492@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br> <br> On Fri, Jul 25, 2008 at 2:50 PM, Haavard Skinnemoen<br> <<a href="mailto:haavard.skinnemoen@atmel.com">haavard.skinnemoen@atmel.com</a>> wrote:<br> > Ok, I'll stop the chest-beating now. But please stop trying to tell<br>
> people that adding a powerpc-specific option (which nobody seems to<br> > know how really works) to the command line will work on any other<br> > architectures than powerpc.<br> <br> You are completely right. For the purposes of this discussion, this<br>
is a powerpc-centric problem. The relocation code is written in<br> assembly and is processor specific. Let the ARM folks make sure ARM<br> relocation works (and I think it already does). Let the MIPS folks do<br> the same. Each arch has it's own set of CFLAGS and LDFLAGS needed to<br>
produce a sane binary. They should be picked off and fixed one arch<br> at a time.<br> <br> BTW, searching for assignments to reloc_off in the source will tell<br> you which platforms are broken.<br> <br> g.<br> <br> --<br>
Grant Likely, B.Sc., P.Eng.<br> Secret Lab Technologies Ltd.<br> <br> <br> <br> ------------------------------<br> <br> -------------------------------------------------------------------------<br> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br> Grand prize is a trip for two to an Open Source event anywhere in the world<br> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
<br> ------------------------------<br> <br> _______________________________________________<br> U-Boot-Users mailing list<br> <a href="mailto:U-Boot-Users@lists.sourceforge.net">U-Boot-Users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/u-boot-users">https://lists.sourceforge.net/lists/listinfo/u-boot-users</a><br> <br> <br> End of U-Boot-Users Digest, Vol 26, Issue 229<br> *********************************************<br>
</blockquote></div><br>