Cours:De0NanoSoc : Différence entre versions
(→installation Linux) |
(→chroot) |
||
| Ligne 40 : | Ligne 40 : | ||
==chroot== | ==chroot== | ||
| − | <source lang=bash | + | <source lang=bash> |
mount -t proc /proc /apps/de0NanoSoc/chroot/proc/ | mount -t proc /proc /apps/de0NanoSoc/chroot/proc/ | ||
mount --rbind /sys /apps/de0NanoSoc/chroot/sys/ | mount --rbind /sys /apps/de0NanoSoc/chroot/sys/ | ||
Version du 15 décembre 2025 à 20:32
Sommaire
installation Linux
- créer la carte SD avec l'image :
https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=167&No=941&PartNo=4
- modifier la partition racine
- installer debian 10
https://rcn-ee.com/rootfs/eewiki/minfs/
- installer debian 8
https://rocketboards.org/foswiki/pub/Projects/Debian/debian.img.gz
- ajouter la partition racine dans le fichier fstab
/dev/mmcblk0p2 / auto errors=remount-ro 0 1
- démarrer la de0 nano soc
- configurer le reseau
- bug :
ln -s /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyS0.service
apt sources list
modifier le fichier /etc/apt/sources.list avec :
deb http://archive.debian.org/debian buster main contrib non-free
#deb-src http://archive.debian.org/debian buster main contrib non-free
#deb http://security.debian.org/debian-security buster/updates main contrib non-free
#deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://archive.debian.org/debian buster-updates main contrib non-free
#deb-src http://archive.debian.org/debian buster-updates main contrib non-free
#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee
#
#git clone https://github.com/RobertCNelson/linux-stable-rcn-ee
#cd ./linux-stable-rcn-ee
#git checkout `uname -r` -b tmp
deb [arch=armhf signed-by=/usr/share/keyrings/rcn-ee-archive-keyring.gpg] http://repos.rcn-ee.com/debian/ buster main
#deb-src [arch=armhf signed-by=/usr/share/keyrings/rcn-ee-archive-keyring.gpg] http://repos.rcn-ee.com/debian/ buster main
chroot
mount -t proc /proc /apps/de0NanoSoc/chroot/proc/
mount --rbind /sys /apps/de0NanoSoc/chroot/sys/
mount --rbind /dev /apps/de0NanoSoc/chroot/dev/
chroot /apps/de0NanoSoc/chroot/
umount /apps/de0NanoSoc/chroot/dev/
umount /apps/de0NanoSoc/chroot/sys/
umount /apps/de0NanoSoc/chroot/proc/
cross compilation
sysroot
rep="monDossier"
cd $rep
rsync -av chroot/lib sysroot/
rsync -av chroot/usr/include sysroot/usr/
rsync -av chroot/usr/lib sysroot/usr/
rsync -av chroot/usr/arm-linux-gnueabi rsync -av sysroot/usr/
apt install symlinks
symlinks -rc sysroot
cd sysroot/usr/include/
ln -s ../arm-linux-gnueabi/include/gnu ./
Projet Quartus
Device :
- Altera Cyclone® V
- SE Mainstream
- 5CSEMA4U23C6 N
positions
| Nom | Led7 | Led6 | Led5 | Led4 | Led3 | Led2 | Led1 | Led0 |
| Broche | AA23 | Y16 | AE26 | AF26 | V15 | V16 | AA24 | W15 |
| Nom | SW3 | SW2 | SW1 | SW0 |
| Broche | H5 | H6 | L9 | L10 |
Ressources
- préparation de la carte SD avec debian
- configuration du noyau
- device/fpga_config_support .... altera
- device/gpio ... altera