aarch64-laptops / debian-cdimage

79 stars 11 forks source link

Linux kernel update on flex 5g #20

Open ValkyrieStella opened 2 years ago

ValkyrieStella commented 2 years ago

Adding this issue here since I'm unable to open an issue on your linux repository. I have attempted updating the Linux kernel per instructions posted on the README. I have tried branches laptops-5.13, laptops-5.14, and laptpos-5.15 on the Lenovo Flex 5g. All three have yielded the same error during the second make command. output below:

edgy1@debian:~/linux$ make LOCALVERSION="-custom" -j`nproc` bindeb-pkg
scripts/kconfig/conf  --syncconfig Kconfig
/bin/bash ./scripts/package/mkdebian
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch)  -b -nc -uc
dpkg-buildpackage: info: source package linux-5.1.0-custom
dpkg-buildpackage: info: source version 5.1.0-custom-1
dpkg-buildpackage: info: source distribution sid
dpkg-buildpackage: info: source changed by edgy1 <edgy1@debian>
dpkg-buildpackage: info: host architecture arm64
 dpkg-source --before-build .
dpkg-source: info: using options from linux/debian/source/options: --diff-ignore --tar-ignore
 debian/rules build
make KERNELRELEASE=5.1.0-custom ARCH=arm64  KBUILD_BUILD_VERSION=1 -f ./Makefile
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x8): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x38): first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [scripts/Makefile.host:101: scripts/dtc/dtc] Error 1
make[3]: *** [Makefile:1244: scripts_dtc] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make[1]: *** [scripts/package/Makefile:79: bindeb-pkg] Error 2
make: *** [Makefile:1396: bindeb-pkg] Error 2
edgy1@debian:~/linux$ 
shawnguo2 commented 2 years ago

The build log says you are building a 5.1.0 kernel?

ValkyrieStella commented 2 years ago

It shouldn't be.. I ran git checkout -b laptops-5.13 and make laptop_defconfig

shawnguo2 commented 2 years ago

Well, there is no laptop_defconfig on laptops-5.13 at all. Instructions https://github.com/aarch64-laptops/debian-cdimage/#kernel-upgrade says distro_defconfig instead.

ValkyrieStella commented 2 years ago

This is what happens when I try that:

***
*** Can't find default configuration "arch/arm64/configs/distro_defconfig"!
***
make[1]: *** [scripts/kconfig/Makefile:90: distro_defconfig] Error 1
make: *** [Makefile:552: distro_defconfig] Error 2
edgy1@debian:~/linux$ ls arch/arm64/configs/
defconfig  laptops_defconfig
edgy1@debian:~/linux$ 
ValkyrieStella commented 2 years ago

also meant laptops_defconfig not laptop_defconfig

shawnguo2 commented 2 years ago

Oops, there is an error in the instructions, the command git checkout -b laptops-5.13 should be git checkout -b laptops-5.13 origin/ laptops-5.13. Fixing it.

alfredonodo commented 1 year ago

There are some important new features for the SC8180X SoC that is used by the Lenovo Flex 5G and the IdeaPad 5G. There are several patches on the mainline support.

alfredonodo commented 1 year ago

The latest version of linux kernel 6.5 supports the Lenovo Flex 5G SoC SC8180X.