[Beaglebone] How to change pin states start from boot to uncompress kernel

Hi,

I want to change pin states and mux configurations of beaglebone when it starts. In the current state, I am able to change pin mux states after kernel decompression ended.
What should I do to change initial pin configurations (out/in high/low/ etc) while booting.

Should i rebuild u-boot or uImage?
If you can make suggestion about the steps, it would be great.

With thanks and Regards
Ozkaya

You can modify u-boot to set the pin mux configuration if you need it
set a certain way before Linux starts (for example, to set uarts up
for Linux). The kernel can change pin mux settings as well, so just make
sure it doesn't then change the pin mux again to something you don't
desire.

-Andrew