Himalaya

Boot Linux+GPE on SD

Downloads :

Installation

  1. Partition your SD card : create one primary linux partition, at least 64MB
    Erase the card, providing your card reader is at /dev/sda :
    # dd if=/dev/zero of=/dev/sda
    
    Use fdisk to create a partition :
    # fdisk /dev/sda
    
    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 1
    First cylinder (1-972, default 1): enter
    Using default value 1
    Last cylinder or +size or +sizeM or +sizeK (10-972, default 972): enter
    Using default value 972
    
    Command (m for help): t
    Selected partition 1
    Hex code (type L to list codes): 83
    Changed system type of partition 1 to 83 (Linux)
    
    Command (m for help): p
    
    Disk /dev/sda: 254 MB, 254803968 bytes
    16 heads, 32 sectors/track, 972 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1         972      249960   83  Linux
    
    Command (m for help): w
    The partition table has been altered!
    
    Calling ioctl() to re-read partition table.
    
    WARNING: If you have created or modified any DOS 6.x
    partitions, please see the fdisk manual page for additional
    information.
    Syncing disks.
  2. Format it (ext3)
    # mkfs.ext3 /dev/sda1
    
  3. Extract (not copy) GPE image on your partition.
    ~ # mount -t ext3 /dev/sda1 /mnt/sd
    ~ # cd /mnt/sd
    /mnt/sd # tar jxvf <path/to>/gpe-image-h3900-20060102151331.rootfs.tar.bz2
    
  4. Extract the modules tarball to your SD partition root.
  5. ~ # cd /mnt/sd
    /mnt/sd # tar zxvf <path/to>/modules-2.6.12.tgz
    
  6. Copy Haret, default.txt and kernel either in your WinCE "\Storage" folder (they must all be in the same directory)
This kernel has most important things built-in (e.g. mmc+ext3 support). You don't really need to install the modules in the SD partition.

Going further

"All-in-one" SD card

SD Card with 3 partitions :
  1. VFAT : Storage for Haret, kernel, gpe.txt and opie.txt
  2. EXT3 : Familiar/GPE system
  3. EXT3 : Familiar/Opie system
TODO