Firefly Open Source Community

Title: How do I build 5.10 kernel for ITX-3568JQ? [Print This Page]

Author: geekay    Time: 4/17/2023 19:28
Title: How do I build 5.10 kernel for ITX-3568JQ?

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




Author: geekay    Time: 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 flash it to emmc?
Author: zooora111    Time: 4/20/2023 10:39
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
Author: geekay    Time: 4/20/2023 14:03
Last edited by geekay In 4/20/2023 14:10 Editor
zooora111 Posted at 4/20/2023 10:39
Please check this: https://wiki.t-firefly.com/en/iCore-3568JQ/kernel_introduction.html?highlight=k ...

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...

Author: geekay    Time: 4/20/2023 15:38
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?

Author: geekay    Time: 4/21/2023 20:49
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?
Author: Liuth    Time: 4/25/2023 16:05
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




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