Project

General

Profile

GTA04Installation » History » Version 7

Paul Kocialkowski, 09/04/2012 06:17 PM

1 1 Paul Kocialkowski
h1. GTA04 Installation
2
3 4 Paul Kocialkowski
h2. Installing for µSD card storage
4 1 Paul Kocialkowski
5 5 Paul Kocialkowski
What you need is a microSD card that is at least 1Gio. Note that this document refers to the microSD card as @sdcard@.
6 1 Paul Kocialkowski
7 5 Paul Kocialkowski
Make sure you have downloaded all the required files to install Replicant on sdcard:
8
* bootloader.img
9
* boot.scr
10
* boot.img
11
* system.tar.bz2
12
13 4 Paul Kocialkowski
h3. Getting the install script
14 1 Paul Kocialkowski
15
To make it easier to install Replicant on GTA04, you can use the install script: replicant_gta04_install.sh.
16 4 Paul Kocialkowski
It should be shipped with Replicant images or copied in @out/target/product/gta04/@ during the build process.
17 1 Paul Kocialkowski
If you cannot find the script, download the latest version from gitorious: "replicant_gta04_install.sh":https://gitorious.org/replicant/device_goldelico_gta04/blobs/raw/replicant-2.3/replicant_gta04_install.sh
18
19 5 Paul Kocialkowski
<pre>
20
Usage: ./replicant_gta04_install.sh [TYPE] [DRIVE]
21 1 Paul Kocialkowski
22 5 Paul Kocialkowski
Arguments:
23
- The [TYPE] argument can either be:
24
  * "install" to create an install sdcard
25
  * "system" to create a system sdcard
26
- The [DRIVE] argument is the sdcard drive node and can be omitted
27 1 Paul Kocialkowski
28 5 Paul Kocialkowski
Notes:
29
The following files must be present in the directory where you run the script:
30
* bootloader.img boot.scr boot.img (install)
31
* system.tar.bz2 (system)
32
</pre>
33 1 Paul Kocialkowski
34 5 Paul Kocialkowski
h3. Creating an install sdcard
35
36
The install sdcard will flash the bootloader, the boot instructions and the kernel to the GTA04 NAND flash.
37
Make sure that the following files are in the directory where you run the script: @bootloader.img boot.scr boot.img@
38
39
Process that way:
40 1 Paul Kocialkowski
<pre>
41 5 Paul Kocialkowski
./replicant_gta04_install.sh install
42
</pre>
43 1 Paul Kocialkowski
44 5 Paul Kocialkowski
If you know what the sdcard drive is, you can also specify it explicitly:
45
<pre>
46
./replicant_gta04_install.sh install /dev/sde
47 1 Paul Kocialkowski
</pre>
48
49 7 Paul Kocialkowski
The script will then format the sdcard and copy the files. Once it has completed with success (@Your drive is now ready to be used!@), put the sdcard in the phone and boot *while pressing the AUX button*.
50 5 Paul Kocialkowski
It will flash the files to the GTA04 NAND flash. 
51
52
The AUX (top left) led indicates the status:
53
54
|_. Led color |_. Status |
55
| Orange | Flashing |
56
| Yellow | Completed |
57
| Red | Error |
58
59
If flashing failed, you might need to get a serial cable to investigate what's going on.
60 6 Paul Kocialkowski
61
h3. Creating a system sdcard
62
63
The system sdcard holds the partitions required to hold the Replicant system files.
64
Make sure that the following files are in the directory where you run the script: @system.tar.bz2@
65
66
Process that way:
67
<pre>
68
./replicant_gta04_install.sh system
69
</pre>
70
71
If you know what the sdcard drive is, you can also specify it explicitly:
72
<pre>
73
./replicant_gta04_install.sh system /dev/sde
74
</pre>
75
76
The script will then format the sdcard and copy the files. Once it has completed with success (@Your drive is now ready to be used!@), put the sdcard in the phone and boot.
77
Now you must leave the sdcard in the phone in order to boot Replicant.
78
79
The POWER (bottom right) led indicates the status:
80
81
|_. Led color |_. Status |
82
| Orange | Booting Linux |
83
| Yellow | Completed |
84
| Red | Error |