Wasly Sevenx
Wasly Sevenx

Reputation: 171

How to port the Linux system to a new hardware architecture?

I mean that I have developed a new but simple RISC CPU based on FPGA and construct a computer hardware system.

Now I need to port the Linux to the hardware system. I have no clear sense of the process. What to do first and then?

Thanks.

Upvotes: 0

Views: 884

Answers (1)

starbolin
starbolin

Reputation: 840

  1. Write C compiler back end.
  2. Write task dispatcher.
  3. Write memory allocator.
  4. Write IO subsystem.
  5. Write the network stack.
  6. Write hardware drivers, mass storage, serial, dma and etc.
  7. Cross compile kernel.
  8. Fix all the missing pieces.
  9. Compile utilities.
  10. Now go back to 1. and fix everything to the way you should have done it in the first place if you knew then what you knew now.

At least that's the way we did it. Usually a three man team. One did the task manager and memory allocator, one did the IO routines, and one did all the UI and utility stuff. With substantial overlap.

Of course if your initials are LT and the compiler is already written and you crowd source the rest of it, that makes it easier.

Upvotes: 3

Related Questions