Dies ist eine alte Version des Dokuments!
Die folgende Anleitung erklärt die Installation von Emdebian Grip (Squeeze) auf den TX25 SOM der Firma Karo.
Dokumente und Downloads
# apt-get install multistrap
# apt-get install emdebian-archive-keyring
# apt-get install qemu qemu-user-static
# apt-get install binfmt-support
# apt-get install schroot
# apt-get install mtd-utils
# nano -w karotx25.multistrap
[General] arch=armel directory=/opt/multistrap/ cleanup=true retainsources= noauth=true unpack=true bootstrap=Grip Updates aptsources=Grip Updates Debian [Grip] packages=ntpdate udev lrzsz isc-dhcp-client ifupdown vim procps iputils-ping psmisc module-init-tools openssl openssh-server cron rsyslog nano source=http://www.emdebian.org/grip keyring=emdebian-archive-keyring suite=squeeze [Updates] packages=apt source=http://www.emdebian.org/grip keyring=emdebian-archive-keyring suite=squeeze-proposed-updates # fallback [Debian] packages= source=http://ftp.uk.debian.org/debian keyring=debian-archive-keyring suite=squeeze
# multistrap -f karotx25.multistrap
# nano -w /opt/multistrap/autoconfig.sh
#!/bin/sh export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true export LC_ALL=C LANGUAGE=C LANG=C /var/lib/dpkg/info/dash.preinst install dpkg --configure -a mount proc -t proc /proc dpkg --configure -a
#chmod 755 /opt/multistrap/autoconfig.sh
# nano -w /etc/schroot/chroot.d/emdebian-grip-armel.conf
[emdebian-grip-armel] description=Emdebian Grip Squeeze (armel) aliases=emdebian-armel type=directory directory=/opt/multistrap root-groups=root users=$USER groups=sbuild
# echo 0 > /proc/sys/vm/mmap_min_addr
# cp /usr/bin/qemu-armel-static /opt/multistrap/usr/bin/
# schroot -c emdebian-grip-armel
(emdebian-grip-armel)# /autoconfig.sh
(emdebian-grip-armel)# passwd
(emdebian-grip-armel)# nano -w /etc/fstab
# /etc/fstab for Karo TX25 # 2011-04-07 martin.zueger@ntb.ch # device dir type options dump fsck /dev/mtdblock1 / jffs2 rw,auto 0 0 #/dev/mtdblock2 /var/log jffs2 rw,auto 0 0 /dev/mmcblk0p1 /media/sdcard auto rw,noauto 0 0 /dev/sda1 /media/usbdisk auto rw,noauto 0 0 tmpfs /tmp tmpfs defaults,size=16m 0 0 tmpfs /var/tmp tmpfs defaults,size=4m 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 usbfs /proc/bus/usb usbfs defaults,noauto 0 0 tmpfs /dev tmpfs defaults,noauto 0 0
(emdebian-grip-armel)# nano -w /etc/inittab
#1:2345:respawn:/sbin/getty 38400 tty1 #2:23:respawn:/sbin/getty 38400 tty2 #3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6
s0:23:respawn:/sbin/getty -L ttymxc0 115200 linux
/etc/securetty folgende Zeile zu finden sein: ttymxc0
(emdebian-grip-armel)# nano -w /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup/ifdown # 2011-04-07 martin.zueger@ntb.ch auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp #iface eth0 inet static #address 192.168.1.234 #netmask 255.255.255.0
(emdebian-grip-armel)# exit
# rm /opt/multistrap/usr/bin/qemu-armel-static
# nano -w /opt/multistrap/device_table
name type mode uid gid major minor start inc count /dev/console c 600 0 0 5 1 0 0 - /dev/kmsg c 660 0 0 1 11 0 0 - #/dev/log s 666 0 0 - - - - - /dev/loop b 640 0 0 7 0 0 1 8 /dev/mem c 640 0 15 1 1 0 0 - /dev/null c 666 0 0 1 3 0 0 - /dev/pts d 755 0 0 - - - - - /dev/random c 666 0 0 1 8 0 0 - /dev/tty c 666 0 0 5 0 0 0 - /dev/tty c 666 0 0 4 0 0 1 6 /dev/urandom c 666 0 0 1 9 0 0 - /dev/zero c 666 0 0 1 5 0 0 - /dev/mtdblock1 b 666 0 6 31 1 0 0 - /dev/mtdblock2 b 666 0 6 31 2 0 0 -
# mkfs.jffs2 -n -e 0x20000 -p 0x20000 -l -D /opt/multistrap/dev_table -d /opt/multistrap -o emdebian-wheezy-grip-phycore-mpc5200b.jffs2
Für die Installation auf dem TX25 müssen die benötigten Dateien auf einem TFTP-Server bereit gestellt werden. Am NTB kann hierfür der FTP-Server des INF-Instituts verwendet werden: inf04-server.ntb.ch1) Die im Folgenden genauer beschriebenen drei Dateien müssen auf den FTP-Server kopiert werden.
Als Kernel wird der von Karo gelieferte Linux Kernel in Version 2.6.31 verwendet. Das Image ist auf der dem SOM beiliegenden CD zu finden, oder kann hier heruntergeladen werden:
RedBoot> load -r -b 0x80100000 -h 192.168.1.101 zImage RedBoot> fis create linux load -r -b 0x80100000 -h 192.168.1.101 rootfs.jffs2 fis create rootfs
RedBoot> fis load linux exec -w 1 -c "init=/sbin/init console=ttymxc0 root=/dev/mtdblock1 rootfstype=jffs2"