Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] How do I build 5.10 kernel for ITX-3568JQ?

91

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
91

【Linux】 How do I build 5.10 kernel for ITX-3568JQ?

Posted at 4/17/2023 19:28:47      View:1912 | Replies:6        Print      Only Author   [Copy Link] 1#

I can see only linux 4.19 in the SDK, but I need at least linux 5.4. The documentation states that there  is linux 5.10 working with the itx-3568. Where can I get the sources?

The sdk I have is rk356x_linux_release_v1.3.0b_20221213, last commit
  1. 3ae8102b6856dec3e0f5ccf6770eb71c50683634
Copy the code



Reply

Use props Report

91

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
91
Posted at 4/19/2023 16:02:33        Only Author  2#
I was able to build kernel image 5.13 with buildroot from the SDK. How can I build kernel.img and flash it to emmc?
Reply

Use props Report

182

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
182
Posted at 4/20/2023 10:39:17        Only Author  3#
geekay Posted at 4/19/2023 16:02
I was able to build kernel image 5.13 with buildroot from the SDK. How can I build kernel.img and fl ...

Please check this: https://wiki.t-firefly.com/en/iC ... ml?highlight=kernel
Reply

Use props Report

91

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
91
Posted at 4/20/2023 14:03:43        Only Author  4#
Last edited by geekay In 4/20/2023 14:10 Editor

The linux kernel in firefly's sdk is 4.19, and  the image is built quite ok, but I need at least 5.4. So I tried to build it according to buildroot's instructions (arch/arm64/configs/rockchip_linux_defconfig), and got Image.gz and rootfs (cpio, ext2 ant tar). I reckon, all I have to do, is to partition the emmc the right way. What should be done to make the firmware image out of this?
Kernel 5.10 from https://github.com/linux-rockchip also is built, but w/o modules (ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j6 rockchip_linux_defconfig).
The whole deal is being done in linux mint, hence I don't think that the containerization (docker, podman, etc) should make any sense...
Reply

Use props Report

91

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
91
Posted at 4/20/2023 15:38:49        Only Author  5#
I have just built kernel.img and upgrade_tool refuses to flash it to emmc with
  1. # ./upgrade_tool uf rk356x_linux_release/rk356x_linux_release_v1.3.0b_20221213/kernel/kernel.img
  2. Using /home/geekay/devel/firefly3568/rk356x_linux_release/rk356x_linux_release_v1.3.0b_20221213/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/config.ini
  3. Program Log will save in the /root/upgrade_tool/log/
  4. Loading firmware...
  5. Loading firmware failed!
  6. Note:invalid tag of firmware,please check firmware
Copy the code

What else should be done to flash the new kernel.img?
Reply

Use props Report

91

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
91
Posted at 4/21/2023 20:49:58        Only Author  6#
Is anybody here? I'm still stuck at
1. Finding linux 5.10 SDK from firefly
2. Packing buildroot output to rockchips sophisticated *.img files.

Can I get  any help or should I throw away this crapboard and forget about firefly's products?
Reply

Use props Report

374

Credits

7

Prestige

7

Contribution

intermediate

Rank: 3Rank: 3

Credits
374
Posted at 4/25/2023 16:05:13        Only Author  7#
geekay Posted at 4/21/2023 20:49
Is anybody here? I'm still stuck at
1. Finding linux 5.10 SDK from firefly
2. Packing buildroot ou ...

There is no linux 5.10 SDK from firefly for ITX-3568Q, only 4.19
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