Single script option failed
Now I am trying step by step
I get error when running make $ADDON_ARGS ARCH=arm64 ${PRODUCT_KERNEL_DTS}.img -j$(nproc)
output:
make $ADDON_ARGS ARCH=arm64 ${PRODUCT_KERNEL_DTS}.img -j$(nproc)
arch/arm64/Makefile:25: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
arch/arm64/Makefile:33: LSE atomics not supported by binutils
arch/arm64/Makefile:44: Detected assembler with broken .inst; disassembly will be unreliable
arch/arm64/Makefile:25: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
arch/arm64/Makefile:33: LSE atomics not supported by binutils
arch/arm64/Makefile:44: Detected assembler with broken .inst; disassembly will be unreliable
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mlittle-endian’
make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1
make[2]: *** Waiting for unfinished jobs…
make[2]: *** [scripts/Makefile.build:273: scripts/mod/empty.o] Error 1
make[1]: *** [Makefile:1321: prepare0] Error 2
make: *** [arch/arm64/Makefile:214: rk3588-rock-5b.img] Error 2
@incognito What I am doing is using an Ubuntu 20 x64 guest to build for arm64
I didnt try doing it on rock5b itself , I read building Android requires 300gb of storage.
@thc013 thanks for response, will try those on a fresh build machine. But looking at it I see this is the single script option from the documentation. Initially it failed for me. Probably I missed some setting or installation. Will try again by copy/pasting from the command you provided to avoid typos.
What I did to understand I tried using the options directly on gcc with a helloworld.c and it gives the error, gcc does not have those options.
I think arm-linux-gnueabi-gcc should be installed and used instead of gcc, because arm-linux-gnueabi-gcc did not complain about those options (-mlittle-endian).
I don’t remember the Radxa guide mentioning this, the same happens with the docker container provided in the Radxa guide.
Thanks @thc013 It actually did build. There was 1 package missing in the list, I cant remember which one. Now I need to find out the instructions for writing resuls to emmc/sdcard.