Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#308807 - 02/04/2008 02:51 USB host chipset
jcm
new poster

Registered: 27/08/2005
Posts: 49
Hi,

Has anyone successfully pursued adding a USB host chipset to the empeg? I have some ideas as to how this might be achievable (current idea is to use a Coolrunner CPLD attached to the secondary IDE channel and some unpleasant kernel driver hacks) but I'd love to know if someone has already been looking at this.

Jon.

Top
#308843 - 03/04/2008 23:01 Re: USB host chipset [Re: jcm]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
My question would be - why? What do you need USB host for specifically?

There might be an easy way to get the end result you are looking for.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#308848 - 04/04/2008 13:00 Re: USB host chipset [Re: Shonky]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31578
Loc: Seattle, WA
Quote:
My question would be - why?


It might be fun to do all the things you can't do right now.

To answer the question: No, I don't think anyone's tried modding a USB host onto the empeg.
_________________________
Tony Fabris

Top
#308849 - 04/04/2008 13:11 Re: USB host chipset [Re: tfabris]
robricc
carpal tunnel

Registered: 30/10/2000
Posts: 4931
Loc: New Jersey, USA
Other than the things mentioned in the FAQ, using a USB to SATA adapter inside the empeg is probably going to be easier/smaller than converting the existing IDE interface to SATA. We also wouldn't be stuck with a maximum of 2 CF cards in a solid-state empeg.

I don't imagine USB 2.0 speeds would be possible, but it may be beneficial to add a 10/100 USB ethernet port. I don't think 100 Mbit is achievable, but anything over 10 Mbit would be welcomed.
_________________________
-Rob Riccardelli
80GB 16MB MK2 090000736

Top
#308850 - 04/04/2008 13:38 Re: USB host chipset [Re: robricc]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Originally Posted By: robricc
Other than the things mentioned in the FAQ, using a USB to SATA adapter inside the empeg is probably going to be easier/smaller than converting the existing IDE interface to SATA.

Not really. Buy a SATA -> IDE adapter and install it. That'll be a lot easier than hacking in USB host and adding a USB -> SATA adapter as well.

The overhead of running ethernet over USB with the empeg will be high. The empeg hardware doesn't do DMA.

Top
#308851 - 04/04/2008 15:08 Re: USB host chipset [Re: tman]
robricc
carpal tunnel

Registered: 30/10/2000
Posts: 4931
Loc: New Jersey, USA
The USB to SATA adapters found inside these types of things are much smaller, cheaper, and more readily available. They also have the advantage of being bus-powered and a USB cable is a lot easier to bend into position than a 40-pin IDE ribbon. Of course, adding USB host to an empeg may outweigh the price advantage...

I remember the turbonet ethernet cards for Series 1 Tivos achieving 22Mbps without DMA. Even if only something like 15Mbps is possible, that's a whole lot better than 10Mbps.
_________________________
-Rob Riccardelli
80GB 16MB MK2 090000736

Top
#308852 - 04/04/2008 15:25 Re: USB host chipset [Re: robricc]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Originally Posted By: robricc
The USB to SATA adapters found inside these types of things are much smaller, cheaper, and more readily available. They also have the advantage of being bus-powered and a USB cable is a lot easier to bend into position than a 40-pin IDE ribbon. Of course, adding USB host to an empeg may outweigh the price advantage...[/url]
The original poster intended to add USB host by connecting it to the IDE bus. Unless somebody removes the existing USB chip and finds a way of fitting a USB host in its place, that is the only viable method of doing it internally.

The PATA -> SATA adapter I linked fits onto the back of the drive. If necessary you could remove the soldered on SATA connectors and put a lead on instead. Same with the PATA pin header.

[url=robricc]I remember the turbonet ethernet cards for Series 1 Tivos achieving 22Mbps without DMA. Even if only something like 15Mbps is possible, that's a whole lot better than 10Mbps.

A small improvement may be possible but is it worth the time and effort to get it? I still think the overhead of having to handle a HD, USB2 and 100Mbps Ethernet over USB would be high.

Top
#308853 - 04/04/2008 15:36 Re: USB host chipset [Re: tman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14484
Loc: Canada
Having USB host capability in the empeg would be fun, but there's no way it could achieve significantly better performance than the existing interfaces -- we're local-bus limited there.

SATA over USB could be made to work, but would be dreadfully slow with the extra layers of hardware/software stacks.

And then there's the problem of our 2.2.xx kernel, which lacks USB drivers galore.

Still, I'd like my empeg to have a host port or two. smile

For faster networking -- at the time of the empeg design, there were no suitable (non-PCI) 100mb/s ethernet chips available, which is how we ended up with 10mb/s only.

But now, there *are* 100mb/s chips that don't need a PCI bus. One of these could be grafted into an empeg without too much rework required. Throughput wouldn't be 100mb/s, though, as the local-bus interface would limit things to much less than that.

Figure that our hard disks use the fastest existing interface, at full bus speed, and they max out somewhere around 2.1MB/sec. If we could get 100mb/s ethernet working at a similar interface rate, that might give us 16-17mb/sec network throughput. As robricc said, even that "mere" 60-70% improvement could still be worthwhile.

EDIT: Note also, that the IDE, USB, and ethernet all share compete for the same local bus. So if one is, say, uploading tunes over ethernet, that bus bandwidth will be split between networking and IDE.

Cheers


Edited by mlord (04/04/2008 15:48)

Top
#308854 - 04/04/2008 15:43 Re: USB host chipset [Re: robricc]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4174
Loc: Cambridge, England
Originally Posted By: robricc
Even if only something like 15Mbps is possible, that's a whole lot better than 10Mbps.

IMO, if a sync is going to take so long that 15Mbits/s is better than 10Mbits/s (and remember that the player software can only sustain about 6-7Mbits/s, it can't even saturate 10M Ethernet), then it's long enough that it's worthwhile opening the player, and using one of those USB-to-SATA adaptors on a real USB2 PC, where with a modern drive you can probably nearly saturate USB2 at 480Mbits/s (60Mbytes/s).

USB host on the Empeg would be a neat hack for various reasons, but faster synchronisation isn't one of them.

Peter

Top
#308855 - 04/04/2008 15:50 Re: USB host chipset [Re: peter]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14484
Loc: Canada
Originally Posted By: peter
.. using one of those USB-to-SATA adaptors on a real USB2 PC, where with a modern drive you can probably nearly saturate USB2 at 480Mbits/s (60Mbytes/s).


In practice, I have never seen better than about 31Mbytes/sec with any drive connected via USB.

Cheers

Top
#316339 - 14/11/2008 03:49 Re: USB host chipset [Re: peter]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
...the usb host chipsets that are amenable to attachment to an SA1100 are also pants, to be frank. The Rio Central, which uses an NXP ISP1161 (the ohci mods for this are in the kernel diffs), was veeeery slow.

USB only really makes sense if the host controller has DMA.

Hugo

Top
#316352 - 14/11/2008 08:05 Re: USB host chipset [Re: altman]
jcm
new poster

Registered: 27/08/2005
Posts: 49
My rough plan was to implement a USB interface using PIO over the IDE channel pins...probably too slow, but I'll poke at the possibilities now that I've got another empeg coming smile

Top
#316358 - 14/11/2008 13:15 Re: USB host chipset [Re: jcm]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14484
Loc: Canada
I think that one of the better approaches might be to just graft in a modern SBC (say, something like a gumstix, but with host USB onboard), and link it to the existing logic on the local bus (the same data/control lines that are used for USB, ethernet, and IDE in the current board). Then use it as a modern I/O controller for the existing design.

The mass storage could be left to the existing logic, or taken over by the new SBC, which would solve the speed issues. It could reexport the storage to the empeg board over an emulated storage adapter (simple, custom driver), or even over NFS/FTPfs via ethernet.

Mmm.. smile


Edited by mlord (14/11/2008 13:17)

Top
#317041 - 07/12/2008 04:25 Re: USB host chipset [Re: mlord]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Not many SBCs with an 8080-style slave interface, though... why not just be done with it an emulate the whole StrongARM shebang on a faster CPU wink

Hugo

Top