OFFICIAL Samsung Odin v4 1.2.1-dc05e3ea - For Linux

Search This thread

ZmisiS

Senior Member
Dec 23, 2011
3,467
810
60
Livno
Ubuntu LTS stands for Long Term Support.

Yes, it should definitely work with Ubuntu. Just make sure you download the Ubuntu 22.04 version of VirtualBox when you follow the tutorial.
I was able to install Virtual Box and Extension as described in the instructions on the page for which you posted a link. I installed Windows 11 x64 Pro on Virtual Box. I installed driver for Samsung. I downloaded ODIN 3.14.4. I opened ODIN as Administrator.

Did those two commands in the terminal and everything that was needed. When I reconnected the phone in Download Mode with Virtual Box, I received a notification: USB device not recognized.
 
Last edited:
  • Like
Reactions: ethical_haquer

ZmisiS

Senior Member
Dec 23, 2011
3,467
810
60
Livno
I was able to install Virtual Box and Extension as described in the instructions on the page for which you posted a link. I installed Windows 11 x64 Pro on Virtual Box. I installed driver for Samsung. I downloaded ODIN 3.14.4. I opened ODIN as Administrator.

Did those two commands in the terminal and everything that was needed. When I reconnected the phone in Download Mode with Virtual Box, I received a notification: USB device not recognized.
I need help for driver for Samsung.
 
  • Like
Reactions: ethical_haquer
I installed Jodin3Casual on Ubuntu. When I connect Phone with USB in Download Mode, it Connected. When I used AP, BL, CP and CSC and Start, Jodin Disconected. I need somthing for PIT.
a pit file is imho only necessary when you want either to repartition the device (changing sizes aso) or your device as a wrong ROM flashed or is somehow corrupted.
I usually flash with Odin without pit files.
If you really need it it's often inside the CSC...tar.md5 file from where you have to extract it first.
 

ZmisiS

Senior Member
Dec 23, 2011
3,467
810
60
Livno
a pit file is imho only necessary when you want either to repartition the device (changing sizes aso) or your device as a wrong ROM flashed or is somehow corrupted.
I usually flash with Odin without pit files.
If you really need it it's often inside the CSC...tar.md5 file from where you have to extract it first.
I don't know why JodinrCasual Disconnected after I click on Start.
 
  • Like
Reactions: ethical_haquer

icespice4life

New member
Jun 1, 2023
3
2
In your case, you can just follow the directions here. So just disregard the "correction" I made for @ZmisiS. Let me know if you have more issues. :)
it still syas no such file or directory
Screenshot 2023-05-31 20.21.15.png
 

ZmisiS

Senior Member
Dec 23, 2011
3,467
810
60
Livno
it still syas no such file or directoryView attachment 5923219
Copy extracted Odin4 and paste in Download. Open Terminal and use command 'sudo su'. Click Enter and use password and Enter. Now go command 'cd /home/(your user name)/Download and Enter. Now command 'ls' and Enter. After use command 'cp odin4 /usr/local/bin'. Click Enter and it is it.
 
Last edited:

ZmisiS

Senior Member
Dec 23, 2011
3,467
810
60
Livno
a pit file is imho only necessary when you want either to repartition the device (changing sizes aso) or your device as a wrong ROM flashed or is somehow corrupted.
I usually flash with Odin without pit files.
If you really need it it's often inside the CSC...tar.md5 file from where you have to extract it first.
I can't flash with Jodin3Casual without PIT. How I can flash it without PIT?
 

Attachments

  • Screenshot from 2023-06-01 14-18-18.png
    Screenshot from 2023-06-01 14-18-18.png
    100.3 KB · Views: 16
  • Screenshot from 2023-06-01 14-14-48.png
    Screenshot from 2023-06-01 14-14-48.png
    116.2 KB · Views: 18
  • Screenshot from 2023-06-01 14-14-34.png
    Screenshot from 2023-06-01 14-14-34.png
    128.9 KB · Views: 15
  • Screenshot from 2023-06-01 14-13-46.png
    Screenshot from 2023-06-01 14-13-46.png
    128.4 KB · Views: 10
  • Screenshot from 2023-06-01 14-13-12.png
    Screenshot from 2023-06-01 14-13-12.png
    115.5 KB · Views: 15

ZmisiS

Senior Member
Dec 23, 2011
3,467
810
60
Livno
a pit file is imho only necessary when you want either to repartition the device (changing sizes aso) or your device as a wrong ROM flashed or is somehow corrupted.
I usually flash with Odin without pit files.
If you really need it it's often inside the CSC...tar.md5 file from where you have to extract it first.
When I try flash with Jodin3Casual I get this notifications:
 

Attachments

  • Screenshot from 2023-06-01 14-40-17.png
    Screenshot from 2023-06-01 14-40-17.png
    132.8 KB · Views: 8
  • Screenshot from 2023-06-01 14-39-56.png
    Screenshot from 2023-06-01 14-39-56.png
    115 KB · Views: 9
  • Screenshot from 2023-06-01 14-39-29.png
    Screenshot from 2023-06-01 14-39-29.png
    134.3 KB · Views: 8
When I try flash with Jodin3Casual I get this notifications:
So Jodin3 seems to rely on having a pit file.
Did you look for it inside CSC...tar.md5 as I wrote and there is none?
Which stock are you trying to flash anyway?
If you're having windows installed and there Odin doesn't work either (there it should for sure without pit) then I assume your device/USB-cable/-port is the problem.
 
  • Like
Reactions: ZmisiS

ZmisiS

Senior Member
Dec 23, 2011
3,467
810
60
Livno
So Jodin3 seems to rely on having a pit file.
Did you look for it inside CSC...tar.md5 as I wrote and there is none?
Which stock are you trying to flash anyway?
If you're having windows installed and there Odin doesn't work either (there it should for sure without pit) then I assume your device/USB-cable/-port is the problem.
On Windows it work OK. I gave up on Linux and went back to Windows. Thanks to all of you who helped me. Greeting.
 
  • Like
Reactions: ethical_haquer

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Can you be more specific please, I can't help you if you don't say what you're trying to do.
    I don't understand nothing, I'm new l8nex user I know nothing about commands and boot and things like that. I just want to install a custom rom to my samsung a21s.
    1
    What custom ROM in particular? (link please).
    I wanted to Flash twrp so I can install lineage os https://lineageos.org/
    1
    Alright, what unofficial build though? Your device isn't officially supported.
    Oh... I didn't know that..
    1
    Alright, what unofficial build though? Your device isn't officially supported.
    Ok I found this one but idk how to install it..
    As i said i am new in those things..
  • 24

    Try out my new Linux flash tool called Thor - https://forum.xda-developers.com/t/dev-thor-flash-utility-the-new-samsung-flash-tool.4597355, which has all the features of this tool + extras, like the usual Windows Odin ones which are missing in this leaked tool: F. Reset Time, NAND Erase All (aka just erase userdata), EFS Clear and bootloader update.​


    Samsung's Odin on Linux is no longer a dream! This is an official version leaked from Samsung.

    WARNING! Don't DM me stupid questions, I'm not tech support and I'm not going to teach you linux.


    Here's the output you get from
    Code:
    odin -h
    Code:
    Usage : odin4 [args...]
    Odin4 downloader. odin4 version 1.2.1-dc05e3ea
     -v        SHOW VERSION
     -w        Show License
     -b        Add Bootloader file
     -a        Add AP image file
     -c        Add CP image file
     -s        Add CSC file
     -u        Add UMS file
     -e        Set Nand erase option
     -V        Home binary validation check with pit file
     --reboot  Reboot into normal mode
     --redownload   Reboot into download mode if it possible (not working in normal case)
     -d        Set a device path (detect automatically without this option)
     -l        Show downloadable devices path
    
    IMPORTANT : You must set up your system to detect your device on LINUX host.
     create this file: /etc/udev/rules.d/51-android.rules
     to add a line to the file:
     SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
       (http://developer.android.com/tools/device.html)
     And you maybe need to unload a module cdc_acm before downloading. (This is only needed for older kernels.)
       $sudo rmmod cdc_acm
     OR
       echo "blacklist cdc_acm" > /etc/modprobe.d/cdc_acm-blacklist.conf
    
    Example :
    $odin4 -b BL_XXXX.tar.md5 -a AP_XXXX.tar.md5 -c CP_XXXX.tar.md5 -s CSC_XXXX.tar.md5
    Example (Select One Device):
    $odin4 -l
    PATH_OF_DEVICE_A
    PATH_OF_DEVICE_B
    $odin4 -b BL_XXXX.tar.md5 -a AP_XXXX.tar.md5 -c CP_XXXX.tar.md5 -s CSC_XXXX.tar.md5 -d PATH_OF_DEVICE_A
    
    Odin Community : http://mobilerndhub.sec.samsung.net/hub/site/odin/

    You can even verify that's the real one by comparing it's code with the Windows Odin.
    For some reason some method names were left unmodified.
    Have a nice day!
    11
    It is in the archive attached. XDA doesn't allow for no-extension files to be uploaded.
    2
    OMFG! You are a godsend!!! I was skeptical at first when I saw this post, wondering how I never saw this before today... However, I just tried it out and it worked 100% and quickly!

    I have tried every other linux solution and every last one came up bust until now. Thanks again!
    Screenshot_2022-10-26_04-59-27.png
    2
    I successfully flashed lineage os recovery on Samsung a52q using that tool. I want to emphasize that rmmod cdc_acm was a mandatory step for me. Without it I got
    ioctl bulk read Fail : Connection timed out 110 error. That's quite strange, given the fact that module count usage was zero and /dev/ttyACM device was not created. But still the module interfered with the flashing process somehow.

    Also I decided not to mess with udev rules and just issued chown my_user /dev/bus/usb/xxx/yyy.
    Whats was enough.
    2
    Thanks a lot @TheAirBlow !

    I just tested, I was able to downgrade/update official firmware and flash my bootloader without problems. Really great, it was really annoying to have to use a VM for that.

    🙏