[U-Boot-Users] Re: U-Boot-Users digest, Vol 1 #861 - 14 msgs

Hi all,
From where can I download latest u-boot.
Thanks & Regards, Rakesh Jagota ----- Original Message ----- From: u-boot-users-request@lists.sourceforge.net To: u-boot-users@lists.sourceforge.net Sent: Tuesday, July 13, 2004 5:49 AM Subject: U-Boot-Users digest, Vol 1 #861 - 14 msgs
Send U-Boot-Users mailing list submissions to u-boot-users@lists.sourceforge.net
To 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@lists.sourceforge.net
You can reach the person managing the list at u-boot-users-admin@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific than "Re: Contents of U-Boot-Users digest..."
Today's Topics:
- Re: More 8540/8560 ADS Patches Soon (Jon Loeliger)
- ppc4xx/serial.c (=?iso-8859-1?Q?Seingier_Fran=E7ois-Xavier?=)
- RE: [u-boot-users]: Relocation code on Nios (Scott McNutt)
- Debugging U-Boot Under DDD (Talib Alim)
- Re: Debugging U-Boot Under DDD (Wolfgang Denk)
- Re: Debugging U-Boot Under DDD (Matthew McClintock)
- RE: Debugging U-Boot Under DDD (VanBaren, Gerald (AGRE))
- Re: Debugging U-Boot Under DDD (Talib Alim)
- Re: Debugging U-Boot Under DDD (Wolfgang Denk)
- Help with serial port set-up for PPC 8540 (Junita Ajith)
- Errant Tab in drivers/cfi_flash.c (Michael Bendzick)
- Re: Help with serial port set-up for PPC 8540 (Wolfgang Denk)
- Re: Errant Tab in drivers/cfi_flash.c (Wolfgang Denk)
- Re: Debugging U-Boot Under DDD (Talib Alim)
--__--__--
Message: 1 Subject: Re: [U-Boot-Users] More 8540/8560 ADS Patches Soon From: Jon Loeliger jdl@freescale.com To: u-boot-users u-boot-users@lists.sourceforge.net Organization: Date: 12 Jul 2004 11:20:42 -0500
On Sun, 2004-07-11 at 17:26, Wolfgang Denk wrote:
I reject the following parts:
cpu/mpc85xx/spd_sdram.c:
...
All the rest: added & checked in.
Cool. Thanks.
...
Please feel free to go on now.
Will do. No problem about the spd_sdram.c as essentially the entire purpose of the next patch is to improve large portions of that code.
Thanks, jdl
--__--__--
Message: 2 Date: Mon, 12 Jul 2004 18:23:16 +0200 From: =?iso-8859-1?Q?Seingier_Fran=E7ois-Xavier?=
Francois-Xavier.Seingier@thomson.net
To: "U-Boot-Users (E-mail)" u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] ppc4xx/serial.c
hello, I've been going through the code of the function serial_init because 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 / 16
bdiv =3D SerClk / (16 * baudrate)
SerClk =3D cpu_freq / udiv
As a result, udiv and bdiv should be generated as follows in = serail_init:
if external_clock:
SerClk =3D CFG_EXT_SERIAL_CLK udiv =3D 1
else:
SerClk =3D CFG_BASE_BAUD * 16 udiv =3D cpu_freq / serClk
endif
bdiv =3D SerClk / (16 * baudrate)
Am I missing something?
regards,
Fran=E7ois-Xavier SEINGIER
--__--__--
Message: 3 From: Scott McNutt ScottM@orbacom.com To: u-boot-users@lists.sourceforge.net Date: Mon, 12 Jul 2004 13:01:26 -0400 Subject: [U-Boot-Users] RE: [u-boot-users]: Relocation code on Nios
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).
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 _start is stored (not the current execution address of _start).
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 talibalm@hotmail.com Reply-To: talibalm@hotmail.com To: U-Boot List u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] Debugging U-Boot Under DDD
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.
--__--__--
Message: 5 To: talibalm@hotmail.com Cc: U-Boot List u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD From: Wolfgang Denk wd@denx.de Date: Mon, 12 Jul 2004 21:17:58 +0200
In message 20040712190824.57774.qmail@web50510.mail.yahoo.com you wrote= :
This may be a trivial question, but I hope that someone can answer me.
It's not a trivial question, but a FAQ.
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@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 mcclintock@freescale.com Reply-To: mcclintock@freescale.com To: talibalm@hotmail.com Cc: U-Boot List u-boot-users@lists.sourceforge.net Date: Mon, 12 Jul 2004 14:18:08 +0000
See: http://www.denx.de/twiki/bin/view/DULG/DebuggingTricks
Matthew
On Mon, 2004-07-12 at 19:08, Talib Alim wrote:
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.
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
-- Matthew McClintock mcclintock@freescale.com
--__--__--
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)" Gerald.VanBaren@smiths-aerospace.com To: "U-Boot List" u-boot-users@lists.sourceforge.net
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@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 =0D 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.
That is typically because the compiler optimizer has re-ordered your= program. ddd is showing you which line is being executed and the
machine=
code window shows sequential instructions, but those instructions are= _not_ for sequential source lines.
gvb
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=
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 talibalm@hotmail.com Reply-To: talibalm@hotmail.com Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD To: Wolfgang Denk wd@denx.de, talibalm@hotmail.com Cc: U-Boot List u-boot-users@lists.sourceforge.net
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.c files in the tree. Those possibly relavent to me are
./cpu/mpc8xx/serial.c ./tools/gdb/serial.c ./drivers/serial.c
Just before relocating the code, I typed following statements
(gdb) symbol-file (gdb) add-symbol-file u-boot 0xbda000 (gdb) dir cpu/mpc8xx (gdb) dir board/fads (gdb) dir tools/gdb/serial.c (gdb) dir drivers/serial.c
Well, my question is why I am getting "No such file or directory" from ddd and how can I fix this problem.
Usman
--- Wolfgang Denk wd@denx.de wrote:
In message 20040712190824.57774.qmail@web50510.mail.yahoo.com you wrote:
This may be a trivial question, but I hope that someone can answer me.
It's not a trivial question, but a FAQ.
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
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de When it is incorrect, it is, at least *authoritatively* incorrect. - Hitchiker's Guide To The Galaxy
--__--__--
Message: 9 To: talibalm@hotmail.com Cc: U-Boot List u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD From: Wolfgang Denk wd@denx.de Date: Mon, 12 Jul 2004 21:59:33 +0200
In message 20040712194303.3117.qmail@web50504.mail.yahoo.com 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.
Just before relocating the code, I typed following statements =20 (gdb) symbol-file (gdb) add-symbol-file u-boot 0xbda000
How did you start gdb / DDD? Did you really load "u-boot" (i. e. the ELF file)?
(gdb) dir cpu/mpc8xx (gdb) dir board/fads (gdb) dir tools/gdb/serial.c (gdb) dir drivers/serial.c
None 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@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 junita_ppc@yahoo.com To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] Help with serial port set-up for PPC 8540
Hi 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 own start.S file 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 michaelb@logicpd.com To: "'u-boot-users@lists.sourceforge.net'" u-boot-users@lists.sourceforge.net Date: Mon, 12 Jul 2004 16:59:45 -0500 Subject: [U-Boot-Users] Errant Tab in drivers/cfi_flash.c
I noticed in the drivers/cfi_flash.c file, 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
program (Tera Term) to make the spacing between numbered sectors
excessively
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@logicpd.com 612-436-5122 www.logicpd.com
--__--__--
Message: 12 To: Junita Ajith junita_ppc@yahoo.com Cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Help with serial port set-up for PPC 8540 From: Wolfgang Denk wd@denx.de Date: Tue, 13 Jul 2004 00:30:31 +0200
In message 20040712212957.88820.qmail@web90006.mail.scd.yahoo.com you w= rote:
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.
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.
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@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
--__--__--
Message: 13 To: Michael Bendzick michaelb@logicpd.com Cc: "'u-boot-users@lists.sourceforge.net'"
u-boot-users@lists.sourceforge.net
Subject: Re: [U-Boot-Users] Errant Tab in drivers/cfi_flash.c From: Wolfgang Denk wd@denx.de Date: Tue, 13 Jul 2004 00:35:55 +0200
In message 31ADFA827355984B9E2A161514595B561C32C0@lpdsrv04.logicpd.com = you wrote:
I noticed in the drivers/cfi_flash.c file, there's a minor error in tex=
t
formatting that makes for an ugly display when running 'flinfo'.
Thanks for pointing out (mea culpa).
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@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 talibalm@hotmail.com Reply-To: talibalm@hotmail.com Subject: Re: [U-Boot-Users] Debugging U-Boot Under DDD To: Wolfgang Denk wd@denx.de, talibalm@hotmail.com Cc: U-Boot List u-boot-users@lists.sourceforge.net
I am using eldk
[root@lab1 eldk]# cat version ELDK version 3.0 ppc_8xx: Build 2004-02-16
I 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
--- Wolfgang Denk wd@denx.de wrote:
In message 20040712194303.3117.qmail@web50504.mail.yahoo.com you 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.
Just before relocating the code, I typed following statements
(gdb) symbol-file (gdb) add-symbol-file u-boot 0xbda000
How did you start gdb / DDD? Did you really load "u-boot" (i. e. the ELF file)?
(gdb) dir cpu/mpc8xx (gdb) dir board/fads (gdb) dir tools/gdb/serial.c (gdb) dir drivers/serial.c
None 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@denx.de Old programmers never die, they just become managers.
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
--__--__--
U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
End of U-Boot-Users Digest

Rakesh,
in message 002a01c46ee3$2d21adf0$8200a8c0@RakeshJagota you wrote:
From where can I download latest u-boot.
Start reading the documentation; see for example http://u-boot.sourceforge.net/ http://sourceforge.net/projects/u-boot http://www.denx.de/twiki/bin/view/DULG/Manual
And never again post regular messages to the u-boot-users-admin address.
And never ever post a message without a descriptive subject, ESPECIALLY NOTY just with a DIGEST SUBJECT!!!!
AND NEVER EVER QUOTE 700+ LINES OF COMPLETELY UNRELEVANT STUFF JUST TO ASK A SINGLE LINE QUESTION!!!
And never ever post HTML to this list (like you did in your message to the admin address).
Wow. This is so far the record for complete ignorance of all netiquette in all postings I've seen so far on the U-Boot and PPCBoot lists. And this with the first message. Really impressive :-(
Wolfgang Denk
participants (2)
-
Rakesh Jagota
-
Wolfgang Denk