Dev/Embedded/CrossCompile: Difference between revisions

From Embeded Linux (and more) Wiki by Nathael
< Dev‎ | Embedded
Jump to navigation Jump to search
 
Line 24: Line 24:
for uboot :
for uboot :
  apt-get install python3-setuptools swig libgnutls28-dev libssl-dev
  apt-get install python3-setuptools swig libgnutls28-dev libssl-dev
  apt-get install yamllint # U-boot on beagley-ai
  apt-get install yamllint python3-jsonschema # U-boot on beagley-ai


for mtd images creation and manipulation :
for mtd images creation and manipulation :

Latest revision as of 01:42, 18 March 2025

!!!!!!!!!!!!!!!!!!!!! Ongoing work : This is only a collection of notes right now !!!!!!!!!!!!!!!!!!!!!

The basics

Building your own : using Crosstool-NG

Installation of Devuan/Debian cross-toolchain

(Cross-)Compiler part

apt-get install binutils-aarch64-linux-gnu cpp-aarch64-linux-gnu gcc-aarch64-linux-gnu libc6-dev:arm64 

Add architecture support

dpkg --print-foreign-architectures
dpkg --add-architecture <arch>

Add libs

apt-get install libc6-dev:arm64

Add tools for specific projects

for the Linux Kernel :

apt-get install bc bison flex
apt-get install libncurses-dev libssl-dev

for uboot :

apt-get install python3-setuptools swig libgnutls28-dev libssl-dev
apt-get install yamllint python3-jsonschema # U-boot on beagley-ai

for mtd images creation and manipulation :

apt-get install mtd-utils squashfs-tools

Some more