====== Installation Debian ======
{{tag>"single board computer" Olimex A20 Debian}}
À venir.
===== Préparation de la carte SD =====
Nous créons les deux partitions
fdisk /dev/sdb
n
1
entrée
+100M
n
2
entrée
entrée
w
q
Et nous les formatons
mkfs.ext2 /dev/sdb1
mkfs.btrfs /dev/sdb2
Nous les montons
mkdir /mnt/boot
mount /dev/sdb1 /mnt/boot
mount /dev/sdb2 /mnt
===== debootstrap =====
Nous créons le debootstrap
qemu-debootstrap --verbose --include=linux-image-armmp-lpae,locales,flash-kernel,sunxi-tools,firmware-linux,debconf,firmware-realtek --arch=armhf --components main,contrib,non-free stretch /mnt http://ftp.debian.org/debian
grep Olimex usr/share/flash-kernel/db/all.db
mkdir /mnt/etc/flash-kernel/
echo "Olimex A20-Olinuxino Micro" > /mnt/etc/flash-kernel/machine
echo 'LINUX_KERNEL_CMDLINE="console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x1024p60 root=/dev/mmcblk0p2 rootwait panic=10 ${extra}"' >> /mnt/etc/default/flash-kernel
echo "rtc_sunxi" >> /mnt/etc/initramfs-tools/modules
===== Liens =====
* [[https://wiki.debian.org/FreedomBox/Manual#FreedomBox.2FDownload.Download_and_Install|installing FreedomBox]]
* [[https://wiki.debian.org/InstallingDebianOn/Allwinner|installing Debian on Allwinner]] (wiki Debian)
* [[https://get.debian.org/debian/dists/stable/main/installer-armhf/current/images/netboot/SD-card-images/|images SD card Debian]]
* [[https://linux-sunxi.org/Mainline_Debian_HowTo|build a debian with qemu bootstrap]]