11-17-2021, 11:55 AM
(This post was last modified: 11-17-2021, 12:30 PM by dieselnutjob.)
There is a "BSP Linux SDK ver 4.19 for Quartz64 model A SBC" here https://wiki.pine64.org/wiki/Quartz64#BSP_Linux_SDK
But it isn't obvious how to use it.
So I had a guess. I want Linux for a Quartz64 model A.
First I run ./envsetup.sh and it asks me to pick a "combo" out of 0-91.
looks good to me. So I go for that.
Then I run ./build.sh
it asks me
Which one is a Quartz64 ?
Must be option 1 right? as it's the only option with RK3566
The same patch that I suggest here for Android https://wiki.pine64.org/wiki/Android_SDK_for_RK3566 seems to help with Linux too
But it isn't obvious how to use it.
So I had a guess. I want Linux for a Quartz64 model A.
First I run ./envsetup.sh and it asks me to pick a "combo" out of 0-91.
Code:
62. rockchip_rk3566
looks good to me. So I go for that.
Then I run ./build.sh
it asks me
Code:
You're building on Linux
Lunch menu...pick a combo:
0. default BoardConfig.mk
1. BoardConfig-rk3566-evb2-lp4x-v10.mk
2. BoardConfig-rk3568-evb1-ddr4-v10-spi-nor-64M.mk
3. BoardConfig-rk3568-evb1-ddr4-v10.mk
4. BoardConfig-rk3568-nvr-spi-nand.mk
5. BoardConfig-rk3568-nvr.mk
6. BoardConfig.mk
Which would you like? [0]:
Which one is a Quartz64 ?
Must be option 1 right? as it's the only option with RK3566
Code:
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:108: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:425: scripts/dtc] Error 2
make: *** [Makefile:491: scripts] Error 2
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 341:
./make.sh $RK_UBOOT_DEFCONFIG ${RK_TRUST_INI_CONFIG:+../rkbin/RKTRUST/$RK_TRUST_INI_CONFIG} ${RK_SPL_INI_CONFIG:+../rkbin/RKBOOT/$RK_SPL_INI_CONFIG} ${RK_UBOOT_SIZE_CONFIG:+--sz-uboot $RK_UBOOT_SIZE_CONFIG} ${RK_TRUST_SIZE_CONFIG:+--sz-trust $RK_TRUST_SIZE_CONFIG}
The same patch that I suggest here for Android https://wiki.pine64.org/wiki/Android_SDK_for_RK3566 seems to help with Linux too