This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM1808 Android porting steps

Other Parts Discussed in Thread: AM1808, OMAP-L138

Hi,

I am using Texas AM1808 Target. Before i have worked in Qt application and linux drivers.

I am new to android. I want to port the android image on to the AM1808. I wish to download android froyo source.

Can i know the steps, how to install the SDK and which version of Android tree is required to port

on to the target.

Regards,
Francis Kumar

  • Hi Francis,

    We no longer support Android for AM1808, there is a much better low cost processor for Android available now see http://www.ti.com/am335x

    If you still want to go for Android on AM1808, then please use below link as starting point.

    http://processors.wiki.ti.com/index.php/TI-AM1808-Android-FroYo-DevKit_UserGuide

    Regards,

    Khasim

  • Dear Khasim,

    Can you provide me the entire android source, which is booting from SD card.

    Regards,

    Francis Kumar

  • Every thing is captured in the wiki link I posted before. Please follow the wiki link.

    http://processors.wiki.ti.com/index.php/TI-AM1808-Android-FroYo-DevKit_UserGuide#Downloading_the_AM1808EVM_Android_Froyo.28Rowboat.29_sources

    As I mentioned, we no longer support Android on AM1808 as we have better low cost processors now.

    Regards,

    Khasim

  • Hi,

    Almost our design is over with Qt application. we are going start our production using AM1808.

    Next Our aim is to port the Android image on to the same target AM1808. This time we are not changing our processor. 

    Above link is not clear.  giving error below:

    root@ubuntu:/home/kumar/ANDROID_ROOT# sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev minicom tftpd uboot-mkimage
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package sun-java5-jdk
    root@ubuntu:/home/kumar/ANDROID_ROOT#

    Regards,

    Francis

  • H Francis,

    The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository

    Java 5: for Froyo and older

    $ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse"
    $ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse"
    $ sudo apt-get update
    $ sudo apt-get install sun-java5-jdk


  • Hi,

    When i use the command I get the following error message:

    root@ubuntu:/home/kumar/ANDROID_ROOT/am1808/TI-Android-Froyo# repo init -u git://gitorious.org/rowboat/manifest.git -m rowboat-froyo-am1808.xml

    /home/kumar/ANDROID_ROOT/bin/repo: line 1: syntax error near unexpected token `newline'
    /home/kumar/ANDROID_ROOT/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'

    I tried in different way :
    
    
    root@ubuntu:/home/kumar/ANDROID_ROOT# /home/kumar/ANDROID_ROOT/bin/repo init -u git://gitorious.org/rowboat/manifest.git -m rowboat-froyo-am1808.xml
    /home/kumar/ANDROID_ROOT/bin/repo: line 1: syntax error near unexpected token `newline'
    /home/kumar/ANDROID_ROOT/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'

    Could you please help me.
    
    
    Regards,
    Francis
  • Hi Francis,

    Hope you have ubuntu as the host machine. Ubuntu version 10.04 or later need to be installed.
    Also make sure you have installed latest version of python on your host. This is required for the repo tool to work.

  • Hi Francis,

    One more thing, the tool repo may not have downloaded to your host if you have tried the step behind a http proxy.

    curl http://android.git.kernel.org/repo > ~/bin/repo 

    Please set "export http_proxy=<proxy url>:<port> before "curl" step.
     

  • Hi,

    We have all admin access is available. We don't have any Proxy servers here.

    Still same error is giving in the repo script. 

    /home/kumar/ANDROID_ROOT/bin/repo: line 1: syntax error near unexpected token `newline'
    /home/kumar/ANDROID_ROOT/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'

    Please suggest some more.

    Regards,

    Francis 

  • Hi Francis,

    This clearly indicate that repo tool did not get downloaded.

    Try this latest link for repo

    curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

  • Hi Arun,

    I tried with your new repo link. it is working. when i run these commands it gets hang or still process is running ????????????

    Please find the below status:-

    root@ubuntu:/home/kumar/ANDROID_ROOT# curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > /home/kumar/ANDROID_ROOT/bin/repo
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 19933  100 19933    0     0    261      0  0:01:16  0:01:16 --:--:--  4303


    root@ubuntu:/home/kumar/ANDROID_ROOT# chmod a+x /home/kumar/ANDROID_ROOT/bin/repo

    root@ubuntu:/home/kumar/ANDROID_ROOT# /home/kumar/ANDROID_ROOT/bin/repo init -u git://gitorious.org/rowboat/manifest.git -m rowboat-froyo-am1808.xml

    gpg: keyring `/root/.repoconfig/gnupg/secring.gpg' created
    gpg: keyring `/root/.repoconfig/gnupg/pubring.gpg' created
    gpg: /root/.repoconfig/gnupg/trustdb.gpg: trustdb created
    gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
    gpg: Total number processed: 1
    gpg:               imported: 1

    Get https://android.googlesource.com/tools/repo
    remote: Counting objects: 1467, done
    remote: Finding sources: 100% (81/81)
    Receiving objects: 100% (1467/1467), 439.12 KiB | 583 KiB/s, done.
    remote: Total 1467 (delta 955), reused 1467 (delta 955)
    Resolving deltas: 100% (955/955), done.
    From https://android.googlesource.com/tools/repo
     * [new branch]      maint      -> origin/maint
     * [new branch]      master     -> origin/master
     * [new branch]      stable     -> origin/stable
     * [new tag]         v1.0       -> v1.0
     * [new tag]         v1.0.1     -> v1.0.1
     * [new tag]         v1.0.2     -> v1.0.2
     * [new tag]         v1.0.3     -> v1.0.3
     * [new tag]         v1.0.4     -> v1.0.4
     * [new tag]         v1.0.5     -> v1.0.5
     * [new tag]         v1.0.6     -> v1.0.6
     * [new tag]         v1.0.7     -> v1.0.7
     * [new tag]         v1.0.8     -> v1.0.8
     * [new tag]         v1.0.9     -> v1.0.9
     * [new tag]         v1.1       -> v1.1
     * [new tag]         v1.2       -> v1.2
     * [new tag]         v1.3       -> v1.3
     * [new tag]         v1.3.1     -> v1.3.1
     * [new tag]         v1.3.2     -> v1.3.2
     * [new tag]         v1.4       -> v1.4
     * [new tag]         v1.4.1     -> v1.4.1
     * [new tag]         v1.4.2     -> v1.4.2
     * [new tag]         v1.4.3     -> v1.4.3
     * [new tag]         v1.4.4     -> v1.4.4
     * [new tag]         v1.5       -> v1.5
     * [new tag]         v1.5.1     -> v1.5.1
     * [new tag]         v1.6       -> v1.6
     * [new tag]         v1.6.1     -> v1.6.1
     * [new tag]         v1.6.10    -> v1.6.10
     * [new tag]         v1.6.10.1  -> v1.6.10.1
     * [new tag]         v1.6.10.2  -> v1.6.10.2
     * [new tag]         v1.6.2     -> v1.6.2
     * [new tag]         v1.6.3     -> v1.6.3
     * [new tag]         v1.6.4     -> v1.6.4
     * [new tag]         v1.6.5     -> v1.6.5
     * [new tag]         v1.6.6     -> v1.6.6
     * [new tag]         v1.6.7     -> v1.6.7
     * [new tag]         v1.6.7.1   -> v1.6.7.1
     * [new tag]         v1.6.7.2   -> v1.6.7.2
     * [new tag]         v1.6.7.3   -> v1.6.7.3
     * [new tag]         v1.6.7.4   -> v1.6.7.4
     * [new tag]         v1.6.7.5   -> v1.6.7.5
     * [new tag]         v1.6.8     -> v1.6.8
     * [new tag]         v1.6.8.1   -> v1.6.8.1
     * [new tag]         v1.6.8.10  -> v1.6.8.10
     * [new tag]         v1.6.8.11  -> v1.6.8.11
     * [new tag]         v1.6.8.2   -> v1.6.8.2
     * [new tag]         v1.6.8.3   -> v1.6.8.3
     * [new tag]         v1.6.8.4   -> v1.6.8.4
     * [new tag]         v1.6.8.5   -> v1.6.8.5
     * [new tag]         v1.6.8.6   -> v1.6.8.6
     * [new tag]         v1.6.8.7   -> v1.6.8.7
     * [new tag]         v1.6.8.8   -> v1.6.8.8
     * [new tag]         v1.6.8.9   -> v1.6.8.9
     * [new tag]         v1.6.9     -> v1.6.9
     * [new tag]         v1.6.9.1   -> v1.6.9.1
     * [new tag]         v1.6.9.2   -> v1.6.9.2
     * [new tag]         v1.6.9.3   -> v1.6.9.3
     * [new tag]         v1.6.9.4   -> v1.6.9.4
     * [new tag]         v1.6.9.5   -> v1.6.9.5
     * [new tag]         v1.6.9.6   -> v1.6.9.6
     * [new tag]         v1.6.9.7   -> v1.6.9.7
     * [new tag]         v1.6.9.8   -> v1.6.9.8
     * [new tag]         v1.7       -> v1.7
     * [new tag]         v1.7.1     -> v1.7.1
     * [new tag]         v1.7.2     -> v1.7.2
     * [new tag]         v1.7.3     -> v1.7.3
     * [new tag]         v1.7.3.1   -> v1.7.3.1
     * [new tag]         v1.7.4     -> v1.7.4
     * [new tag]         v1.7.4.1   -> v1.7.4.1
     * [new tag]         v1.7.4.2   -> v1.7.4.2
     * [new tag]         v1.7.4.3   -> v1.7.4.3
     * [new tag]         v1.7.5     -> v1.7.5
     * [new tag]         v1.7.6     -> v1.7.6
     * [new tag]         v1.7.6.1   -> v1.7.6.1
     * [new tag]         v1.7.7     -> v1.7.7
     * [new tag]         v1.7.7.1   -> v1.7.7.1
     * [new tag]         v1.7.7.2   -> v1.7.7.2
     * [new tag]         v1.7.7.3   -> v1.7.7.3
     * [new tag]         v1.7.7.4   -> v1.7.7.4
     * [new tag]         v1.7.7.5   -> v1.7.7.5
     * [new tag]         v1.7.7.6   -> v1.7.7.6
     * [new tag]         v1.7.8     -> v1.7.8
     * [new tag]         v1.7.8.1   -> v1.7.8.1
     * [new tag]         v1.7.8.2   -> v1.7.8.2
    Get git://gitorious.org/rowboat/manifest.git
    remote: Counting objects: 214

    Regards,

    Francis

  • Francis,

    Which is the command hanging?

    Normally the command

    $ repo init -u git://gitorious.org/rowboat/manifest.git -m rowboat-froyo-am1808.xml

    finishes quickly.

    And the command

    $ repo sync

    will take more than 24 hour to clone the complete repositories.

  • Hi Arun,

     

    Almost I got the android source and created file system. This android file system is booting from SDCard.

     

    While mounting the file system gives an error. I followed these steps in my target

     

    1. Kernel Image is loaded in SD-Card (FAT32)
    2. Android file system is loaded in SD-Card (rootfs) = I got this file system based on the following commands
      1. Run repo sync
      2. Edited in the Makefile
    • make TARGET_PRODUCT=AM1808evm TARGET_BUILD_VARIANT=tests -j8 droid
    • I copied tar file in to SD-Card. tar jxfv android_rootfs.tar
    • Then I booted the AM1808 target with SD-Card with the help of bootarg command: setenv bootargs 'console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p2 rw init=/init rootdelay=5 mem=32M mpurate=450 androidboot.console=ttyS2'
    • $ cd out/target/product/am1808evm
    • $ mkdir android_rootfs
    • $ cp -r root/* android_rootfs
    • $ cp -r system android_rootfs
    • sudo ../../../../build/tools/mktarball.sh ../../../host/linux-x86/bin/fs_get_stats android_rootfs . rootfs rootfs.tar.bz2
    • I copied tar file in to SD-Card. tar jxfv android_rootfs.tar
    • Then I booted the AM1808 target with SD-Card with the help of bootarg command: setenv bootargs 'console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p2 rw init=/init rootdelay=5 mem=32M mpurate=450 androidboot.console=ttyS2'

    Once booting from kernel to File system. Given blow error.

     

    map_rtc omap_rtc: setting system clock to 2012-02-10 18:40:03 UTC (1328899203)

    Waiting 2sec before mounting root device...

    mmc0: new high speed SD card at address 0002

    mmcblk0: mmc0:0002 00000 1.86 GiB

     mmcblk0: p1 p2 p3

    EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended

    kjournald starting.  Commit interval 5 seconds

    EXT3-fs (mmcblk0p2): using internal journal

    EXT3-fs (mmcblk0p2): recovery complete

    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode

    VFS: Mounted root (ext3 filesystem) on device 179:2.

    Freeing init memory: 264K

    Warning: unable to open an initial console.

    Kernel panic - not syncing: Attempted to kill init!

    Backtrace:

    [<c004f018>] (dump_backtrace+0x0/0x114) from [<c0341dc4>] (dump_stack+0x18/0x1c)

     r7:c1c1d000 r6:c1c20000 r5:c0440110 r4:c0464258

    [<c0341dac>] (dump_stack+0x0/0x1c) from [<c0341e2c>] (panic+0x64/0x134)

    [<c0341dc8>] (panic+0x0/0x134) from [<c0063ce8>] (do_exit+0x74/0x6bc)

     r3:c0440110 r2:00000000 r1:c1c23e40 r0:c03d744a

    [<c0063c74>] (do_exit+0x0/0x6bc) from [<c00643f8>] (do_group_exit+0xc8/0xfc)

    [<c0064330>] (do_group_exit+0x0/0xfc) from [<c006fe40>] (get_signal_to_deliver+0x3f4/0x458)

     r5:00106001 r4:c1c22000

    [<c006fa4c>] (get_signal_to_deliver+0x0/0x458) from [<c004d890>] (do_signal+0x70/0x640)

    [<c004d820>] (do_signal+0x0/0x640) from [<c004de80>] (do_notify_resume+0x20/0x54)

    [<c004de60>] (do_notify_resume+0x0/0x54) from [<c004af68>] (work_pending+0x1c/0x20)

     r5:000214e0 r4:ffffffff

     

    What could be the reason.

     

    Regards,

    Francis

  • Hi,

     

    I am using AM1808 with Android froyo version. Almost i am able to see android characters on to my LCD screen.

    also am able to see the SD-card file system. But still there is some issues to boot up the desktop image.

     

    I have mentioned the target logs below.

     

    Freeing init memory: 272K

    Warning: unable to open an initial console.

    init: cannot open '/initlogo.rle'

    init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'

    sh: can't access tty; job control turned off

    # warning: `zygote' uses 32-bit capabilities (legacy support in use)

    init: untracked pid 781 exited

    init: untracked pid 801 exited

    init: untracked pid 836 exited

    #

    # ls -l

    -rwxrwxrwx root     shell       13696 2012-02-14 12:14 init.rc

    lrwxrwxrwx root     root              2012-02-14 18:02 sdcard -> /mnt/sdcard

    drwxrwxrwx root     shell             2012-02-14 12:25 sbin

    drwxrwx--x system   system            2012-02-14 18:02 data

    drwxr-xr-x root     root              1970-01-01 00:00 sys

    -rwxrwxrwx root     root          118 2012-02-14 12:14 default.prop

    drwxrwxrwx root     root              2012-02-14 18:02 config

    lrwxrwxrwx root     root              2012-02-14 18:02 d -> /sys/kernel/debug

    dr-xr-xr-x root     root              1970-01-01 00:00 proc

    -rwxrwxrwx root     shell      107412 2012-02-14 12:14 init

    -rwxrwxrwx root     root     44707598 2012-02-14 12:23 rootfs.tar.bz2

    drwxrwxrwx root     root              2012-02-14 12:24 system

    drwxrwxrwx root     root              2012-02-14 18:02 acct

    lrwxrwxrwx root     root              2012-02-14 18:02 etc -> /system/etc

    -rwxrwxrwx root     root        27272 2012-02-20 12:15 android-robot-on-black-480x640.rle

    drwxr-xr-x root     root              2012-02-18 11:30 dev

    drwxrwxrwx root     system            2012-02-14 18:02 mnt

    -rwxrwxrwx root     shell        1754 2012-02-20 12:10 init.goldfish.rc

    drwxrwx--- system   cache             2012-02-14 18:02 cache

     

     

    Whether my file system is proper. If Any suggestions....

                                                                                                                               

    Regards,

    Francis

  • Hi Khasim,

                        Iam porting android on AM1808evm, i got my file system and i want to boot from my SDcard on real device. I could see "android" word while booting but i could see desktop. I got stuck with following:

                                              Freeing init memory: 140K
                                              Warning: unable to open an initial console.
                                              init: cannot open '/initlogo.rle'
                                              init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
                                              sh: can't access tty; job control turned off

    More over i cant install-recovery.sh file.Please resolve my problem.

    Regards

    Pooja

  • Hi Arun, 

    Can you suggest me based on my previous logs. I am able to see my file systems in SD-Card. I got the Android characters on my LCD. but it is not showing the desktop image.

    The below message is coming always. any issues with my kernel or file system. Please suggest me.

    request_suspend_state: wakeup (0->0) at 467256420127 (2012-02-22 15:35:40.674688625 UTC)
    init: untracked pid 1026 exited
    
    
    Regards,
    Francis
  • Hi

    I am using omap l138 evm (compatible with AM1808 ) and I get the following boot message.

    Android boot animation is displayed and the system hangs...

    Can you help in this..

    thanks,

    Karthika.

    my boot LOG:

    Waiting 10sec before mounting root device...

    PHY: 1:00 - Link is Up - 100/Full

    Looking up port of RPC 100003/2 on 172.25.146.30

    Looking up port of RPC 100005/1 on 172.25.146.30

    VFS: Mounted root (nfs filesystem) on device 0:12.

    Freeing init memory: 148K

    Warning: unable to open an initial console.

    init: cannot open '/initlogo.rle'

    init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'

    sh: can't access tty; job control turned off

    # warning: `zygote' uses 32-bit capabilities (legacy support in use)

    Unable to handle kernel paging request at virtual address 2b000087

    pgd = c5060000

    [2b000087] *pgd=00000000

    Internal error: Oops: 1 [#1] PREEMPT

    last sysfs file: /sys/devices/platform/dm_spi.1/spi1.0/mtd/mtd3/mtdblock3/uevent

    Modules linked in:

    CPU: 0    Not tainted  (2.6.32-rc6-g0e521ee #1)

    PC is at kmem_cache_free+0x44/0x90

    LR is at nfs_free_request+0x34/0x3c

    pc : [<c009b4d0>]    lr : [<c012a488>]    psr: 40000093

    sp : c78dbe98  ip : c78dbec0  fp : c78dbebc

    r10: c78a7368  r9 : 00000000  r8 : c02e1784

    r7 : c78a7360  r6 : c012a488  r5 : 40000013  r4 : c5059b40

    r3 : 40000093  r2 : 000000c0  r1 : c0529b20  r0 : 2b000003

    Flags: nZcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

    Control: 0005317f  Table: c5060000  DAC: 00000017

    Process nfsiod (pid: 260, stack limit = 0xc78da270)

    Stack: (0xc78dbe98 to 0xc78dc000)

    be80:                                                       c5059b40 c78a7360

    bea0: c78dbebc c5059b64 c5059b40 c5059b40 c78dbed4 c78dbec0 c012a488 c009b49c

    bec0: c5059b64 c012a454 c78dbeec c78dbed8 c016c7cc c012a464 c7bbd040 c7bbd160

    bee0: c78dbefc c78dbef0 c012a420 c016c770 c78dbf2c c78dbf00 c012c54c c012a418

    bf00: c7870960 c7859dbc c78dbf34 c78dbf18 c005f4f8 c7bbd040 c7bbd160 c0302bc8

    bf20: c78dbf44 c78dbf30 c012c9f4 c012c4cc c7bbd044 c7bbd040 c78dbf54 c78dbf48

    bf40: c02e156c c012c9cc c78dbf74 c78dbf58 c02e16c0 c02e155c c7bbd09c c7bbd098

    bf60: c78da000 c78a7360 c78dbf84 c78dbf78 c02e1798 c02e1674 c78dbfc4 c78dbf88

    bf80: c0056494 c02e1794 c02f65a4 00000000 c7859c20 c005a1e8 c78dbf98 c78dbf98

    bfa0: c78dbfcc c7823ef8 c78a7360 c0056358 00000000 00000000 c78dbff4 c78dbfc8

    bfc0: c0059f84 c0056368 00000000 00000000 c78dbfd0 c78dbfd0 00000000 00000000

    bfe0: 00000000 00000000 00000000 c78dbff8 c0046da4 c0059f0c 2fbf7f5b fffffbdf

    Backtrace:

    [<c009b48c>] (kmem_cache_free+0x0/0x90) from [<c012a488>] (nfs_free_request+0x34/0x3c)

     r6:c5059b40 r5:c5059b40 r4:c5059b64

    [<c012a454>] (nfs_free_request+0x0/0x3c) from [<c016c7cc>] (kref_put+0x6c/0x7c)

     r5:c012a454 r4:c5059b64

    [<c016c760>] (kref_put+0x0/0x7c) from [<c012a420>] (nfs_release_request+0x18/0x20)

     r5:c7bbd160 r4:c7bbd040

    [<c012a408>] (nfs_release_request+0x0/0x20) from [<c012c54c>] (nfs_readpage_release+0x90/0xa0)

    [<c012c4bc>] (nfs_readpage_release+0x0/0xa0) from [<c012c9f4>] (nfs_readpage_release_full+0x38/0x54)

     r6:c0302bc8 r5:c7bbd160 r4:c7bbd040

    [<c012c9bc>] (nfs_readpage_release_full+0x0/0x54) from [<c02e156c>] (rpc_release_calldata+0x20/0x24)

     r5:c7bbd040 r4:c7bbd044

    [<c02e154c>] (rpc_release_calldata+0x0/0x24) from [<c02e16c0>] (rpc_free_task+0x5c/0x6c)

    [<c02e1664>] (rpc_free_task+0x0/0x6c) from [<c02e1798>] (rpc_async_release+0x14/0x18)

     r7:c78a7360 r6:c78da000 r5:c7bbd098 r4:c7bbd09c

    [<c02e1784>] (rpc_async_release+0x0/0x18) from [<c0056494>] (worker_thread+0x13c/0x200)

    [<c0056358>] (worker_thread+0x0/0x200) from [<c0059f84>] (kthread+0x88/0x90)

    [<c0059efc>] (kthread+0x0/0x90) from [<c0046da4>] (do_exit+0x0/0x67c)

     r7:00000000 r6:00000000 r5:00000000 r4:00000000

    Code: 1591100c e10f5000 e3853080 e121f003 (e5903084)

    ---[ end trace 3b2f22d883ad324e ]---

    Kernel panic - not syncing: Fatal exception

     

     

  • Hi Karthika,

    Can you send your bootargs with logcat.

    Regards,

    Francis

  • Hi Francis,

    it seems that you've been more successful porting Android to the OMAP-L138 than we were on as described in this thread:

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/p/119623/870448.aspx#870448

    How did you overcome the issue that booting stops after this message?

    Starting kernel ...

    Uncompressing Linux............................................................................................................................................... done, booting the kernel.

    With best regards

    Christian



  • Hi Christian,

     

    It can be easily rectifying your issue. But I would like to know the below queries how the default settings are specified in your OMAP-L138 board.

     

    • How did you booting your kernel i.e Ram Disk or NFS/TFTP or SD-Card ??
    • What is your file system it is Qt or Android???
    • What is your JTAG ID it is mentioned in this path: I want your file in your Linux kernel path: /linux source/arc/arm/mach-davinci/da850.c ??
    • What is your ‘bootargs’ before kernel compressing??.
    • Are you running this process in EVM or your own custom design based on LogicPD???

     

    Thanks,

    Francis

  • Hi Francis,

    1.) I try to boot the kernel from the SD-card. I copied 'uImage' to the first partition from 'arch/arm/boot/uImage' by 'sudo cp -r uImage /mnt/fat32 (this is /dev/sdb1 in my case). U-boot is flased to SPI flash.

    2.) The file system is Android built by following the instructions from http://processors.wiki.ti.com/index.php/TI-AM1808-Android-FroYo-DevKit_UserGuide .

    3.) I'm sorry I coundn't find /linux source/arc/arm/mach-davinci/da850.c - no idea where to start looking for this on my computer. I guess that is the point - the processor checksum is probably wrong. I use the OMAP-L138 on Logic PD's Zoom OMAP-L138 Experimenter board, not the EVM.

    4.) The bootargs are taken from the manual above as well:

    U-boot> setenv bootargs 'init=/init console ttyS2,115200n8 ip=off rw root=/dev/mmcblk0p2 rootfstype=ext3 rootwait mem=128M mpurate=450 androidboot.console=ttyS2'

    the line

    U-boot> setenv bootargs 'sf probe 0; sf read C0700000 C0000 300000; bootm c0700000'

    has been omitted since I didn't flash the kernel to the SPI flash memory but copied it to the first partition of the SD-card. It is loaded and uncompressed from here.

    5.) As mentioned above the used hardware is Logic PD's Zoom OMAP-L138 Experimenter board.

    Thank you very much for your help!

    With best regards

    Christian

  • Hi Chritian

    What is the size of DDR 64M/128M of your OMAP-L138??.

    The above bootargs are correct..Please try with below bootargs again

    setenv bootargs 'init=/init console=ttyS2,115200n8 ip=off rw root=/dev/mmcblk0p2 rootwait nolock mem=64M mpurate=450 androidboot.console=ttyS2'

    setenv bootcmd 'sf probe 0; sf read C0700000 C0000 300000; bootm c0700000'

    boot

    Please go through your linux tree under  /linux source/arc/arm/mach-davinci/da850.c edit this file and add in your kernel and rebuild it.

    /linux source/arc/arm/mach-davinci/da850.c

    In this file please check your JTAG ID should as below:

    /* Contents of JTAG ID register used to identify exact cpu type */
    static struct davinci_id da850_ids[] = {
    {
    .variant = 0x0,
    .part_no = 0xb7d1,
    .manufacturer = 0x017, /* 0x02f >> 1 */
    .cpu_id = DAVINCI_CPU_ID_DA850,
    .name = "da850/omap-l138",
    },
    {
    .variant = 0x1,
    .part_no = 0xb7d1,
    .manufacturer = 0x017, /* 0x02f >> 1 */
    .cpu_id = DAVINCI_CPU_ID_DA850,
    .name = "da850/omap-l138/am18xx",
    },
    };

    Another try, you have any RTC on your board, Please include your RTC in menu-config and build and try it.

    And remove RTC in menu-config and try it.

    Look frward to see your positive response.

    Thanks,

    Francis

  • Hi Kumar,

    your suggestions were leding to success - thank you!

    Now the details:

    - The DDR RAM size on my SOM is 128MByte so the bootargs are correct.

    - The file 'da850.c' does the 'kernel hacking' to forward the right processor type. I added the second variant - this was lacking before. 

    This file was located in '/rowboat-android/kernel/arch/arm/mach-davinci' so I had to look for it ;-). This is the main issue.

    After rebuilding the kernel it started the fs and the android logo, GUI and nice apps. Next I'll go to use the network.

    I will forward the link to this thead to all other threads where is issue is unsolved yet.

    Thanks again for making me happily running android on the OMAP-L138 eXperimenter!

    With best regards

    Christian

  • hi Arun,

    i am trying to port jellybean in beagleboard-xm

    this is what happend to me...any solutions please.

    Studio-1555:~$ PATH=~/bin:$PATH
    Studio-1555:~$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
    100  1363  100  1363    0     0    924      0  0:00:01  0:00:01 --:--:--  3828
    Studio-1555:~$ chmod a+x ~/bin/repo
    Studio-1555:~$ mkdir ~/rowboat-android
    Studio-1555:~$ cd ~/rowboat-android
    Studio-1555:~/rowboat-android$ repo init -u git://gitorious.org/rowboat/manifest.git -m rowboat-jb-am37x.xml
    /home/kamal/bin/repo: line 1: syntax error near unexpected token `newline'
    /home/kamal/bin/repo: line 1: `<!DOCTYPE html>'