Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] How do I get linux-headers for the 5.10.66 kernel?

25

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
25

【Linux】 How do I get linux-headers for the 5.10.66 kernel?

Posted at 10/30/2023 17:32:50      View:596 | Replies:2        Print      Only Author   [Copy Link] 1#
  • Type: Self-Compiled Firmware
  • SDK Package Name: rk3588_linux_release_20231027_v1.1.1e
  • Last Commit: 0000-00-00 00:00:00
  • Modification Content: ??
  • Log: log.zip
Problem description and steps to reproduce:
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  

log.zip

3.35 KB, Down times: 0

Reply

Use props Report

182

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
182
Posted at 10/31/2023 09:41:48        Only Author  2#
Hello, did you check this linux-headers: https://en.t-firefly.com/doc/download/140.html
Reply

Use props Report

25

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
25
Posted at 10/31/2023 15:09:17        Only Author  3#
Last edited by igorhoop In 10/31/2023 18:06 Editor

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

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