芯路恒电子技术论坛

 找回密码
 立即注册
热搜: 合集
查看: 3602|回复: 0

【个人笔记】使用axf文件生成用于裸机SD卡启动的相关命令

[复制链接]
  • TA的每日心情
    慵懒
    2021-2-24 10:16
  • 419

    主题

    771

    帖子

    1万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    15810
    QQ
    发表于 2019-1-9 18:08:49 | 显示全部楼层 |阅读模式

    1. arm-altera-eabi-gcc -g -O1 -mfloat-abi=soft -march=armv7-a -mtune=cortex-a9 -mcpu=cortex-a9 -Wall -Wl,--defsym -Wl,arm_program_mem=0x40 -Wl,--defsym -Wl,arm_available_mem_size=0x3fffffb8 -Wl,--defsym -Wl,__cs3_stack=0x3ffffff8 -Wl,--section-start -Wl,.vectors=0x0 -T"D:/intelFPGA/17.1/University_Program/Monitor_Program/build/altera-socfpga-hosted-with-vectors.ld" -o "F:/FPGA/Firmware/01_Project/ARM/exp6/interrupt_example.axf" "F:/FPGA/Firmware/01_Project/ARM/exp6/interrupt_example.c" "F:/FPGA/Firmware/01_Project/ARM/exp6/exceptions.c" "F:/FPGA/Firmware/01_Project/ARM/exp6/HPS_timer_ISR.c" "F:/FPGA/Firmware/01_Project/ARM/exp6/interval_timer_ISR.c" "F:/FPGA/Firmware/01_Project/ARM/exp6/JTAG_UART.c" "F:/FPGA/Firmware/01_Project/ARM/exp6/pushbutton_ISR.c"
    2. ELF generated at F:/FPGA/Firmware/01_Project/ARM/exp6/interrupt_example.axf.
    3. cd F:/FPGA/Firmware/01_Project/ARM/exp6 ; arm-altera-eabi-objcopy -O srec interrupt_example.axf interrupt_example.srec
    4. SREC generated at F:/FPGA/Firmware/01_Project/ARM/exp6/interrupt_example.srec.
    5. Generating binaries for use with U-Boot Baremetal SD Card ...
    6. Creating the user program binary (program.bin) ...
    7. arm-altera-eabi-objcopy --output-target=binary F:/FPGA/Firmware/01_Project/ARM/exp6/interrupt_example.axf F:/FPGA/Firmware/01_Project/ARM/exp6/program.bin
    8. Creating the FPGA programming file (fpga.rbf) ...
    9. quartus_cpf --option="bitstream_compression=on" -c --configuration_mode=FPP ../Computer_Systems/DE1-SoC/DE1-SoC_Computer/verilog/DE1_SoC_Computer.sof F:/FPGA/Firmware/01_Project/ARM/exp6/fpga.rbf
    10. Info: *******************************************************************
    11. Info: Running Quartus Prime Convert_programming_file
    12.     Info: Version 17.1.0 Build 590 10/25/2017 SJ Standard Edition
    13.     Info: Copyright (C) 2017  Intel Corporation. All rights reserved.
    14.     Info: Your use of Intel Corporation's design tools, logic functions
    15.     Info: and other software and tools, and its AMPP partner logic
    16.     Info: functions, and any output files from any of the foregoing
    17.     Info: (including device programming or simulation files), and any
    18.     Info: associated documentation or information are expressly subject
    19.     Info: to the terms and conditions of the Intel Program License
    20.     Info: Subscription Agreement, the Intel Quartus Prime License Agreement,
    21.     Info: the Intel FPGA IP License Agreement, or other applicable license
    22.     Info: agreement, including, without limitation, that your use is for
    23.     Info: the sole purpose of programming logic devices manufactured by
    24.     Info: Intel and sold by Intel or its authorized distributors.  Please
    25.     Info: refer to the applicable agreement for further details.
    26.     Info: Processing started: Wed Jan 09 17:54:26 2019
    27. Info: Command: quartus_cpf --option=bitstream_compression=on -c --configuration_mode=FPP ../Computer_Systems/DE1-SoC/DE1-SoC_Computer/verilog/DE1_SoC_Computer.sof F:/FPGA/Firmware/01_Project/ARM/exp6/fpga.rbf
    28. Info: Quartus Prime Convert_programming_file was successful. 0 errors, 0 warnings
    29.     Info: Peak virtual memory: 345 megabytes
    30.     Info: Processing ended: Wed Jan 09 17:54:28 2019
    31.     Info: Elapsed time: 00:00:02
    32.     Info: Total CPU time (on all processors): 00:00:02
    33. Creating the U-Boot environment setup script (setup_environment.bin) ...
    34. arm-altera-eabi-readelf --symbols F:/FPGA/Firmware/01_Project/ARM/exp6/interrupt_example.axf
    35. Entrypoint (_start) address: 0x00000128
    36. mkimage -T script -C none -n 'setup_environment' -d script.temp setup_environment.bin
    37. Image Name:   setup_environment
    38. Created:      Wed Jan 09 17:54:30 2019
    39. Image Type:   PowerPC Linux Script (uncompressed)
    40. Data Size:    53 Bytes = 0.05 kB = 0.00 MB
    41. Load Address: 00000000
    42. Entry Point:  00000000
    43. Contents:
    44.    Image 0: 45 Bytes = 0.04 kB = 0.00 MB

    45. Finished generating binaries for U-Boot Baremetal SD Card.



    复制代码

    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|小黑屋|Archiver|芯路恒电子技术论坛 |鄂ICP备2021003648号

    GMT+8, 2024-3-29 15:17 , Processed in 0.148924 second(s), 32 queries .

    Powered by Discuz! X3.4

    © 2001-2017 Comsenz Inc. Template By 【未来科技】【 www.wekei.cn 】

    快速回复 返回顶部 返回列表