OFFICIAL Samsung Odin v4 1.2.1-dc05e3ea - For Linux

Search This thread

Virnik0

Senior Member
Sep 14, 2010
1,984
446
Prague
blog.nutcracker.cz
search this thread for my post with 'modprobe'


Connect your USB/phone to the PC, then run modprobe command I provided, and then again refer to my prior hint on how to share the USB
 
  • Like
Reactions: ZmisiS

ZmisiS

Senior Member
Dec 23, 2011
3,436
810
60
Livno
search this thread for my post with 'modprobe'


Connect your USB/phone to the PC, then run modprobe command I provided, and then again refer to my prior hint on how to share the USB
Thanks. Now it's 11:40 pm at my place. I'm going to sleep, so I'll continue tomorrow. Good night.
 

ZmisiS

Senior Member
Dec 23, 2011
3,436
810
60
Livno
search this thread for my post with 'modprobe'


Connect your USB/phone to the PC, then run modprobe command I provided, and then again refer to my prior hint on how to share the USB
I can't open Windows 11. I get this notification:

Underlined in red: No such file or directory.
 

Attachments

  • Screenshot from 2023-06-08 11-36-20.png
    Screenshot from 2023-06-08 11-36-20.png
    83.3 KB · Views: 28

Virnik0

Senior Member
Sep 14, 2010
1,984
446
Prague
blog.nutcracker.cz
I didn't do anything. Now when I tried to boot Windows 11 again on the KVM, it booted up without a problem. I don't underestand it.

I've looked through all 10 pages on this topic and can't find your post with 'modprobe'.

I connect phone and Linux with USB cabel and I tried Redirect USB and it is error.
I am quite annoyed by this. Multiple people referred this. Not only me.

sudo modprobe -r cdc_acm


You're just lazy liar
 

ZmisiS

Senior Member
Dec 23, 2011
3,436
810
60
Livno
I am quite annoyed by this. Multiple people referred this. Not only me.

sudo modprobe -r cdc_acm


You're just lazy liar
Not work for me.

I have spent over 200 hours trying to solve this virtual windows issue. Is it laziness?

I am neither lazy nor a liar. No offense please. nobody is forcing you to help me. You provide information at the drop of a hat. Just because I don't know English and I use IM Translator doesn't mean I'm lazy and a liar.

I apologize for asking you for help. From now on I won't talk to you anymore. Kind regards.
 

Virnik0

Senior Member
Sep 14, 2010
1,984
446
Prague
blog.nutcracker.cz
You're aither one of those, or just ignorant. You've been provided with help you largerly ignored. You do not specify your nature of your issue properly. Majority of topics with you ends up with 'it doesn't work' instead of trying to learn from your mistakes. Secondly, we're flooding this topic with Off-topic not relevant to Linux odin binary, which works for those who tried it, but you're still complaining.
 

ZmisiS

Senior Member
Dec 23, 2011
3,436
810
60
Livno
You're aither one of those, or just ignorant. You've been provided with help you largerly ignored. You do not specify your nature of your issue properly. Majority of topics with you ends up with 'it doesn't work' instead of trying to learn from your mistakes. Secondly, we're flooding this topic with Off-topic not relevant to Linux odin binary, which works for those who tried it, but you're still complaining.
I didn't ignore anything. I have done everything I have found here and nothing has worked for me. Linux is a big unknown for me. Those who know how to work on Linux, they solved the problem without problems. For me, the debate is over. Greeting.
 

ZmisiS

Senior Member
Dec 23, 2011
3,436
810
60
Livno
USB on KVM problem solved. The first: I Unmount USB on Ubuntu. After Redirect USB device and it is it.

I now cam connect ODIN.

I need share folders Ubuntu and KVM.
 
Last edited:

AnonVendetta

Senior Member
Apr 29, 2016
1,644
599
USB on KVM problem solved. The first: I Unmount USB on Ubuntu. After Redirect USB device and it is it.

I now cam connect ODIN.

I need share folders Ubuntu and KVM.
Or you can install dconf-editor. Use it to prevent your Linux desktop environment from automounting the device (if it's in Download Mode this shouldn't happen anyway, since the internal filesystems are unavailable). My host is Ubuntu LTS 22.04.2.

Now you are learning.

I too had issues with passing USB device from host to guest. And I'd already did the modprobe/blacklist of cdc_acm. But it's working now, I can Odin flash from the VMed Windows. Besides Windows Odin, you'll also need to install the official Samsung USB drivers, so Odin will recognize it. Only necessary for Windows Odin, native Linux Odin doesn't need this step.

However, if you will just follow the instructions in 1st post, you wouldn't need the VM Windows for flashing, Linux Odin would work.
 
  • Like
Reactions: Virnik0

AnonVendetta

Senior Member
Apr 29, 2016
1,644
599
@Virnik0: Calling him a liar is a bit heavy and unnecessary. But I will agree that he seems to be somewhat lazy. Because if he had searched for modprobe, he would have found it.
 

ZmisiS

Senior Member
Dec 23, 2011
3,436
810
60
Livno
Or you can install dconf-editor. Use it to prevent your Linux desktop environment from automounting the device (if it's in Download Mode this shouldn't happen anyway, since the internal filesystems are unavailable). My host is Ubuntu LTS 22.04.2.

Now you are learning.

I too had issues with passing USB device from host to guest. And I'd already did the modprobe/blacklist of cdc_acm. But it's working now, I can Odin flash from the VMed Windows. Besides Windows Odin, you'll also need to install the official Samsung USB drivers, so Odin will recognize it. Only necessary for Windows Odin, native Linux Odin doesn't need this step.

However, if you will just follow the instructions in 1st post, you wouldn't need the VM Windows for flashing, Linux Odin would work.
Odin works for me on Windows 11 KVM. Odin4 works for me as well. I only need to transfer files from KVM to Ubuntu and from Ubuntu to KVM.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Can u make a video pls, I don't rly understand..
    Can you be more specific please, I can't help you if you don't say what you're trying to do.
    1
    Hello guys ... I am trying to flash A34 5G. ANDROID 13 .. BUT I GET ERROR MESSAGE

    Fail request received 0
    FAIL!(Erase)
    Fail receive PIT info


    Then on phone it says

    MDM MODE. CAN'T ERASE USERDATA
    Userdata is probably encrypted. Have you provided PIT? Try booting to stock recovery, and doing Factory Reset/Wipe. Format Data as well.

    Then try again. Make sure that you do provide vbmeta image as well to the Odin, or package it to existing tarball and flash along. Basically it tells you that you're not authorized to overwrite data image/part of the phone.
    1
    Very good stuff, just a remark from France, I've just refund my Samsung M20 (turk version) with android 10 with your soft : quiet good! before, i've made a mistake with a release of his old Android 9 with e/OS (to ungoogle it) wich is make for android 10 ... all broken... But, odin4 is strong, odin4 is full, you know, with odin4, this is freedom for release ;-)))))) If you want some screenshots of my upgrade , I could send them. thank you. Sylvain. (Linux Devuan4)
    Usually when you're not certain in which state the phone is, make sure to download latest genuine FW for given phone model, and either flash with Odin3 (Windows), or odin4 (Linux) with re-partition ticket/defined. You'll need PIT file as well (it is available in the firmware tarball, just extract it).

    That would wipe the phone, and reset it to factory settings, overwriting all content. Then follow the procedure to get it rooted and TWRP flashed, before moving forward with any firmware reflash.
    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/
  • 23

    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!
    10
    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.

    🙏