[uClinux-dev] Add new platform - Do I need to change thekernelconfigs

David McCullough david_mccullough at au.securecomputing.com
Fri Sep 29 01:10:37 EDT 2006


Jivin Joel Lindsay lays it down ...
> David,
> 
> I have a romfs directory in my vendor directory, one up from my board
> directory.  That is where the ../romfs should be pointing.
> 
> I have put echos and such in the Makefile but it doesn't appear to be
> running either the romfs or the ROMFS_DIRS portions.  I thought maybe I had
> forgotten to put something into a vendor or config directory Makefile, but I
> have tried everything I can think of.  Maybe in some file somewhere, it is
> stuck pointing to the old Gateworks/Avila Makefile, as this is identical
> except for the lack of romfs directory?

Have you done a full "make clean; make config; make dep; make" sequence
and switched to your new vendors/board ?
I suspect you are actually still building for the Gateworks/Avila ?

	cat .config

at the top level to check.

Cheers,
Davidm

> -----Original Message-----
> From: uclinux-dev-bounces at uclinux.org
> [mailto:uclinux-dev-bounces at uclinux.org] On Behalf Of David McCullough
> Sent: September 28, 2006 6:43 PM
> To: uClinux development list
> Subject: Re: [uClinux-dev] Add new platform - Do I need to change
> thekernelconfigs
> 
> 
> Jivin Joel Lindsay lays it down ...
> > Thanks David,
> > 
> > I am doing a full make, and of course the first time everything gets 
> > remade, including libraries and such.   It works if I copy the romfs 
> > directory that I created to a romfs directory under snapgear and then
> make. 
> > Everything works great.  But I dont want to have to remember to copy this 
> > each time, or to manually remove the existing romfs directory.
> > 
> > here is the new vendor makefile that I made.
> > 
> > What I thought was this makefile should take care of setting up my 
> > directory structure and then copying my custom romfs over to the main
> romfs 
> > to be added to the foot filesystem that uclinux makes.
> > 
> > As I said, if I create the directories and copy the files myself it works 
> > great, but that means my environment isnt set up right and I would like it
> 
> > to be :)
> 
> 
> This line in the Makefile:
> 
> 	$(ROMFSINST) ../romfs /
> 
> is your problem.  you need a basic romfs dire setup under your
> vendors/XXX directory,  either copy in your version to there to point it
> to the original version:
> 
> 	$(ROMFSINST) ../../OLDVENDOR/romfs /
> 
> Cheers,
> Davidm
> 
> > ----- Original Message ----- 
> > From: "David McCullough" <david_mccullough at au.securecomputing.com>
> > To: "uClinux development list" <uclinux-dev at uclinux.org>
> > Sent: Thursday, September 28, 2006 4:41 PM
> > Subject: Re: [uClinux-dev] Add new platform - Do I need to change the 
> > kernelconfigs
> > 
> > 
> > >
> > >Jivin Joel Lindsay lays it down ...
> > >>
> > >>Hi,
> > >>
> > >>I am trying to add my own platform to snapgear uclinux.  I am just using
> > >>the Gateworks Avila platform, but I wanted to leave the default
> Gateworks
> > >>directory intact.
> > >>
> > >>I created my own vendor and hardware version, and it shows up correctly
> > >>in the make menuconfig.  I can select it and supposedly compile it.
> > >>
> > >>The problem I am having is that I modified the makefile in the new so I
> > >>could include a bunch of files in the romfs.  The original Makefile for
> > >>that board did not use a romfs directory because there was only a few
> > >>files that it needed to add.
> > >>
> > >>When I do a make, I get errors that my compiled programs can't be copied
> > >>to the main romfs directory because the directories that they are to be
> > >>copied to don't exist.  It doesn't appear as though the makefile in my
> > >>custom vendor directory is being run to create the skeleton directory
> > >>structure in romfs.
> > >
> > >If you made a new vendors/XXX/YYY directory that is a copy of the
> > >original platform,  then the vendors/XXX/YYY/Makefile will be used when
> > >you configure and build for that target.
> > >
> > >Are you doing a full "make" or trying to short cut it ?
> > >
> > >Always make sure you a full make before doing anything else.
> > >
> > >> Is there something I need to change elsewhere for
> > >>this to happen.
> > >
> > >No.
> > >
> > >>The docs I have read all talked about changing files
> > >>under the linux kernel subdirectories to include the new platform in the
> > >>kernel configs.  Do I need to do this, or can I continue using the same
> > >>board in the kernel, but a different platform (same one but name
> changed)
> > >>while building my root fs.
> > >
> > >Since you do not need any kernel changes for your platform you do not
> > >need to change anything in the kernel directory.
> > >
> > >It sounds like you have done the right thing,  so some errors might help
> > >to work out what you have done wrong,  include your Makefile changes as
> > >well, and look at other targets in the tree,  there is an example of
> > >nearly every conceivable weird thing you could want to do in the vendors
> > >Makefiles that are already there :-)
> > >
> > >Cheers,
> > >Davidm
> > >
> > >-- 
> > >David McCullough,  david_mccullough at securecomputing.com,   Ph:+61 
> > >734352815
> > >Secure Computing - SnapGear  http://www.uCdot.org 
> > >http://www.cyberguard.com
> > >_______________________________________________
> > >uClinux-dev mailing list
> > >uClinux-dev at uclinux.org
> > >http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > >This message was resent by uclinux-dev at uclinux.org
> > >
> 
> 
> > _______________________________________________
> > uClinux-dev mailing list
> > uClinux-dev at uclinux.org
> > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > This message was resent by uclinux-dev at uclinux.org
> 
> -- 
> David McCullough,  david_mccullough at securecomputing.com,   Ph:+61 734352815
> Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org

-- 
David McCullough,  david_mccullough at securecomputing.com,   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com


More information about the uClinux-dev mailing list