SDK Environmental deployment
1. Installing Virtual Machine Software

-
Install VirtualBox-7.0.8-156879-Win (install the version appropriate for your system), and it is recommended to install it on an SSD.
-
Follow the installation process.

2. Creating a New Virtual Machine
- Download the configured virtual machine file.
- Click "New" to create a new virtual machine, enter a custom name, and choose the location to store the virtual machine (it is recommended to store the virtual machine on an SSD).

- Set the memory size and processor count for the virtual machine. It is recommended to allocate about 4GB of RAM and 4 or more CPUs to the virtual machine. Try to keep the sliders in the green zone to prevent any issues when running both the virtual machine and the host operating system simultaneously.

- Use an existing virtual hard disk file. If the VDI file is not found, click "Add" to add it.

- Click "Next" to continue and review the basic information of the virtual machine settings, then click "Finish" to initialize the machine!

3. Installing VBoxGuestAdditions
- Click "Start" to boot the virtual machine. The window resolution will be fixed at 800x600.
- In the virtual machine, click on "Settings", select "Storage", choose "Choose a disk file...", and select "Virtualbox GuestAdditions". Once loaded successfully, click "OK".

- After installing VBoxGuestAdditions, to prevent the Ubuntu virtual machine from starting with a black screen, increase the video memory size to the maximum of 128MB.

4. General Configuration of the Virtual Machine
- Set the network connection mode to "Bridged Adapter".

- Enable USB 3.0 controller.

- Configure shared clipboard between the Windows computer and the virtual machine.

5. Compiling the SDK
-
Start the virtual machine. The login password for the virtual machine is: luckfox.
-
Navigate to the core3566 directory and check the files in the directory. By default, it should contain LUCKFOX_LINUX419_SDK.tar.gz and dl.
luckfox@luckfox:~/core3566$ lsdl LUCKFOX_LINUX419_SDK.tar.gz -
Switch to the root user and extract the LUCKFOX_LINUX419_SDK.tar.gz file.
sudo sutar xvf LUCKFOX_LINUX419_SDK.tar.gz -
Unpack the extracted files.
.repo/repo/repo sync -l- The process will look like this:

- The process will look like this:
-
Copy the dl folder to the buildroot path.
root@luckfox:/home/luckfox/core3566# lsdevice envsetup.sh build.sh app kernel LUCKFOX LINUX419 sDK.tar.gz Makefile mkfirmware.sh rkbin tools yoctobuildroot debian docs external linux prebuilts rkflash.sh u-bootroot@luckfox:/home/luckfox/core3566# cp -r dl buildroot/ -
Install all the packages in the Ubuntu build service within the Debian service.
cd debiandpkg -i ubuntu-build-service/packages/*apt-get install -fcd .. -
Choose the branch to compile, either specifying HDMI or MIPI DSI for video output.
root@luckfox:/home/luckfox/core3566# ./build.sh lunchprocessing option: lunchYou're building on LinuxLunch menu...pick a combo:0. default BoardConfig.mk1. BoardConfig-ab-base.mk2. BoardConfig-core3566_hdmi-debian-v1.mk3. BoardConfig-core3566_mipi-debian-v1.mk4. BoardConfig-rk3566-evb2-lp4x-v10-32bit.mk5. BoardConfig-rk3566-evb2-lp4x-v10.mk6. BoardConfig-rk3568-evb1-ddr4-v10-32bit.mk7. BoardConfig-rk3568-evb1-ddr4-v10-spi-nor-64M.mk8. BoardConfig-rk3568-evb1-ddr4-v10.mk9. BoardConfig-rk3568-nvr-spi-nand.mk10. BoardConfig-rk3568-nvr.mk11. BoardConfig-rk3568-uvc-evb1-ddr4-v10.mk12. BoardConfig-security-base.mk13. BoardConfig.mkWhich would you like? [0]: 2switching to board: /home/luckfox/core3566/device/rockchip/rk356x/BoardConfig-core3566_hdmi-debian-v1.mk -
Build the image.
export RK_ROOTFS_SYSTEM=debian./build.sh -
After the kernel compilation is completed, you will encounter a voltage domain check as shown below. You can simply press and hold the Esc key to skip it.
- After a successful compilation, go to the /home/luckfox/core3566/rockdev directory. The update.img file is the compiled image.
