unframework / licheepi-nano-buildroot

Config files for full Lichee Pi Nano Linux image build
GNU General Public License v3.0
113 stars 29 forks source link

compilation error when dealing with the Kernel #18

Closed leonardowolf closed 10 months ago

leonardowolf commented 2 years ago

I'm guessing that since the kernel got updated, the default scripts which were "hard-coded" to k 5.4 won't work anymore

INSTALL /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/build/linux-headers-v5.11-nano-3/usr/include
>>> linux-headers v5.11-nano-3 Building
>>> linux-headers v5.11-nano-3 Installing to staging directory
(cd /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/build/linux-headers-v5.11-nano-3; PATH="/home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/bin:/home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/sbin:/home/munin/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin" /usr/bin/make  ARCH=arm HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" HOSTCXX="/usr/bin/g++" INSTALL_HDR_PATH=/home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/arm-buildroot-linux-gnueabi/sysroot/usr headers_install)
  INSTALL /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/include
if ! support/scripts/check-kernel-headers.sh  /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/build  /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/arm-buildroot-linux-gnueabi/sysroot  5.4 strict; then exit 1; fi
Incorrect selection of kernel headers: expected 5.4.x, got 5.11.x
make[1]: *** [package/pkg-generic.mk:333: /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/build/linux-headers-v5.11-nano-3/.stamp_staging_installed] Error 1
make: *** [Makefile:84: _all] Error 2

I'm trying to solve that one myself too, but any help would be appreciated

unframework commented 2 years ago

Hi Leonardo, yes please update with results if you find something. I am slowly working through my open source issues backlog currently (had a bit of an overloaded summer!), and will try to get to the Lichee Pi related stuff in the next couple weeks.

peterbmckinley commented 1 year ago

Issue: build fails with "Incorrect selection of kernel headers: expected 5.4.x, got 5.11.x"

Solution:

make menuconfig > Toolchain ---> > Custom kernel headers series (5.4.x) ---> > change from 5.4.x to 5.11.x and save

peterbmckinley commented 1 year ago

Hi I can confirm this builds OK once the header is updated as described. I would be grateful if the maintainer could update the repo and close this ticket.

Thanks in advance

Peter

unframework commented 1 year ago

Thanks for looking into this! Since these issues are due to updated Buildroot version I will try to find a time to update my local install as well and incorporate the above changes. For now, I will tweak the docs to mention these caveats.

peterbmckinley commented 1 year ago

Thanks Nick. Would you be interested in collaborating on a project of mine?

https://github.com/speedsaver

Peter

On Fri, 30 Dec 2022, 00:25 Nick Matantsev, @.***> wrote:

Thanks for looking into this! Since these issues are due to updated Buildroot version I will try to find a time to update my local install as well and incorporate the above changes. For now, I will tweak the docs to mention these caveats.

— Reply to this email directly, view it on GitHub https://github.com/unframework/licheepi-nano-buildroot/issues/18#issuecomment-1367656328, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFONLDKVKTP2L2NKYORCPL3WPYTWHANCNFSM565PUDSQ . You are receiving this because you commented.Message ID: @.***>

unframework commented 1 year ago

Hi @peterbmckinley, thanks for the invite! I am not currently working with embedded boards much, and generally a bit stretched with work unfortunately. Are you building a new devboard?

peterbmckinley commented 1 year ago

Hi Nick,

I did commission my own board based on the Allwinner V3LP (new Low Power drop in replacement for V3s), however costings for UK production for 1k units came in WAY over target and I can't overcome that hurdle. So I open sourced the PCB production files on my Speedsaver Github organisation.

The board was only ever a platform for my code, which is the core use case, an aftermarket automotive safety device.

My code runs on Orange Pi Zero and Lichee Zero. But for maximum cost savings I'm looking to partner with someone who can maintain my mature and working code and also port to Lichee Nano. Obviously you have considerable knowledge of this board.

I know the code works on the MangoPi R3c, which uses an F1C200s SoC, and my ram overhead is within spec for the 32 MByte F1C100s. So technically porting the code should be fairly straightforward, although some late commit appears to have broken the build. I'll see if I can get Steve my former contributor to fix that, it was working before.

Let me know if this is something you would be interested to discuss. My email is @.***

Regards

Peter McKinley

Speedsaver Ltd

On Fri, 30 Dec 2022, 00:55 Nick Matantsev, @.***> wrote:

Hi @peterbmckinley https://github.com/peterbmckinley, thanks for the invite! I am not currently working with embedded boards much, and generally a bit stretched with work unfortunately. Are you building a new devboard?

— Reply to this email directly, view it on GitHub https://github.com/unframework/licheepi-nano-buildroot/issues/18#issuecomment-1367667303, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFONLDIMDL6WMGQBXN2PLKDWPYXJTANCNFSM565PUDSQ . You are receiving this because you were mentioned.Message ID: @.***>