The best answer is a book; Chainsaw Lumbermaking by Will Maloof and Beth Erikson. It is out of print but is available from Amazon or try your library. The book is well written and very comprehensive, with lots of pictures.
It was published in 1982 but the information is still valid. It covers homemade and store bought mill attachments and the chainsaw and chain required.
I have milled oak and ash trees and built cabinets with the wood, but it is hard work; dusty , noisy, smelly work. You need a big chainsaw, over 80cc, which will set you back over $1,000 new. A Granberg mill attachment will cost about $200, saw chains another $100. You have to cut a fair amount of lumber to make it worth while.
A usable small bandsaw mill can be had for as low as $3,500. $5,000. They are more efficient but more of an investment.
Either of these systems can give you lumber that can be used for framing. you would need a planer for dressed lumber