Do you want the fan and light to be controlled by the wall switch together . . . or the light to be controlled by the wall switch and the fan by it’s chain?
For the former, you would connect both the black and blue wire from the fan to the hot from the switch, connect the white to neutral, and green to ground.
For the latter, connect the black wire from the fan to the hot from the attic junction, the blue from the fan to the hot from the switch, white to neutral, and green to ground.
For more information on ceiling fan wiring:
http://www.ceiling-fans-n-more.com/ceiling-fan-wiring.php