public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] U-Boot on MPC8280
@ 2004-01-07 18:58 Rod Boyce
  2004-01-08 12:36 ` John W. Linville
  0 siblings, 1 reply; 18+ messages in thread
From: Rod Boyce @ 2004-01-07 18:58 UTC (permalink / raw)
  To: u-boot

This is just my $0.02 worth but I have used our BDI2000 to debug User land
application, Kernel, and device drivers at the same time.  It is an
invaluable tool when tracking down both software and hardware bugs.  In fact
I will start hardware debugging with our BDI before cabling up a Logic
analyzer.  
I can say that without a doubt if we had not use the BDI2000 in this way we
would have ended up redesigning the hardware to get around some perceived
limitations.  Instead I found the software bug and fixed it.  I did all this
in about 3-hours work as well.

I don't use the BDI all the time to debug user mode applications but when
you want to stop the hole processor it is invaluable.  To be able to step
through user code and then jump into the kernel on system calls is just
great.

I cannot tell you how much time our BDI has saved us.  We also have a Vision
ICE in another office I am not completely familiar with the Vision Ice but
compared to the functionality I get from a BDI the Vision Ice is a very poor
second.


Regards,
Rod

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Thursday, January 08, 2004 4:46 AM
To: David Aldrich
Cc: Matias Sundman (AL/EAB); u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] U-Boot on MPC8280 


Dear David,

in message
<0E8A20F2EB7BD7119C1F00508BB333780E5D7B@tmservermail02.t-modus.nec.co.uk>
you wrote:
> 
> Is it true that the BDI is not suitable for user app debug?  Is this a

Yes, this is true. Well, you _can_ use  it,  but  you  have  manually
navigate  through  the  kernel virtual address space to find what you
are looking for. Sometimes  this  is  necessary  (typically  to  find
kernel  bugs),  but  this is definitely nothing to do for the average
user.

> problem in practice?

No, it is not.

Kernel debugging and application debugging are two separate  weorlds,
like  kernel  address  space  and  user  address  space  are  clearly
separated. There is tools for both of them: for the firmware,  device
drivers  and  kernel  debugging  you  use  the  BDI2000, and for user
applications you use gdbserver or gdb.

Note that this does not mean  any  loss  of  productivity:  both  the
BDI2000  and  gdbserver  "speak" GDB remote protocol, so you will see
absolutely the same user interface.


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
"If the code and  the  comments  disagree,  then  both  are  probably
wrong."                                                - Norm Schryer


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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] 18+ messages in thread
* [U-Boot-Users] U-Boot on MPC8280
@ 2004-01-08 18:40 Rod Boyce
  0 siblings, 0 replies; 18+ messages in thread
From: Rod Boyce @ 2004-01-08 18:40 UTC (permalink / raw)
  To: u-boot

John,

The method I use is no less "cleaner" I just start out in userland process
in stead of kernel mode.  Single stepping from Userland to Kernel mode has
never worked I just use two hardware break points one in the kernel and one
in the User process.

Regards,
Rod Boyce.

-----Original Message-----
From: John W. Linville [mailto:linville at lvl7.com]
Sent: Friday, January 09, 2004 1:36 AM
To: Rod Boyce
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] U-Boot on MPC8280



Is your method any "cleaner"?

Thanks,

John

-- 
John W. Linville
LVL7 Systems, Inc.

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [U-Boot-Users] U-Boot on MPC8280
@ 2004-01-07 16:15 David Aldrich
  0 siblings, 0 replies; 18+ messages in thread
From: David Aldrich @ 2004-01-07 16:15 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang

Thank you very much for your explanation.

Best regards

David

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [U-Boot-Users] U-Boot on MPC8280
@ 2004-01-07 15:24 David Aldrich
  2004-01-07 15:46 ` Wolfgang Denk
  2004-01-07 15:50 ` George G. Davis
  0 siblings, 2 replies; 18+ messages in thread
From: David Aldrich @ 2004-01-07 15:24 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang

May I ask one further question re. the BDI2000?  An article on the
internet states:

"You might be wondering why the BDI2000 only works with kernel-mode code
and not user-land application code. The technical details are beyond the
scope of this AppNote. The 10,000 foot answer is that while the BDI2000
can work with the MMU enabled, it can only work with a single continuous
memory map. Kernel-mode code exists in a single continuous memory map,
which is disjoint from all of the user-land process memory maps. As an
example of the usefulness of this tool in production environments, the
PPC porting engineers at Monta Vista Software use the BDI2000
extensively for kernel bring-up and device driver debug"

Is it true that the BDI is not suitable for user app debug?  Is this a
problem in practice?

Thanks

David

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [U-Boot-Users] U-Boot on MPC8280
@ 2004-01-07 14:17 David Aldrich
  2004-01-07 14:47 ` Wolfgang Denk
  0 siblings, 1 reply; 18+ messages in thread
From: David Aldrich @ 2004-01-07 14:17 UTC (permalink / raw)
  To: u-boot

Hi

> Do you think that the Windriver equipment ( e.g. VisionPROBE 
> ) is of low quality?
> 
> When looking at the demos, they have been looking a bit 
> sharper than e.g. the BDI2000.

I have seen several posts by Wolfgang giving a poor opinion (to put it
mildly) of the Vision Probe.  However, it is worth noting that Wind
River announced in late 2003 that Vision Probe now supports Linux.  So I
guess they now properly support the MMU etc.  But I can't get much
information about it from Wind River.  Has anyone tried the new version?

David

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [U-Boot-Users] U-Boot on MPC8280
@ 2004-01-07 14:04 Matias Sundman
  2004-01-07 14:41 ` Wolfgang Denk
  0 siblings, 1 reply; 18+ messages in thread
From: Matias Sundman @ 2004-01-07 14:04 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,
Do you think that the Windriver equipment ( e.g. VisionPROBE ) is of low quality?

When looking at the demos, they have been looking a bit sharper than e.g. the BDI2000.

Regards // Matias

-----Original Message-----
From: u-boot-users-admin@lists.sourceforge.net
[mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Wolfgang
Denk
Sent: den 7 januari 2004 14:58
To: sudhakar rajashekhara
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] U-Boot on MPC8280 


Hello,

in message <20040107131759.31653.qmail@web10602.mail.yahoo.com> you wrote:
> 
> I am trying to port U-boot-1.0.0 on a board which has
> MPC8280 processor. I have started with RAM boot. I am

As pointed out many times before this is probably  not  a  good  idea
unless you know exactly what you are doing and how U-Boot is working.
If this is one of your first ports of U-Boot and/or if you don;t know
the  processor  really  well  I  recommend to use the standard way of
booting from flash instead.

> using VisionPROBE utility to debug. One of the line

Sincere condolences.

> This line is supposed to move the contents of MSR
> register to R5 register. I am seeing the content of
> these two registers before the execution of the above
> statement and after the execution, using "DR" command.
> But I feel that the above statement is not executed
> properly as the content of R5 register is same even
> after the above line is executed (in my case 40)
> whereas MSR is all ZEROes. Why is it happening so? I

Maybe your debugger is not working as expected...

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
A meeting is an event at which the minutes are kept and the hours are
lost.


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
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] 18+ messages in thread
* [U-Boot-Users] U-Boot on MPC8280
@ 2004-01-07 13:17 sudhakar rajashekhara
  2004-01-07 13:58 ` Wolfgang Denk
  2004-01-07 16:14 ` Yuli Barcohen
  0 siblings, 2 replies; 18+ messages in thread
From: sudhakar rajashekhara @ 2004-01-07 13:17 UTC (permalink / raw)
  To: u-boot

Hi,

I am trying to port U-boot-1.0.0 on a board which has
MPC8280 processor. I have started with RAM boot. I am
using VisionPROBE utility to debug. One of the line
which U-boot executes is as follows.

boot_warm:
        mfmsr   r5   /* save msr contents */

This line is supposed to move the contents of MSR
register to R5 register. I am seeing the content of
these two registers before the execution of the above
statement and after the execution, using "DR" command.
But I feel that the above statement is not executed
properly as the content of R5 register is same even
after the above line is executed (in my case 40)
whereas MSR is all ZEROes. Why is it happening so? I
also want to know whether anyone has sucessfully
ported U-boot to MPC8280?

regards,
Sudhakar.

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-01-09  9:58 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-07 18:58 [U-Boot-Users] U-Boot on MPC8280 Rod Boyce
2004-01-08 12:36 ` John W. Linville
2004-01-08 21:01   ` [U-Boot-Users] BDI2000 vs Vision-ICE Mike Wellington
2004-01-08 23:04     ` Wolfgang Denk
2004-01-09  9:58     ` Richard Danter
  -- strict thread matches above, loose matches on Subject: below --
2004-01-08 18:40 [U-Boot-Users] U-Boot on MPC8280 Rod Boyce
2004-01-07 16:15 David Aldrich
2004-01-07 15:24 David Aldrich
2004-01-07 15:46 ` Wolfgang Denk
2004-01-07 15:50 ` George G. Davis
2004-01-07 16:33   ` Wolfgang Denk
2004-01-07 14:17 David Aldrich
2004-01-07 14:47 ` Wolfgang Denk
2004-01-07 14:04 Matias Sundman
2004-01-07 14:41 ` Wolfgang Denk
2004-01-07 13:17 sudhakar rajashekhara
2004-01-07 13:58 ` Wolfgang Denk
2004-01-07 16:14 ` Yuli Barcohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox