mình thấy bài hướng dẩn này trên xda-deverloper. dùng cho alpine,bà con thử coi nào,mình củng sẽ thử (giờ hơi bận),thấy ghiền cái vụ này rùi
Even if Linux doesn’t work at 100% on Alpine, I have decided to do this guide to help everybody wants to try.
Linux won’t rewrite the boot of the palmtop; but remember that to return in windows mobile 2003 you have to make a hard reset; so, before to start it’s better to do a backup of all your files.
Firstly we have to get:
A SD(security digital) 256Mb.[I have used one of 512 MB]
A reader “USB 2.0 Card reader X in 1”.[ Mine is “Hama USB 2.0 Card reader 19 in 1”;
A subdivision on your pc where is installed linux (mine is Slackware), you can also try with a Live subdivision like Knoppix if you don’t want Linux on your pc.
Let’s start with the command:
fdisk – 1/dev/sda
If nothing appears, you have to set your card reader.
To do it, you have two ways, one is to add the following command in etc/modules.conf:
Options scsi_mod max_scsi_luns=4
Below usb_storage sd_mod
Restart the pc and connect the reader; insert sd card and give the command:
root@anima:~# fdisk -1/dev/sda
Disk /dev/sda: 500 MB, 500695040 bytes
3 heads, 34 sectors/track, 9587 cylinders
Units = cylinders of 102 * 512 = 52224 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 9587 52224 c W95 FAT32 (LBA)
If it appears so, it’s ok, but if not you have to disconnect and reconnect the reader and try. When it doesn’t appear again, try in this way:…
If you are user give the command “up” followed with the password to LOGGARVI?????? as root and control that the Kernel is set in this way:
root@anima:/usr/src/linux#make menuconfig
SCSI support --->
<*> SCSI support
--- SCSI support type (disk, tape, CD-ROM)
<*> SCSI disk support
<*> SCSI generic support
If your reader is ALL in One also:
[*] Probe all LUNs on each SCSI device
USB support --->
<*> Support for USB
[*] Preliminary USB device filesystem
<*> UHCI (Intel PIIX4, VIA, ...) support (oppure OHCI)
<*> USB Mass Storage support
The la test Card reader use USB 2.0, in that case also:
<*> EHCI HCD (USB 2.0) support (EXPERIMENTAL)
Once set in this way, fill in the command:
# make dep
# make clean
# make bzImage
# make modules
# make modules_install
And in the end:
# make install
(If you have never set the kernel, there are any useful guides on google by using the key “search”)
Now you have to make two subdivision on the sd card: one for the boot and the other for linux.
The former should be of 31 Mb and formatted with the Fat32, the latter should have the filesystem ext3; to do it, isert the following command:
root@anima:~# fdisk /dev/sda
The number of cylinders for this disk is set to 9587.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): d (invio)
Selected partition 1
Command (m for help): n (invio)
Command action
e extended
p primary partition (1-4)
p (invio)
Partition number (1-4): 1 (invio)
First cylinder (1-9587, default 1): (invio)
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-9587, default 9587): +31M (invio)
Command (m for help): n (invio)
Command action
e extended
p primary partition (1-4)
p (invio)
Partition number (1-4): 2 (invio)
First cylinder (596-9587, default 596): (invio)
Using default value 596
Last cylinder or +size or +sizeM or +sizeK (596-9587, default 9587): (invio)
Using default value 9587
Command (m for help): t (invio)
Partition number (1-4): 1 (invio)
Hex code (type L to list codes): c (invio)
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): w (invio)
Now let’s format the two subdivisions the command:
mkdosfs -F 32 /dev/sda1
mkfs.ext3 /dev/sda2
Create two folders in mount:
mkdir /mnt/sd1
mkdir /mnt/sd2
assemble them:
mount -t vfat /dev/sda1 /mnt/sd1
mount -t ext3 /dev/sda2 /mnt/sd2
copy the files for the boot that you can load form:
http://jornada820.sourceforge.net/files/uni/
In the first subdivision, that is, sdal, change the file startup.txt in this way:
set KERNEL "zalp-2.6.16-hh2"
set MTYPE 999
set INITRD "Storage Card/rd"
set CMDLINE "root=/dev/mmcblk0p2 console=tty0"
boot2