WISP Dist
Home
Development
Building Images
Screenshots
Features
Mailing List
Documentation

Search Web Pages




Development

Boot process (initrd)

The initrd script design is quite similar to the one used by LEAF Bering (however there are some serious changes to accomodate CramFS and non-RAM root filesystem).

During boot, system walks over all specified packages (LRP= parameter to kernel) one by one. First, it tries to uncompress .lrp file into r/w partition (/dev/hda2 or tmpfs); then it mounts the .cfs file (if it exists) into /[filename] and makes symlinks from well-known directories into the r/w partition.

The r/w partition is formatted during start-up, hence the need to save your settings before reboot.

Initrd uses statically compiled binaries (busybox, sed) which are removed from memory once the bootup process is complete.

Upgrade process

The upgrade-wdist script creates a temporary username (upgXXXXX) using md5sum from /dev/urandom. The upload-wdist script logs in to the remote system as root, gets the name of the user to use from /tmp/_upgradewdist-auto-v03 and uses that user afterwards to do file copying. This way the user is not asked for password each time scp is run, however authentication is still required at the beginning stage.

Packages

WISP-Dist's packages consist of read-only part (.cfs, a CramFS image) and read-write part (.lrp file, which is a .tar.gz). This way, RAM is not used for storing read-only binaries. For each LRP file, an .md5 file exists which holds MD5 sums of all files inside the .lrp. This way, the upgrade script knows if the file was changed and will not touch it during upgrade process. For details on how the system works with the packages, read the "Initrd" section of this page.

In the downloads area you can find "build-scripts" archive, which includes the script used for building packages (prepare-img).

  • Created on 2004-03-20 19:48:16 by mhnoyes
  • Updated on 2004-03-20 20:29:37 by mhnoyes

 Printable Version


What's Related

Hosted on Get LEAF Linux Embedded Appliance Framework at SourceForge.net. Fast, secure and Free Open Source software downloads, and powered by phpWebSite.