mini2440 as usb key

LittleBungler
Hallo everybody,
I would like to trasform my Mini2440 (running Linux) into a USB key.
I mean: when I connect the Mini2440 to another device via USB, I would like
that the board is recognized as it was a USB storage device.
Do you think that it's an easy task to perform?

Thank you in advance!
Bye
A

LittleBungler
Googling around, I've learnt that I must use the USB Type B port, in order
to connect the Mini2440 as a Slave USB device.
I've tried that, but the host pc doesn't recognize anything attached, so I
guess that I must enable Type B Port and recompile the kernel.
Did somebody experience this kind of task? 

Thanks in advance,
A

Reggie
you should be looking for the 'usb gadget' driver in the usb driver section
in the menuconfig for the kernel.  g_mass_storage is the one you're looking
for I believe.