Where to get the files in the heimdall tutorial: factory.rfs, cache.rfs, etc?

Hello:
I’m trying to flash the stock ROM on a Samsung A52s 5G from a linux pc, in order to debug a problem. I have used heimdall succesfully to install elementary, but I can’t find the Samsung ROMs in the correct format.
Can anyone help?
Regards

Regain your privacy! Adopt /e/OS the deGoogled mobile OS and online servicesphone

Where have have you looked already and which Heimdall tutorial. Normal resources are

Thanks, aidb.
From samfw I downloaded a zip file with 4 .tar.md5 files
A thread from a different topic gave me the hint that I should rename the one starting with CSC_…md5 to CSC…zip
Then, inside the zip file, I found files such as cache.img.lza, omr.img.lz4… but not the files mentioned in the heimdall tutorial, and not a single, clear zip file like the one for elementary, that I can install with twrp.
I successfully installed twrp using heimdall, then elementary using twrp, but I can’t install the stock rom, in order to be able to reinstall again, and debug an issue with /e/ 3.0.1

Please be aware…

Never flash the 4 Samsung Stock Rom files with Twrp or something unless a Samsung technician told you to do so… ;-)…

These files are normally intended to be flashed with Odin which is a Windows Program. Also do not unpack or rename the stock filez and try to flash with twrp. No one knows what this will do to your phone… :slight_smile:

If U are on linux and looking for a way to flash stock files with heimdall you should find instructions or tutorials wich will fit the process correctly. Maybe a virtual machine with windows is the answer? I don’t know…

Greet’s

heimdall v1.4.2 don’t works on recent devices, you need heimdall v2.1.0.

Stock ROM .tar.md5 can be flashed using Odin4linux,

It is easier to use Odin4linux than Heimdall in case of complete stock rom, when Heimdall is still usefull for standalone partitions

Thanks a lot, piero. None of the tutorials I had found so far mentioned Odin4linux…
I guess the link for Odin4linux is this, isn’t it?:

I couldn’t try it methods today nor yesterday. The device was not at home! I will report back if I can grab it and make a final attempt before a long trip…

1 Like
odin4 -b BL_XXXX.tar.md5 -a AP_XXXX.tar.md5 -c CP_XXXX.tar.md5 -s CSC_XXXX.tar.md5

Sorry, folks, but I didn’t have much time with the device, so I did not try odin4 and flashed Lineage directly. I was also a bit reluctant, I must admit, to use this tool that, unlike heimdall or twrp, is not open source and does not come from an organization, but seems to have just popped out of thin air :-/ !