The test board is a Terasic de0-nano-soc
sudo apt install gcc-arm-linux-gnueabihf
git clone https://github.com/altera-opensource/u-boot-socfpga.git
export CROSS_COMPILE=arm-linux-gnueabihf-
cd u-boot-socfpga
git checkout master
make mrproper
make defconfig socfpga_de0_nano_soc_defconfig
make -j4
export PATH=`pwd`/u-boot-socfpga/tools:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
git clone https://github.com/altera-opensource/linux-socfpga.git
cd linux-socfpga
git checkout socfpga-4.15
make socfpga_defconfig
make -j8 uImage LOADADDR=0x8000
make dtbs
make -j8 modules
Copy the files to the SD card boot partition
arch/arm/boot/zImage
arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dtb to socfpga.dtb
Requires binfmt-support
sudo qemu-debootstrap --no-check-gpg --arch=armhf stretch rootfs ftp://ftp.debian.org/debian/
chroot rootfs
Once inside the chroot
- Set the root password
- Update /etc/apt/sources.list
- apt-get update
- apt-get install openssh-server
exit chroot
Copy rootfs/* to SD card root partition
Install SD card into de0-nano-soc board
Create /etc/network/interfaces.d/eth0 containing network configuration
apt-get install locales
dpkg-reconfigure locales