Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] how to make minimal Linux build for rk3568

154

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
154

【Linux】 how to make minimal Linux build for rk3568

Posted at 4/13/2023 18:51:54      View:2709 | Replies:6        Print      Only Author   [Copy Link] 1#
  • Type: Self-Compiled Firmware
  • SDK Package Name: rk356x_linux_release_v1.3.0b_20221213
  • Last Commit: 0000-00-00 00:00:00
  • Modification Content: LVDS configuration
  • Log: no log (2).zip
Problem description and steps to reproduce:
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.

no log (2).zip

22 Bytes, Down times: 1

Reply

Use props Report

486

Credits

20

Prestige

15

Contribution

intermediate

Rank: 3Rank: 3

Credits
486
Posted at 4/14/2023 10:38:46        Only Author  2#
You can download minimal rootfs and pack firmware by yourself.
https://en.t-firefly.com/doc/download/150.html#other_379
Reply

Use props Report

154

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
154
Posted at 4/18/2023 14:17:59        Only Author  3#
fixed
i used Yocto build from this link and everything is ok:
https://wiki.t-firefly.com/en/Fi ... e/manual_yocto.html
Reply

Use props Report

16

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
16
Posted at 10/30/2024 19:08:34        Only Author  4#
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!
Reply

Use props Report

14

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
14
Posted at 10/31/2024 21:35:27        Only Author  5#
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/]
Reply

Use props Report

70

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
70
Posted at 11/13/2024 19:26:38        Only Author  6#
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!
Reply

Use props Report

61

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
61
Posted at 11/13/2024 20:14:21        Only Author  7#
Gulaal presents the latest Pakistani dress designs, combining traditional beauty with contemporary flair. Discover our newest collections that celebrate cultural heritage with modern style.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list