DragonFly kernel List (threaded) for 2007-09
DragonFly BSD
DragonFly kernel List (threaded) for 2007-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [PATCH] amd64 port kernel build/link patches


From: "Yonghong Yan" <noah.yan@xxxxxxxxx>
Date: Mon, 17 Sep 2007 08:31:50 -0500

there is a README.amd64 file that includes in the patch. anyway, follow this:

 after applying the patch, set this
TARGET_ARCH=amd64
TARGET_PLATFORM=pc64

and then do the make buildworld that will build all the cross
toolchain and the world utilities, but not pkgsrc.

then do the make -k buildkernel KERNCONF=AMD64_GENERIC, that will
build and link the kernel. the emulation linux is compiled with errors
and i have spent time on it more than dumping in Freebsd related code.
that is the reason to use -k for this. After that, you will have the
kernel.debug and kernel.stripped and modules in
/usr/obj/usr/src/sys/AMD64_GENERIC.

The patch includes two temp files that i forget to remove and i will
also reorganize the folder structure.

Again, it is only the linked kernel with tons of dummy codes, far from
something that is able to execute.

Yonghong

On 9/17/07, Petr Janda <elekktretterr@exemail.com.au> wrote:
> I'd love to try it. But I dont know a few things:
>
> - How do I cross-compile?
> - I believe I will have to recompile all of my 3rd party programs from pkgsrc.
> Correct? What's the chance that more pkgsrc programs wont work?
>
> Petr
>
> On Mon, 17 Sep 2007 09:57:58 am Yonghong Yan wrote:
> > not seeing feedback of this patch and i tend to commit them and move
> > on :), deal?
> >
> > yonghong
> >
> > On 9/13/07, Noah yan <noah.yan@gmail.com> wrote:
> > > Please check the attached three patches that are for the amd64 kernel
> > > build and linking.
> > >
> > > The patch.syssys includes patches for files that are platform
> > > independent. but all changes are about the #ifdef, e.g. add
> > > defined(__amd64).
> > >
> > > patch.kmod is for sys/conf/kmod.mk, i.e to add amd64-specific kld
> > > module linking targets. please help double check this.
> > >
> > > The big patch.amd64 includes patches of files from sys/cpu/amd64,
> > > sys/platform/pc64, sys/emulation/linux/amd64 and
> > > sys/config/AMD64_GENERIC. They are all amd64/pc64 specific. Other than
> > > the header files, most of those sources are dummy code and we include
> > > them just to make the kernel linked. These dummy codes requires
> > > completely redo work so you probably donot want to spend time on
> > > codes that are going to be trashed soon :).
> > >
> > > they did not break the i386 world/kernel build and i upgraded my box
> > > from them without any trouble.
> > >
> > > Thanks
> > > Yonghong
>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]