This repository contains the scripts for facilitating (Note: Not generating) the linux image for the de10-nano board generation
Should you just need the image, ask one of the guys that worked on this project - though they will probably not respond to you :=(
Here's a rundown of what the scripts do:
imggen.sh
- generates the SD card imagegenroot.sh / genrootfs_chroot.sh
- the scripts for generating the rootfs wihtdebootstrap
gen-uboot.sh
- pulls and compiles the u-boot bootloadergenkernel.sh
- pulls and compiles the kernel.
Make sure you install these packages:
sudo apt install gcc-arm-linux-gnueabihf
Now export the cross-compiler path
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
And run the script
./gen-uboot.sh
Install all these packages:
sudo apt install libncurses-dev flex bison openssl libssl-dev dkms libelf-dev \
libudev-dev libpci-dev libiberty-dev libmpc-dev libgmp3-dev autoconf \
bc debootstrap gcc-arm-none-eabi
Same as with u-boot, export the cross-compiler path
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
And run the script
./genkernel.sh
Install these packages:
sudo apt install qemu-user-static gcc-arm-linux-gnueabihf
Run the script:
./genroot.sh
You caould just
./imggen.sh
But there's options, so read through them before using it
./imggen.sh -h
That's all!