na primeira parte do procedimento vamos seguir o howto que aparece como link no final do artigo.
começamos então no momento do debootstrap:
#debootstrap --verbose --arch=i386 squeeze /mnt/disco/ http://ftp.us.debian.org/debian
neste caso a arquitectura utilizada foi a i386 porque o objectivo é preparar o sistema para a alix board 2d13.
vamos fazer o chroot no novo ambiente criado com o deboostrap:
#mount --bind /proc /mnt/disco/proc
#mount --bind /sys /mnt/disco/sys
#mount --bind /dev /mnt/disco/dev
#chroot /mnt/disco /bin/bash
de seguida adicionamos o repositório deb http://www.voyage.hk/dists/experimental ./ a /etc/apt/sources.list
echo 'deb http://www.voyage.hk/dists/experimental ./'>>/etc/apt/sources.list
a chave pública para o repositório:
wget http://www.voyage.hk/dists/0.7/archive.key -O - | apt-key add -
We have to create the file /etc/kernel-img.conf to allow local option for handling some aspects of the installation of the kernel, overriding the defaults.
Put the following contento in the newly created /etc/kernel-img.conf:
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
instalar o kernel do voyage linux e restante software:
apt-get update
apt-get install linux-image-2.6.32-voyage openssh-server grub locales
configurar os locales:
export LC_ALL=C
dpkg-reconfigure locales
colocar em /etc/modules os módulos que devem ser carregados no arranque (estes foram retirados de uma instalação do Voyage Linux):
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
natsemi
hostap_pci
#
# These lines generated automatically by copyfiles.sh
# on Sáb Fev 12 16:51:06 WET 2011
#
lm90
w83627hf
scx200_acb base=0x810,0x820
geodewdt
led-class
leds-alix2 force
ledtrig-heartbeat
ledtrig-timer
ledtrig-netdev
depois tratamos do gestor de arranque:
cp /usr/lib/grub/i386-pc/* /boot/grub
update-grub
alterar /etc/default/grub para o que se segue:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
#GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,9600n8"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=9600 --unit=0 --word=8 --parity=no --stop=1"
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
actualizar:
update-grub
criar /etc/network/interfaces a gosto - depois colocarei uma possível configuração
criar /etc/fstab - o mesmo
instalar o gestor de arranque no disco :
grub-install /dev/hdb
não esquecer de alterar a senha do root:
passwd
sair do ambiente chroot, desmontar dev, sys e proc e reiniciar sem o cartão compact flash.
quase que funcionava! o disco estava como slave e foi preciso colocá-lo como master. depois consegui fazer o boot mas só aí é que me apercebi que me tinha esquecido da senha do root. toca a fazer novamente o chroot do sistema e definir uma passe para o root.
http://www.networksoul.net/category/linux/voyage-linux/page/2/
https://help.ubuntu.com/community/SerialConsoleHowto