Changes between Version 13 and Version 14 of Android: Setup your device

Show
Ignore:
Timestamp:
10/02/10 18:04:22 (3 years ago)
Author:
dm8tbr
Comment:

linked to generic guide, added Android specific remarks, removed previous content.

Legend:

Unmodified
Added
Removed
Modified
  • Android: Setup your device

    v13 v14  
    1 To use the Android 2.2 port for A5IT, you need your device to use the multiroot facility from OpenAOS. This allow your device to boot any image from a shiny bootloader.  
    2 == download the needed files from the archos homepage == 
    3  * download the SDE firmware, rename the file firmware_archos5.aos to sde_archos5.aos to avoid confusion 
    4  * download the regular 1.9.xx Android firmware from archos (''you can use 2.0.xx if you want but you will encounter problems with video playback in the archos media center'') 
     1There is a generic [wiki:SettingUpMultiRootGen7 boot menu guide] now here on the wiki. 
    52 
    6 You now have one file named firmware_archos5.aos which is the original android os and one file named sde_archos5.aos which is the SDE containing anstrom. 
     3For Froyo make sure you have the most recent release image and or build your own image.  
    74 
    8 == compile aos tools (instructions for Ubuntu 10.04) == 
     5Make sure:  
     6 * the image name matches the menu entry. 
     7 * the path to the image in the menu entry does NOT end in gz. 
     8 * if the name of your menu entry (from the start of the line to the first "|") does NOT contain the keywords "Froyo" or "Android" you have to add a "|0" to the end of that line. 
     9 
     10Examples: 
    911{{{ 
    10 sudo apt-get install libssl-dev (if you have not already done it) 
     12openAOS FroYo|/dev/sda1|/openaos-froyo-alpha5.img|/init 
    1113 
    12 svn checkout http://aos-tools.googlecode.com/svn/trunk/ aos-tools 
    13 cd aos-tools/libaos 
    14 make 
    15 cd ../tools 
    16 make 
    17 sudo cp aos-unpack /usr/local/bin/ 
     14MyDroid|/dev/sda1|/my-froyo-build.img|/init|0 
    1815}}} 
     16Please notice how the second example requires the trailing 0 to activate the [http://www.openaos.org/archives/617 framebuffer setup] for Android. 
    1917 
    20 == unpack original firmware == 
    21 {{{ 
    22 aos-unpack /path/to/firmware_archos5.aos 
    23 }}} 
    24  
    25 Of all the files unpacked, the following are of interest: 
    26  
    27  * ./firmware_archos5/root/cramfs/androidroot.cramfs.secure 
    28  * ./firmware_archos5/root/cramfs/bitmapfs.cramfs.secure 
    29  
    30 we will need them later 
    31  
    32 == flash the SDE == 
    33  
    34 ''Before you install the SDE, please make sure your device is either running a 1.9.x or 2.0.x firmware. There have been problems reported with directly going from 1.7.x to the new SDE AOS file (the ubi-fs was damaged and ubi modules were not loading).'' 
    35  
    36 Copy sde_archos5.aos via usb the root of your device, after unmouning cleanly, execute the update via the archos file manager.  
    37  
    38 Angstrom will boot afterwards, it takes a long time. Be patient. You will have to create an initial user account and set a password. 
    39  
    40 == install the boot menu == 
    41  * Reboot your device while holding down the [VOL -] button. 
    42  * Press the [VOL -] button 5 times to reach the “Developer Edition Menu”. Then Press [Power] 
    43  * Press the [VOL -] button 2 times to reach the “Flash Kernel and Initramfs” entry. Then Press [Power] ONCE. Wait 2 seconds. 
    44  * The screen now should say “connect your device…” – Please do so and mount the device on your desktop PC. 
    45  * Now get the following files and put them on the root of your archos device: 
    46   * [http://www.openaos.org/wp-upload/menu-beta/initramfs.cpio.gz initramfs.cpio.gz] (for mass storage access) '''OR''' [http://www.openaos.org/tmp/g-serial-console/initramfs.cpio.gz initramfs.cpio.gz] (for serial console access) 
    47   * [http://www.openaos.org/tmp/g-serial-console/zImage zImage] 
    48   * [http://www.openaos.org/wp-upload/menu-beta/menu.lst menu.lst] 
    49   * [http://www.openaos.org/tmp/ubitools.tar.gz ubitools.tar.gz] 
    50   * [http://www.openaos.org/wp-upload/menu-beta/script script] 
    51  * Copy the previously unpacked androidroot.cramfs.secure and bitmapfs.cramfs.secure into the main directory of your device. 
    52  * Unmount the device safely. (Else you might damage the files!) 
    53  * Press the [Power] button – The screen will flash briefly and say “Kernel and initramfs updated”. 
    54  * Press the [Power] button – The device will now reboot. 
    55  * The Boot menu should now appear. Select Ångström or just wait 10s. 
    56  * Press Other then Root shell – a root terminal appears 
    57  * Now execute the following command with the on screen keyboard: 
    58 {{{ 
    59  . /mnt_data/script  
    60 }}} 
    61  * Now reboot the unit and go back into recovery (see step 2, this time select “Access HDD using a PC“) 
    62  * Connect it to your Linux PC and fire up a partition manager 
    63  * Make sure you are editing the right drive! 
    64  * Create an new ext3 partition in the empty space at the end of the drive. Make sure it is created as type primary and is the second partition (e.g. /dev/sdc2)! The unit will not boot Android if the partition is e.g. sdc3 or sdc5! 
    65  * Now mount that partition and copy some of the remaining contents of the firmware onto it (lang*.alz and the upselling directory) 
    66  * Unmount the drive and reboot your Archos device. 
    67  
    68 Congratulations you should now have an dual-booting gen7 device! 
    69  
    70  
    71 The original instructions are available on this [http://www.openaos.org/archives/171 blog entry], I copied and pasted most from there. 
    72