Cours:De0NanoSoc : Différence entre versions
(→installation Linux) |
(→installation Linux) |
||
| Ligne 13 : | Ligne 13 : | ||
**bug : | **bug : | ||
ln -s /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyS0.service | ln -s /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyS0.service | ||
| + | |||
| + | =cross compilation= | ||
| + | |||
| + | ==sysroot== | ||
| + | <source lang=bash> | ||
| + | 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 ./ | ||
| + | </source> | ||
={{Rouge|Projet Quartus}}= | ={{Rouge|Projet Quartus}}= | ||
Version du 15 décembre 2025 à 11:29
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/
- 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
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