OpenWrt Forum Archive

Topic: New Board support, build system docs ?

The content of this topic has been archived on 28 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey All;
   
   I've got a series of kernel patch files to provide support for a new board.
What I'd like to know is where to place  board specific kernel   config  information.
 
Are there any docs on the build-system layout for implementing new board support ?

  I've  got my kernel patch files  under  target/linux/ixp4xx/patches-2.6.32
  my board profile under target/linux/ixp4xx/generic
  Am I suppose to stick my kernel config  settings  in the  target/linux/ixp4xx/config-default ?

It builds and loads if I just replace the config-default with a  .config file from a configured kernel source tree.
Also what files must I edit to get an image file built for the board ? 
This board requires the kernel on the same filesystem as the image so I assume as custom image build script is in order.

Thanks for any help  or  pointers to docs .

GPW

Thanks;  I looked at that documentation.

I guess I'm just a little confused about placement of patches for a "board profile".

  I've got the kernel patches for a new  ixp4xx board.
  I placed the patches under  target/linux/ixp4xx/patches-2.6.23 directory

  Most of the patches should apply fine to the main  target/ixp4xx/patches -2.6.23 directory, but I think there are 3 that may muck up other board-profiles.

  Where could I place patches that are specific to my board's profile so I don't muck up other ixp4xx targets during a build ?
  or do I simply create a new target arch type  and place them under there ?

If I get this patch placement sorted out today  I can chuck a test-patch set up on the developers mail-list .

GPW

The discussion might have continued from here.