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

From: /dev/null (null_at_dnswatch.com)
Date: 04/27/05

  • Next message: Claus Guttesen: "error building libexec/rtld-elf"
    Date: Wed, 27 Apr 2005 02:21:25 -0700 (PDT)
    To: freebsd-current@freebsd.org, "Odhiambo Washington" <wash@wananchi.com>
    
    

    Read on...
    > * /dev/null <null@dnswatch.com> [20050427 09:27]: wrote:
    >> 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. ;)
    >
    > I have been compiling kernels for the last 8 years, so I am not gonna
    > read the documentation again about how to do it, but as sure as day
    > follows night, the "ln -s /root/kernels/MYKERNEL" is a useless step!

    O.K. I don't want to be argumentative here, or do I ;) But seriously, I
    just performed surgery on a P2B-AE motherboard. What I have done is simply
    provided support for the bus speeds that the boards timer is capable of
    providing, but that ASUS removed for SONY. This is a mobo that ASUS used
    for in-house R&D and later sold to SONY who sent it out as a VAIO. As it
    (the board) was the proto for the ASUS P3B-1394, I am using that BIOS
    image as opposed to the one that SONY provided. Of course this required
    some soldering and other witchcraft.
    ANYWAY, to the point; After all this voodoo I followed the instructions
    as described *verbatum* and it runs like a top. Built as expected, ran
    as expected. Now this one which required *no* voodoo won't build at all!
    SO,
    (not to discount the value of your shared wisdom, and years of experience)
    what I intend to do, is: cd /, rm -fr . Then with 5.4-RC3 in the CDROM,
    reboot, newfs, install, reboot and see what happens after a cvsup -g -L 2
    <src-all>, make buildworld, make buildkernel KERNCONF=CUSTKERN, make
    installkernel KERNCONF=CUSTKERN, reboot, boot -s, /etc/rc.d/preseedrandom,
    mergmaster -p, make installworld, mergemaster, reboot, boot kernel.

    Why you may ask? Because I performed a rm -fr /usr/src, downloaded/unpacked
    5.4-RC3 src. cvsup -g -L2 <src-all>, make buildworld. And it froze again
    before finishing. After rebooting to single user mode and performing: fsck
    -f and rebooting, then running make buildworld, it PANICED, then REBOOTED,
    and I SAID !!!ENOUGH!!!

    I hope I have been concise enough that there is no doubt or confusion on
    any of this. :)

    -Chris

    P.S. Thanks for taking the time to follow and assist on this.

    >
    > Better follow my step ;)
    >
    > What I normally do:
    >
    > 1. get the latest sources
    > 2. make buildworld
    > 3. make kernel KERNCONF=MYKERNEL
    > 4. Reboot
    > 5. cd /usr/src
    > 6. make installworld
    > 7. mergemaster
    >
    > You can split the "make kernel" into "make buildkernel and make
    > installkernel" but I always don't split them. However, (1) and (2) are
    > mandatory to me, and many others. It's from the handbook, no?
    >
    >
    >
    > -Wash
    >
    > http://www.netmeister.org/news/learn2quote.html
    >
    > --
    > +======================================================================+
    > |\ _,,,---,,_ | Odhiambo Washington <wash@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'm a Lisp variable -- bind me!
    >

    ////////////////////////////////////////////////////
     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@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Claus Guttesen: "error building libexec/rtld-elf"

    Relevant Pages

    • Re: make installworld fails
      ... It is sometimes necessary to reboot with the new kernel to have ... 'make installworld' work correctly (and the recommended procedure is to ... (e.g. every FreeBSD command crashes when run with the old kernel, ...
      (freebsd-questions)
    • Re: learning to buildworld
      ... buildworld process on my dev boxes. ... and then reboot to single usermode. ... the new kernel to match the new world. ...
      (freebsd-questions)
    • Re: learning to buildworld
      ... buildworld process on my dev boxes. ... and then reboot to single usermode. ... "installworld", but "buildworld" had been fine without it. ... the new kernel to match the new world. ...
      (freebsd-questions)
    • Re: Upgrading 5.0 -> 5.1
      ... > on the subject that suggested to installworld prior to ... > the boot (it would be a week before I could then ... Running kernel and world out of sync can potentially cause ... buildkernel, installkernel, reboot, installworld sequence ...
      (freebsd-questions)
    • Re: i386 vs amd64?
      ... You need to reboot between installkernel and installworld ... happened in the ABIs between userland and kernel. ... Get remote access to the console, ...
      (freebsd-stable)