What does the ROM files (FACTORYFS, HIDDEN, CACHE, PARAM, etc.) mean?


Question

Flashing my Galaxy S 2 i9100 (after breaking with CyanogenMod update CM-13.x) I used the following command:



sudo heimdall flash \
--FACTORYFS factoryfs.img \
--CACHE cache.img \
--HIDDEN hidden.img \
--MODEM modem.bin \
--PARAM param.lfs \
--BOOT boot.bin \
--SBL1 Sbl.bin \
--no-reboot \
--KERNEL zImage


Question



I'm wondering what's the role of the different files?



update: I encourage you to use CM-12.1 instead of CM-13 for your i9100 as the later is not officially supported.


Answer

From [INFO] What the ROM files mean




boot.bin This is the Primitive Bootloader. Seems to make some basic
initializations and finally loads the secondary bootloader.



Sbl.bin The Secondary Bootloader. It loads the PIT, the Linux kernel,
params.lfs and the modem. It also is responsible when the device is
charging while it's off. This file contains the picture you see when
in Download-mode. So it's also responsible for the flashing stuff and
getting into recovery.



The Sbl.bin seems to be there twice. The second one may be for backup,
if something bad's going on.



param.lfs A collection of JPEGs. These include the Galaxy S-Logo you
see first when booting the phone as well as the phone-!-computer
picture, the loading spinner and some pictures of an Android giving
some information: "CP CRASH UPLOAD MODE", "FORCED UPLOAD by KEY
PRESSING", "POWER RESET or UNKNOWN UPLOAD MODE", "USER FAULT Not
KERNEL PANIC UPLOAD MODE" and "KERNEL PANIC UPLOAD MODE". And there is
the Logo of NTT docomo, which is a Japanese mobile operator company.



Maybe there are more information in this file, but I didn't extract
it.



The rest of the files should be rather obvious:



zImage is the Linux kernel.



recovery Backup Kernel. Don't know if it's
used on every device.



factoryfs.rfs is the System partition with the
Android system.



dbdata.rfs is the partition where the app data get
stored.



cache.rfs is for Dalvik cache.



modem.bin is the Modem.




From How to Use Heimdall – specifically on Samsung Captivate – Download 512 513 and 803 PIT files





  • IBL+PBL is the boot loader, be extra careful with it;

  • PIT is the partition table;

  • EFS contains some important data like IEMEI, be extra careful with it;

  • SBL is the second boot loader;

  • SBL2 is the backup of the second boot loader;

  • PARAM contains some images used as various stage of the boot process;

  • KERNEL is the kernel;

  • RECOVERY is the backup of the kernel;

  • FACTORYFS contains /system file system which is some kind of root file system;

  • DBDATA contains /data file system which is the database to store application parameters;

  • CACHE contains /cache file system which contains the Dalvik cache;

  • MODEM contains the firmware for the modem.



Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes