sebian (draft) FIXME
baloo:~# cryptsetup --type luks open /dev/mmcblk0p2 brique
baloo:~# mount -t ext4 /dev/mapper/brique /mnt
baloo:~# mount /dev/mmcblk0p1 /mnt/boot
baloo:~# sudo openvpn --config ldn.conf
parpaing:~# sshfs baloo:/mnt /mnt
parpaing:~# mount -t proc none /mnt/proc
parpaing:~# mount -o bind /dev /mnt/dev
parpaing:~# mount -t sysfs sys /mnt/sys/
parpaing:~# chroot /mnt /bin/bash
parpaing:~# dpkg --configure -a
parpaing:~# apt-get update;apt-get dist-upgrade;apt-get clean
parpaing:~# CTRL-D
parpaing:~# umount /mnt/proc
parpaing:~# umount /mnt/dev
parpaing:~# umount /mnt/sys
parpaing:~# umount /mnt
baloo:~# umount /mnt/boot
baloo:~# umount /mnt
baloo:~# cryptsetup --type luks close brique
# kernel problem with 4.5.0-1-armmp
cd /boot
ls -al dtbs/4.5.0-1-armmp/sun7i-a20-olinuxino-lime.dtb
# debug
dd bs=1 skip=72 if=boot.scr of=boot.script
vi boot.script
# :%s/4.5.0-1-armmp/4.3.0-1-armmp/g
cp boot.scr boot.scr.bak
mkimage -A arm -T script -C none -n "Sebian boot.scr" -d boot.script boot.scr
ln -svf dtbs/4.3.0-1-armmp/sun7i-a20-olinuxino-lime.dtb dtb
//Notes :
* mkimage fait partie du paquet u-tools
* sur une brique fraichement installée, le noyau est un 4.1.0-2//
run loadimage
run mmcboot