[PDA2, XDA IIi, 2020i Software Upgrading] GreenRabbit:
Devi utilizzare necessariamente linux, sotto windows è impossibile estrarre il contenuto della distribuzione nella seconda partizione della SD, se ti serve un aiuto ho scritto questa piccola guida che serve per chi come me conosce poco linux:

Per prima cosa dovete procurarvi:

- una SD (security digital) da 256 Mb, io ho utilizzato una 512 Mb;

- un lettore “USB 2.0 Card reader X in 1” il mio è un “hama USB 2.0 Card reader 19 in 1”;

- una partizione sul pc dove avete installato linux (la mia distribuzione è la Slackware), potreste anche provare anche con una distribuzione Live come Knoppix se non volete avere linux sul pc.

Iniziate dando il comando:

fdisk –l /dev/sda

Se non compare niente allora dovete configurare il vostro card reader.

Per farlo potete utilizzare due modi uno di questi è aggiungere i seguenti comandi in etc/modules.conf:

Options scsi_mod max_scsi_luns=4

Below usb_storage sd_mod

Riavviate il pc è collegate il lettore, inserire la scheda sd e date il comando:

root@anima:~# fdisk -l /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)

se esce così allora tutto è andato bene in caso contrario staccate e ricollegate il lettore e riprovate se non dovesse vederlo provate in quest'altro modo….

Se siete user lanciate il comando “su” seguito dalla password per loggarvi come root e successivamente assicuratevi che nel kernel sia configurato in questo modo, lanciano il comando:

root@anima:/usr/src/linux#make menuconfig

SCSI support --->

<*> SCSI support

--- SCSI support type (disk, tape, CD-ROM)

<*> SCSI disk support

<*> SCSI generic support

Se il vostro lettore e' un ALL in ONE anche:

[*] 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

I piu' recenti Card Reader usano USB 2.0, in tal caso anche:

<*> EHCI HCD (USB 2.0) support (EXPERIMENTAL)

Una volta configurato in questo modo ricompilatelo, lanciando i comandi:

# make dep

# make clean

# make bzImage

# make modules

# make modules_install

Ed infine:

# make install

(Se non avete mai compilato il kernel vi consiglio tante ottime guide che si trovano con google utilizzando il tasto cerca Wink

Ora dovete creare due partizioni sulla sd, una per il boot e l’altra con il sistema linux.

La prima partizione dovrà essere di 31Mb e formattata con la Fat32, l’altra invece dovrà avere il filesystem ext3, per farlo date i seguenti comandi:

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)

Ora formattate le due partizioni con i comandi:

mkdosfs -F 32 /dev/sda1

mkfs.ext3 /dev/sda2

Create due cartelle in mount:

mkdir /mnt/sd1

mkdir /mnt/sd2

montatele:

mount -t vfat /dev/sda1 /mnt/sd1

mount -t ext3 /dev/sda2 /mnt/sd2

copiate i file per il boot, che potete scaricare da qui http://jornada820.sourceforge.net/files/uni/ nella prima partizione e cioè sda1, modificate il file startup.txt in questo modo:

set KERNEL "zalp-2.6.16-hh2"

set MTYPE 999

set INITRD "Storage Card/rd"

set CMDLINE "root=/dev/mmcblk0p2 console=tty0"

boot2

successivamente scaricate da qui http://gnulinux.biz/files/Universal/sd-mmc/ il file “opie-universal-R0.2.tar.bz2” oppure “gpe-universal-R0.2.tar.bz2” e copiate uno dei due nella seconda partizione e dando il comando:

tar xjvhpf /mnt/sd2/gpe-universal-R0.2.tar.bz2

oppure:

tar xjvhpf /mnt/sd2/ opie-universal-R0.2.tar.bz2

Alla fine dell'estrazione non vi resta che smontare il tutto:

umount /dev/sda1

umount /dev/sda2

Inserite la SD nell'Alpine e come già stato spiegato precedentemente fate partire il file gnuharet-200606092243.exe nell’Alpine inserite la scritta startup.txt tappate su Run e vedrete comparire linux, se non dovesse partire fate un soft reset, se quest’ultimo non dovesse funzionare passate all’hard reset e ripetete la procedura nell’Alpine.

Per esperienza personale all’inizio non parte subito ma dopo un soft reset tutto dovrebbe funzionare, se vi esce la scritta kernel panic chiamate Torvalds e chiedetegli a che ora è libero…

Traslate

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

then load from http://gnulinux.biz/files/Universal/sd-mmc/ the file “opie-universal-R0.2.tar.bz2” or “gpe-universal-R0.2.tar.bz2” and copy one of them in the second subdivision and give the command:

tar xjvhpf /mnt/sd2/gpe-universal-R0.2.tar.bz2

or:

tar xjvhpf /mnt/sd2/ opie-universal-R0.2.tar.bz2

After the extraction you have to dismantle all:

umount /dev/sda1

umount /dev/sda2

Insert the Sd into the Alpine and let start the file gnuharet-200606092243.exe into the Alpine, insert startup.txt tappate on Run and Linux will appear, if it doesn’t start make a soft reset, but if it doesn’t work make a hard reset and repet the passages on Alpine.

In my case it doesn’t start soon, but after a soft reset, all should go well. If it appears “kernel panic” call Torvalds and ask when he is free…