Avr based network storage

It would be really cool if someone built a NAS with avr chips.

You would connect a Harddrive to the circuit then it would connect to your router with an Ethernet cable.

Is this too much? Or has anyone done this before?

If they could be made cheap that would be great, I know that we all have a few un-used harddrives that need connecting! :wink:

Sounds possible. But the communication with the disk and the ethernet controller will be slow. I wouldnā€™t aim for more than 10 Mbit ethernet.

And you will probably not be able talk any sophisticated protocol like SMB or NFS that requires you to parse the filesystem and handle multiple connections. There is not enough RAM to do that.

[AoE and [NBD are better candidates.

FTP may be possible as well.](http://nbd.sourceforge.net/)](ATA over Ethernet - Wikipedia)

Thereā€™s also SCSI-over-ethernet (possibly several varieties), as well as Sunā€™s ancient ā€œnetwork diskā€ protocol, MITā€™s ā€œremote virtual diskā€ protocol, firewire-over-IP ā€¦

Thats a lot to look up atm, its late(12:50), im tired(6hrs of fraging), so not now

But tomorrow morning ill look into all of them!

Thanks for your replies!

btw [it was done a few years ago.ā€¦ but I cant find someof those parts, and smdā€¦ well not all of us can do it.

x_x ZZZZZzzzzzzz](http://www.atmel.com/dyn/resources/prod_documents/ATA_HardDrive.pdf)

ok I looked into those,

so lets say we do AoE, what else would be needed? Will the avr be able to directly connect the drives to Ethernet?

btw, I did not mention were the Ethernet would go, I wanted it to connect to a router so that you can use it on your home network.

I think you would definitely want to be able to sustain a minimum for 30-40 Mbit/S through the NIC. Any less than that and you will be pretty unhappy. Given that you can get fairly inexpensive NAS boxes, Iā€™d not sure why you would want to build your own.

If you insist on doing it, Iā€™d look at the AVR32 line. You can run AVRā€™s Linux on it so you get all the protocols you would ever want for ā€œfreeā€ (free as in beer). Rolling your own is a big undertaking. The AVR32 has DMA so you should be able to run at pretty high speeds.

Youā€™d have to integrate in the disk interface but I know that people are doing that now and there may well be examples to draw from.

I never know that you can run linux on the avr32ā€™s!

Ill look into that.

What do you mean by fairly inexpensive nas box? There all to expensive if you will have only a few small hard drives!

Do you have an links to the plp that are working on the disk interface?

EDIT** atm forget about AVR32ā€™s, they would be great, but TQFP 100?

if you were expecting to find a chip that you can plug into a solderless breadboard, well, forget it. TQFP 100 is pretty easy make a board for. In addition to the processor, you are going to have to add the ethernet chip and an interface for the disk. Mostly surface mount there too. Unless you have some experience I suggest you either buy a nas box (look here: http://www.newegg.com/Product/ProductLi ā€¦ 0Ā±+%24200 ) or get an old PC, install linux, turn on samba and be done with it.

This is not a trivial project,

nvm then its more hassle then its worth. A NSLU2 looks good, a few ata>usb adapters and its done.

It should be possible to increase the disk<->ethernet bandwidth by making the parts talk directly to each other as it was done in the Atmel article with the SRAM chip. This saves two port accesses per byte. The cpu would just need to toggle the IOR/IOW line.

Could it be possible to drive the IOR/IOW lines with a half 74123 triggered by the DMAREQ line (and retriggered by the other half)?

Then the microcontroller could sleep and wait for the interrupt.

One could as well attach the 25Mhz clock necessary for 100Mbit ethernet to a 74161 counter and reset it at 3. Bit 1 should provide a nice waveform for MDMA 2 transfers.

This timing should be possible with the Davicom DM9000A and the Asix AX88796B.

Well that should work, but the Davicom DM9000A and the Asix AX88796B are smd and you cant get them at like mouser or elsewhere. If get a PCB place to do it it would cost way to much.