Make a deal with your friend. Tell him you'll work on a part time basis, for just enough income to survive.
He'll know you're doing it just for your startup but at the same time he'll get your expertise and knowledge at least on a part time basis for a discount.