页次: 1
可以抄我的啊。
https://github.com/baidxi/buildroot
已经起来了。
添加了bingpi m2(T113 S3)和宏志HDA133和韦东山的DShanpi配置。
一键生成img刷入SD卡即可使用。
R818和A133支持使用fastboot将编译出来的flash.img刷入emmc看。
使用方法
make allwinner_r818_dshanpi_defconfig
make
编译完后,执行
sunxi-fel uboot output/images/u-boot-sunxi-with-spl.bin
通过sunxi-fel刷入uboot后,会自动进入fastboot,无需通过串口输入命令即可使用fastboot
如果是第一次使用或刷过其它固件,需要先执行fastboot oem format对EMMC进行分区格式化。
fastboot flash mmc1 output/images/flash.img
即可使用
https://github.com/baidxi/buildroot
ATF 只有最基础的功能
https://github.com/baidxi/ATF-Allwinner-A133.git
uboot USB和EMMC可用,默认SD卡没用启用(JTAG调试使用了)
https://github.com/baidxi/u-boot.git
添加了A133支持的sunxi-fel方便测试
https://github.com/baidxi/sunxi-tools-Allwinner-A133.git
发现一个有意思的问题。eclipse 生成的stm32程序,竟然没有类似startup.s的汇编启动文件。
没有汇编,它是如何准确定位中断向量的。
简单啊,一个函数指针数组。
void __attribute__(("noreturn")) reset(void) {
}
typedef void (*intr_func)(void);
enum intr_vector_t {
RESET,
XXXX,
};
intr_func intr_vec[] = {
[RESET] = xxx_reset,
[XXXX] = xxx_func,
};
然后再用gcc的链接脚本把intr_vec链接到最前面去就行了。
我是想彻底的用buildroot做一个,tina的坑太多了
这个问题,可能是我在windows下用WSL引起的,在LINUX下没有这个问题,
但后面报
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
scripts/dtc/pylibfdt/Makefile:26: recipe for target 'scripts/dtc/pylibfdt/_libfdt.so' failed需要手动apt swig
python-dev,
libssl-dev,
现在继续了,有问题在补贴。。
edit package/uboot-tools/Config.in.host
insert select BR2_PACKAGE_HOST_SWIG in line 12
make menuconfig
exit save
make
想到了解决办法,谢谢
页次: 1