wiki:Devices/GTA04/InstallGuide

Version 34 (modified by slyon, 13 months ago) (diff)

--

GTA04 microSD Installation Guide

This is a step-by-step guide, which should get you from zero to a working SHR on your GTA04 in just a few minutes.

Getting the files

Preparing the microSD card

Your microSD card needs to have 2 partitions. One for the bootloader and one for the rootfs and the kernel:

  • 1st partition: FAT32, "boot"
  • 2nd partition: ext3, "rootfs"

Furthermore, it needs to be formatted with: 255 heads, 63 sectors/track.
To get this right, you can easily use this script: omap3-mkcard.sh Download

sudo ./omap3-mkcard.sh /dev/mmcblk0

Installing the bootloader

To install the bootloader, you have to copy the 1st stage bootloader (MLO), 2nd stage bootloader (u-boot.bin) and the bootscript (boot.scr) to the "boot"-partition.

It is important to copy the 1st stage bootloader (MLO) to the microSD card as the very first file.

cp MLO /media/boot/MLO
cp u-boot.bin /media/boot/u-boot.bin
cp boot.scr /media/boot/boot.scr

Installing SHR

To install the SHR image, you have to untar the image you downloaded to the "rootfs"-partition.

tar xzvpf shr-image.tar.gz --numeric-owner -C /media/rootfs

First boot

After you cleanly unmounted the 2 partitions and put the microSD card back into the GTA04 you can boot SHR.

A first start wizard will pop up, which let's you choose between some options.
Be aware to choose a scale factor of 2.0 when asked. Other than this you could just keep the defaults.

You can now login via USB networking at: 192.168.7.2

Installing telephony

opkg install fsogsmd-module-modem-option-gtm601 fsoaudiod gta04-gps-handler

Installing Firmware

If you want to use the WiFi/Bluetooth chip, you have to use a non-free firmware from Marvell.
To get it you have to install linux-firmware-sd8686.

opkg install linux-firmware

Congratulations

You successfully installed SHR on your GTA04.
If you need further information or have any issues, please have a look below (Troubleshooting) or in the InstallGuide/Advanced section.

GTA04 NAND Installation Guide

  • Here are the NAND partitions:
    # cat /proc/mtd 
    dev:    size   erasesize  name
    mtd0: 00080000 00020000 "X-Loader"
    mtd1: 001e0000 00020000 "U-Boot"
    mtd2: 00020000 00020000 "U-Boot Env"
    mtd3: 00400000 00020000 "Kernel"
    mtd4: 1f980000 00020000 "File System"
    
  • Install SHR on microsd
  • Boot on microsd
  • Copy the uImage-om-gta04.bin, shr-image-om-gta04.ubi,u-boot.bin in the second partition
  • Copy x-load.flash in the first partition
  • Boot SHR on microsd and run the following:
    nandwrite -p /dev/mtd4 shr-image-om-gta04.ubi
    nandwrite -p /dev/mtd3 uImage-om-gta04.bin
    nandwrite -p /dev/mtd1 u-boot.bin
    
  • Then reboot into u-boot: connect the serial cable and press enter(there is no other way yet(we will have to develop some uboot scripts) since x-loader partition is read only)
  • flash x-load:
    mtdparts default
    mmcinfo
    fatload mmc 0:1 0x82000000 /x-load.flash
    nandecc hw
    # write some copies
    nand erase 0 80000
    nand write 0x80200000 0 20000
    nand write 0x80200000 20000 20000
    nand write 0x80200000 60000 20000
    powerdown
    

Use powerdown and not reset because reset doesn't seem to work...

Troubleshooting

Please add your questions here:

Q: How to get PIN-Dialog, Calls, SMS, Internet working on a GTA04a4?
A: FSO needs to activate the modem on the A4 boards. The necessary code is included in the FSO-0.10 release. You have to wait until SHR is using this version of FSO.

Q:
A:

Attachments