richliu's blog

Linux, 工作, 生活.

richliu's blog header image 2

RVDS Load Linux Kernel Script

六月 30th, 2009 · No Comments

用 RVDS 的時候, 如果只是要拿來 Load kernel,  可以用以下這個簡單的 script. 自動 connect 到 Realview ICE, load kernel , run, 再 disconnect.

connect 『@MPCore_0@RVI』
stop
readfile,raw,nowarn 『<path to >/bootpImage』=0×100000
WAIT=OFF
go
disconnect,nodebug 『@MPCore_0@RVI』

bglobal, disable 『data abort』
bglobal, disable 『prefetch abort』

這二個指令在 Trace32 時, 就可以讓 Linux booting 起來, 但是這一招在 RealView ICE 似乎沒有用. 要 disconnect 之後, 進到 kernel 再 connect.

當有了 shell script 之後, 就可以不用進 RVDS 的 GUI mode 執行 load image 的指令

# rvdebug – b – inc=/home/load_kernel.inc

常常 load code 就很方便了.

On this day..

Tags: , , ,

Related posts

Tags: 隨手札記

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment