What are the correct steps to compile a ubuntu with buildroot for RK3566-PC.

Type: Self-Compiled Firmware
SDK Package Name: ROC-RK3566-PC_Rk356x_v1.3.2b_230407
Modification Content: none
Log: test.zip

Hi,
I want to compile an ubuntu-18.04 with buildroot for ROC-RK3566-PC
but I couldn’t find a correct steps for build.
I am following to the steps in documentations which are following line.

  1. Compile Linux4.19 firmware — Firefly Wiki
  2. 1. Desktop application — Firefly Wiki

If follow the only first documentation, I can combine img but the custom builded img doesn’t apply my changes.
If I apply the steps of second documentation after make sync the repo with steps of first documentation,
I am getting this error “cp: cannot stat ‘kernel/.config’: No such file or directory error”.

I runned the command for custom build

  • sudo apt update
  • sudo apt install -y repo git python
  • mkdir ~/proj/rk356x_linux_release_v1.3.0b_20221213/
  • cd ~/proj/rk356x_linux_release_v1.3.0b_20221213/
  • repo init --no-clone-bundle --repo-url Firefly-Linux / git-repo · GitLab -u Firefly-Linux / manifests · GitLab -b master -m rk356x_linux_release.xml
  • cd ~/proj/rk356x_linux_release_v1.3.0b_20221213/
  • .repo/repo/repo sync -c --no-tags
  • .repo/repo/repo start firefly --all
  • sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake unzip device-tree-compiler python-pip ncurses-dev python-pyelftools
  • ./build.sh roc-rk3566-pc-ubuntu.mk
  • Download: Ubuntu rootfs(64-bit),put in SDK path Unzip
  • copy image file to ~/proj/rk356x_linux_release_v1.3.0b_20221213/ubuntu_rootfs
  • source envsetup.sh rockchip_rk3568
  • make menuconfig
  • I changed to the system hostname and banner and I saved

  • make savedefconfig
  • make clean all

After that, I got an error that looking like following line.

Executing post-build.sh…
Top of tree: /home/melih/proj/rk356x_linux_release_v1.3.0b_20221213/device/rockchip/common/../../..
Adding information to /etc/os-release…
cp: cannot stat ‘kernel/.config’: No such file or directory
Makefile:707: recipe for target ‘target-finalize’ failed
make[1]: *** [target-finalize] Error 1
/home/melih/proj/rk356x_linux_release_v1.3.0b_20221213/buildroot/output/rockchip_rk3566/Makefile:16: recipe for target ‘_all’ failed
make: *** [_all] Error 2

Can you explain how to compile the ubuntu 18.04 for my rk3566
I want to do dts modification and apply some changes on kernel

tchip_askquestions
test.zip (436 Bytes)

  • source envsetup.sh rockchip_rk3568
    I misspelled this line in the post
    Normally I runned it like this
  • source envsetup.sh rockchip_rk3566
    I cannot edit the post

You can’t compile a ubuntu with buildroot, it just for Buildroot system.

If you want to compile the Ubuntu system, please refer to the following:
https://wiki.t-firefly.com/en/ROC-RK3566-PC/linux_compile.html#compile-ubuntu-firmware

时间的蝴蝶 Posted at 4/11/2023 10:21
You can’t compile a ubuntu with buildroot, it just for Buildroot system.

If you want to compile t …

Hi,
Thanks for your answer
I applied this documentation and I created the image finally.
However I couldn’t find how to change settings of kernel (for example menuconfig, kernel-menuconfig).
When I run the command “make menuconfig” in “buildroot” directory, I can change the settings (hostname, banner etc.) but the changes couldn’t be apply on new image

How can I change menuconfig and kernel settings

myarikkaya Posted at 4/11/2023 15:39
Hi,
Thanks for your answer
I applied this documentation and I created the image finally.

kernel:
https://wiki.t-firefly.com/en/ROC-RK3566-PC/kernel_introduction.html

buildroot system: source envsetup.sh rockchip_rk3566
https://wiki.t-firefly.com/en/Firefly-Linux-Guide/manual_buildroot.html#buildroot-development

It truly opened my eyes to a new world of ideas. Free F3 new real test resources—your key to career advancement and salary growth!

This article is very well written and worth studying. Best wishes to everyone! C-THR84-2505 new exam cram materials test questions are now available for free.

Thank you for sharing; it was truly incredible! The Latest examcollection NS0-528 helped me secure my promotion and raise. It’s free now for everyone. Best of luck with your career!