Re: [U-Boot] "b reset" does not work in u-boot_v2010.12-rc3 with eldk4.2

Dear "MrGates",
please always keep the mailing list on cc:
In message D9D3B66C8A5547E0BA21713B70C8E8A8@Microsoft you wrote:
These indicate that in start.S,first instruction:b reset not jump success
What do you mean by that statement?
I am sorry that i have no clear. I mean that "b reset"statement does not jump to the lable reset at line 104 of start.S correctly.
If you want to execute machine instructions one by one you should use "stepi" instead of "step".
The process just go from one instruction to the next.
You are running series of "step" commands - you are asking the debugger to "go from one instruction to the next", and this is what it does. What else would you expect?
Maybe i misunderstand the use of "step" command of arm-linux-gdb. I want gdb to simulate the execution sequence of my u-boot.
gdb does not simulate, it actually runs the code. And the "step" command runs the code until it reaches a new source line.
If you want to step on machine instruction level you should use "stepi" instead.
You may also want to read the documentation, for example this section of the DULG: http://www.denx.de/wiki/view/DULG/DebuggingTricks
What may be the problem?any suggestions is appreciate.
Where exactly do you see a problem?
compile success.But when i burn u-boot.bin into my NOR flash(sst39vf3201).Nothing happened. So i would like to use arm-linux-gdb(eldk-4.2) with simulating.
Debugging is indeed a good idea in such a situation. Note that gdb does not "simulate". You will need a JTAG adapter to debug on the real hardware.
Best regards,
Wolfgang Denk

----- Original Message ----- From: "Wolfgang Denk" wd@denx.de To: "MrGates" 120368262@qq.com Cc: u-boot@lists.denx.de Sent: Saturday, January 08, 2011 7:41 PM Subject: Re: [U-Boot] "b reset" does not work in u-boot_v2010.12-rc3 with eldk4.2
Dear "MrGates",
please always keep the mailing list on cc:
OK, i will.
In message D9D3B66C8A5547E0BA21713B70C8E8A8@Microsoft you wrote:
These indicate that in start.S,first instruction:b reset not jump success
What do you mean by that statement?
I am sorry that i have no clear. I mean that "b reset"statement does not jump to the lable reset at
line 104 of start.S correctly.
If you want to execute machine instructions one by one you should use "stepi" instead of "step".
The process just go from one instruction to the next.
You are running series of "step" commands - you are asking the debugger to "go from one instruction to the next", and this is what it does. What else would you expect?
Maybe i misunderstand the use of "step" command of arm-linux-gdb. I want gdb to simulate the execution sequence of my u-boot.
gdb does not simulate, it actually runs the code. And the "step" command runs the code until it reaches a new source line.
Yes,you are right.
If you want to step on machine instruction level you should use "stepi" instead.
You may also want to read the documentation, for example this section of the DULG: http://www.denx.de/wiki/view/DULG/DebuggingTricks
I have seen that above.
What may be the problem?any suggestions is appreciate.
Where exactly do you see a problem?
compile success.But when i burn u-boot.bin into my NOR
flash(sst39vf3201).Nothing happened. So i would like to use arm-linux-gdb(eldk-4.2) with simulating.
Debugging is indeed a good idea in such a situation. Note that gdb does not "simulate". You will need a JTAG adapter to debug on the real hardware.
I use SkyEye 1.2.5 cooperates with arm-linux-gdb . Now the serial still no output information. I thought the u-boot has failed before relocation. I do not know where maybe wrong. I have checked configs/xxx.h ,start.S many times.
Best regards,
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@denx.de The only way to learn a new programming language is by writing pro- grams in it. - Brian Kernighan
o

Dear "MrGates",
In message 745589936D574232BE24EA063064B5B6@MrGates you wrote:
[ lots of unrelated quote deleted]
Please restrict your quoting to the relevant parts; see http://www.netmeister.org/news/learn2quote.html
I use SkyEye 1.2.5 cooperates with arm-linux-gdb . Now the serial still no output information. I thought the u-boot has failed before relocation. I do not know where maybe wrong. I have checked configs/xxx.h ,start.S many times.
Are you sure you are really debugging a problem with U-Boot? Maybe there is some problem with SkyEye and/or how you configured it?
Best regards,
Wolfgang Denk

Dear "Wolfgang Denk",
I Think i am debugging on u-boot.Because i am upgrading u-boot from v1.1.2 to v2010.12-rc3. I have tried to run u-boot on skyeye 1.2.5 ,and that works fine. Two version of U-boot are base on the same hardwares: CPU: S3c44b0 FLash: SST30vf3201 (4MByte) Net Adapter: RTL8019 SDRAM: H57V2562GTR (32MByte) U-boot v1.1.2 is old ,and it also works fine on this hardware environment.
Best Regrads MrGates ----- Original Message ----- From: "Wolfgang Denk" wd@denx.de To: "MrGates" 120368262@qq.com Cc: u-boot@lists.denx.de Sent: Wednesday, January 12, 2011 4:14 PM Subject: Re: [U-Boot] "b reset" does not work in u-boot_v2010.12-rc3 with eldk4.2
Dear "MrGates",
In message 745589936D574232BE24EA063064B5B6@MrGates you wrote:
[ lots of unrelated quote deleted]
Please restrict your quoting to the relevant parts; see http://www.netmeister.org/news/learn2quote.html
I use SkyEye 1.2.5 cooperates with arm-linux-gdb . Now the serial still no output information. I thought the u-boot has failed before relocation. I do not know where maybe wrong. I have checked configs/xxx.h ,start.S many times.
Are you sure you are really debugging a problem with U-Boot? Maybe there is some problem with SkyEye and/or how you configured it?
Best regards,
Wolfgang Denk
participants (2)
-
MrGates
-
Wolfgang Denk