DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th June 2008
KernelPanic KernelPanic is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default FreeBSD 7.0 amd64 make installworld fails.

I've done a clean install of FreeBSD 7.0-RELEASE amd64

I did a csup to RELENG_7_0 (to get a security patch as well as make a custom kernel.

I have the following /etc/make.conf:
Code:
BOOT_COMCONSOLE_SPEED=19200

# Ports options
.if ${.CURDIR:M*/usr/ports*}
# Disable any and all X11 where possible
WITHOUT_X11=YES
# Ports tend to use apache1.3 without this
WITH_APACHE2=YES
.endif

# added by use.perl 2008-06-10 16:32:11
PERL_VER=5.8.8
PERL_VERSION=5.8.8
This was followed by:
cd /usr/src
make buildworld
make kernel KERNCONF=mykern
make installworld

This is the resulting error:

Code:
install  -o root -g wheel -m 444   boot0 /boot/boot0sio
===> sys/boot/i386/btx (install)
===> sys/boot/i386/btx/btx (install)
===> sys/boot/i386/btx/btxldr (install)
===> sys/boot/i386/btx/lib (install)
===> sys/boot/i386/boot2 (install)
cc -Os  -fno-guess-branch-probability  -fomit-frame-pointer  -fno-unit-at-a-time  -mno-align-long-strings  -mrtd  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3  -DUFS1_AND_UFS2  -DFLAGS=0x80  -DSIOPRT=0x3f8  -DSIOFMT=0x3  -DSIOSPD=19200  -I/usr/src/sys/boot/i386/boot2/../../common  -I/usr/src/sys/boot/i386/boot2/../btx/lib -I.  -Wall -Waggregate-return -Wbad-function-cast -Wcast-align  -Wmissing-declarations -Wmissing-prototypes -Wnested-externs  -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings  -Winline --param max-inline-insns-single=100 -ffreestanding -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -m32 -march=i386  -S -o boot2.s.tmp /usr/src/sys/boot/i386/boot2/boot2.c
sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s
rm -f boot2.s.tmp
as  --32 -o boot2.o boot2.s
ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o boot2.out /usr/obj/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o
objcopy -S -O binary boot2.out boot2.bin
btxld -v -E 0x2000 -f bin -b /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr  -o boot2.ld -P 1 boot2.bin
btxld:No such file or directory
*** Error code 1

Stop in /usr/src/sys/boot/i386/boot2.
*** Error code 1

Stop in /usr/src/sys/boot/i386.
*** Error code 1

Stop in /usr/src/sys/boot.
*** Error code 1

Stop in /usr/src/sys.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
Any ideas?

I redid the csup to make sure I didn't miss anything.

Last edited by KernelPanic; 10th June 2008 at 08:00 PM.
Reply With Quote
  #2   (View Single Post)  
Old 10th June 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 507
Default

You have to install the kernel before world.
Reply With Quote
  #3   (View Single Post)  
Old 10th June 2008
KernelPanic KernelPanic is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default

Quote:
Originally Posted by DrJ View Post
You have to install the kernel before world.
make kernel does both a 'make buildkernel' and a 'make installkernel'


I'm not sure what is missing.

btxldr exists:
/usr/sbin/btxld

The btx file exists:
/usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx

boot2.ldr exists:
/usr/obj/usr/src/sys/boot/i386/boot2/boot2.ldr

boot2.ld exists:
/usr/obj/usr/src/sys/boot/i386/boot2/boot2.ld

boot2.bin exists:
/usr/obj/usr/src/sys/boot/i386/boot2/boot2.bin

So I'm confused about what exactly is generating the 'No such file or directory' message.
Reply With Quote
  #4   (View Single Post)  
Old 10th June 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 507
Default

Quote:
Originally Posted by KernelPanic View Post
make kernel does both a 'make buildkernel' and a 'make installkernel'
Really? Must be new with 7.
Reply With Quote
  #5   (View Single Post)  
Old 10th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

Just for clarity's sake, try make buildkernel and make installkernel as seperate commands. Humor us.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #6   (View Single Post)  
Old 11th June 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Default

Yeah, I'd like to know as well.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #7   (View Single Post)  
Old 11th June 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Code:
-Os
-fno-guess-branch-probability
-fomit-frame-pointer
-fno-unit-at-a-time
-mno-align-long-strings
your CFLAGS may be good for Ports but not for kernel, try these for kernel:
-O2 -fno-strict-aliasing -pipe -s

here you can check how to specify diffrent CFLAGS for kernel and Ports:
http://toya.net.pl/~vermaden/text/make.conf

Also, this is the proper schema for upgrading FreeBSD:
Code:
# cd /usr/src
# make buildworld
# make kernel KODIR=/boot/testing
# nextboot -k testing
# shutdown -r now
Code:
# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster -iU
// ( if kernel works ok then )
# mv /boot/kernel /boot/OLD
# mv /boot/testing /boot/kernel
// ( else build kernel again )
# shutdown -r now
Code:
// ( optional )
# cd /usr/src
# make delete-old
# make delete-old-libs
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #8   (View Single Post)  
Old 11th June 2008
enpey enpey is offline
Port Guard
 
Join Date: May 2008
Location: Newcastle, Australia
Posts: 33
Default

I was getting this problem a few months ago.
After building world and kernel and installing the kernel I then reboot into single user mode and:

cd /usr/src
make install
make installworld

and all works fine. Have done ~5 rebuild and install worlds using this, and all works fine now...
Reply With Quote
  #9   (View Single Post)  
Old 11th June 2008
KernelPanic KernelPanic is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default

Quote:
Originally Posted by enpey View Post
I was getting this problem a few months ago.
After building world and kernel and installing the kernel I then reboot into single user mode and:

cd /usr/src
make install
make installworld

and all works fine. Have done ~5 rebuild and install worlds using this, and all works fine now...

That worked.

I wonder what is so different from amd64 (which I've only done two installs for) vs i386 (which I've done dozens of installs for) that makes that step necessary?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 7.2 amd64 no sound erim FreeBSD General 5 3rd June 2009 07:54 AM
installworld fails - because I deleted master.passwd? TomAmundsen FreeBSD Installation and Upgrading 4 22nd September 2008 07:51 PM
Wine on FreeBSD 7.0 amd64 BlueJayofEvil FreeBSD Ports and Packages 13 29th July 2008 12:22 AM
NVIDIA driver fails to load, freebsd 7.0 mc_i2020 FreeBSD General 18 18th July 2008 01:12 PM
jdk16 plugins on FreeBSD 7 AMD64 ninjatux FreeBSD General 0 26th June 2008 07:55 PM


All times are GMT. The time now is 06:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick