[This document will be continuously updated.]

https://developer.arm.com/downloads/-/gnu-rm

 

Downloads | GNU Arm Embedded Toolchain Downloads – Arm Developer

Download the GNU Embedded Toolchain for ARM, an open-source suite of tools for C, C++, and Assembly programming for 32-bit ARM Cortex-A, ARM Cortex-M and Cortex-R families

developer.arm.com

아래 신 버전으로 바뀌었는데 지난 바이너리는 여기서 받는다.

https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain

 

Arm GNU Toolchain

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling coo

developer.arm.com

https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

 

Arm GNU Toolchain Downloads – Arm Developer

Download the Arm GNU Toolchain, an open-source suite of tools for C, C++, and Assembly programming for the Arm architecture.

developer.arm.com

 

x86 기반 ubuntu 22.04 에서 바닐라 커널을 ARM 용으로 빌드해보자.

 

커널은 

curl -O https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.72.tar.xz 이런 식으로 받으면 된다.

 

https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz?rev=e434b9ea4afc4ed7998329566b764309&hash=688C370BF08399033CA9DE3C1CC8CF8E31D8C441

받아야 한다. 크롬으로 tar.xz에 가서 링크 복사 하면 된다.

curl -O https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz?rev=e434b9ea4afc4ed7998329566b764309&hash=688C370BF08399033CA9DE3C1CC8CF8E31D8C441 

로 받자. 리눅스 커널 메인 폴더에 받아 버리는게 간지.

 

curl -O 로 잘 안되면 wget 으로 받아서 .tar.xz 로 이름 잘 바꿔주고

tar xvf 로 압축을 잘 풀어준다.

 

~/kernel/5_15_72/linux-5.15.72/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi$ ls
13.2.Rel1-x86_64-arm-none-eabi-manifest.txt  arm-none-eabi  bin  include  lib  libexec  license.txt  share

 

~/kernel/5_15_72/linux-5.15.72/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (15:10.3-2021.07-4) 10.3.1 20210621 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

'프로그래머 > ARM, GCC, Linux Kernel, What I love' 카테고리의 다른 글

ARM Firmware 003  (0) 2019.02.09
ARM Firmware 002  (0) 2019.02.09
ARM Firmware 001  (0) 2019.02.09
Apple M1 에서는 컴파일러가 그냥 ARM 용이다.  (0) 2019.02.02
우분투에서 ARM 용 커널 빌드  (0) 2019.01.26

+ Recent posts