Dual Ported USB Memory Stick - Such a thing exists?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
johnsa
Member
Member
Posts: 296
Joined: Mon Oct 15, 2007 3:04 pm

Dual Ported USB Memory Stick - Such a thing exists?

Post by johnsa »

Hey all,

I haven't worked on my OS code for quite some time and was thinking of starting up again now that I have the Intel documentation to be able to implement native graphics support.

When I left off last time I was very hapilly transferring my boot/kernel/loaders etc to a USB stick and booting from it which kept the development process clean and simple (not having a floppy drive anymore).

However, in a quest to make my life even less painful .. and bearing in mind I have multiple machines, it would be fantastic if I could plug a single memory stick into multiple machines.. code on one, deploy and reboot the other so as to not have to reboot my main machine during coding to test the OS code.

Has anyone seen anything like this or set something similar up?
Thanks!
John
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Dual Ported USB Memory Stick - Such a thing exists?

Post by Combuster »

USB sticks with multiple ends, no.

Try netbooting or sharing a SCSI bus between machines.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
souradipm
Posts: 22
Joined: Fri Aug 15, 2008 10:08 am

Re: Dual Ported USB Memory Stick - Such a thing exists?

Post by souradipm »

No, nothing such as a dual-ended USB stick exists, but you can just put your binaries onto the usb stick and take it out, then plug it in to the other pc.
hidnplayr
Posts: 23
Joined: Sat Aug 09, 2008 5:07 pm

Re: Dual Ported USB Memory Stick - Such a thing exists?

Post by hidnplayr »

I wonder if you can boot from this: http://www.linkusb.com/

I personally would go with etherboot and a TFTP server.
User avatar
xDDunce
Member
Member
Posts: 173
Joined: Tue Aug 12, 2008 4:04 pm
Contact:

Re: Dual Ported USB Memory Stick - Such a thing exists?

Post by xDDunce »

i guess you could make a cable that enables you to plug it into 2(or more) computers at once. but you would need to know which lines go one way, and which can oscilate. i've thought of doing this my self but haven't got the time at the moment. in theory all you would need are:

USB ports (one female, 2+ male)
couple of wires
a few diodes

aslong as you know which lines can only go one way, diodes will make sure the current does not turn back on them. although if it goes wrong, i guess the worst that could happen is frying the motherboard but 5 volts aint really enough(i think...)

hope you find a solution.

James.
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: Dual Ported USB Memory Stick - Such a thing exists?

Post by Owen »

USB has 4 lines

5V D+ D- 0V

5v and 0v are power rails.
D+ and D- are bidirectional data lines. USB is completely host driven. If you were to connect the lines on two PCs together all you would do is open the self resetting breaker, if it had one, else the PSU would shut down, and the USB controller possibly be damaged.

So firstly, no method can connect two hosts via USB without intermediating intelligence
Seccondly, diodes don't work for even single direction communications lines because current has to flow both ways.
Thirdly, 5v can and will fry the USB host controller chip... which will run at 3.3v and will not tolerate 5v (The data lines are 3.3v)

If you want to connect computer to computer to boot, a better idea would be to connect both up to a network, setup a TFTP server on the dev box and use PXEBoot to download and run the kernel (However PXEBoot doesn't do Multiboot if your using that)
Post Reply