Hi Yi-Neng,

you are wrong :) I'm using Lauterbach Trace32 under Linux with success.
Ask to your FAE or Lauterbach technical support to have a linux release.

Anyway, for debug u-boot I use a script like the attachment.

ciao ciao

luigi


On mar, 2008-07-08 at 11:41 +0800, Yi-Neng Lin wrote:
> Hi there,
> Recently I've been trying to debug U-boot using Trace32 in my Fedora
> Linux. Since the software does not have a linux version, I tried to use
> WINE, a windows emulator, to execute the binaries. But it just does not
> work (via parallel port).
> 
> Can anyone here give me a pointer about this? Did anyone succeeded in
> debugging with Trace32 in Linux? Thanks a lot.
> 
> Yi-Neng
> 
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________ U-Boot-Users mailing list 
> U-Boot-Users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
-- 
     ______       Luigi Mantellini
   .'______'.     R&D - Software
  (.'      '.)    Industrie Dial Face S.p.A.
  ( :=----=: )    Via Canzo, 4
  ('.______.')    20068 Peschiera Borromeo (MI), Italy
   '.______.'     Tel.: +39 02 5167 2813
                  Fax:  +39 02 5167 2459
Ind.  Dial Face   Email: [EMAIL PROTECTED]
www.idf-hit.com   GPG fingerprint: 3DD1 7B71 FBDF 6376 1B4A
                                   B003 175F E979 907E 1650



;--------------------------------------------------------------------------
;
;   U-BOOT Debugging scrit for TRACE32 RTOS debugger
;
;--------------------------------------------------------------------------

&UBOOT_BASE=0xBFC00000
&UBOOT_ELF="/mnt/devel/onu/u-boot/u-boot"
&UBOOT_DIR="/mnt/devel/onu/u-boot/"
&UBOOT_DIR_STRIPPART=5
; &UBOOT_PRE_INRAM=relocate_code
; 0xBFC004C0

screen.on

; Debugger Reset

winpage.reset
area.reset
WINPOS 0. 26. 75. 8. 0. 0. W000
area
 
print "resetting..."

System.Down
TASK.RESet
Break.Delete
MAP.RESet
sYmbol.RESet
MMU.RESet
GROUP.RESet

; Setup of ICD
 
print "initializing..."
 
SYStem.CPU MIPS4KEC
SYStem.Option Endianess Big
TrOnchip.UseWatch ON           ; use watchpoints as onchip breakpoint
SYStem.Option UnProtect ON     ; give Debugger global write permissions
SYStem.Option MMU ON           ; enable space ids to virtual addresses
SYStem.Up

SETUP.IMASKASM ON      ; block interrupts on assembler steps
SETUP.IMASKHLL OFF     ; allow interrupts on HLL steps
 

; Target Setup

; print "Target initialization.."
; do bl2000_init 

; Load the Linux kernel

; If you are using a flashed kernel, or if you're loading your 
; kernel via TFTP, use the boot monitor to do so.
; Load the Linux symbols then with the command
; Data.LOAD.Elf vmlinux /gnu /nocode
 
; Use the next lines only to load the kernel into
; RAM using the debugger.

print "Load u-boot symbols"

d.load.elf &UBOOT_ELF 0 /nocode /strippart &UBOOT_DIR_STRIPPART /sourcepath &UBOOT_DIR

; Ok, we're done, let's start Linux
Register.Set PC reset
break.d /ALL
break.set board_init_f /ONCHIP
break.set relocate_code /ONCHIP

Go
print "starting u-boot... (please wait)"
wait !run()
print "scanning mmu... (please wait)"
MMU.SCANALL

print "done."     ; done with loading and starting Linux
break.d /ALL 
; Before to jump into the RAM
break.set board_init_f /ONCHIP
break.set relocate_code /ONCHIP

GO

wait !run()
Data.list
&relocate=r(A2)
SYMbol.reloc &relocate-&UBOOT_BASE
print "Relocate from " &UBOOT_BASE " to " &relocate
break.d /ALL
break.set board_init_r /ONCHIP

Data.list board_init_r

GO
 
; cleanup symbol type definition
sYmbol.CLEANUP

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to