This will probably get moved, but I do believe it is development related because it is important to everyone who flashes ROMs but can't use ODIN for whatever reason (ie Linux/Mac users).
Seeing all the ROM cookers get asked so much to make system.imgs or update.zips to cater to the Linux/Mac users, I decided it was time to tell people how to just convert an ODIN Tar.
I will tell people how to do it on Ubuntu seeing that is what I have (in a VM), but once I have the patience to install Mac OS in a VM, I shall make a guide for that.
Please note that if the factoryfs.rfs is in RFS format (ie it's a stock ROM or it's a ROM by someone who doesn't like EXT4 for whatever reason), you will not be able to do this. The format the factoryfs.rfs is in (EXT2, 4, JFS, whatever) needs to be supported by your Linux kernel. You can check that by doing cat /proc/filesystems
After a lot of investigating, I have learnt that RFS is a broken version of FAT. You could poke around with it and try mounting it as vfat but I don't guarantee success.
ODIN TAR -> System.img
System.img -> ODIN TAR
Done! Hopefully this should all work nicely for everyone.
Seeing all the ROM cookers get asked so much to make system.imgs or update.zips to cater to the Linux/Mac users, I decided it was time to tell people how to just convert an ODIN Tar.
I will tell people how to do it on Ubuntu seeing that is what I have (in a VM), but once I have the patience to install Mac OS in a VM, I shall make a guide for that.
Please note that if the factoryfs.rfs is in RFS format (ie it's a stock ROM or it's a ROM by someone who doesn't like EXT4 for whatever reason), you will not be able to do this. The format the factoryfs.rfs is in (EXT2, 4, JFS, whatever) needs to be supported by your Linux kernel. You can check that by doing cat /proc/filesystems
After a lot of investigating, I have learnt that RFS is a broken version of FAT. You could poke around with it and try mounting it as vfat but I don't guarantee success.
ODIN TAR -> System.img
- Download your TAR and save it to your Desktop (I will use Kyorarom Ascendency Beta)
- Open the TAR with Archive Manager (or whatever you use) and extract the factoryfs.rfs from it to your desktop. You don't need anything else
- Open Terminal (under Applications > Accessories)
- Go into superuser mode:
Code:sudo -s
- Make a mountpoint for the system:
Code:mkdir /mnt/system
- Mount the image
Code:mount -o loop ~/Desktop/factoryfs.rfs /mnt/system
- Change directory to /mnt and make the tarball for the system.img
Code:cd /mnt tar cvf system.img system
- Unmount and clean up
Code:umount /mnt/system rm -rf /mnt/system
- Copy the system.img to your phone
System.img -> ODIN TAR
- Download a TAR from another ROM, and the system.img to your desktop.
- Open the TAR with Archive Manager (or whatever you use) and extract the factoryfs.rfs from it to your desktop. You don't need anything else
- Open Terminal (under Applications > Accessories)
- Go into superuser mode:
Code:sudo -s
- Make a mountpoint for the system:
Code:mkdir /mnt/system
- Mount the image
Code:mount -o loop ~/Desktop/factoryfs.rfs /mnt/system
- Change directory to /mnt and make the tarball for the system.img
Code:cd /mnt rm -rf system/* tar xvf ~/Desktop/system.img
- Unmount and clean up
Code:umount /mnt/system rm -rf /mnt/system
- Put the factory.rfs into a TAR and flash it with ODIN.
Done! Hopefully this should all work nicely for everyone.
Last edited: