离线
为方便大家研究全志RISCV D1芯片,花了点时间编写了一个精简版的裸机程序,方便大家学习参考。
https://whycan.com/t_6683.html
CROSS=riscv64-unknown-elf- PLATFORM=riscv64-d1 make
$ CROSS=riscv64-unknown-elf- PLATFORM=riscv64-d1 make
[AS] source/memcpy.S
[AS] source/memset.S
[AS] source/start.S
[CC] source/main.c
[CC] source/sys-clock.c
[CC] source/sys-copyself.c
[CC] source/sys-dram.c
[CC] source/sys-jtag.c
[CC] source/sys-spinor.c
[CC] source/sys-uart.c
[LD] Linking output/d1-baremetal.elf
[OC] Objcopying output/d1-baremetal.bin
copy from `output/d1-baremetal.elf' [elf64-littleriscv] to `output/d1-baremetal.bin' [
binary]
Make header information for brom booting
The bootloader head has been fixed, spl size is 24576 bytes.
编译一个 xboot 的 d1-baremetal 试一试.
离线
DRAM only have internal ZQ!!
get_pmu_exist() = 4294967295
ddr_efuse_type: 0x0
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0x0
[AUTO DEBUG] rank 0 row = 15
[AUTO DEBUG] rank 0 bank = 8
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: %s
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC ZQ value: 0x7b7bfb
DRAM ODT value: 0x42.
ddr_efuse_type: 0x0
DRAM SIZE =512 M
DRAM simple test OK.
windows下 CYGWIN dd 把 d1-baremetal.bin 写到 TF 卡偏移:
dd if=d1-baremetal.bin of=/dev/sdc bs=1k seek=8
离线
感谢分享,楼主牛逼
离线
这个网站是不错,除了编译工具链,还有调试器。
离线
这不就是VisualGDB内置的gcc工具链吗?
离线