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

rk3399 fails to configure glibc on scarthgap #128

Open
nandra opened this issue Oct 14, 2024 · 12 comments
Open

rk3399 fails to configure glibc on scarthgap #128

nandra opened this issue Oct 14, 2024 · 12 comments

Comments

@nandra
Copy link

nandra commented Oct 14, 2024

Hello,

I'm facing an issue when building rk3399pro-evk that glib fails with:

| running configure fragment for sysdeps/unix/sysv/linux
| checking installed Linux kernel header files... 3.2.0 or later
| checking for kernel header at least 5.10... too old!
| configure: error: *** The available kernel headers are older than the requested
| *** compatible kernel version
| NOTE: The following config.log files may provide further information.
| NOTE: /data/projects/kas/build/tmp/work/armv8a-poky-linux/glibc/2.39+git/build-aarch64-poky-linux/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/data/projects/kas/build/../sources/poky/meta/recipes-core/glibc/glibc_2.39
@JeffyCN
Copy link
Owner

JeffyCN commented Oct 22, 2024

should be fixed in:
1d9f141

@JeffyCN JeffyCN closed this as completed Oct 22, 2024
@nandra
Copy link
Author

nandra commented Oct 22, 2024

I'm on latest origin/scarthgap and still facing this issue

@JeffyCN
Copy link
Owner

JeffyCN commented Oct 22, 2024

the oldest header version(5.10) is defined here, the same as libc's kernel header version:
meta-rockchip/conf/machine/include/rockchip-common.inc
28:LINUXLIBCVERSION ?= "5.10-custom%"
30:OLDEST_KERNEL := "${@d.getVar('LINUXLIBCVERSION').split('-')[0]}"

poky/meta/conf/distro/include/tcmode-default.inc
52:PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}"

@nandra
Copy link
Author

nandra commented Oct 22, 2024

In rk3399.inc it's overriden to:

PREFERRED_VERSION_linux-rockchip := "4.19%"
LINUXLIBCVERSION := "4.19-custom%"

@nandra
Copy link
Author

nandra commented Oct 22, 2024

With this change kernel fail to build :(

@JeffyCN
Copy link
Owner

JeffyCN commented Oct 22, 2024

well, i thought it would use the final value to calculate oldest_kernel :(

@nandra
Copy link
Author

nandra commented Oct 22, 2024

Can we reopen pls?

@JeffyCN
Copy link
Owner

JeffyCN commented Oct 22, 2024

should be fixed now :)

@JeffyCN JeffyCN reopened this Oct 22, 2024
@nandra
Copy link
Author

nandra commented Oct 22, 2024

Thanks but kernel cannot be compiled then:

| /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399.dtsi:2700.27-2703.6: ERROR (phandle_references): /pinctrl/sdmmc/sdmmc-bus1: Reference to non-existent node or label "pcfg_pull_up_10ma"
| 
|   also defined at /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts:1177.26-1180.5
| /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399.dtsi:2705.27-2711.6: ERROR (phandle_references): /pinctrl/sdmmc/sdmmc-bus4: Reference to non-existent node or label "pcfg_pull_up_10ma"
| 
|   also defined at /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts:1182.26-1188.5
| /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399.dtsi:2705.27-2711.6: ERROR (phandle_references): /pinctrl/sdmmc/sdmmc-bus4: Reference to non-existent node or label "pcfg_pull_up_10ma"
| 
|   also defined at /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts:1182.26-1188.5
| /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399.dtsi:2705.27-2711.6: ERROR (phandle_references): /pinctrl/sdmmc/sdmmc-bus4: Reference to non-existent node or label "pcfg_pull_up_10ma"
| 
|   also defined at /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts:1182.26-1188.5
| /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399.dtsi:2705.27-2711.6: ERROR (phandle_references): /pinctrl/sdmmc/sdmmc-bus4: Reference to non-existent node or label "pcfg_pull_up_10ma"
| 
|   also defined at /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts:1182.26-1188.5
| /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399.dtsi:2713.25-2716.6: ERROR (phandle_references): /pinctrl/sdmmc/sdmmc-clk: Reference to non-existent node or label "pcfg_pull_none_10ma"
| 
|   also defined at /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts:1190.24-1193.5
| /build/tmp-scarthgap/work-shared/rockchip-rk3399pro-evb/kernel-source/arch/arm64/boot/dts/rockchip/rk3399.dtsi:2718.25-2721.6: ERROR (phandle_references): /pinctrl/sdmmc/sdmmc-cmd: Reference to non-existent node or label "pcfg_pull_up_10ma"

@JeffyCN
Copy link
Owner

JeffyCN commented Oct 22, 2024

there's something wrong in your kernel dts

@nandra
Copy link
Author

nandra commented Oct 22, 2024

It's stock without any change

@JeffyCN
Copy link
Owner

JeffyCN commented Oct 22, 2024

couldn't reproduce it, works well on my side.

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

2 participants