Author Topic: iodroid Android Compile  (Read 200 times)

Offline hongjiujing

  • Member
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • iDevice: iPod Touch 1G
  • iDroid Version: Mojo 1.0.3
  • Jailbreak: Balck1n
iodroid Android Compile
« on: November 25, 2010, 07:39:43 AM »
According to http://www.idroidproject.org/wiki/Compiling_Android,i compile sucessfully.

tommy@tommy-laptop:/project/idroid/froyo/out/target/product/iPodTouch1G$ ls
android-info.txt  installed-files.txt       ramdisk.img  system
clean_steps.mk    obj                       root         system.img
data              previous_build_config.mk  symbols      userdata.img

tommy@tommy-laptop:/project/idroid/froyo/out/target/product/iPodTouch1G$ ls -al -h system.img userdata.img ramdisk.img
-rw-r--r-- 1 tommy tommy 248K 2021-11-25 13:12 ramdisk.img
-rw-r--r-- 1 tommy tommy  81M 2021-11-25 13:27 system.img
-rw-r--r-- 1 tommy tommy 4.4M 2021-11-25 12:47 userdata.img

But:
tommy@tommy-laptop:~/idroidimage/iDroid-1.0.3-MoJo-IPT1G/idroid$ ls -al -h
drwxr-xr-x 2 tommy tommy 4.0K 2021-11-25 14:46 .
drwxr-xr-x 5 tommy tommy 4.0K 2021-11-24 21:55 ..
-rwxr-xr-x 1 tommy tommy 606K 2021-09-10 03:54 android.img.gz
-rwxr-xr-x 1 tommy tommy 100M 2021-10-04 06:54 cache.img
-rw-r--r-- 1 tommy tommy 100M 2021-10-05 01:55 system.img
-rwxr-xr-x 1 tommy tommy 150M 2021-09-10 03:48 userdata.img


my new compile system.img is not equal to iDroid official 1.0.3 system.img,and userdata.img also not equal?


i just update my new compile system.img and userdata.img to /private/var/idroid/,use Openiboot to install ,but android failed,said that "Faild to link /system/bin/bash" and system jump into the Openiboot .

anyone know this?

How can i generate android.img.gz? and cache.img?

or someway that can generate iDroid-1.0.3-MoJo-IPT1G image (android.img.gz ,system.img,userdata.img,cache.img)?



Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 595
  • Karma: +41/-1
    • View Profile
    • http://www.nickpack.com
  • iDevice: iPhone 3G
  • iDroid Version: Bleeding Edge
  • Jailbreak: redsn0w
Re: iodroid Android Compile
« Reply #1 on: November 25, 2010, 08:36:05 AM »
Due to how the android build system works you need to manually resize the images after building them (Androids build system reduces them to the smallest size it can)

Fresh builds will not boot due to the userdata image not being big enough, after resizing all should be well.

android.img.gz is just a ramdisk for booting, you dont need to build this (You can just take it from one of our releases).

cache.img is an empty ext2 image so you can just generate one for that or use the one from a previous release.

Hope that helps
http://dev.idroidproject.org - iDroid Project Community Issue Tracker

http://idroid.nickpack.com - My iDroid File Dump

http://github.com/iDroid-Project - Repos

Offline hongjiujing

  • Member
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • iDevice: iPod Touch 1G
  • iDroid Version: Mojo 1.0.3
  • Jailbreak: Balck1n
Re: iodroid Android Compile
« Reply #2 on: November 25, 2010, 08:57:35 AM »
thanks,nick?

1:how to generate a new img that mount it ,copy  android system directory to img mount point?
similar as :dd if=/dev/zero of=fd.img bs=1k count=1440? official system.img is 150M,ext3? can you give a example?

2:after i mount official userdata.img,
sudo mount -o loop userdata.img ./userdata/
tommy@tommy-laptop:~/idroidimage/iDroid-1.0.3-MoJo-IPT1G/idroid/userdata$ ls
anr  app-private  dalvik-cache  local       misc      system
app  backup       data          lost+found  property  tombstones

latest idroid android source code compiled userdata.img,is just 
gzip press the out/target/iPodtouch1G/data/directory.





Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 595
  • Karma: +41/-1
    • View Profile
    • http://www.nickpack.com
  • iDevice: iPhone 3G
  • iDroid Version: Bleeding Edge
  • Jailbreak: redsn0w
Re: iodroid Android Compile
« Reply #3 on: November 25, 2010, 09:29:07 AM »
You dont need to copy anything to images, just use resize2fs on them
http://dev.idroidproject.org - iDroid Project Community Issue Tracker

http://idroid.nickpack.com - My iDroid File Dump

http://github.com/iDroid-Project - Repos