No subject
Thanks & Regards,
Rakesh Jagota
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Tuesday, July 13, 2004 5:49 AM
Subject: U-Boot-Users digest, Vol 1 #861 - 14 msgs
Quoted 67 lines
Send U-Boot-Users mailing list submissions to
u-boot-users at lists.sourceforge.netTo subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/u-boot-users
or, via email, send a message with subject or body 'help' to u-boot-users-request at lists.sourceforge.netYou can reach the person managing the list at
u-boot-users-admin at lists.sourceforge.netWhen replying, please edit your Subject line so it is more specific than "Re: Contents of U-Boot-Users digest..."
Today's Topics:
1. Re: More 8540/8560 ADS Patches Soon (Jon Loeliger)
2.ppc4xx/serial.c(=?iso-8859-1?Q?Seingier_Fran=E7ois-Xavier?=)
3. RE: [u-boot-users]: Relocation code on Nios (Scott McNutt)
4. Debugging U-Boot Under DDD (Talib Alim)
5. Re: Debugging U-Boot Under DDD (Wolfgang Denk)
6. Re: Debugging U-Boot Under DDD (Matthew McClintock)
7. RE: Debugging U-Boot Under DDD (VanBaren, Gerald (AGRE))
8. Re: Debugging U-Boot Under DDD (Talib Alim)
9. Re: Debugging U-Boot Under DDD (Wolfgang Denk)
10. Help with serial port set-up for PPC 8540 (Junita Ajith)
11. Errant Tab indrivers/cfi_flash.c(Michael Bendzick)
12. Re: Help with serial port set-up for PPC 8540 (Wolfgang Denk)
13. Re: Errant Tab indrivers/cfi_flash.c(Wolfgang Denk)
14. Re: Debugging U-Boot Under DDD (Talib Alim)--__--__--
Message: 1
Subject: Re: [U-Boot-Users] More 8540/8560 ADS Patches Soon
From: Jon Loeliger <[email protected]>
To: u-boot-users <[email protected]> Organization:
Date: 12 Jul 2004 11:20:42 -0500Quoted 8 lines · Wolfgang Denk
I reject the following parts:
cpu/mpc85xx/spd_sdram.c:...
All the rest: added & checked in.
Cool. Thanks.
Quoted 3 lines
...
Please feel free to go on now.
Will do. No problem about the
spd_sdram.cas essentially the entire purpose of the next patch is to improve large portions of that code.Thanks,
jdl
Quoted 5 lines
--__--__--
Message: 2
Date: Mon, 12 Jul 2004 18:23:16 +0200
From: =?iso-8859-1?Q?Seingier_Fran=E7ois-Xavier?=
Quoted 211 lines
To: "U-Boot-Users \(E-mail\)" <[email protected]>
Subject: [U-Boot-Users]ppc4xx/serial.chello,
I've been going through the code of the functionserial_initbecause I = couldn't get the proper baudrate divisor. I must admit I don't = understand the operations made to calculate udiv and bdiv... According = to the 405gp user manual, these are the meanings of a few parameters.
CFG_BASE_BAUD=3D SerClk / 16bdiv =3D SerClk / (16 * baudrate)
SerClk =3D
cpu_freq/ udivAs a result, udiv and bdiv should be generated as follows in =
serail_init:if
external_clock:SerClk =3D
CFG_EXT_SERIAL_CLK
udiv =3D 1else:
SerClk =3D
CFG_BASE_BAUD* 16
udiv =3Dcpu_freq/ serClkendif
bdiv =3D SerClk / (16 * baudrate)
Am I missing something?
regards,
Fran=E7ois-Xavier SEINGIER
--__--__--
Message: 3
From: Scott McNutt <[email protected]>
To: u-boot-users at lists.sourceforge.net
Date: Mon, 12 Jul 2004 13:01:26 -0400
Subject: [U-Boot-Users] RE: [u-boot-users]: Relocation code on NiosQuoted 3 lines
Quoted 3 lines
I don"t understand this particular line of code:
ld %g7, [%g7]
This moves the value pointed to by %g7 into register %g7. %g7 points to the location that stores the address of
_start. This is the address where u-boot is to be copied (the destination address).Quoted 4 lines
Quoted 4 lines
Per my understanding, %g7 keeps the return address. This address should point to the next instruction of code just after the delay slot of CALL or BSR used to call u-boot.
Yes, you are correct. %g7 points to where the (link time) address of
_startis stored (not the current execution address of_start).Quoted 6 lines
Quoted 6 lines
later this value (instruction bytes) is compared with %g5 that keeps the end of data segment according to
u-boot.lds. I can"t understand why code address is being compared with instruction bytes. Please explain if possible - what does [%g7] keep and where am I wrong?This just lets you store u-boot in memory at any address. When you being execution, the code is simply copied to
TEXT_BASE, that's all. This initial bsr just lets us know where we begin execution, the value in %g7 after the bsr is the target address plus 4.Currently, for convenience and simplicity, the u-boot code, data, and command table are currently located contiguously.
There's no magic here ... just load the binary to some arbitrary address, then single step through the code -- it'll help you understand :-)
Best Regards,
--Scott--__--__--
Message: 4
Date: Mon, 12 Jul 2004 12:08:24 -0700 (PDT)
From: Talib Alim <[email protected]>
Reply-To: talibalm at hotmail.com
To: U-Boot List <[email protected]>
Subject: [U-Boot-Users] Debugging U-Boot Under DDDThis may be a trivial question, but I hope that someone can answer me. I am bring up u-boot on 8xx.
While doing source level debugging under ddd, whenever I do step, stepi, next or nexti I see green instruction pointer jump all over the code. e.g. it would go to first line, than third line, than 7 line. If I look at machine code window, it is running in normal predictable way.
--__--__--
Message: 5
To: talibalm at hotmail.com
Cc: U-Boot List <[email protected]>
Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD
From: Wolfgang Denk <[email protected]>
Date: Mon, 12 Jul 2004 21:17:58 +0200In message <[email protected]> you wrote= :
Quoted 1 line
This may be a trivial question, but I hope that someone can answer me.
It's not a trivial question, but a FAQ.
Quoted 4 lines
While doing source level debugging under ddd, whenever I do step, stepi, next or nexti I see green instruction pointer jump all over the code. e.g. it would go to first line, than third line, than 7 line. If I look at machine code window, it is running in normal predictable way.
See http://www.denx.de/twiki/bin/view/DULG/DebuggingTricks
Best regards,
Wolfgang Denk
--=20
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de When it is incorrect, it is, at least *authoritatively* incorrect.
- Hitchiker's Guide To The Galaxy--__--__--
Message: 6
Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD
From: Matthew McClintock <[email protected]>
Reply-To: mcclintock at freescale.com
To: talibalm at hotmail.com
Cc: U-Boot List <[email protected]>
Date: Mon, 12 Jul 2004 14:18:08 +0000See: http://www.denx.de/twiki/bin/view/DULG/DebuggingTricks
Matthew
Quoted 9 lines · Talib Alim
This may be a trivial question, but I hope that someone can answer me. I am bring up u-boot on 8xx.
While doing source level debugging under ddd, whenever I do step, stepi, next or nexti I see green instruction pointer jump all over the code. e.g. it would go to first line, than third line, than 7 line. If I look at machine code window, it is running in normal predictable way.
Quoted 9 lines
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users--
Matthew McClintock <[email protected]>--__--__--
Message: 7
Subject: RE: [U-Boot-Users] Debugging U-Boot Under DDD
Date: Mon, 12 Jul 2004 13:21:43 -0600
From: "VanBaren, Gerald (AGRE)" <[email protected]>
To: "U-Boot List" <[email protected]>Quoted 9 lines
-----Original Message-----
From: u-boot-users-admin at lists.sourceforge.net [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of=0D Talib Alim
Sent: Monday, July 12, 2004 3:08 PM
To: U-Boot List
Subject: [U-Boot-Users] Debugging U-Boot Under DDD
=0D
=0DQuoted 8 lines
This may be a trivial question, but I hope that someone can answer me. I am bring up u-boot on 8xx.
=0D
While doing source level debugging under ddd, whenever I do step, stepi, next or nexti I see green instruction pointer jump all over the code. e.g. it would go to first line, than third line, than 7 line. If I look at machine code window, it is running in normal=0D predictable way.
Quoted 2 lines
That is typically because the compiler optimizer has re-ordered your=
program. ddd is showing you which line is being executed and the
machine=
Quoted 8 lines
code window shows sequential instructions, but those instructions are= _not_ for sequential source lines.
gvb
Quoted 7 lines
******************************************
The information contained in, or attached to, this e-mail, may contain=
confidential information and is intended solely for the use of the= individual or entity to whom they are addressed and may be subject to= legal privilege. If you have received this e-mail in error you should= notify the sender immediately by reply e-mail, delete the message from= your system and notify your system manager. Please do not copy it for
any=
Quoted 171 lines
purpose, or disclose its contents to any other person. The views or= opinions presented in this e-mail are solely those of the author and do= not necessarily represent those of the company. The recipient should= check this e-mail and any attachments for the presence of viruses. The= company accepts no liability for any damage caused, directly or= indirectly, by any virus transmitted in this email.
******************************************--__--__--
Message: 8
Date: Mon, 12 Jul 2004 12:43:03 -0700 (PDT)
From: Talib Alim <[email protected]>
Reply-To: talibalm at hotmail.com
Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD
To: Wolfgang Denk <[email protected]>, talibalm at hotmail.com
Cc: U-Boot List <[email protected]>Thanks for the link.
I have debugged u-boot to a point, it has relocated code, setup execptions / interrrupts etc and in
main_loop().At this point if I "Cont", I get pop-up from ddd
/.../u-boot-1.1.1/serial.c: No such file or directory.
There are 23
serial.cfiles in the tree. Those possibly relavent to me are
./cpu/mpc8xx/serial.c./tools/gdb/serial.c./drivers/serial.cJust before relocating the code, I typed following statements
(gdb) symbol-file
(gdb) add-symbol-file u-boot0xbda000
(gdb) dir cpu/mpc8xx
(gdb) dir board/fads
(gdb) dirtools/gdb/serial.c
(gdb) dirdrivers/serial.cWell, my question is why I am getting "No such file or directory" from ddd and how can I fix this problem.
Usman
Quoted 19 lines · --- Wolfgang Denk
In message <[email protected]> you
Quoted 2 lines · wrote:
This may be a trivial question, but I hope that someone can answer me.
It's not a trivial question, but a FAQ.
Quoted 5 lines
While doing source level debugging under ddd, whenever I do step, stepi, next or nexti I see green instruction pointer jump all over the code. e.g. it would go to first line, than third line, than 7 line. If I look at machine code window, it is running in normal predictable way.
See http://www.denx.de/twiki/bin/view/DULG/DebuggingTricks
Best regards,
Wolfgang Denk
Quoted 8 lines
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email:
wd at denx.de
When it is incorrect, it is, at least *authoritatively* incorrect.
- Hitchiker's Guide To The
Galaxy--__--__--
Message: 9
To: talibalm at hotmail.com
Cc: U-Boot List <[email protected]>
Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD
From: Wolfgang Denk <[email protected]>
Date: Mon, 12 Jul 2004 21:59:33 +0200Quoted 3 lines · In message <[email protected]> you wrote:
=20
At this point if I "Cont", I get pop-up from ddd /.../u-boot-1.1.1/serial.c: No such file or directory.Sounds like a toolchain or user problem to me.
Quoted 4 lines
Just before relocating the code, I typed following statements =20
(gdb) symbol-file
(gdb) add-symbol-file u-boot0xbda000How did you start gdb / DDD? Did you really load "u-boot" (i. e. the ELF file)?
Quoted 4 lines
(gdb) dir cpu/mpc8xx
(gdb) dir board/fads
(gdb) dirtools/gdb/serial.c
(gdb) dirdrivers/serial.cNone of these should be necessary. Which toolchain are you using?
Best regards,
Wolfgang Denk
--=20
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Old programmers never die, they just become managers.--__--__--
Message: 10
Date: Mon, 12 Jul 2004 14:29:57 -0700 (PDT)
From: Junita Ajith <[email protected]>
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] Help with serial port set-up for PPC 8540Hi
I am trying to write an Assembly code , just to
set-up the UART , so as to send a few characters via the serial port.I am working on a 8540 Motorola PowerPC . As I am
starting right from the scratch I dont have the boot -loader doing the board initializations for me and so have to have my ownstart.Sfile to do those .I just have set-up the necessary registers for
UART and as I am not doing any high level coding I havent set up the MMU , TLB etc. But my code doesnt seem to work !!!I assumed that that CPU would direclty read from
the Flash .I am new to this and so I need some advise of what all have to be done during board bring up, or where should I look for such documentation.Any help would be appreciated .
Thanks
Junita__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo--__--__--
Message: 11
From: Michael Bendzick <[email protected]>
To: "'u-boot-users at lists.sourceforge.net'" <[email protected]>
Date: Mon, 12 Jul 2004 16:59:45 -0500
Subject: [U-Boot-Users] Errant Tab indrivers/cfi_flash.c
Quoted 6 lines
I noticed in the
drivers/cfi_flash.cfile, there's a minor error in text formatting that makes for an ugly display when running 'flinfo'.I tracked it down to line 465, where either "(RO)" or blank space is displayed, depending on the sector status. An errant tab is in there that looked like the two spaces that ought to be there, which caused my
terminal
Quoted 1 line
program (Tera Term) to make the spacing between numbered sectors
excessively
Quoted 78 lines
wide, and also cause a blank line between every data-bearing line.
The fix (note that I'm using [tab] and [space] here for clarity):
Line 465...
info->start[i], info->protect[i] ? "[space](RO)" :
"[tab][space][space][space]");...should become...
info->start[i], info->protect[i] ? "[space](RO)" :
"[space][space][space][space][space]");-Michael Bendzick
Systems and Software Engineering
Logic Product Development
michael.b at logicpd.com
612-436-5122
www.logicpd.com--__--__--
Message: 12
To: Junita Ajith <[email protected]>
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Help with serial port set-up for PPC 8540
From: Wolfgang Denk <[email protected]>
Date: Tue, 13 Jul 2004 00:30:31 +0200In message <[email protected]> you w= rote:
Quoted 4 lines
I am trying to write an Assembly code , just to
set-up the UART , so as to send a few characters via the serial port.Why? There is a full-blown serial driver available written in C? Is this intended as a replacement for a missing BDI2000? Save your time, abd buy the BDI2000 _now_. Other wise your time is just wasted, as you will buy the BDI2000 later anyway.
Quoted 4 lines
I just have set-up the necessary registers for
UART and as I am not doing any high level coding I havent set up the MMU , TLB etc. But my code doesnt seem to work !!!Forget it. U-Boot was explicitely designed to bring up a serial console port as early as possible during initialization. OK, there are a few things that could be saved before running the serial driver, but this is just a tiny piece of the code you need to get right before you will see the first character on the serial line.
Don't try to re-invent the wheel.
Quoted 4 lines
I assumed that that CPU would direclty read from
the Flash .I am new to this and so I need some advise of what all have to be done during board bring up, or where should I look for such documentation.Use the existing U-Boot code. Attach a BDI2000 and just type "ti" at the telnet prompt, or "d/i $pc" + "si" in GDB...
Best regards,
Wolfgang Denk
--=20
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de "The good Christian should beware of mathematicians and all those who make empty prophecies. The danger already exists that mathematicians have made a covenant with the devil to darken the spirit and confine
man in the bonds of Hell." - Saint Augustine
Quoted 5 lines
--__--__--
Message: 13
To: Michael Bendzick <[email protected]>
Cc: "'u-boot-users at lists.sourceforge.net'"
Quoted 118 lines
Subject: Re: [U-Boot-Users] Errant Tab in
drivers/cfi_flash.c
From: Wolfgang Denk <[email protected]>
Date: Tue, 13 Jul 2004 00:35:55 +0200In message <[email protected]> =
Quoted 1 line · you
I noticed in the
drivers/cfi_flash.cfile, there's a minor error in tex=t
Quoted 1 line
formatting that makes for an ugly display when running 'flinfo'.
Thanks for pointing out (mea culpa).
Quoted 1 line
The fix (note that I'm using [tab] and [space] here for clarity):
It would have been much more useful (and less work for me) if you had just included a patch (see README for instructions).
Fixed in CVS tree.
Best regards,
Wolfgang Denk
--=20
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de We call our dog Egypt, because in every room he leaves a pyramid.--__--__--
Message: 14
Date: Mon, 12 Jul 2004 17:18:16 -0700 (PDT)
From: Talib Alim <[email protected]>
Reply-To: talibalm at hotmail.com
Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD
To: Wolfgang Denk <[email protected]>, talibalm at hotmail.com
Cc: U-Boot List <[email protected]>I am using eldk
[root at lab1 eldk]# cat version
ELDK version 3.0ppc_8xx: Build 2004-02-16I am starting ddd with following command line
ddd --debugger
/opt/eldk/usr/bin/ppc_8xx-gdb
target remote bdi:2001
symbol u-boot
set $pc =0x02000100# my flash is mapped @0x02000000
I am using bin {& not elf}, apart from this problem, it seems to be doing fine.TA
Quoted 37 lines · --- Wolfgang Denk
In message <[email protected]> you
Quoted 3 lines · wrote:
At this point if I "Cont", I get pop-up from ddd /.../u-boot-1.1.1/serial.c: No such file or directory.
Sounds like a toolchain or user problem to me.
Quoted 4 lines
Just before relocating the code, I typed following statements
(gdb) symbol-file
(gdb) add-symbol-file u-boot0xbda000How did you start gdb / DDD? Did you really load "u-boot" (i. e. the
ELF file)?Quoted 4 lines
(gdb) dir cpu/mpc8xx
(gdb) dir board/fads
(gdb) dirtools/gdb/serial.c
(gdb) dirdrivers/serial.cNone of these should be necessary. Which toolchain are you using?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email:
wd at denx.de
Old programmers never die, they just become managers.Quoted 10 lines
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users--__--__--
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-usersEnd of U-Boot-Users Digest