Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Handhelds.org MoinMoin Wiki" for change notification.
The following page has been changed by GoxboxLive:
http://www.handhelds.org/moin/moin.cgi/UniversalHowtoInstallLinux
The comment on the change is:
Updated "Howto install Linux".
------------------------------------------------------------------------------
- === Note: This howto uses Opie as an example, GPE and rootfs will also have the same procedure. ===
+ Download [http://gnulinux.biz/files/Universal/ramdisk/Ramdisk.cab Ramdisk-image ] to your HTC Universal.
+ Install it to your device (not to SD). The program will appear in Start->Programs->Bootlinux named Ramdisk.
- Download files from [http://gnulinux.biz/files/Universal/ramdisk/ Ramdisk folder] to C:\Linux\Ramdisk
- {{{
- default.txt
- gnuharet.exe
- rd
- zImage
- }}}
- == Get files for running linux on your HTC Universal ==
- Download files from [http://gnulinux.biz/files//Universal/sd-mmc/snapshot/HaRet HaRet folder] to get the bootloader and it's startup script:
- {{{
- startup.txt
- haret-{DATE}.exe
- }}}
- Choose wich image you want to run, [http://gnulinux.biz/files//Universal/sd-mmc/snapshot/GPE GPE] , [http://gnulinux.biz/files/Universal/sd-mmc/snapshot/Opie OPIE] , [http://gnulinux.biz/files//Universal/sd-mmc/snapshot/Bootstrap-image Bootstrap-image] or [http://gnulinux.biz/files/Universal/sd-mmc/snapshot/OpenMoko/ OpenMoko] and download the files in the folder.
- {{{
- zImage-[VERSION]
- Angstrom-{One_of_the_images}-image-test-{DATE}-htcuniversal.rootfs.tar.bz2
- }}}
-
- === Make sure that files have the correct .extension after download ===
- {{{
- default.txt
- startup.txt
- haret-[DATE].exe
- Angstrom-{One_of_the_images}-image-test-{DATE}-htcuniversal.rootfs.tar.bz2
- rd (NO EXTENSION)
- zImage (NO EXTENSION)
- }}}
=== Then do as follows ===
- Copy files from the C:\Linux\Ramdisk folder to \My Documents\Linux on your device
+ Start the program Ramdisk from Start->Programs->Bootlinux.
- Plug the power cable into the device, Put the SD card into the device (All data will be erased)
-
- Make sure the Phone is on and connected
-
- Go to \My Documents\Linux and hit gnuharet.exe
- Click Run
The screen will get some funny colors and seem freezed, don't freak out :-) its normal
Login
@@ -72, +39 @@
{{{
Type : o
}}}
- Create two partitions [one vfat (31MB) and one ext2 (rest) ] like this:
+ Create two partitions [one vfat (48MB) and one ext2 (rest) ] like this:
{{{
Type : n
}}}
- Set the primary partition (1-4)
+ Set the primary partition
{{{
Type : p
}}}
set the Partition number (1-4)
{{{
+ Type : 2
+ }}}
+ Set the First cylinder (1-xxxx, default 1):
+ {{{
+ Hit enter (This will set the default value to : 1 )
+ }}}
+ Set the Last cylinder or +size or +sizeM or +sizeK (1-xxxx, default xxxx):
+ {{{
+ Type : +48M (NOTE TO MAKE ALTERNATIVE DESCRIPTION HERE ((Blocks/SD-Size)*32=Value to be set))
+ }}}
+ '''Create the next partition (linux partition)'''
+ {{{
+ Type : n
+ }}}
+ Set the primary partition
+ {{{
+ Type : p
+ }}}
+ Set the Partition number (1-4)
+ {{{
Type : 1
}}}
- Set the First cylinder (1-xxxx, default 1):
- {{{
- Hit enter (This will set the default value to : 1 )
- }}}
- Set the Last cylinder or +size or +sizeM or +sizeK (1-xxxx, default xxxx):
- {{{
- Type : +31M (NOTE TO MAKE ALTERNATIVE DESCRIPTION HERE ((Blocks/SD-Size)*32=Value to be set))
- }}}
- '''Create the next partition (linux partition)'''
- {{{
- Type : n
- }}}
- Set the (Second)primary partition
- {{{
- Type : p
- }}}
- Set the Partition number (1-4)
- {{{
- Type : 2
- }}}
Set the First cylinder (xx-xxxx, default xx):
+ Note: If you just want to use part of your SD for Linux you should at least create a 128MB linux partition, to do that create a third partition as you did with the vfat part, but the partition number will be 3 (mkdosfs /dev/mmc/blk0/part3).
{{{
- Hit enter to select the default value
+ Hit enter to select the default value
}}}
Set the Last cylinder or +size or +sizeM or +sizeK (xx-xxxx, default xxxx):
{{{
@@ -119, +87 @@
}}}
Partition number (1-4)
{{{
- Type : 1
+ Type : 2
}}}
Hex code (type L to list codes)
{{{
@@ -136, +104 @@
Make filesystem for wince
{{{
- Type : mkdosfs /dev/mmc/blk0/part1
+ Type : mkdosfs /dev/mmc/blk0/part2
}}}
Make filesystem for Linux
{{{
- Type : mkfs.ext3 /dev/mmc/blk0/part2
+ Type : mkfs.ext3 /dev/mmc/blk0/part1
}}}
'''Wait until the command promt returns'''
Reboot Universal by issuing the 'reboot' command
@@ -152, +120 @@
When WinCe starts loading, remove the SD, and put it in your desktop, check that your desired size in MB correspond with what you set it to in fdisk
- Copy all files from C:\Linux\SD-MMC to the SD-card
+ Choose and download a GUI image (*.tar.bz2 file) and the corresponding linux boot installer (the *.cab file) you want to run, [http://gnulinux.biz/files//Universal/ Download Linux].
+
+ Copy both files you downloaded to the root of your VFAT partition on your SD-card (it's the viewable partition in WinXP).
Put the SD back in Universal
- Boot Linux again (From \My Documents\Linux\gnuharet.exe)
+ Boot Ramdisk again from (From Start->Programs->BootLinux )
+
+ Login
+
+ {{{
+ Login with : root
+ Password : rootme
+ }}}
Prepare the first mount point:
{{{
+ Type : mkdir /mnt/ext3
+ }}}
+ Prepare second mount point:
+ {{{
Type : mkdir /mnt/vfat
- }}}
- Prepare second mount point:
- {{{
- Type : mkdir /mnt/ext3
}}}
==== Mount the partitions ====
1st partition mount
{{{
- Type : mount -t vfat /dev/mmc/blk0/part1 /mnt/vfat
+ Type : mount -t vfat /dev/mmc/blk0/part2 /mnt/vfat
}}}
2nd partition mount
{{{
- Type : mount -t ext3 /dev/mmc/blk0/part2 /mnt/ext3
+ Type : mount -t ext3 /dev/mmc/blk0/part1 /mnt/ext3
}}}
'''YOU MIGHT GET AN ERROR [EXT2-fs warning...blablabla] nevermind this'''
- Copy Opie, GPE or Bootstrap-image to the linux partition ext3
+ Copy Opie, GPE, x11, OpenMoko or Console-image to the linux partition ext3 (without quotes) (no need for the linux-boot cab file yet)
{{{
- Type : cp /mnt/vfat/"The image you downloaded" /mnt/ext3/
+ Type : cp /mnt/vfat/"The *.tar.bz2 file" /mnt/ext3/
}}}
Go in to the linux partition (ext3)
{{{
Type : cd /mnt/ext3
}}}
- Decompress the image
+ Decompress the image (without quotes)
{{{
- Type : tar jxvpf "The image you downloaded"
+ Type : tar jxvpf "The *.tar.bz2 file" ./
}}}
Now look at that, just grab your willi and start honking :-)
-
+ Now you can also delete "The *.tar.bz2 file" from both /mnt/ext3 and /mnt/vfat to free up some space (without quotes).
+ {{{
+ Type : rm /mnt/vfat/"The *.tar.bz2 file"
+ }}}
+ And (without quotes)
+ {{{
+ Type : rm /mnt/ext3/"The *.tar.bz2 file"
+ }}}
- To be sure everything got written to the SD/MMC card do:
+ To be sure everything got written/delete to/on the SD/MMC card do:
{{{
Type : sync
}}}
@@ -201, +185 @@
Type : reboot
}}}
- '''In Windows Mobile 5 navigate to gnuharet.exe on your SD card and execute it.'''
+ === Now it's time to install the linux bootloader (it wouldnt harm your WinCe bootloader) ===
- '''Hit : Run'''
+ Install the cab file ("image"-Linux.cab) to your device (not SD). When it's installed you are ready to run Linux.
+ Choose Start->Programs->BootLinux and hit the linux bootloader you installed.
+ To free up some some space you can just uninstall Ramdisk. You wouldnt need it anymore.
- And linux boot's enjoy!
+ Enjoy!
+
+ Note : There are no password on the image you just installed. Login as 'root' and hit [Enter] when it asks for a password (only Ramdisk is suplied with password).
== How to install a new updated image on an already formatted SD-Card ==
- Boot Linux with RamDisk
+ Boot Linux with RamDisk (if you uninstalled it you have to install it again).
{{{
Type : mkdir /mnt/vfat
@@ -218, +206 @@
Type : mkdir /mnt/ext3
}}}
{{{
- Type : mount -t vfat /dev/mmc/blk0/part1 /mnt/vfat
+ Type : mount -t vfat /dev/mmc/blk0/part2 /mnt/vfat
}}}
{{{
- Type : mount -t ext3 /dev/mmc/blk0/part2 /mnt/ext3
+ Type : mount -t ext3 /dev/mmc/blk0/part1 /mnt/ext3
}}}
{{{
Type : cd /mnt/ext3
@@ -244, +232 @@
Type : sync
}}}
{{{
- Type : cp /mnt/vfat/"The image you downloaded" /mnt/ext3
+ Type : cp /mnt/vfat/"The *.tar.bz2 file" /mnt/ext3
}}}
{{{
- Type : tar jxvpf /mnt/"The image you downloaded"
+ Type : tar jxvpf /mnt/"The *.tar.bz2 file" ./
}}}
{{{
Type : sync
Received on Sun Apr 08 2007 - 04:03:48 EDT
This archive was generated by hypermail 2.2.0 : Sun Apr 08 2007 - 04:13:54 EDT