Oleg,
After some research on the custom firmware issue, I think it is probably to much for me to try to do openwrt at this point. I will probably just dissect the official firmware and add ipkg into it. I am already able to dissect the file system and am able to mount the filesystem. Question is how do I combine it back with correct checksum(if there is any).
Thanks,
Lewis