how to compile Linux from the SDK ?
#1
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.
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}

Sad

The same patch that I suggest here for Android https://wiki.pine64.org/wiki/Android_SDK_for_RK3566 seems to help with Linux too
  Reply


Messages In This Thread
how to compile Linux from the SDK ? - by dieselnutjob - 11-17-2021, 11:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Quartz64 riscv64, aarch64 mara 4 1,094 Yesterday, 10:45 AM
Last Post: mara
  SOQuartz Linux Builds stormwyrm 1 926 11-13-2023, 02:53 AM
Last Post: diederik
  Plebian Linux CounterPillow 8 4,705 07-19-2023, 08:51 AM
Last Post: CounterPillow
  Installing linux images emveepee 8 6,467 07-07-2022, 08:19 AM
Last Post: emveepee
  Mainline linux Mwo87 4 4,016 07-06-2022, 05:38 AM
Last Post: CounterPillow
  Debian Userland on top of existing Linux build? dieselnutjob 3 3,988 01-25-2022, 01:12 PM
Last Post: dieselnutjob
  Boot Linux on microSD card? dieselnutjob 2 3,963 10-01-2021, 05:15 PM
Last Post: dieselnutjob

Forum Jump:


Users browsing this thread: 1 Guest(s)