首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

Linux2.4.26内核在Virtex II Pro开发板上的移植----生成ACE文件(五)ZZ

Linux2.4.26内核在Virtex II Pro开发板上的移植----生成ACE文件(五)ZZ

编辑genace.opt文件
  • 内容如下: -jprog
    -board user
    -target ppc_hw
    -hw download.bit
    -elf zImage.initrd.elf
    -configdevice devicenr 1 idcode 0x1127e093 irlength 14 partname xc2vp30
    -debugdevice devicenr 1 cpunr 1
    -ace system.ace
  • 将download.bit,zImage.initrd.elf以及genace.opt放到同一个目录下
  • 图1。进入EDK shell
[url=https://6eyzew.bay.livefilestore.com/y1mCr6YS8WxqqcE7AOH_zOSINF3kJVuzhn7APl2otQE8i140V9ZfkxuHKRTV8P8RHFmhMhVJVNt-4X5yEFf2KWVnV7_IvPBvRqwptb40mAckvKQFAP8RJUxex-zJJe7J1CXN_cHYN-XxLPobPcB5NI43A/image[4]%2067E06E2F.png][img=665,117]https://6eyzew.bay.livefilestore.com/y1m5tT2GTc7hYpXQD-9G-KoTdgnL53wLKDYdj5Y_BDNU1AQ6yrmEYKiTxJct5tXfqO-_ANCRo_q2DbOd4qqbyxPD38cXq_q1-17BLQlCHWNUelE5uHQ0zBB8LF9Ay9Qh07wu00o2cn0s9DVpRmKrRAwbA/image_thumb[2]%2074BF2408.png[/img][/url]
                             图1.EDK shell
$ xmd -tcl genace.tcl -opt genace.opt
Xilinx Microprocessor Debug (XMD) Engine
Xilinx EDK 9.1.02 Build EDK_J_SP2.4
Copyright (c) 1995-2006 Xilinx, Inc. All rights reserved.
Executing xmd script : C:/EDK/data/xmd/genace.tcl

######################################################################
XMD GenACE utility. Generate SystemACE File from bit/elf/data Files
######################################################################
Using GenACE option file : genace.opt
GenACE Options:
        Board      : user
        Jtag Devs : xc2vp30
        FPGA pos   : 1
        JPROG      : true
        HW File    : download.bit
        ACE File   : system.ace
        nCPUs      : 1

        Processor ppc_hw_1 Information
                Debug opt : -debugdevice devicenr 1 cpunr 1
                ELF files : zImage.initrd.elf
                Start PC Address : 0x00400000

############################################################
Converting Bitstream 'download.bit' to SVF file 'download.svf'
Executing 'impact -batch bit2svf.scr'

Copying download.svf File to system.svf File

JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
1       1127e093          14        xc2vp30

PowerPC405 Processor Configuration
-------------------------------------
Version.............................0x20011430
User ID.............................0x00000000
No of PC Breakpoints................4
No of Read Addr/Data Watchpoints....1
No of Write Addr/Data Watchpoints...1
User Defined Address Map to access Special PowerPC Features using XMD:
        I-Cache (Data)........0x70000000 - 0x70003fff
        I-Cache (TAG).........0x70004000 - 0x70007fff
        D-Cache (Data)........0x78000000 - 0x78003fff
        D-Cache (TAG).........0x78004000 - 0x78007fff
        DCR...................0x78004000 - 0x78004fff
        TLB...................0x70004000 - 0x70007fff


############################################################
Converting ELF file 'zImage.initrd.elf' to SVF file 'zImage.initrd.svf

JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
1       1127e093          14        xc2vp30

PowerPC405 Processor Configuration
-------------------------------------
Version.............................0x20011430
User ID.............................0x00000000
No of PC Breakpoints................4
No of Read Addr/Data Watchpoints....1
No of Write Addr/Data Watchpoints...1
User Defined Address Map to access Special PowerPC Features using XMD:
        I-Cache (Data)........0x70000000 - 0x70003fff
        I-Cache (TAG).........0x70004000 - 0x70007fff
        D-Cache (Data)........0x78000000 - 0x78003fff
        D-Cache (TAG).........0x78004000 - 0x78007fff
        DCR...................0x78004000 - 0x78004fff
        TLB...................0x70004000 - 0x70007fff


Copying zImage.initrd.svf File to system.svf File


############################################################
Writing Processor JTAG "continue" command to SVF file 'sw_suffix.svf'

JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
1       1127e093          14        xc2vp30

PowerPC405 Processor Configuration
-------------------------------------
Version.............................0x20011430
User ID.............................0x00000000
No of PC Breakpoints................4
No of Read Addr/Data Watchpoints....1
No of Write Addr/Data Watchpoints...1
User Defined Address Map to access Special PowerPC Features using XMD:
        I-Cache (Data)........0x70000000 - 0x70003fff
        I-Cache (TAG).........0x70004000 - 0x70007fff
        D-Cache (Data)........0x78000000 - 0x78003fff
        D-Cache (TAG).........0x78004000 - 0x78007fff
        DCR...................0x78004000 - 0x78004fff
        TLB...................0x70004000 - 0x70007fff

Inforocessor started. Type "stop" to stop processor
RUNNING>
############################################################
Converting SVF file 'system.svf' to SystemACE file 'system.ace'
Executing 'impact -batch svf2ace.scr'

SystemACE file 'system.ace' created successfully
/cygdrive/d/ACE_test
$ ls
_impactbatch.log download.svf sw_prefix.svf system.svf
bit2svf.scr       genace.opt    sw_suffix.svf zImage.initrd.elf
download.bit      svf2ace.scr   system.ace     zImage.initrd.svf


可以看到system.ace文件已经生成在当前目录下面。

来源:fcni_cn的百度空间
记录学习中的点点滴滴,让每一天过的更加有意义!
返回列表