Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux kernel update on flex 5g #20

Open
ValkyrieStella opened this issue Nov 26, 2021 · 8 comments
Open

Linux kernel update on flex 5g #20

ValkyrieStella opened this issue Nov 26, 2021 · 8 comments

Comments

@ValkyrieStella
Copy link

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
Copy link
Collaborator

The build log says you are building a 5.1.0 kernel?

@ValkyrieStella
Copy link
Author

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

@shawnguo2
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Author

also meant laptops_defconfig not laptop_defconfig

@shawnguo2
Copy link
Collaborator

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants