Difference between revisions of "Efika"

From C4 Wiki
Jump to: navigation, search
(NFS: Preparations)
(NFS: Further Preparations)
Line 29: Line 29:
 
'''Preparations'''
 
'''Preparations'''
 
# Download a stage3-tar-ball and unpack it to e.g. <code>/nfsroot</code>.
 
# Download a stage3-tar-ball and unpack it to e.g. <code>/nfsroot</code>.
# Change <code>/etc/fstab</code>, so that the root-filesystem will be mounted via NFS: <code>10.10.1.1:/mnt/data/gentoo/nfsroot              /              nfs            noatime        0 1</code>
+
# Change <code>/nfsroot//etc/fstab</code>, so that the root-filesystem will be mounted via NFS: <code>10.10.1.1:/nfsroot              /              nfs            noatime        0 1</code>
# Change <code>/etc/securetty</code> and add a line for logging in later via serial-line: <code> echo ttyPSC0 >> /nfsroot/etc/securetty</code>
+
# Change <code>/nfsroot/etc/securetty</code> and add a line for logging in later via serial-line: <code> echo ttyPSC0 >> /nfsroot/etc/securetty</code>
# Also add that serial-line to <code>/etc/inittab</code>: <code>echo "s0:12345:respawn:/sbin/agetty 115200 ttyPSC0 vt100" >> /nfsroot/etc/inittab</code> (you can use ''linux'' instead of ''vt100'' for a coloured term, but then you should have a good serial communicotian program)
+
# Also add that serial-line to <code>/nfsroot/etc/inittab</code>: <code>echo "s0:12345:respawn:/sbin/agetty 115200 ttyPSC0 vt100" >> /nfsroot/etc/inittab</code> (you can use ''linux'' instead of ''vt100'' for a coloured term, but then you should have a good serial communicotian program)
# Add a password-hash for the root-password into <code>/etc/shadow</code>.  I used htpasswd2 from apache for it.  Call it with <code>htpasswd -nb root secret</code>.  This will create the hash for the root-user with the password ''secret''.  Replace the <code>*</code> in the shadow-file with that hash.
+
# Add a password-hash for the root-password into <code>/nfsroot/etc/shadow</code>.  I used htpasswd2 from apache for it.  Call it with <code>htpasswd -nb root secret</code>.  This will create the hash for the root-user with the password ''secret''.  Replace the <code>*</code> after <code>root:</code> in the shadow-file with that hash.
 +
# Give your system a hostname in <code>/nfsroot/etc/hostname</code> and add that hostname after the localhost-entry in <code>/nfsroot/etc/hosts</code>
 +
# Unfortunately mounting another nfs-share for the portage-tree later will not work, as nfs-utils are not installed yet (I'm working on a special nfsroot-efika-stage4).  Bind-mounting  a portage-tree on a Gentoo-system will not work either (nfs just ignores that).  So we have to download and unpack a current portage-snapshot into <code>/nfsroot/usr/portage</code>. Alternatively you can rsync your local portage-tree into <code>/nfsroot</code>: <code>rsync --archive --progress --exclude=packages/ --exclude=distfiles/ /usr/portage/ /nfsroot/usr/portage/</code>.
 +
# Finally unpack the [http://www.efika.de/download/modules_efika.tgz precompiled modules] into <code>/nfsroot</code> (<code>tar xvzf modules_efika.tgz -C /nfsroot/</code>.
 +
 
 +
The nfsroot is now prepared for a first and simple boot.  Let us now set up the dhcp-/tftp-/nfs-server-voodoo.

Revision as of 20:01, 10 December 2006

The EFIKA is an embedded PowerPC board with a 400MHz 32-bit freescale MPC5200 (603e/e300), 128MB RAM, 100MBit/s NIC, 2xUSB 1.1, Soundchip, 2.5" harddisk connector, PCI and AGP (with riser-card) and serial out.

Pylon received a board for development work on it. I will leave it in the C4, so that we can attach additional hardware on it.

Ideas for development tasks

  1. mpd-server as in-replacement for the already existing one
  2. connection to the Fnordlicht
  3. using jack for disco-lights

Booting

Harddisk

Currently I don't have any harddisk available, so this could not be tested. But it would be nice to create a complete stand-alone machine out of it.

USB

It's also possible to boot via USB. But it's only USB 1.1, so very slow.

NFS

I will use Gentoo/Linux on that machine. Yes, it might be slow, but it can be changed to your needs. Also it's possible to build on another PowerPC or with cross-dev.

Setup

  • Server: 10.10.1.1
  • Client: 10.10.1.2

Preparations

  1. Download a stage3-tar-ball and unpack it to e.g. /nfsroot.
  2. Change /nfsroot//etc/fstab, so that the root-filesystem will be mounted via NFS: 10.10.1.1:/nfsroot / nfs noatime 0 1
  3. Change /nfsroot/etc/securetty and add a line for logging in later via serial-line: echo ttyPSC0 >> /nfsroot/etc/securetty
  4. Also add that serial-line to /nfsroot/etc/inittab: echo "s0:12345:respawn:/sbin/agetty 115200 ttyPSC0 vt100" >> /nfsroot/etc/inittab (you can use linux instead of vt100 for a coloured term, but then you should have a good serial communicotian program)
  5. Add a password-hash for the root-password into /nfsroot/etc/shadow. I used htpasswd2 from apache for it. Call it with htpasswd -nb root secret. This will create the hash for the root-user with the password secret. Replace the * after root: in the shadow-file with that hash.
  6. Give your system a hostname in /nfsroot/etc/hostname and add that hostname after the localhost-entry in /nfsroot/etc/hosts
  7. Unfortunately mounting another nfs-share for the portage-tree later will not work, as nfs-utils are not installed yet (I'm working on a special nfsroot-efika-stage4). Bind-mounting a portage-tree on a Gentoo-system will not work either (nfs just ignores that). So we have to download and unpack a current portage-snapshot into /nfsroot/usr/portage. Alternatively you can rsync your local portage-tree into /nfsroot: rsync --archive --progress --exclude=packages/ --exclude=distfiles/ /usr/portage/ /nfsroot/usr/portage/.
  8. Finally unpack the precompiled modules into /nfsroot (tar xvzf modules_efika.tgz -C /nfsroot/.

The nfsroot is now prepared for a first and simple boot. Let us now set up the dhcp-/tftp-/nfs-server-voodoo.