how to cross compile 4.19 BSP?
Philip C
subs at pscan.uk
Sun Feb 6 10:08:40 PST 2022
sorry folks, my EXPORT was messed up.
I downloaded gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
and unpacked it again
export ARCH=arm64
export
CROSS_COMPILE=/home/philip/gcc-arm/10.3/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
If I do make menuconfig and save it (so a default .config) I still fail
with this:-
CC mm/page_counter.o
CC mm/memcontrol.o
mm/memcontrol.c: In function 'memcg_stat_show':
mm/memcontrol.c:3542:1: warning: the frame size of 1040 bytes is larger
than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning:memcontrol.c:3542
3542 | }
| ^
mm/memcontrol.c: In function 'memory_stat_show':
mm/memcontrol.c:5709:1: warning: the frame size of 1040 bytes is larger
than 1024 bytes [-Wframe-larger-than=]
error, forbidden warning:memcontrol.c:5709
5709 | }
| ^
make[1]: *** [scripts/Makefile.build:334: mm/memcontrol.o] Error 1
make: *** [Makefile:1194: mm] Error 2
On 06/02/2022 12:48, Philip C wrote:
> I am sorry if this list is not exactly the right place for this
> question, but I don't know where to ask.
>
> Until mainline supports the DSI/LCD output I need something that I can
> use for my project based on an RK3566 with an LCD screen.
>
> So I have been trying (and failing) to compile the 4.19-develop branch
> of https://github.com/rockchip-linux/kernel
>
> I have been using this cross compiler:-
> gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu
>
> using these commands:-
> export ARCH=arm64
> export
> CROSS_COMPILE=/home/philip/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
>
> make Image modules
> make dtbs
>
> This works on other kernels, but with the official kernel source I get
> many, many errors which are probably beyond my abilities to fix. For
> example I can compile Radxa Team 4.19 kernels, but my project isn't a
> Radxa product.
>
> Three questions:-
>
> 1. Should I be using branch 4.19-develop? or 4.19-develop-rt87?
> 2. Is there a particular OS/version and cross compiler that I should be
> using? Currently I am on ubuntu hirsute but I have no problem to change
> it to something else.
> 3. If this isn't the right place to ask then please where is?
>
> thanks, Philip
>
>
More information about the Linux-rockchip
mailing list