Hi lntsenthil
The MCF5222x has USB on-the-go but no Ethernet interface. Therefore it is not normally used together with a TCP/IP stack.
The MCF5223X family with integrated EMAC and EPHY allow single chip embedded IP applications.
Look at the uTasker operating system with integrated TCP/IP stack (www.uTasker.com) which is free (including support) for non-commercial use. There is a demo online at
http://212.254.22.36 requiring about 50k code, 12k SRAM and 32K File system as reference.
Regards
Mark Butcher
www.mjbc.ch /
www.uTasker.com