Wednesday, May 18, 2011

install android for mini2440

   Hello. After installing successful android into mini2440 board yesterday, I would love to share what I have done even it is quiet easy. If you already knew the process porting linux for mini2440 (if not? You should look here), it will be very easy to install android for it because you just replace kernel (zImage) and file system.
   You are impatient and want to see how android run on your mini2440 right now? No problem, just download kernel and file system here, then install it as you installed linux on mini2440 before. I think I should summarize install routine again. First, turn switch S2 near the word NOR (or near the edge), then open dnw and Hyper Terminal in windowXP. You should format NAND memory first with [x] and [f] option; after that,  choose [v] to load super vivi or vboot, then choose [k] to load zImage_android (as name in file downloaded above), and lastly select [y] to port mini2440T35_android.img (as name in file downloaded above). Okay, it is done now. Reset the board and have fun with android (However, in my opinions, there is no funny with android except sliding as in iPhone). And one more thing, you should use some buttons on mini2440 board to exit applications or something like that (Using buttons make me have to unscrew screen, I do not like this at all, I would love my mini2440 in one block).

    If you are curious and want to cross-compile android, okay, then you should have a look instructions below.
1. Download zImage and file system in raw type (not cross-compile already) here and copy it into /usr/local/android/, then extract them all (by command, e.g. $ tar -zxvf android-fs_20090825.tgz), you will get something like figure below:

2. Cross-compile kernel:
$ cd /usr/local/android/kernel/
$ cp config_mini2440 .config
$ make menuconfig

After this command, you will get something like this picture, just "exit" it.
$ make zImage
It will take you about 8 minutes to build up everything. Your zImage will be located in /usr/local/android/kernel/arch/arm/boot/

3. Cross-compile file system:
$ cd /usr/local/android/fs/
$ gedit default.prop
----------------------------------------------
Change those lines, if you want your android is in English, instead of Chinese:
persist.sys.country = CN
persist.sys.language = zh

into
persist.sys.country = US
persist.sys.language =en

----------------------------------------------
$ cd /usr/local/android/
$ mkyaffs2image-128M fs/ mini2440T35_android.img
 Your file system which has name mini2440T35_android.img is located in /usr/local/android/

Okay, it is finished now. You can use your kernel and file system to install into mini2440. Good luck.


30 comments:

  1. Thank you. Can I use it in my 7" LCD screen, mini2440?

    ReplyDelete
  2. Hi. I have found out zImage for android on 7" mini2440 board. Try it and let me know the result (I also wonder if it works or not, because I have only 3.5" mini2440 board)
    http://www.mediafire.com/?eg5f5165vy04oww

    Good luck.

    ReplyDelete
  3. Thank you for your help!

    ReplyDelete
  4. are you connected with ethernet or Wifi? If Wifi, then what wifi adapter are you using?

    ReplyDelete
  5. No, it's not Wifi. I just use ethernet port in mini2440 board.

    ReplyDelete
  6. have tested the camera application on android platform?how did it work?

    ReplyDelete
  7. Camera application in Android platform also doesn't work in my case either. I haven't figured out the problem yet, sorry about that, it's because Android in mini2440 seems working slowly and I'm not favour in it. I'm just curious how android runs on mini2440 board.

    ReplyDelete
  8. Do you know how to change the screen orientation? thx

    ReplyDelete
  9. How to set ip address for ethernet? thx

    ReplyDelete
  10. hi, just do this command:
    $ ifconfig [the address you like]
    For example:
    $ ifconfig 192.168.1.2

    ReplyDelete
  11. you mean screen orientation on Android? if that, i'm sorry because i didn't know it yet.

    ReplyDelete
  12. Where is the "Cross-compile file system"?
    You are just generating an image,not cross-compiling...

    ReplyDelete
  13. File system is in /usr/local/android/fs/

    ReplyDelete
  14. Hi,

    ...as there are no buttons(...as the "home" for example), how do You get out of Views ?

    Thanks in advance.

    ReplyDelete
  15. hi, the buttons is under the sceen. So you should unscrew four screws to open the screen.

    ReplyDelete
  16. Hi,

    Ok, I had found the buttons. Thanks, anyway.

    Another question: have You managed to install some application (.apk) on this Android device ? I tried a simple one, developed with Basic4Android (using SDK platform Android 2.2, API 8, rev 3)...unsuccessfully !

    ReplyDelete
  17. sorry, i didn't install any app for this Android OS, so it's hard to help you. Please manage yourself :)

    ReplyDelete
  18. i just do exactly as described on your steps,

    but on cross compiling i didn't success. yes, i think the primary cause is the environment set up, and that is what i want to know. how to set up the environment(including library, toolchain, etc) from the default ubuntu lucid lynx, since the help on the DVD is in chinese, i dont understand. i know this is troublesome, but please help me, i'm a newbie on this field.

    ReplyDelete
  19. Hi, Can I use those files with Mini2440 that bundle with LCD to VGA Converter? is there any file system and kernel that working on VGA1024x768 ?

    Regards,
    Nanda F

    ReplyDelete
  20. haci bize derlenmiş halini send yap.

    ReplyDelete
  21. What version of Android is it?

    ReplyDelete
  22. of course,it's android 1.5
    this version's too old,but i cant find any version stable than that...
    Someweb publish android 2.1 update 1 and i'm success to port in mini2440 X35,but media has some problem that i cant fix.
    Anyone knows about this?

    ReplyDelete
  23. Hi, I have a mini2440 board, but with W35 screen. I've downloaded your binary image, and it boot up Android fine, but just display on right half of screen. I've search around and find that W35 screen had different coordination than T35. Then I re-build kernel using W35 setting, but this time it didn't show anything on screen at all (still using your file system image). Could you please give me some hint. I'll really appreciate.

    ReplyDelete
  24. i compile kernel well but problem with root_fs so if i use ready-made android_fs.img then it is ok with that,.


    help !

    ReplyDelete
  25. Has anyone got mini2440 and 8" L80 display working on their hardware with Android??

    ReplyDelete
  26. I have a error in step: $ mkyaffs2image-128M fs/ mini2440T35_android.img
    error comand: mkyaffs2image-128M: command not found
    although I downloadeded file mkyaffs2image-128M and mkyaffs2image and move to fs folder.
    please help me!
    thank you very much

    ReplyDelete
  27. hi..Im college student, thanks for sharing :)

    ReplyDelete
  28. how to transfer the images to board?iam new to this development..please post steps for sending images to board..

    ReplyDelete
  29. I think that here we have something very strange, because mini2440 has only 64MBytes of ram and everybody say android need at least 128MBytes, i can't get android running into it, and I always thought that is about low memory.
    Somebody may point me something that work.
    The kernel try goes on but stops this way:
    s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
    yaffs: dev is 32505859 name is "mtdblock3"
    yaffs: passed flags ""
    yaffs: Attempting MTD mount on 31.3, "mtdblock3"
    yaffs: auto selecting yaffs2
    yaffs: restored from checkpoint
    yaffs_read_super: isCheckpointed 1
    VFS: Mounted root (yaffs filesystem).
    Freeing init memory: 112K
    Warning: unable to open an initial console.
    ts_control_open!
    ts_control_release!
    init: cannot open '/initlogo.rle'
    sh: can't access tty; job control turned off
    / # eth0: link down
    init: cannot find '/system/bin/playmp3', disabling 'bootsound'
    warning: `rild' uses 32-bit capabilities (legacy support in use)

    Any help are welcome.

    ReplyDelete
  30. Something that no one say, it is that when you get this messages, the android are getting ready, if you see nothing in display, it is because the kernel are not configured for you lcd, the kernel from friendlyarm it is ready for T35 and not for X35 from sony.

    ReplyDelete