odin in linux via virtual box

Status
Not open for further replies.

Dani897

Senior Member
Aug 16, 2010
3,613
670
0
i use linux on my home pc and i have not seen a thread or qestion answered about flashing odin from linux so i tried it myself, forgive me if it has been covered before.

i was able to successfully flash with odin using windeows running inside a vm. my vm software is sun virtual box.

before you do this read the instructions for running odin in widows as i dont go into odin specific detail here.

1. created virtual machine.

2. installed windows XP sp2 on virtual machine

3. installed the newwest version of .net framework(i read that helps but it may have been in reference to kies)

4. dowloaded odin and the proper windows drivers and .pit file and jh2

5. shut down the virtual machine

6. put phone into download mode

7. plugged phone into usb port

8. went into virtual box without the VM running and select
machine>settings>usb

9. clicked the add device icon on the right and clicked on samsung_android[0400]

10. started virtual machine

11. started odin and added the proper .pit file and .tar file

12. pulled batery from phone and put into download mode again and connected the usb and selected devices from the top of the window, selected "samsung_android [0400]"

at this point odin should see the device. if not you may need to reselect the phone in the vm window, do this quickly as there seems to be a time window to start the conection.

simply click start!

this may work in vmware and other vm type software for mac and linux as long as you can mount usb devices to the vm as soon as they are hooked up. if it can be done by com port and not device that may be even better.

i have only done this with virtual box 3.2 running widows XP inside mint 9
if it fails i am not responsible for damage to your device. and in the event it doesn't work go find a friend with windows and run it the proper way! windows machines aren't hard to find!

this worked for my iphone with itunes but was trickier as the driver changes halfway through and that is why i thought this would work.

wine does not work, i have not been able to use wine with software for any device that need drivers when running in widows. so please dont ask!
 

TimF

Senior Member
Jul 21, 2010
79
6
0
I can never get the USB to attach using VBox, everytime I try to attach the device to my client, I get an error message.
 

Unhelpful

Senior Member
Jan 9, 2008
251
4
0
Wine is a set of libraries and a loader providing a windows-compatible environment for applications, so in general windows drivers do not work with it. There are patches for USB driver support, but installing drivers is a tedious manual task and results are not consistently very good. VBox is known to work and is fairly easy to set up.

Sent from my SAMSUNG-SGH-I897 using XDA App
 

ponack

Senior Member
Jun 20, 2008
84
2
0
Jackson, MI
www.ponack.net
Wine is a set of libraries and a loader providing a windows-compatible environment for applications, so in general windows drivers do not work with it. There are patches for USB driver support, but installing drivers is a tedious manual task and results are not consistently very good. VBox is known to work and is fairly easy to set up.
Yeah, I figured that out after I posted - I was like wait, there's drivers that need to be installed. Oops. :p
 

Dani897

Senior Member
Aug 16, 2010
3,613
670
0
Wine is a set of libraries and a loader providing a windows-compatible environment for applications, so in general windows drivers do not work with it. There are patches for USB driver support, but installing drivers is a tedious manual task and results are not consistently very good. VBox is known to work and is fairly easy to set up.

Sent from my SAMSUNG-SGH-I897 using XDA App
Couldn't have said it better, I have tried wine with lots of software but never got the usb end of things to work. Odin does open under wine but I have no idea how to tell it to see the phone as it would see a windows driver that sees the phone.if that makes sense.
There are things I can try but if feel I'd be wasting my time as I don't know enough to be sure I'm on the right path.


Sent from my SAMSUNG-SGH-I897 using Tapatalk
 

Dani897

Senior Member
Aug 16, 2010
3,613
670
0
I can never get the USB to attach using VBox, everytime I try to attach the device to my client, I get an error message.
I'm not sure if I'm on the right track here. To use usb you need to add the device to a list of mountable devices to the vm. With the virtual machine off go settings> devices> usb. The phone should be hooked up and in download mode to ensure that it is seen to the vm exactly as it will be during the odin flash. Once it is on the list it should work. If this is what you are doing I'm not sure I can help, maybe the devs will have more insight.

Sent from my SAMSUNG-SGH-I897 using Tapatalk
 
  • Like
Reactions: tanclo

pietro_spina

Senior Member
Jul 20, 2010
178
21
0
Western MA
I'm not sure if I'm on the right track here. To use usb you need to add the device to a list of mountable devices to the vm. With the virtual machine off go settings> devices> usb. The phone should be hooked up and in download mode to ensure that it is seen to the vm exactly as it will be during the odin flash. Once it is on the list it should work. If this is what you are doing I'm not sure I can help, maybe the devs will have more insight.

Sent from my SAMSUNG-SGH-I897 using Tapatalk
So if you do a "lsusb" form the linux box when your phone is in "download" mode do you see the phone?

I can only get it to show up in "recovery" mode... there for I'm having a bit of a problem getting the VM to see it is not seen in linux...
 

pietro_spina

Senior Member
Jul 20, 2010
178
21
0
Western MA
So if you do a "lsusb" form the linux box when your phone is in "download" mode do you see the phone?

I can only get it to show up in "recovery" mode... there for I'm having a bit of a problem getting the VM to see it is not seen in linux...
well I can see it in download mode now... It was just the stupid front ports on my computer. Seems to prefer the back ones...

so now a device is visible in my windows VM but it is called "Gadget Serial"
When it is in "recovery" windows VM can see it as Samsung etc.. and Odin can connect... But obviously odin needs it to be in "download" not "recovery" for it to work.
 
Z

z80imo

Guest
I've problems trying it...

In normal mode all works and VM detects correctly...

But when I put the phone in Download Mode, "lsusb" freezes...


any ideas?
 

Gromlakh

Senior Member
Aug 7, 2011
539
181
43
Maybe I'm missing the point of this thread, by why would you go to all the trouble of hacking around to try to make buggy Odin work under Linux instead of just using Heimdall, which is supported natively under Linux?
 

mystichobo

Senior Member
Sep 25, 2010
277
127
0
Stockholm
mystichobo.com
Maybe I'm missing the point of this thread, by why would you go to all the trouble of hacking around to try to make buggy Odin work under Linux instead of just using Heimdall, which is supported natively under Linux?
I swear, I was just about to ask the same thing.

Seems pointless and convoluted to muck around in VMs when there is a native solution.
 

Pirateghost

Inactive Recognized Developer
Jul 24, 2010
11,705
8,704
0
androidninjas.com
Maybe I'm missing the point of this thread, by why would you go to all the trouble of hacking around to try to make buggy Odin work under Linux instead of just using Heimdall, which is supported natively under Linux?
I swear, I was just about to ask the same thing.

Seems pointless and convoluted to muck around in VMs when there is a native solution.
this thread was risen from the dead.....

for no reason as you have mentioned. look at the date of the OP, and realize that heimdall wasnt always available ;)
 
Status
Not open for further replies.