[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] Can not use BDM on linux



Dear Jerry,

in message <008601c104f4$1630e900$1c0114ac@jerry> you wrote:
>
>     I port the ppc linux to a 860 processor card . I download it into
> the flash, and reboot, it works very well.
> But when I use a BDM emulator (Macraigor Wiggler) to debug , it alwary

AFAIK the Wiggler does not suport the MMU, so it won't be any help as
soon a s Linux is running, but you are probably aware of this, and in
any case the system should not crash like your's.

>  I do not do anythings else, just put the PC on reset vector, and go. No > any breakpoints or watchpoints set. The PC will be 0x3xxxxxxx .

I don't know how to configure the Wiggler. but you _have_ to do a few
preparations to run Linux: you have to  turn  off  the  8xx  internal
watchdog, and you have to configure the DER (Debug Event Register) to
a  value  that  does  not  jump  into  BDM  mode  during normal Linux
operation - 0x2002000F is a good value.

>     Is there anyone can give me a hand.

You should consider to switch to a BDM  debugger  with  better  Linux
support;  I  recommend the BDI2000 by Abatron if you're looking for a
commercial tool (about $2200), or the BDM4GDB parallel  port  adapter
(which  you can either build yourself or buy for $50). Both have full
MMU support and interfaces to GDB, so they integrate smoothly into  a
Linux based development environment.

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
It is dangerous to be sincere unless you are also stupid.
                                                - George Bernard Shaw