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

develop-5.10 compile error #288

Open
dorfil opened this issue Feb 7, 2023 · 5 comments
Open

develop-5.10 compile error #288

dorfil opened this issue Feb 7, 2023 · 5 comments

Comments

@dorfil
Copy link

dorfil commented Feb 7, 2023

Hi!

I'm trying to build develop-5.10 for a rk3328 board, using the defconfig located in arch/arm64/configs/defconfig.

The build throw this error:

| .../linux-5.10/drivers/clk/sunxi-ng/ccu_mp.c: In function 'ccu_mp_round_rate':                      
| .../linux-5.10/drivers/clk/sunxi-ng/ccu_mp.c:111:14: error: implicit declaration of function 'clk_hw
_can_set_rate_parent'; did you mean 'clk_hw_set_rate_range'? [-Werror=implicit-function-declaration]                                                                                                               
|   111 |         if (!clk_hw_can_set_rate_parent(&cmp->common.hw)) {

When searching in the code, it seems the function clk_hw_can_set_rate_parent is not defined anywhere...

Any hints on what is going on?

Thanks

@avafinger
Copy link

This is sunxi code.

disable SUNXI and other nonrelated platforms and try again:
# CONFIG_ARCH_SUNXI is not set

@dorfil
Copy link
Author

dorfil commented Feb 7, 2023

Thanks! I disable that and the kernel builds.

But it gets stucked when booting, after uboot prints "Starting kernel..." nothing else is displayed on console.

I'm using the same kernel command line I used when booting kernel 4:

rw init=/sbin/init rootwait console=tty1 console=ttyS2,1500000n8 rootfstype=ext4 root=/dev/mmcblk2p10

Tried to enable earlyprintk but didn't help.

Any ideas?

Thanks again

@avafinger
Copy link

avafinger commented Feb 7, 2023

But it gets stucked when booting, after uboot prints "Starting kernel..." nothing else is displayed on console.

Typical message when you have the wrong kernel config for your board OR the wrong dtb.
You could ask someone for a good kernel config for your board. or get it from some build system like Armbian, buildroot, etc.

@kkursor
Copy link

kkursor commented Mar 16, 2023

@dorfil maybe console device is wrong. I have ttyFIQ0 on my RK3568 board, not ttyS*

@ballestrerod
Copy link

comment this section on your dtb

fiq-debugger {
...
};

and modify bootargs and stdout-path like below

chosen {
	bootargs = "earlycon=uart8250,mmio32,0xff130000 rw root=/dev/mmcblk0p4 rootfstype=ext4 rootwait";
	stdout-path = "serial2:1500000n8";
};

after that I modified what yocto defines as

-SERIAL_CONSOLES = "1500000;ttyFIQ0"
+SERIAL_CONSOLES = "1500000;ttyS2"

in this manner everything is coherent and works

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

4 participants