Firefly Open Source Community

Title: how to make minimal Linux build for rk3568 [Print This Page]

Author: Maverick_by_    Time: 4/13/2023 18:51
Title: how to make minimal Linux build for rk3568
I have a custom board based on RK3568jq.I have downloded pre-made Linux minimal image AIO-3568J_Ubuntu20.04-Minimal-r240_v1.3.2b_230331.img
from this link:
https://drive.google.com/drive/folders/10PdMdmHaRxDPeEWIRqHLou4zUxcXRCQi
Then i wrote this firmware to RK3568jq SOM and everything works fine, Linux is loaded successfully.
I have only official document for Linux Desktop build:
https://wiki.t-firefly.com/en/iCore-3568JQ/linux_compile.html

But there is no steps described for minimal Linux OS build. And desktop Linux does not load on my custom board.
I have a question:

How can i make minimal Linux OS build for rk3568jq from the source code (SDK)  (not downloaded pre-made Linux minimal image)?



Thank you.
tchip_askquestions

no log (2).zip

22 Bytes, Down times: 1


Author: ʱ¼äµÄºûµû    Time: 4/14/2023 10:38
You can download minimal rootfs and pack firmware by yourself.
https://en.t-firefly.com/doc/download/150.html#other_379
Author: Maverick_by_    Time: 4/18/2023 14:17
fixed
i used Yocto build from this link and everything is ok:
https://wiki.t-firefly.com/en/Fi ... e/manual_yocto.html
Author: christinaw    Time: 10/30/2024 19:08
It sounds like you've made some solid progress with the pre-built image, but I totally get why you'd want a minimal Linux build directly from the source for your RK3568JQ-based board. The official desktop Linux build guide is a good starting point, and you can adapt parts of that for the minimal setup. Here¡¯s how to go about it:

1. Set Up the Build Environment: You¡¯ll need to set up your host environment if you haven¡¯t already (install dependencies like gcc, g++, make, etc.). Then, download the Firefly SDK source code for RK3568JQ.

2. Configure for Minimal Image: Start by using a minimal root filesystem, which is lighter on unnecessary services. You might look into busybox as it provides a stripped-down set of common commands for small footprint systems.

3. Modify the Build Script: If the SDK offers configuration files, search for a minimal configuration option (like core-image-minimal if you¡¯re using Yocto, or equivalent). Set that configuration in the .config or in the build script to avoid including the GUI or desktop elements.

4. Compile the Kernel and Root Filesystem: From the SDK, you should be able to compile the kernel and filesystem for your minimal setup. This usually involves commands like:

  1. make ARCH=arm CROSS_COMPILE=<your-cross-compiler> <defconfig>
  2. make ARCH=arm CROSS_COMPILE=<your-cross-compiler> -j4
Copy the code


5. Transfer and Test: Once the image is built, flash it to your board as you did with the pre-made image and test boot. If you encounter boot issues, try monitoring the serial console for debugging info¡ªit often points out if a certain module or driver is causing issues.

It might take a few iterations, but this should get you started on a minimal build that¡¯s more tailored to your setup. Let us know how it goes, or if you need help with specific build errors.

Good luck!
Author: mhael7402    Time: 10/31/2024 21:35
There are some fascinating deadlines in this article but I don?t know if I see all of them center to heart. There may be some validity but I will take maintain opinion till I look into it further. Good article , thanks and we want extra! Added to FeedBurner as nicely Instagream [[url]https://www.instagram.com/]
Author: adoroshoes    Time: 11/13/2024 19:26
With our selection of casual shoes for women, you may find the ideal balance between comfort and style. Choose from a variety of stylish loafers or hip sneakers to enhance your regular outfit. Get the newest styles now and spend all day in unparalleled comfort!
Author: Gulaal    Time: 11/13/2024 20:14
Gulaal presents the latest Pakistani dress designs, combining traditional beauty with contemporary flair. Discover our newest collections that celebrate cultural heritage with modern style.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1