* [U-Boot-Users] boot up u-boot from RAM
@ 2006-10-26 20:14 Lei Sun
2006-10-26 20:57 ` Nghiem, Tien
0 siblings, 1 reply; 5+ messages in thread
From: Lei Sun @ 2006-10-26 20:14 UTC (permalink / raw)
To: u-boot
Hi all:
I am debugging a costomized board based on mpc8270, due to the
design flaw, we can't boot up the system using flash, so I was trying
to debug u-boot by loading it into the RAM.
I used JTAG debugger to initialize the SDRAM and load the u-boot to
0x0, after reset, the PC is at 0x100. the disassembled code looks
correct on that location, however, i can't single step start from
0x100. Is that because 0x100 is the reset vector ? I tried to put some
breakpoint at some places not far from start point, but it gave me
"unknown halt at 0x00000000" error after "run" command. after that the
memory seems corrupted.
Too bad I was using a bad debugger(Guardian-SE), I have a
evaluation copy of the codewarrior plus USB+TAP from freescale. I
tried that on our PQ2FADS-VR SDK. After reset, and CPU halt, I can't
see any disassembed code on 0x100 (the uboot is already in the flash,
and I assume it should read data from CS0 upon reset). Although the
code does execute after hitting "run" button. I wonder why can't I
see the disassembed code after reset?
Thanks
lei
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] boot up u-boot from RAM
@ 2006-10-26 20:57 ` Nghiem, Tien
2006-10-26 21:30 ` Lei Sun
2007-11-26 13:37 ` lamej
0 siblings, 2 replies; 5+ messages in thread
From: Nghiem, Tien @ 2006-10-26 20:57 UTC (permalink / raw)
To: u-boot
Lei,
You have to rebuild your code to put your code in the RAM area (other than the FLASH area). Don't use the address 0x00-0x2fff because its reserved for the exception vectors usually. I have a Lite5200 EVB. I use the address 0x20000 to put my u-boot in RAM and it works. I don't know if it could be done for the mpc8270.
Tien
-----Original Message-----
From: u-boot-users-bounces@lists.sourceforge.net
[mailto:u-boot-users-bounces at lists.sourceforge.net]On Behalf Of Lei Sun
Sent: Thursday, October 26, 2006 4:15 PM
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] boot up u-boot from RAM
Hi all:
I am debugging a costomized board based on mpc8270, due to the
design flaw, we can't boot up the system using flash, so I was trying
to debug u-boot by loading it into the RAM.
I used JTAG debugger to initialize the SDRAM and load the u-boot to
0x0, after reset, the PC is at 0x100. the disassembled code looks
correct on that location, however, i can't single step start from
0x100. Is that because 0x100 is the reset vector ? I tried to put some
breakpoint at some places not far from start point, but it gave me
"unknown halt at 0x00000000" error after "run" command. after that the
memory seems corrupted.
Too bad I was using a bad debugger(Guardian-SE), I have a
evaluation copy of the codewarrior plus USB+TAP from freescale. I
tried that on our PQ2FADS-VR SDK. After reset, and CPU halt, I can't
see any disassembed code on 0x100 (the uboot is already in the flash,
and I assume it should read data from CS0 upon reset). Although the
code does execute after hitting "run" button. I wonder why can't I
see the disassembed code after reset?
Thanks
lei
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] boot up u-boot from RAM
2006-10-26 20:57 ` Nghiem, Tien
@ 2006-10-26 21:30 ` Lei Sun
2007-11-26 13:37 ` lamej
1 sibling, 0 replies; 5+ messages in thread
From: Lei Sun @ 2006-10-26 21:30 UTC (permalink / raw)
To: u-boot
I did build my code to 0x0 (TEXT_BASE=0x0). Your explaination does
make some sense, but what i don't understand is that upon reset, PC
jump to reset vector 0x100, does it need a valid instruction on 0x100
to exectute, so why couldn't I single step start from this location?
Have you ever tried to put the code to 0x0 instead ? It didn't work?
Why would it work if in the flash? in that case the the initial
portion of the flash is also for exeption vectors.
On 10/26/06, Nghiem, Tien <TNghiem@oerlikon.ca> wrote:
> Lei,
>
> You have to rebuild your code to put your code in the RAM area (other than the FLASH area). Don't use the address 0x00-0x2fff because its reserved for the exception vectors usually. I have a Lite5200 EVB. I use the address 0x20000 to put my u-boot in RAM and it works. I don't know if it could be done for the mpc8270.
>
> Tien
>
> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net
> [mailto:u-boot-users-bounces at lists.sourceforge.net]On Behalf Of Lei Sun
> Sent: Thursday, October 26, 2006 4:15 PM
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] boot up u-boot from RAM
>
>
> Hi all:
> I am debugging a costomized board based on mpc8270, due to the
> design flaw, we can't boot up the system using flash, so I was trying
> to debug u-boot by loading it into the RAM.
> I used JTAG debugger to initialize the SDRAM and load the u-boot to
> 0x0, after reset, the PC is at 0x100. the disassembled code looks
> correct on that location, however, i can't single step start from
> 0x100. Is that because 0x100 is the reset vector ? I tried to put some
> breakpoint at some places not far from start point, but it gave me
> "unknown halt at 0x00000000" error after "run" command. after that the
> memory seems corrupted.
> Too bad I was using a bad debugger(Guardian-SE), I have a
> evaluation copy of the codewarrior plus USB+TAP from freescale. I
> tried that on our PQ2FADS-VR SDK. After reset, and CPU halt, I can't
> see any disassembed code on 0x100 (the uboot is already in the flash,
> and I assume it should read data from CS0 upon reset). Although the
> code does execute after hitting "run" button. I wonder why can't I
> see the disassembed code after reset?
>
> Thanks
> lei
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] boot up u-boot from RAM
2006-10-26 20:57 ` Nghiem, Tien
2006-10-26 21:30 ` Lei Sun
@ 2007-11-26 13:37 ` lamej
2007-11-26 14:06 ` Wolfgang Denk
1 sibling, 1 reply; 5+ messages in thread
From: lamej @ 2007-11-26 13:37 UTC (permalink / raw)
To: u-boot
Hi lee,
I am using lite5200 and Ihave dowaload uboot IT was working perfect, but I
got the usb tap and the Code warrior.
my problems are :
USB tab does not comminicate with the board .
and I donot know if uboot goes with code warrior
thanks
Nghiem, Tien wrote:
>
> Lei,
>
> You have to rebuild your code to put your code in the RAM area (other than
> the FLASH area). Don't use the address 0x00-0x2fff because its reserved
> for the exception vectors usually. I have a Lite5200 EVB. I use the
> address 0x20000 to put my u-boot in RAM and it works. I don't know if it
> could be done for the mpc8270.
>
> Tien
>
> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net
> [mailto:u-boot-users-bounces at lists.sourceforge.net]On Behalf Of Lei Sun
> Sent: Thursday, October 26, 2006 4:15 PM
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] boot up u-boot from RAM
>
>
> Hi all:
> I am debugging a costomized board based on mpc8270, due to the
> design flaw, we can't boot up the system using flash, so I was trying
> to debug u-boot by loading it into the RAM.
> I used JTAG debugger to initialize the SDRAM and load the u-boot to
> 0x0, after reset, the PC is at 0x100. the disassembled code looks
> correct on that location, however, i can't single step start from
> 0x100. Is that because 0x100 is the reset vector ? I tried to put some
> breakpoint at some places not far from start point, but it gave me
> "unknown halt at 0x00000000" error after "run" command. after that the
> memory seems corrupted.
> Too bad I was using a bad debugger(Guardian-SE), I have a
> evaluation copy of the codewarrior plus USB+TAP from freescale. I
> tried that on our PQ2FADS-VR SDK. After reset, and CPU halt, I can't
> see any disassembed code on 0x100 (the uboot is already in the flash,
> and I assume it should read data from CS0 upon reset). Although the
> code does execute after hitting "run" button. I wonder why can't I
> see the disassembed code after reset?
>
> Thanks
> lei
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
>
--
View this message in context: http://www.nabble.com/boot-up-u-boot-from-RAM-tf2516529.html#a13948771
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] boot up u-boot from RAM
2007-11-26 13:37 ` lamej
@ 2007-11-26 14:06 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2007-11-26 14:06 UTC (permalink / raw)
To: u-boot
In message <13948771.post@talk.nabble.com> you wrote:
>
> Hi lee,
> I am using lite5200 and Ihave dowaload uboot IT was working perfect, but I
> got the usb tap and the Code warrior.
> my problems are :
> USB tab does not comminicate with the board .
> and I donot know if uboot goes with code warrior
Lamej, you are violating a lot of pretty basic netiquette rules all at
once.
Don't top post / full quote.
Don't reply to completely unrelated messages when in fact you want to
start a new thread.
Don't ask off topic questions.
And read the FAQ before posting:
http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM
You may also want to read
http://www.netmeister.org/news/learn2quote.html and
http://catb.org/esr/faqs/smart-questions.html
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
: 1. What is the possibility of this being added in the future?
In the near future, the probability is close to zero. In the distant
future, I'll be dead, and posterity can do whatever they like... :-)
- lwall
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-26 14:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-26 20:14 [U-Boot-Users] boot up u-boot from RAM Lei Sun
2006-10-26 20:57 ` Nghiem, Tien
2006-10-26 21:30 ` Lei Sun
2007-11-26 13:37 ` lamej
2007-11-26 14:06 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.