Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

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

67

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
67

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

Posted at 4/10/2023 19:46:10      View:1732 | Replies:4        Print      Only Author   [Copy Link] 1#
  • Type: Self-Compiled Firmware
  • SDK Package Name: ROC-RK3566-PC_Rk356x_v1.3.2b_230407
  • Last Commit: 0000-00-00 00:00:00
  • Modification Content: none
  • Log: test.zip
Problem description and steps to reproduce:
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


test.zip

436 Bytes, Down times: 0

Reply

Use props Report

67

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
67
Posted at 4/10/2023 19:53:22        Only Author  2#
- 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
Reply

Use props Report

486

Credits

20

Prestige

15

Contribution

intermediate

Rank: 3Rank: 3

Credits
486
Posted at 4/11/2023 10:21:56        Only Author  3#
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

Reply

Use props Report

67

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
67
Posted at 4/11/2023 15:39:22        Only Author  4#
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
Reply

Use props Report

486

Credits

20

Prestige

15

Contribution

intermediate

Rank: 3Rank: 3

Credits
486
Posted at 4/14/2023 10:27:59        Only Author  5#
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
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