Odin4 v1.0 for Linux

trevd

Inactive Recognized Developer
Jul 19, 2011
893
1,269
123
Hull
Hi Folks

It's been a while since I posted here but I think it might be time for me to get involved again :)

Anyway I was reading the "Odin Downloader Release Notes.xls" and decided to translate the Korean to English. I was quite surprised to see that there was an Entry noting the release of "Odin V1.0 for Linux" ... WTF a Linux version of Odin. I figured I'd try to track this B**tard down and I've finally found one. :)

In some random Odin3 v3.12.7 Download I've discovered a binary called odin4 which looks legit. It's a command line tool.

The help looks like this

Code:
Usage : odin4 [args...]
Odin4 downloader. odin4 version 1.0.
 -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
 -V        Home binary validation check with pit file
 -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.
 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.
   $sudo rmmod cdc_acm
 OR
   echo "blacklist cdc_acm" > /etc/modprobe.d/cdc_acm-blacklist.conf

Example :
$sudo rmmod cdc_acm
$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
and the beginning of the show license has

Code:
odin4 -w
Copyright(C) 2016 Samsung Electronics.Co, Ltd. All rights reserved.
the file output is as follows
Code:
odin4: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=bdec684a47ab0b2109cb60b1bea18e3878750f30, with debug_info, not stripped
Not stripped with debug info.. sounds interesting!

I've attached the Odin rar file I found it in if anyone is interesting in playing with it. I haven't managed to flash anything with it. although I was only attempting to flash a J320FN combination firmware.

Obviously use at your own risk etc etc.. and have fun! :)

trevd
 
Last edited:

DragonFire1024

Senior Member
Mar 27, 2017
4,632
1,867
233
40
Fort Lauderdale
I decided to make an unexpected change to linux, currently on Ubuntu 14. So I have had to find new tools to work with. I'm not even sure this was really ever intended to work, but it does. Perfectly. restored a Galaxy S4 SM-S975L to stock using your linux based binary. Truly impressive.

---------- Post added at 05:09 PM ---------- Previous post was at 04:56 PM ----------

P.S. So far this has done everything the Windows based ODIN does. Just re-rooted with it too :D
 
  • Like
Reactions: trevd

trevd

Inactive Recognized Developer
Jul 19, 2011
893
1,269
123
Hull
It also works with newest of Samsung phones, flashed Galaxy G975U earlier, must decompress lz4 files and repack tar
Yeah that's what I was doing with those newer firmwares. I did contemplate writing a bash wrapper to handle the lz4b stuff but never got round to it lol. I'm always hunting for a newer version which might slip out of Samsung by accident at some point.
 

feddozz

New member
Dec 19, 2020
1
0
1
Hi
Sorry for joining to this thread a few years later. I cannot find the odin4 .rar file that trevd is supposed to have uploaded. Could you pleae help?
Thanks
 

CXZa

Senior Member
Apr 9, 2013
561
182
73
cxzstuff.blogspot.com
Last edited:
  • Like
Reactions: trevd