Firmware is a lot harder for a whole host of reasons but it is possible / I've done it.
The odds of success go up a LOT when the stock firmware is easy to extract and reverse engineer.