Mardi 13 novembre 2018

Carte olimex A20-OlinuxIno-Micro

Documentation olimex

alt text
alt text
Hardware

Matériel

  • Carte olimex A20-OLinuXino-MICRO
  • Bloc Alimentation 10V 1A
  • Carte micro SD min 4GO
  • SSD
  • Batterie Li-ion 3.7v 5000mAh

Liens

Armbian

Téléchargement image dans le dossier ~/media/dplus/iso/allwinner/Armbian_5.59_Micro_Debian_stretch_next_4.14.65.7z
Décompression
Vérification

allwinner]$ shasum -a 256 -c sha256sum.sha Armbian_*.img 
Armbian_5.59_Micro_Debian_stretch_next_4.14.65.img: OK
^C

Insérer une SDcard dans le lecteur USB/SDcard puis la connecter sur un bus USB de la machine contenant le fichier image.

dmesg # pour identifier le système
[24924.607561]  sde: sde1
[24924.611508] sd 4:0:0:0: [sde] Attached SCSI removable disk

SDcard sur /dev/sde
On flash la SDcard

sudo dd if=Armbian_5.59_Micro_Debian_stretch_next_4.14.65.img of=/dev/sde bs=4M
sync

Insérer la SDcard dans son logement sur la carte A20-Olinuxino-MICRO
On utilise une liaison USB/SERIAL et le logiciel minicom pour communiquer avec la carte olimex qui est également connecter au réseau.

sudo minicom

Connecter le jack alimentation
Login root , mot de passe 1234

Debian GNU/Linux 9 micro ttyS0

micro login: root
1234
Password: 
You are required to change your password immediately (root enforced)
Changing password for root.
(current) UNIX password: 
Enter new UNIX password: 
Retype new UNIX password: 

 __  __ _                
|  \/  (_) ___ _ __ ___  
| |\/| | |/ __| '__/ _ \ 
| |  | | | (__| | | (_) |
|_|  |_|_|\___|_|  \___/ 
                         

Welcome to ARMBIAN 5.59 stable Debian GNU/Linux 9 (stretch) 4.14.65-sunxi   
System load:   1.09 0.69 0.29   Up time:       2 min
Memory usage:  4 % of 997MB     IP:            
CPU temp:      44�°C           
Usage of /:    12% of 7.2G   

New to Armbian? Check the documentation first: https://docs.armbian.com


Thank you for choosing Armbian! Support: www.armbian.com

Creating a new user account. Press <Ctrl-C> to abort

Please provide a username (eg. your forename): oli
Trying to add user oli
Adding user `oli' ...
Adding new group `oli' (1000) ...
Adding new user `oli' (1000) with group `oli' ...
Creating home directory `/home/oli' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: 
Changing the user information for oli
Enter the new value, or press ENTER for the default
        Full Name []: 
        Room Number []: 
        Work Phone []: 
        Home Phone []: 
        Other []: 

Is the information correct? [Y/n] 

Dear oli, your account oli has been created and is sudo enabled.
Please use this account for your daily work from now on.

Redémarrage

reboot

Login oli

Debian GNU/Linux 9 micro ttyS0

micro login: oli
Password: 
 __  __ _                
|  \/  (_) ___ _ __ ___  
| |\/| | |/ __| '__/ _ \ 
| |  | | | (__| | | (_) |
|_|  |_|_|\___|_|  \___/ 
                         

Welcome to ARMBIAN 5.59 stable Debian GNU/Linux 9 (stretch) 4.14.65-sunxi   
System load:   1.37 0.41 0.14   Up time:       0 min
Memory usage:  4 % of 997MB     IP:            
CPU temp:      46°C           
Usage of /:    13% of 7.2G   

On relève l’adresse

ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 02:c2:09:40:f2:2b brd ff:ff:ff:ff:ff:ff
    inet6 2a01:e34:ee6a:b270:d7bb:299d:1d14:c618/64 scope global noprefixroute dynamic 
       valid_lft 86239sec preferred_lft 86239sec
    inet6 2a01:e34:ee6a:b270:c2:9ff:fe40:f22b/64 scope global mngtmpaddr dynamic 
       valid_lft 85819sec preferred_lft 85819sec
    inet6 fe80::c2:9ff:fe40:f22b/64 scope link 
       valid_lft forever preferred_lft forever
3: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 4a:b5:f5:5b:41:47 brd ff:ff:ff:ff:ff:ff

Connexion SSH ipv6

ssh -6 oli@2a01:e34:ee6a:b270:d7bb:299d:1d14:c618

Modification des dépôts

sudo nano /etc/apt/sources.list

Commenter la ligne

#deb http://httpredir.debian.org/debian stretch-backports main contrib non-free

Mise à jour
Passage en mode su et lancement des mises à jour

sudo -s
apt update && apt -y upgrade

Configuration

sudo