Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Refresh my memory make release with a custom kernel

2 views
Skip to first unread message

Mark Saad

unread,
Jun 20, 2018, 8:47:44 AM6/20/18
to
Hi all
I can’t remember and I havent been able to find the right option to make a release with a custom kernel config .

I did
make buildworld
make buildkernel KERNCONF=SUPERDOOPER
cd release
make release KERNEL=SUPERDOOPER
make install DESTDIR=/export/build/sd

The resulting kernel was a generic not my custom . What am I forgetting?

---
Mark Saad | none...@longcount.org
_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Igor V. Ruzanov

unread,
Jun 20, 2018, 9:12:46 AM6/20/18
to
On Wed, 20 Jun 2018, Mark Saad wrote:

|Hi all
| I can’t remember and I havent been able to find the right option to make a release with a custom kernel config .
|
|I did
|make buildworld
|make buildkernel KERNCONF=SUPERDOOPER

I usually run `make installkernel KERNCONF=SUPERDOOPER`, then reboot and
`make installworld` after kernel building step.

Mark Saad

unread,
Jun 20, 2018, 1:29:55 PM6/20/18
to
Igor
That did not work, the resulting kernel was still a GENERIC . For a
work around
I am just going to tar up /boot/kernel into my own kernel.txz. This is
on 11.2-SATBLE/PRERELEASE

On Wed, Jun 20, 2018 at 9:08 AM, Igor V. Ruzanov
<ig...@pochta-mx.canmos.ru> wrote:
> On Wed, 20 Jun 2018, Mark Saad wrote:
>
> |Hi all
> | I can’t remember and I havent been able to find the right option to make a release with a custom kernel config .
> |
> |I did
> |make buildworld
> |make buildkernel KERNCONF=SUPERDOOPER
> I usually run `make installkernel KERNCONF=SUPERDOOPER`, then reboot and
> `make installworld` after kernel building step.
>
> |cd release
> |make release KERNEL=SUPERDOOPER
> |make install DESTDIR=/export/build/sd
> |
> |The resulting kernel was a generic not my custom . What am I forgetting?
> |
> |---
> |Mark Saad | none...@longcount.org
> |_______________________________________________
> |freebsd-...@freebsd.org mailing list
> |https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> |To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"
> |

--
mark saad | none...@longcount.org

Mehmet Erol Sanliturk

unread,
Jun 20, 2018, 2:38:28 PM6/20/18
to

> > |To unsubscribe, send any mail to "freebsd-questions-
> unsub...@freebsd.org"


> > |
>
>
>
> --
> mark saad | none...@longcount.org
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions

> To unsubscribe, send any mail to "freebsd-questions-
> unsub...@freebsd.org"
>


There is FreeBSD Handbook chapter :

https://www.freebsd.org/doc/handbook/book.html#kernelconfig-building


8.2. Why Build a Custom Kernel?
8.3. Finding the System Hardware
8.4. The Configuration File
8.5. Building and Installing a Custom Kernel

If you search a phrase like the following

freebsd make custom iso image


in the Google , you may find some useful links .

FreeBSD SVN contains directories about how to generate a release ISO .

There is a manual page :


https://www.freebsd.org/cgi/man.cgi?release(7)

*release* -- release building infrastructure


Mehmet Erol Sanliturk

Polytropon

unread,
Jun 20, 2018, 2:51:18 PM6/20/18
to
On Wed, 20 Jun 2018 13:26:34 -0400, Mark Saad wrote:
> Igor
> That did not work, the resulting kernel was still a GENERIC . For a
> work around
> I am just going to tar up /boot/kernel into my own kernel.txz. This is
> on 11.2-SATBLE/PRERELEASE

From what I understood from the Makefiles, "make release" will
always build with the GENERIC kernel configuration. There are
basically two possibilities:

a) overwrite GENERIC with your own configuration, or

b) previously run "make buildkernel KERNCONF=<name>", tar the
result from /usr/obj, then build the release, and finally
replace its GENERIC objects with your own ones.

See "man 7 release" for details.



--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
0 new messages