Page 1 of 1

Вuildroot

Posted: 2024-04-03 12:09
by Yurii
How to delete a test program from autoloading in this system and how to add your program correctly to autoloading?
Can anyone suggest?

Re: Вuildroot

Posted: 2024-04-07 2:52
by Crocodile
Yurii wrote: 2024-04-03 12:09 How to delete a test program from autoloading in this system and how to add your program correctly to autoloading?
Can anyone suggest?

Hello, if you are referring to the test program as the rockchip_test folder, you can modify the board support files (<Luckfox-pico Sdk>/project/cfg/BoardConfig_IPC/BoardConfig*.mk) before compiling the image. Set the RK_ENABLE_ROCKCHIP_TEST option from "y" to "n".

Code: Select all

export RK_ENABLE_ROCKCHIP_TEST=n
If you need to add programs to the rootfs (buildroot), please modify the 'buildroot:prepare' section in <Luckfox Sdk>/sysdrv/Makefile.

Code: Select all

build:prepare
...
...
ifeq ($(SYSDRV_BUILD_RAMDISK_FLAG),YES)
...
...
else
	...
	...
	cp <Your program file>  $(SYSDRV_DIR_OUT_ROOTFS)/<Your target path>
endif