Installer Debian Voyage sur une carte Alix2d2

De Le Wiki du Forum-Debian.fr
Aller à la navigation Aller à la recherche

Release Le contenu de ce document a été validé. Vous pouvez suivre ses indications sans inquiétude.
Attention: Cependant, si au cours de vos manipulations un problème survenait, vous ne pouvez en aucun cas incriminer ce site. Posez vos questions sur le forum.


Debian sur une carte Alix2d2 avec Voyage (squeeze)

Nous allons détailler dans ce Tuto l'installation d'un système Debian (Voyage) sur une Carte Alix2d2.

Voyage Linux Debian est une distribution dérivée de Debian qui fonctionne sur des plates-formes x86 telles que les moteurs PC ALIX / WRAP, 45xx/48xx Soekris et des cartes à base d'Atom.

La carte Alix2d2 est une "mini-box" très peu gourmande en énergie fonctionnant avec un CPU AMD Geode 500Mhz, 256 Mo de mémoire vive et sur une carte mémoire de type CF. La carte Alix2d2 ne disposant pas de carte graphique, il faut donc contrôler le démarrage et l'installation de Debian au travers du port série.

Installation de Voyage

Téléchargez la dernière version de voyage:

# wget http://mirror.voyage.hk/download/voyage/voyage-current.tar.bz2
# tar xvjf voyage-current.tar.bz2 -C ~/
# cd voyage-current

Insérer la CF

# dmesg
...
[51649.188572]  sdd:
[51649.194802] sd 8:0:0:1: [sdd] Assuming drive cache: write through
[51649.194807] sd 8:0:0:1: [sdd] Attached SCSI removable disk

Faire une partition primaire de 2Go et la rendre bootable.

# cfdisk /dev/sdd (ou un autre utilitaire de partitionnement)
# /sbin/mkfs -t ext2 /dev/sdd1
# tune2fs -c 0 /dev/sdd1
tune2fs 1.41.12 (17-May-2010)
Initialisation du nombre maximal de montages à -1

Préparez le répertoire ou sera montée la partition qui accueillera Voyage:

# mkdir /mnt/cf

Lancement du script d'installation:

# ./usr/local/sbin/voyage.update

What would you like to do?

 1 - Create new Voyage Linux disk
 2 - Update existing Voyage configuration
 3 - Exit
     (default=1 [Create new Voyage Linux disk]): 1

some mandatory options are unset, please enter them interactively Where is the Voyage Linux distribution directory?

 (default=/root/voyage-current): 

What would you like to do?

 1 - Specify Distribution Directory
 2 - Select Target Profile
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
     (default=2 [Select Target Profile]): 1

Where is the Voyage Linux distribution directory?

 (default=/root/voyage-current): 

What would you like to do?

 1 - Specify Distribution Directory
 2 - Select Target Profile
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
     (default=2 [Select Target Profile]): 2

Please select Voyage profile:

 1 - 4501
 2 - 4511/4521
 3 - 4801
 4 - 5501
 5 - ALIX
 6 - Generic PC
 7 - Notebook (pcmcia)
 8 - WRAP
     (default=5 [ALIX]): 5

What would you like to do?

 1 - Specify Distribution Directory
 2 - Select Target Profile
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
     (default=3 [Select Target Disk]): 3

Partitions information major minor #blocks name

  8        0 1953514584 sda
  8        1   51199123 sda1
  8        2          1 sda2
  8        5   51199123 sda5
  8        6   51199123 sda6
  8        7    8193118 sda7
  8        8  768003358 sda8
  8        9 1023716352 sda9
  8       16 1953514584 sdb
  8       17 1953512001 sdb1
  8       48    7831152 sdd
  8       49    2932600 sdd1
  8       50          1 sdd2
  8       53     321563 sdd5
  8       54    2281755 sdd6
  8       55    2289412 sdd7

Which device accesses the target disk [/dev/hde]? /dev/sdd

Which partition should I use on /dev/sdd for the Voyage system [1]?

Where can I mount the target disk [/mnt/cf]?

What would you like to do?

 1 - Specify Distribution Directory
 2 - Select Target Profile
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
     (default=4 [Select Target Bootstrap Loader]): 4

Which loader do you want (grub or lilo) [grub]?

Which partition is used for bootstrap [1]?

What would you like to do?

 1 - Specify Distribution Directory
 2 - Select Target Profile
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
     (default=5 [Configure Target Console]): 5

Select terminal type:

 1 - Serial Terminal
 2 - Console Interface
     (default=1 [Serial Terminal]): 1

Please choose speed:

 1 - 2400
 2 - 4800
 3 - 9600
 4 - 19200
 5 - 38400
 6 - 57600
 7 - 115200
     (default=5 [38400]): 3

What would you like to do?

 1 - Specify Distribution Directory
 2 - Select Target Profile
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
     (default=6 [Partition and Create Filesystem]): 6

What shall I do with your Flash Media?

 1 - Partition Flash Media and Create Filesystem
 2 - Use Flash Media as-is
     (default=1 [Partition Flash Media and Create Filesystem]): 1

What would you like to do?

 1 - Specify Distribution Directory
 2 - Select Target Profile
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
     (default=7 [Copy Distribution to Target]): 7


Configuration details:


Distribution directory: /root/voyage-current

Disk/Flash Device: /dev/sdd Installation Partition: /dev/sdd1 Create Partition and FS: yes Bootstrap Partition: /dev/sdd1

Will be mounted on: /mnt/cf

Target system profile: ALIX Target console: serial Target baud rate: 9600

Bootstrap installer: grub Bootstrap partition: /dev/sdd1

OK to continue (y/n)? y

Ready to go .... Checking that no-one is using this disk right now ... OK

Disk /dev/sdd: 1022 cylinders, 247 heads, 62 sectors/track Old situation: Units = cylinders of 7840768 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start     End   #cyls    #blocks   Id  System

/dev/sdd1 * 0+ 1021 1022- 7825453+ 83 Linux /dev/sdd2 0 - 0 0 0 Empty /dev/sdd3 0 - 0 0 0 Empty /dev/sdd4 0 - 0 0 0 Empty New situation: Units = cylinders of 7840768 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start     End   #cyls    #blocks   Id  System

/dev/sdd1 * 0+ 1021 1022- 7825453+ 83 Linux /dev/sdd2 0 - 0 0 0 Empty /dev/sdd3 0 - 0 0 0 Empty /dev/sdd4 0 - 0 0 0 Empty Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 (See fdisk(8).) mke2fs 1.41.12 (17-May-2010) Étiquette de système de fichiers= Type de système d'exploitation : Linux Taille de bloc=4096 (log=2) Taille de fragment=4096 (log=2) « Stride » = 0 blocs, « Stripe width » = 0 blocs 489600 i-noeuds, 1956363 blocs 97818 blocs (5.00%) réservés pour le super utilisateur Premier bloc de données=0 Nombre maximum de blocs du système de fichiers=2004877312 60 groupes de blocs 32768 blocs par groupe, 32768 fragments par groupe 8160 i-noeuds par groupe Superblocs de secours stockés sur les blocs :

   32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Écriture des tables d'i-noeuds : complété Écriture des superblocs et de l'information de comptabilité du système de fichiers : complété

Le système de fichiers sera automatiquement vérifié tous les 20 montages ou après 180 jours, selon la première éventualité. Utiliser tune2fs -c ou -i pour écraser la valeur. tune2fs 1.41.12 (17-May-2010) Initialisation du nombre maximal de montages à -1 Initialisation de l'intervalle de vérification à 0 secondes Copying files .... done

Removing pcmcia from update-rc.d perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:

   LANGUAGE = (unset),
   LC_ALL = (unset),
   LANG = "fr_FR.UTF-8"
   are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C"). update-rc.d: using dependency based boot sequencing Removing dnsmasq.pxe.conf in /etc/dnsmasq.more.conf Reconfiguring resolvconf perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:

   LANGUAGE = (unset),
   LC_ALL = (unset),
   LANG = "fr_FR.UTF-8"
   are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:

   LANGUAGE = (unset),
   LC_ALL = (unset),
   LANG = "fr_FR.UTF-8"
   are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C"). Installing grub Copy grub files from /mnt/cf to /mnt/cf/boot/grub Setting up grub under chroot /mnt/cf copyfiles.sh script completed What would you like to do?

 1 - Specify Distribution Directory
 2 - Select Target Profile
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
     (default=8 [Exit]): 8

Réglages

monter la CF

# mount /dev/sdd1 /mnt/cf

Réglez le réseau:

# nano /mnt/cf/etc/network/interfaces

auto lo iface lo inet loopback

auto eth0 iface eth0 inet static

       address 192.168.0.8
       netmask 255.255.255.0
       broadcast 192.168.0.255

auto eth1

       iface eth1 inet static
       address 41.188.xxx.xxx
       netmask 255.255.255.248
       gateway 41.188.xxx.xxx
       network 41.188.xxx.0
       broadcast 41.188.xxx.248
       dns-nameservers 41.188.xxx.xxx 192.192.xxx.xxx

Régler son sources.list si nécessaire:

# nano /mnt/cf/etc/apt/sources.list

Premier démarrage

Pour ce premier démarrage, et afin de nous assurer que le système est fonctionnel, nous nous connecterons à la carte Alix par le biais d'un terminal (c'est sur ce terminal que toutes les sorties sont redirigées).

# apt-get install gtkterm

Pluger le CF dans la CM Alix

Brancher le câble null-modem Si vous n'en avez pas il est tout a fait possible de le bricoler vous-même.

Lancer GTKterm, configurer le port et la vitesse (mettez 9600)

Vous remarquerez que j'ai utilisé le port /dev/ttyUSB0; C'est parce que j'ai un adaptateur USB/COM. Sur votre machine, si vous avez un port COM, ce sera de ce genre: /dev/tty0

Mettez la CM sous tension

Connectez vous en root Mot de passe "voyage"

Se connecter en ssh

ssh root@192.168.0.8 The authenticity of host '192.168.0.8 (192.168.0.8)' can't be established. RSA key fingerprint is 8f:da:e5:5b:c9:c8:dd:77:c6:ed:87:2d:71:eb:46:01. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.0.8' (RSA) to the list of known hosts. root@192.168.0.8's password: Linux voyage 2.6.32-voyage #1 PREEMPT Mon Aug 16 10:31:06 GMT 2010 i586

The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

__  __
\ \/ /___ __  __ ___  ___  ___    Useful Commands:
 \  // _ \\ \/ /,-_ |/ _ |/ -_)     remountrw - mount disk as read-write
  \/ \___/ \  / \___,\_  |\___|     remountro - mount disk as read-only
          _/_/        _'_|          remove.docs - remove all docs and manpages 
    { V o y a g e } - L i n u x     
     < http://linux.voyage.hk >   Version: 0.7 (Build Date 20101015)


Last login: Sat Jan 1 00:00:59 2000 root@voyage:~#

Annexe

Alix2d2

Câble null-modem

Lol 29 décembre 2010 à 07:10 (CST)