Re: can't build kernel [with CONFIG this time]

From: /dev/null <null_at_dnswatch.com>
Date: Tue, 26 Apr 2005 23:27:14 -0700 (PDT)
Odhiambo Washington,
 Thank you for your thoughtful reply. According to the documentation
located at:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
   ...
For example:

# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
# cp GENERIC /root/kernels/MYKERNEL
# ln -s /root/kernels/MYKERNEL
   ...
So, in case it is not yet apparent, DEMON01 is located in /root/krenels
and the link is located in /usr/src/sys/i386/conf (yes I re-created it
after re-installing src).

Are we on the same page yet. ;)

-Chris

> Read the documentation again!
>
> You did rm -rf /usr/src.
> So where the fuck is DEMON01 ;)
> Anyway, b4 compiling a kernel, you must buildworld 1st.
>
>
> cd /usr/src
> make buildworld
> make kernel KERNCONF=DEMON01

BTW, I think that unless something new has happened since I read the docs
a couple of hrs. ago, the sequence you provide here is missing a couple
of steps - make install, mergemaster, etc...

> make installwolrd (only after you have booted the new kernel)
>
>
>
>
> * /dev/null <null_at_dnswatch.com> [20050427 08:28]: wrote:
>> Hello,
>>  Just got a new CPU today. Running 5.4-RC3 on GENERIC until the new CPU
>> showed up. Installed the CPU drafted a new config for the kernel cd'd to
>> /usr/src, typed "make buildkernel KERNCONF=DEMON01", build process went
>> as
>> expected. But before the build process completed the machine froze for
>> no
>> apparent reason at the sound driver part. Couldn't ssh into it from
>> another
>> box, so hit the reset button, chose 4 from the menu (single user mode).
>> Performed a fsck -f. Rebooted and attempted to rebuild. But it barfed.
>> So I performed an rm -fr /usr/src.
>> Then /stand/sysinstall > install entire src tree and tried another
>> "make buildkernel KERNCONF=DEMON01" in /usr/src.
>> It barfed with the following:
>>     ....
>> rm -f .depend GPATH GRTAGS GSYMS GTAGS
>> ===> rp
>> rm -f /usr/src/sys/modules/rp/export_syms rp.ko rp.kld rp.o rp_pci.o _at_
>> machine s
>> ymb.tmp tmp.o opt_compat.h pci_if.h bus_if.h device_if.h
>> rm -f .depend GPATH GRTAGS GSYMS GTAGS
>> ===> rue
>> ".depend", line 1: Need an operator
>> ".depend", line 3: Need an operator
>> ".depend", line 4: Need an operator
>> ".depend", line 5: Need an operator
>> ".depend", line 6: Need an operator
>> ".depend", line 9: Need an operator
>> ".depend", line 18: Need an operator
>> ".depend", line 20: Need an operator
>> ".depend", line 21: Need an operator
>> ".depend", line 25: Need an operator
>> ".depend", line 43: Need an operator
>> make: fatal errors encountered -- cannot continue
>> *** Error code 1
>>
>> Stop in /usr/src/sys/modules.
>> *** Error code 1
>>
>> Stop in /usr/obj/usr/src/sys/DEMON01.
>> *** Error code 1
>>
>> Stop in /usr/src.
>> *** Error code 1
>>
>> Stop in /usr/src.
>>
>> /usr/src
>>
>>     ...
>> ============================================================
>>
>> dmesg -a is _at_: http://www.dnswatch.com/kern/dmesg#1
>>
>> acpidump -t -d is _at_: http://www.dnswatch.com/kern/acpidump#1
>>
>> sysctl -a is _at_: http://www.dnswatch.com/kern/sysctl#1
>>
>> DEMON01 is _at_: http://www.dnswatch.com/kern/DEMON01
>>
>> =============================================================
>>
>> Please help and thank you.
>>
>>
>> ////////////////////////////////////////////////////
>>  If only Western Electric had found a way to offer
>> binary licenses for the UNIX system back in 1974,
>> the UNIX system would be running on all PC's today
>> rather than DOS/Windows.
>> ////////////////////////////////////////////////////
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to
>> "freebsd-current-unsubscribe_at_freebsd.org"
>>
>> _______________________________________________
>> freebsd-questions_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe_at_freebsd.org"
>
> -Wash
>
> http://www.netmeister.org/news/learn2quote.html
>
> --
> +======================================================================+
>     |\      _,,,---,,_     | Odhiambo Washington    <wash_at_wananchi.com>
> Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
>    |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
>   '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
> +======================================================================+
> I often quote myself; it adds spice to my conversation.
> 		-- George Bernard Shaw
>


////////////////////////////////////////////////////
 If only Western Electric had found a way to offer
binary licenses for the UNIX system back in 1974,
the UNIX system would be running on all PC's today
rather than DOS/Windows.
////////////////////////////////////////////////////
Received on Wed Apr 27 2005 - 04:27:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:33 UTC