首页 > 其他分享 >u-boot增加新命令

u-boot增加新命令

时间:2023-02-28 16:58:29浏览次数:29  
标签:boot 新增 helloworld 命令 test rk3399 增加 hello

00. u-boot默认配置为:
UBOOT_DEFCONFIG=rk3399_defconfig

01. 新增文件夹:
mkdir /u-boot/test/hello

02. 编译该文件夹
obj-$(CONFIG_TEST_HELLO) += hello/

03. 在/u-boot/configs/rk3399_defconfig 新增配置
CONFIG_TEST_HELLO=y

04. 新增cmd文件
touch /u-boot/test/hello/helloworld.c

aaa

05. 新增Makefile
touch /u-boot/test/hello/Makefile
编译为:
obj-y += helloworld.o

标签:boot,新增,helloworld,命令,test,rk3399,增加,hello
From: https://www.cnblogs.com/hkingsp/p/17165034.html

相关文章