Thursday, January 20, 2011

howto install Ubuntu on CF card for Alix3d2 (PCengine)

Prepare the CF card 
mke2fs -L root /dev/sdb1
mkdir /mnt/alix
mount /dev/sdb1 /mnt/alix
Download the file system 
debootstrap --arch i386 lucid /mnt/alix http://mirror.aarnet.edu.au/pub/ubuntu/archive/
 
Binding all directories to the CF card
mount -o bind /dev /mnt/alix/dev
mount -o bind /sys /mnt/alix/sys
mount -o bind /proc /mnt/alix/proc
chroot /mnt/alix /bin/bash

echo alix-router > /etc/hostname
add hostname in /etc/hosts
127.0.0.1  localhost
127.0.1.1  alix-router.example.com alix-router
The following lines are desirable for IPv6 capable hosts
/etc/fstab
# /etc/fstab: static file system information.
#
# <file system>                 <mount point>   <type>  <options>                       <dump>  <pass>
proc                            /proc           proc    defaults                        0       0
# /dev/sda1
LABEL=root                      /               ext2    noatime,errors=remount-ro       0       1
tmpfs                           /tmp            tmpfs   defaults,noatime                0       0
tmpfs                           /var/tmp        tmpfs   defaults,noatime                0       0

add following to /etc/sysctrl.conf
vm.dirty_writeback_centisecs = 1500
to /etc/default/rcS
RAMRUN=yes
RAMLOCK=yes

change network setting in /etc/network/interfaces accordingly


Then finally
exit
umount /mnt/alix/proc
umount /mnt/alix/sys
umount /mnt/alix/dev
umount /mnt/alix
 
After you can login to the 10.04 system, you can use the normal ubuntu tool "do-release-upgrade" to upgrade to 10.10

No comments:

Post a Comment

RISC-v emulator

Changes are based on https://risc-v-getting-started-guide.readthedocs.io/en/latest/linux-qemu.html For Ubuntu/Debian, in addition to sud...