Arduino Shields Stacking Issues

I want to stack Ethernet shield and USB host together with my Arduino MEGA 2560. Each of these shields works fine separately.

since both shields uses D10 pin I have modified USB host shield's D10 pin to D8 and also modified the library of the USB host library form D10 to D8 then I have checked the USB host shield and it works fine.

enter image description here

but when I stacked the Ethernet shield on USB host shield, the Ethernet shield doesn't work Only the USB Host works. All pins are working on Ethernet shield and USB Host shield I have tested. I have also connected ICSP pins, but the problem exists.

enter image description here

enter image description here

I have found this useful link on stacking usb host shield with WIFI shield but this works only upto modifying the USB host shield but I want to stack usb host with Ethernet shield.

Please help me to resolve this problem.

these are the shields I have used.

Circuits At Home USB Host Shield v2.0
Ethernet Shield v5.0
Thank you

http://arduino.stackexchange.com/q/13669/11285

I think you are having problems because of the ICSP pins. Both the ethernet shield and the USB Host shield use them. If the USB host shield ICSP socket pins are long enough, you should be able to mount the USB shield to the Arduino, then put the ethernet shield on it.

You are also going to have problems with the slave select pins. Both use D10. Don't know what you are going to do about that.

Thank you very much for the reply I have re routed usb host shield SS pin to D8, and changed the library of usb shield. It solved.

I am have trouble with the USB host shield library. I need help on how to modify the pins on the shield using the usbcore.h. What are the steps to get there?

Please help me to resolve this problem

these are the shields I have used.

Circuits At Home USB Host Shield 2.
Thank you