SyterKit 开源地址: https://github.com/YuzukiHD/SyterKit
目前支持的板子是 sipeed 的 longanpi-3h
先写一个 helloworld 拉起最小系统,适配了
extern sunxi_serial_t uart_dbg;
int main(void) {
sunxi_serial_init(&uart_dbg);
show_banner();
sunxi_clk_init();
sunxi_clk_dump();
printk(LOG_LEVEL_INFO, "Hello World!\n");
abort();
return 0;
}
离线
note: ‘memmove’ is declared in header ‘<string.h>’
/home/yang/arm/SyterKit-main/src/drivers/sun50iw9/sys-dram.c: Assembler messages:
/home/yang/arm/SyterKit-main/src/drivers/sun50iw9/sys-dram.c:39: Error: no such instruction: `isb sy'
/home/yang/arm/SyterKit-main/src/drivers/sun50iw9/sys-dram.c:43: Error: number of operands mismatch for `ds'
/home/yang/arm/SyterKit-main/src/drivers/sun50iw9/sys-dram.c:47: Error: no such instruction: `dmb sy'
make[2]: *** [src/drivers/sun50iw9/CMakeFiles/chip_drivers-obj.dir/build.make:76: src/drivers/sun50iw9/CMakeFiles/chip_drivers-obj.dir/sys-dram.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:540: src/drivers/sun50iw9/CMakeFiles/chip_drivers-obj.dir/all] Error 2
make: *** [Makefile:84: all] Error 2 编译报这个错
离线