Logic Product Development.  Free Linux Distribution for lh79520.

Requirements:
1. lolo version 1.1 or greater on your CardEngine.
2. Ability to install & build Lineo BDK for the 79520.
3. Lots of disk space for 2. (for me: 1936372 k ~ 2GB)

This file comes with a tarball called lpd-linux-lh79520-01.tgz,
you will have to untar it during this install, so remember where 
it was extracted. These instructions assume some familiarity with
unix/linux.

Instructions for installing Logic CardEngine LLH79520-10
support to the Lineo BDK distributed by Sharp for the KEV9520:

1. Install the Lineo BDK from CD:
  - 02101lh79520bdk.iso from http://quickplace.sharpsma.com
  - Burn the CD
  - Mount it under linux
  - Follow the instructions to install.

2. Build the Lineo BDK:
  - Follow the directions on the CD, the command
    you finally run is 'make -f Makefile.bdk firsttime'
  - The Lineo directions do not work well for recent RedHat 
    releases, the 'chroot /opt/Embedix' command should be 
    changed to '/usr/sbin/chroot /opt/Embedix bash'.

3. Install hacked LPD build scripts & Logic linux src tree:
  - cd /opt/Embedix/bdk/lh79520/
  - mv src/linux src/linux-lineo-orig
  - mv scripts scripts-lineo-orig
  - tar xzvf lpd-linux-lh79520-01.tgz

  The new build.sh script now scripts/ has 4 new variables in it
  that control how much of the extract source / config / build / install
  procedure are run.  The variables are called LPDSRCINST, LPDCFG,
  LPDBLD, and LPDINSTALL.  Setting one of these to a non-null value will
  cause the corresponding phase of 'make -f Makefile.bdk' NOT to run,
  thereby allowing you to develop incrementally.  For example, when
  doing kernel development and you only want to re-build the kernel,
  set all of the vars to =X except LPDBLD and run 'make -f Makefile.bdk kernel'

4. Re-build the kernel:
  - from the same prompt that you did 'make -f Makefile.bdk firsttime'
    do this: 'make -f Makefile.bdk kernel'  which will re-build the
    linux kernel, but with support for the CardEngine now.  This results
    in two binary images called 'vmlinux', one is in src/linux/ and the
    second is in src/linux/arch/arm/boot/compressed/.  The compressed
    version is built to be burned into, and run from flash.  The other
    can be loaded directly into ram and run from there.

5. You're done.  send me an email to tell me it worked or how 
   it didn't work, or how to improve these instructions:  
   miket@logicpd.com

6. Oh, now you want to boot?  Setup a tftp server, put one of the vmlinux
   files on it, and from the lolo prompt type, for example w/ nfs root:
     load elf /tftp/192.168.4.1:/vmlinux
     exec ip=dhcp root=nfs
   or, if you have a CF card with a rootfs on it:
     load elf /tftp/192.168.4.1:/vmlinux
     exec root=/dev/hda1
   or, if you burned linux/src/arch/arm/boot/compressed/vmlinux to flash
   and have a CF card with a rootfs:
     exec 0x40100000 - root=/dev/hda1

7. Some maybe useful commands:
   - DL & burn the compressed linux kernel:
     bash# cp opt/Embedix/bdk/lh79520/src/linux/arch/arm/boot/compressed/vmlinux /tftproot/
     losh> load elf /tftp/192.168.4.1:/vmlinux
     losh> burn
     losh> exec 0x40100000 - 
   - encapsulate a gzipped initrd image that you just made:
     bash# arm-elf-ld -o /tftproot/initrd.elf -b binary initrd.gz -Tdata 0x20400000 -N
     losh> load elf /tftp/192.168.4.1:/initrd.elf
     losh> load elf /tftp/192.168.4.1:/vmlinux
     losh> exec
   - 

8. The default screen setup in the Lineo install of Qt is incorrect
   for the Zoom kit.  To fix this, edit the files /etc/rc.d/rc.qpe
   and /opt/QtPalmtop/etc/init.d/qpe, commenting out any lines that 
   set the variables QWS_DISPLAY or QWS_SIZE.  Without these, qpe will
   correctly detect the size and orientation of the screen.

