Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] ext4 back to sparse

OP maddog1979

3rd May 2012, 05:59 PM   |  #1  
OP Member
Flag Warrington
Thanks Meter: 4
 
53 posts
Join Date:Joined: Mar 2012
More
Hi,

I'm a bit of a noob when it comes to Linux but i'm trying to take the Chinese based firware for my device unpack it, modify it and re pack it to make a English starting vanilla build.

Let me begin, i've got a Ubuntu 12.04 install with ext4_utils. I've used a allwinner kitchen to extract the RFSFAT16_SYSTEM_000000000.fex file. I've used simg2img to convert it to original.img and then mounted it as tempdir.

I make changes and all seems ok.

the thing i'm struggling with now is once i've made changes to the output.img through the tempdir through nautilus i try to convert it back to sparse and the conversion completes BUT then when i re pack it into an image and flash the rom doesn't work and gets stuck on boot animation. If if leave the file as ext4 and repack it.. it loads fine but the system image is huge.

If i try to use ./mkuserimg.sh -s /home/Desktop/Android/ext4_utils ./Onda.img ext4 ./temp 512M it creates a .img file with a padlock on it.. (permissions). If i rename this to RFSFAT16_SYSTEM_000000000 and repack the root doesn't boot.

Ive followed this thread and whilst i can get it to work in ext4 i can't get it to work as sparse.

Any help please?
The Following User Says Thank You to maddog1979 For This Useful Post: [ View ]
22nd May 2012, 08:17 PM   |  #2  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2011
hi,

i have the same problem.

when i mount the repacked image.

original:

drwxr-xr-x 2 root 2000 4096 2012-02-23 09:20 .
drwxr-xr-x 14 root root 4096 1970-01-01 01:00 ..
-rwxr-xr-x 1 root 2000 97144 2012-02-23 09:15 adb
-rwxr-xr-x 1 root 2000 191 2012-02-23 09:02 am
-rwxr-xr-x 1 root 2000 50056 2012-02-23 09:15 applypatch
-rwxr-xr-x 1 root 2000 165772 2012-02-23 09:15 applypatch_static
-rwxr-xr-x 1 root 2000 9920 2012-02-23 09:17 app_process

mount after repack (sparse)

drwxr-xr-x 2 root root 4096 2012-02-23 09:20 .
drwxr-xr-x 14 root root 4096 1970-01-01 01:00 ..
-rw-r--r-- 1 root root 97144 2012-02-23 09:15 adb
-rw-r--r-- 1 root root 191 2012-02-23 09:02 am
-rw-r--r-- 1 root root 50056 2012-02-23 09:15 applypatch
-rw-r--r-- 1 root root 165772 2012-02-23 09:15 applypatch_static
-rw-r--r-- 1 root root 9920 2012-02-23 09:17 app_process

onyone a clue?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes