|
【Linux】
How do I get linux-headers for the 5.10.66 kernel?
Posted at 10/30/2023 17:32:50
View:1293
|
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
|
|