获取buildroot:
git clone https://github.com/OpenNuvoton/NUC970_Buildroot.git
进入NUC970_Buildroot目录,
安装NUC970bsp:
(1)install_nuc970_bsp.sh
(2)查看默认配置:
root@ubuntu:/home/work/NUC970_Buildroot-master# ls configs/nuc
configs/nuvoton_nuc970_defconfig configs/nuvoton_nuc980_chili_defconfig
configs/nuvoton_nuc972_defconfig configs/nuvoton_nuc980_defconfig
configs/nuvoton_nuc972_eth2uart_defconfig configs/nuvoton_nuc980_eth2uart_defconfig
configs/nuvoton_nuc973_defconfig configs/nuvoton_nuc980_iot_defconfig
configs/nuvoton_nuc976_defconfig configs/nuvoton_nuc980_lorag_defconfig
configs/nuvoton_nuc976_tomato_defconfig configs/nuvoton_nuc980_mbed_cloud_defconfig
configs/nuvoton_nuc977_defconfig
(3)设置交叉环境变量:
export PATH=$PATH:/usr/local/arm_linux_4.8/usr/bin
将export PATH=$PATH:/usr/local/arm_linux_4.8/usr/bin放入/etc/profile,下次使用source命令使交叉环境变量生效:
source /etc/profile
(4)载入默认配置: nuvoton_nuc976_tomato_defconfig
修改配置后保存,然后编译:
make menuconfig
make
烧写镜像文件:
(注意:tomato配置的uboot.bin 烧入SPI flash的 0x2000000起始地址,而不是0xe00000)
|