5,604,292 Members 48,712 Now Online
XDA Developers Android and Mobile Development Forum

[KITCHEN] ArchiKitchen - Android Kitchen (WIP) [Linux]

Tip us?
 
JustArchi
Old
#311  
JustArchi's Avatar
Recognized Contributor - OP
Thanks Meter 9183
Posts: 4,630
Join Date: Mar 2013
Location: Warsaw

 
DONATE TO ME
ArchiKitchen doesn't support non-simg .img files, that's why you're getting bad magic error.
I'll check zipalign issue when I have some time. Now you told me it happens in barebones mode .

Did dsixda kitchen support your .img files? If so I can easily add support for that.
The Following User Says Thank You to JustArchi For This Useful Post: [ Click to Expand ]
 
sygnous
Old
#312  
sygnous's Avatar
Junior Member
Thanks Meter 5
Posts: 26
Join Date: Feb 2011
Location: United States
Honestly, I just started working with this again, and my device isn't supported in dsixda. I started to mess around with it, but saw the warnings about partitions and kinda just left it alone. I was able to extract some information to maybe help get it supported, but I'm just getting ramped back up with building custom roms....
 
JustArchi
Old
#313  
JustArchi's Avatar
Recognized Contributor - OP
Thanks Meter 9183
Posts: 4,630
Join Date: Mar 2013
Location: Warsaw

 
DONATE TO ME
If you find a way how to mount your .img file in Linux, or extract it, or do anything with it, let me know and I'll see what can be done.

Until then, sorry, I'm not a magician.
 
sanez
Old
#314  
Member
Thanks Meter 3
Posts: 37
Join Date: Sep 2005
Quote:
Originally Posted by JustArchi View Post
ArchiKitchen doesn't support non-simg .img files, that's why you're getting bad magic error.
I'll check zipalign issue when I have some time. Now you told me it happens in barebones mode .

Did dsixda kitchen support your .img files? If so I can easily add support for that.
I don't know if it can help, but i'm using this tool to extract non-simg system.img files.I'm using it under windows, but i think is available also for linux

ImgExtractor version 1.3.4 Created by And_PDA Based on sources ext4_unpacker

"Extractor for images in EXT2\EXT3\EXT4\YAFFS2\CRAMFS filesystem formats
support SPARSE\SIN\MOTO structure formats

Use parameters:

ImgExtractor.exe <ImageForExtract.img(sin)> [<OutputDir>] [option]
Options:
-i for more info in the process of extracting and extract .journal from image
-s for display information about the superblock of EXT image
-conv for convert image from SPARSE\SIN(EXT4) format to EXT4 format

Example:
ImgExtractor.exe <ImageForExtract.img> [<OutputDir>] [-i],
ImgExtractor.exe <ImageForExtract.SIN> [<OutputDir>] [-i],
or
ImgExtractor.exe <ImageSPARSE.img> <ImageEXT4.img> -conv,
ImgExtractor.exe <ImageForConvert.SIN> <Image.EXT4> -conv
or
ImgExtractor.exe <ImageForExtract>.img -s,
ImgExtractor.exe <ImageForExtract>.sin -s,

Press Enter to continue..."

I used to extract system.img for moto.x and it is easy to use and works fine.
 
sygnous
Old
#315  
sygnous's Avatar
Junior Member
Thanks Meter 5
Posts: 26
Join Date: Feb 2011
Location: United States
It's just an ext4 filesystem. This works fine:

Code:
mount -t ext4 system.img /mnt/system.img
So, I can get at whatever is needed, I just don't know what is needed

I'm not sure what the code is doing, because I haven't looked at it, but it looks like it knows that it's ext4, and is looking for system.img with .ext4 appended to it, which it's not doing based on what I can see. Am I dense? lol
 
JustArchi
Old
#316  
JustArchi's Avatar
Recognized Contributor - OP
Thanks Meter 9183
Posts: 4,630
Join Date: Mar 2013
Location: Warsaw

 
DONATE TO ME
Quote:
Originally Posted by sygnous View Post
It's just an ext4 filesystem. This works fine:

Code:
mount -t ext4 system.img /mnt/system.img
So, I can get at whatever is needed, I just don't know what is needed

I'm not sure what the code is doing, because I haven't looked at it, but it looks like it knows that it's ext4, and is looking for system.img with .ext4 appended to it, which it's not doing based on what I can see. Am I dense? lol
This is cool.

I'll add an alternative solution soon.
 
Johndawolf
Old
#317  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Mar 2014
Looks good to me! I was looking for something to help me on my current pet project and this looks pretty good to me!
 
JustArchi
Old
#318  
JustArchi's Avatar
Recognized Contributor - OP
Thanks Meter 9183
Posts: 4,630
Join Date: Mar 2013
Location: Warsaw

 
DONATE TO ME
Quote:
Originally Posted by sygnous View Post
It's just an ext4 filesystem. This works fine:

Code:
mount -t ext4 system.img /mnt/system.img
So, I can get at whatever is needed, I just don't know what is needed

I'm not sure what the code is doing, because I haven't looked at it, but it looks like it knows that it's ext4, and is looking for system.img with .ext4 appended to it, which it's not doing based on what I can see. Am I dense? lol
Please check if mount -t auto system.img /mnt/whatever works for you. I'm wondering if linux can recognize that it's ext4. This would be an excellent solution also for other filesystems.
 
sygnous
Old
#319  
sygnous's Avatar
Junior Member
Thanks Meter 5
Posts: 26
Join Date: Feb 2011
Location: United States
Yep, works fine. Excluding the -t option works for "auto" as well, but I think calling it out might be a better thing to do...
The Following User Says Thank You to sygnous For This Useful Post: [ Click to Expand ]
 
caspboy
Old
#320  
caspboy's Avatar
Senior Member
Thanks Meter 875
Posts: 537
Join Date: Jan 2014
Location: Charlotte, Nc
How can I take a rom image, for example, a stock samsung or htc rom - and make it into a cwm flashable zip?

Tags
dsixda kitchen justarchi android chef
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes