Welcome to the GitHub repository for Samsung Odin v4 1.2.1-dc05e3ea for Linux. This tool allows you to flash firmware and custom binaries to your Samsung devices directly from a Linux environment using only your terminal.
- Compatible Samsung Device: The tool is designed to work with Samsung devices that support firmware flashing through Odin.
- USB Cable: A reliable USB cable to connect your Samsung device to your Linux machine.
-
Linux Distribution: Tested on popular distributions such as Ubuntu 22.04+, Fedora 36+, and others. Other distributions should work but have not been explicitly tested.
-
Dependencies: Ensure the following packages are installed:
libusb
: Required for USB communication.adb
: Android Debug Bridge tool, which might be needed for some operations.unzip
: To extract theodin.zip
file.
Install these dependencies using your package manager. For example, on Ubuntu, you can use:
sudo apt-get install libusb-dev adb unzip
-
Download Odin:
Go to the Releases page and download the
odin.zip
file. -
Extract the Archive: Open a terminal and navigate to the directory where
odin.zip
was downloaded. Extract the files using:
unzip odin.zip
- Make Odin Executable: Change the permissions of the odin4 binary to make it executable:
chmod +x odin4
- Move odin4 to /bin Directory: To make odin4 available system-wide, move it to /bin directory
sudo cp odin4 /bin
To use Samsung Odin, simply run the following command:
odin4
For a list of available commands and options, use the help flag:
odin4 -h
This is how -h command menu looks like
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/
Example :
$ sudo odin4 -a AP_XXXX.tar
• Firmware Flashing: Update your Samsung device with the latest official firmware.
• Custom Binary Installation: Flash custom recoveries, kernels, and other binaries.
• Ease of Use: Designed to be user-friendly for both beginners and advanced users.
• Device Not Detected: Ensure your device is in Download Mode and properly connected. Check if USB Debugging is enabled and that the necessary drivers are installed.
• Permission Issues: If you encounter permission errors, ensure you are running the commands with appropriate privileges.
Thanks to the community for their support and feedback. For more discussions and support, visit the XDA Forums thread.
This project is licensed under the MIT License. See the LICENSE file for details.