Firefly Open Source Community

Title: How do I get linux-headers for the 5.10.66 kernel? [Print This Page]

Author: igorhoop    Time: 10/30/2023 17:32
Title: How do I get linux-headers for the 5.10.66 kernel?
Hi everyone. I want linux-headers for my Firefly device.

I downloaded the SDK-archive: "rk3588_linux_release_20230114_v1.0.6c"

command:
realpath .repo/manifest.xml
give out:
.repo/manifests/rk3588/rk3588_linux_release_20231027_v1.1.1e.xml

I vaguely imagine how images are assembled, but I need to get linux-headers for kernel version 5.10.66 and Ubuntu 20.04


Okay, I'm starting to do.


Prepared a docker container, because if we believe the instructions we need Ubuntu 18.04 for build:
# syntax=docker/dockerfile:1

FROM ubuntu:18.04
RUN apt update -y && apt install build-essential -y && apt install python2.7 -y
RUN ln -s /usr/bin/python2.7 /usr/bin/python
RUN apt install repo bc rsync kmod cpio bison flex flex:native libssl-dev:native -y
RUN apt install 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 gcc-multilib g++-multilib unzip device-tree-compiler ncurses-dev -y

WORKDIR /home
I bind the directory with the SDK to the container and I run this container:
docker run -it --mount type="bind",src="/home/hoop/0_Programs_or_Libraries/FIREFLY_RK3588_SDK_LINUX/rk3588_another_popytka/",target=/home/sdk my_image /bin/bash



And I follow this instruction.


I'm not sure which mk-file I need, but I don't build with anyone.

./build itx-3588j-ubuntu.mk
./build.sh kerneldeb

I get a mistake
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
scripts/Makefile.package:82: recipe for target 'bindeb-pkg' failed
make[1]: *** [bindeb-pkg] Error 2
Makefile:1665: recipe for target 'bindeb-pkg' failed
make: *** [bindeb-pkg] Error 2
ERROR: Running build_kerneldeb failed!
ERROR: exit code 2 from line 766:
make ARCH=$RK_ARCH bindeb-pkg RK_KERNEL_DTS=$RK_KERNEL_DTS -j$RK_JOBS

_____________________________________________________________


P.S.
Even if the build was successful, I do not understand how I would choose the kernel version exactly 5.10.66  

tchip_askquestions

log.zip

3.35 KB, Down times: 0


Author: zooora111    Time: 10/31/2023 09:41
Hello, did you check this linux-headers: https://en.t-firefly.com/doc/download/140.html

Author: igorhoop    Time: 10/31/2023 15:09
Last edited by igorhoop In 10/31/2023 18:06 Editor
zooora111 Posted at 10/31/2023 09:41
Hello, did you check this linux-headers: https://en.t-firefly.com/doc/download/140.html

Hello, this is 5.10.110, but i need 5.10.66

I tried the build on the real Ubuntu 18.04 (without using a docker). The error is the same

Perhaps someone can provide me with a file with linux-headers 5.10.66






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