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

Unable to build the linux-rochchip 6.1 #132

Open
xbrtszstk opened this issue Nov 26, 2024 · 2 comments
Open

Unable to build the linux-rochchip 6.1 #132

xbrtszstk opened this issue Nov 26, 2024 · 2 comments

Comments

@xbrtszstk
Copy link

xbrtszstk commented Nov 26, 2024

I'd like to add support for new machine.
Firstly, I added file to support the RV1106 processor:

require conf/machine/include/arm/armv7a/tune-cortexa7.inc
require conf/machine/include/rockchip-common.inc
require conf/machine/include/mali.inc

RK_SOC_FAMILY = "rv1106g3"

PREFERRED_VERSION_linux-rockchip = "6.1%"
LINUXLIBCVERSION = "6.1-custom%"

Then I added file for my machine:

require include/rv1106g3.inc

UBOOT_MACHINE = "rv1106_defconfig"

KBUILD_DEFCONFIG = "rv1106_defconfig"
KERNEL_DEVICETREE = "rv1106g3-luckfox-pico-max.dtb"

Then, I succedd to build the u-boot:
MACHINE="luckfox-pico-max" bitbake virtual/bootloader
but when I'm trying to build the kernel:
MACHINE="luckfox-pico-max" bitbake virtual/kernel
I'm encountering the issue:

| In file included from /home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/drivers/soc/rockchip/fiq_debugger/fiq_debugger.c:165:
| /home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/drivers/soc/rockchip/fiq_debugger/fiq_debugger_arm.c: In function 'fiq_debugger_dump_stacktrace':
| /home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/drivers/soc/rockchip/fiq_debugger/fiq_debugger_arm.c:241:48: error: implicit declaration of function 'THREAD_INFO' [-Wimplicit-function-declaration]
|   241 |         struct thread_info *real_thread_info = THREAD_INFO(ssp);
|       |                                                ^~~~~~~~~~~
| /home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/drivers/soc/rockchip/fiq_debugger/fiq_debugger_arm.c:241:48: error: initialization of 'struct thread_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
| make[6]: *** [/home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/scripts/Makefile.build:250: drivers/soc/rockchip/fiq_debugger/fiq_debugger.o] Error 1
| make[5]: *** [/home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/scripts/Makefile.build:500: drivers/soc/rockchip/fiq_debugger] Error 2
| make[4]: *** [/home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/scripts/Makefile.build:500: drivers/soc/rockchip] Error 2
| make[3]: *** [/home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/scripts/Makefile.build:500: drivers/soc] Error 2
| make[2]: *** [/home/bartiszosti/Documents/xbstk/build-luckfox-pico/tmp/work-shared/luckfox-pico/kernel-source/scripts/Makefile.build:500: drivers] Error 2
| make[2]: *** Waiting for unfinished jobs....

I use the master branch from meta-rockchip and the styhead branch from poky and meta-oe.
To run the build of bootloader and kernel I had to add the Upstream-Status to patches, which you can find on my fork of your repository.
Do you know what is wrong?

@xbrtszstk
Copy link
Author

xbrtszstk commented Nov 26, 2024

I added a patch to linux-rockchip, which you can find in my fork.
Currently, I have another issue:

�RKUART�DDR V1.10 ec2fae0c96 wesley.yao 22/11/15-10:58:09
S5P1
f967
rgef1
DDRConf2
DDR3, BW=16 Col=10 Bk=8 CS0 Row=14 CS=1 Die BW=16 Size=256MB
924MHz
DDR bin out

�RKUART�DDR V1.10 ec2fae0c96 wesley.yao 22/11/15-10:58:09
S5P1
f967
rgef1
DDRConf2
DDR3, BW=16 Col=10 Bk=8 CS0 Row=14 CS=1 Die BW=16 Size=256MB
924MHz
DDR bin out

U-Boot SPL board init
U-Boot SPL 2017.09 (Jul 10 2024 - 14:42:27)
unrecognized JEDEC id bytes: ff, ef, aa
Trying to boot from MMC2
ENVF: !bad CRC @ 0x200
ENVF: !bad CRC @ 0x200
spl: partition error

What can be wrong with SD card?

@JeffyCN
Copy link
Owner

JeffyCN commented Nov 27, 2024

sorry, i don't know much about rv1106.

maybe you can try to follow the readme to use a workable kernel and loader(from the board's provider).

and for the patch status check, you can try to ignore it:
+ERROR_QA:remove = "patch-status

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