Cross compiling BSD

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Dewah77
Posts: 5
Joined: Wed Aug 10, 2016 6:27 am

Cross compiling BSD

Post by Dewah77 »

I decided that it wouldn't be a good idea to make a kernel from scratch (well the reason I wanted to make it from scratch was to avoid licensing issues), so I decided to modify FreeBSD and make its distro instead.
However I am having some trouble cross compiling it from Linux Mint. Help me to cross compile it from linux mint. (I dont want to compile it from FreeBSD as that yields unexpected results)
Thanks.
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Re: Cross compiling BSD

Post by max »

Wrong forum, use Google to find a suitable forum for FreeBSD.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Cross compiling BSD

Post by iansjack »

Dewah77 wrote:I dont want to compile it from FreeBSD as that yields unexpected results
Thanks.
It shouldn't do, so that is your real problem. It is only going to be worse if you try to compile the kernel from Linux rather than FreeBSD. There is no point in just ignoring the problems that you are having when you do things the correct way; try to understand why it isn't working.
Dewah77
Posts: 5
Joined: Wed Aug 10, 2016 6:27 am

Re: Cross compiling BSD

Post by Dewah77 »

Not really, its going to (if its similar to linux) just update my freebsd installation instead of making bootable images.
Its doing its intended purpose, but thats not how I intend it to work.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Cross compiling BSD

Post by iansjack »

When you compile a kernel, either the FreeBSD one or a Linux one, it just produces the kernel file which you then have to install into your working system. Scripts in certain distributions may automate the installation process, but this is not the case in FreeBSD.

I'm afraid from your posts so far I doubt that you have any chance of successfully modifying the BSD kernel.
Post Reply