Firefly Open Source Community

Title: What are the correct steps to compile a ubuntu with buildroot for RK3566-PC. [Print This Page]

Author: myarikkaya    Time: 4/10/2023 19:46
Title: What are the correct steps to compile a ubuntu with buildroot for RK3566-PC.
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. https://wiki.t-firefly.com/en/RO ... d-firefly-linux-sdk
2. https://wiki.t-firefly.com/en/Fi ... nual_buildroot.html

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 https://gitlab.com/firefly-linux/git-repo.git -u https://gitlab.com/firefly-linux/manifests.git -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, Down times: 0


Author: myarikkaya    Time: 4/10/2023 19:53
- 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
Author: 时间的蝴蝶    Time: 4/11/2023 10:21
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/RO ... ile-ubuntu-firmware


Author: myarikkaya    Time: 4/11/2023 15:39
Last edited by myarikkaya In 4/11/2023 15:41 Editor
时间的蝴蝶 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
Author: 时间的蝴蝶    Time: 4/14/2023 10:27
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/RO ... l_introduction.html

buildroot system: `source envsetup.sh rockchip_rk3566`
https://wiki.t-firefly.com/en/Fi ... ildroot-development





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