DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th February 2009
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default 4.5 -current issue

I have been following -current and have run into an issue
when trying to upgrade to the latest.
After recompiling the new kernel and rebooting I get this error
Quote:
Script started on Fri Feb 27 17:35:59 2009
# ifconfig
ifconfig: SIOCGIFNETMASK_IN6: Device not configured
ifconfig: SIOCGIFAFLAG_IN6: Device not configured
ifconfig: SIOCGIFALIFETIME_IN6: Device not configured
inet6 ::1
ifconfig: SIOCGIFNETMASK_IN6: Device not configured
ifconfig: SIOCGIFAFLAG_IN6: Device not configured
ifconfig: SIOCGIFALIFETIME_IN6: Device not configured
inet6 fe80::1%4 scopeid 0x4
ifconfig: SIOCGIFNETMASK: Device not configured
inet 127.0.0.1 netmask 0x0
# ^D

Script done on Fri Feb 27 17:36:07 2009
going back the old kernel and this error goes away.


I have always followed
compile new kernel
compile userland

From some googling it seems that my kernel and userland
are out of sync.. however;
Since the 2 are out of sync I am a bit scared to take
the 2 hours to rebuild userland to see if the error corrects itself..

Thoughts.. ?
rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #2   (View Single Post)  
Old 27th February 2009
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

-current is a moving target. Yes, you are out-of-sync. But ... how old is this elderly kernel? Days? Weeks? Months? Unless your userland issues a new syscall that is not in your kernel, or, issues a new option to a syscall that is not in your kernel, you should not see significant problems. If the older kernel is only days old, then you should feel confident.

Note: right now the ports tree is locked, 4.5-beta has completed, final bugs are being worked on (the src tree is effectively locked except for 4.5-release work), and 4.5-release is within days of being tagged.
Reply With Quote
  #3   (View Single Post)  
Old 28th February 2009
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by jggimi View Post
-current is a moving target. Yes, you are out-of-sync. But ... how old is this elderly kernel? Days? Weeks? Months? Unless your userland issues a new syscall that is not in your kernel, or, issues a new option to a syscall that is not in your kernel, you should not see significant problems. If the older kernel is only days old, then you should feel confident.

Note: right now the ports tree is locked, 4.5-beta has completed, final bugs are being worked on (the src tree is effectively locked except for 4.5-release work), and 4.5-release is within days of being tagged.
jggimi
Thx for response..
Yes Sir.. -current is always a moving target.. seems like it move faster
only when I choose to update.. ;-)

the new kernel is 4 days old..

So I guess I will reboot with new kernel and rebuild the binaries..
however; this means that I will physically have to be at my other
remote box for the same issue..

Dumb question..
If I rebuild the binaries with the "old kernel" dated Jan 1,2009
then reboot with the new kernel..
Will that work..???

thx rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #4   (View Single Post)  
Old 28th February 2009
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

Ah. Now I know how out-of-sync you are. There is approximately 2 months between kernels. There were many new features added since 2008.
Quote:
If I rebuild the binaries with the "old kernel" dated Jan 1,2009
then reboot with the new kernel..
Will that work..???
Maybe. Is your architecture common? If yes ... must you use a custom kernel? If no .... why not grab a recent snapshot kernel and see if it works for you?
Reply With Quote
  #5   (View Single Post)  
Old 28th February 2009
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

I will try the snapshot kernel..
Thank you..

Don't think I have any special hardware but
here is my dmesg
Quote:
OpenBSD 4.4-current (GENERIC) #0: Tue Nov 18 12:02:45 CST 2008
root@bsdbox.kewlcat.com:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: VIA C7-D Processor 1500MHz ("CentaurHauls" 686-class) 1.51 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,S SE3,xTPR
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
real mem = 468152320 (446MB)
avail mem = 444121088 (423MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/24/07, BIOS32 rev. 0 @ 0xf9ef0, SMBIOS rev. 2.3 @ 0xf0000 (31 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 08/24/2007
bios0: pc1 ID-PCM7G
apm0 at bios0: Power Management spec V1.2 (slowidle)
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xd1a4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfd110/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x10000
cpu0 at mainbus0: (uniprocessor)
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA CN700 Host" rev 0x00
viaagp0 at pchb0v3,
agp0 at viaagp0: aperture at 0xe8000000, size 0x10000000
pchb1 at pci0 dev 0 function 1 "VIA CN700 Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA CN700 Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA PT890 Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA CN700 Host" rev 0x00
pchb5 at pci0 dev 0 function 7 "VIA CN700 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "VIA S3 Unichrome PRO IGP" rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 10 function 0 "Intel PRO/1000GT (82541GI)" rev 0x05: irq 10, address 00:0e:0c:c6:58:50
pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST380215AS>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: <SONY, CD-RW CRX320EE, RYK4> ATAPI 5/cdrom removable
cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide1: channel 1 disabled (no drives)
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 5
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 5
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 11
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 11
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 10
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL5
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x60: irq 10
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auvia0
rl0 at pci0 dev 19 function 0 "Realtek 8139" rev 0x10: irq 10, address 00:1d:7d:26:2f:8a
rlphy0 at rl0 phy 0: RTL internal PHY
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "VIA UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "VIA UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "VIA UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "VIA UHCI root hub" rev 1.00/1.00 addr 1
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8712F rev 8, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask ff65 netmask ff65 ttymask ffff
uhidev0 at uhub4 port 1 configuration 1 interface 0 "DELL DELL USB Keyboard" rev 1.10/1.00 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub4 port 1 configuration 1 interface 1 "DELL DELL USB Keyboard" rev 1.10/1.00 addr 2
uhidev1: iclass 3/0, 2 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
wskbd1: disconnecting from wsdisplay0
wskbd1 detached
ukbd0 detached
uhidev0 detached
uhid0 detached
uhid1 detached
uhidev1 detached
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #6   (View Single Post)  
Old 28th February 2009
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

New snapshot gave the same error..

I did try to rebuild the binaries with the new kernel
I had compiled 4 days ago enabled but got an error..
a stop error..

I will download the latest snapshot source and try again..

rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #7   (View Single Post)  
Old 28th February 2009
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

updated src and got a compile error when building userland..
so.. I will just reload with the latest snapshot..
Quote:
===> csu
===> csu/i386
cc -O2 -pipe -DLIBC_SCCS -fno-omit-frame-pointer -I/usr/src/lib/csu/i386/../common_elf -I/usr/src/lib/csu/i386 -c -DCRT0 -fpie /usr/src/lib/csu/i386/crt0.c -o crt0.o
cc1: error: unrecognized option `-fpie'
*** Error code 1

Stop in /usr/src/lib/csu/i386 (line 17 of /usr/src/lib/csu/i386/Makefile).
*** Error code 1

Stop in /usr/src/lib/csu (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/src/lib (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #8   (View Single Post)  
Old 28th February 2009
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,263
Thanked 182 Times in 149 Posts
Default

I don't understand why all this recompiling is needed, just install the snapshot using the snapshot installation file sets.
If you track -current you should be subscribed to the OpenBSD source-changes mailing lists.

Sometimes there is what is called a flag day, meaning a library version is bumped. This forms a major hurdle to recompile your system. Developers know how to deal with us. Non-developers just install a new snapshot from the pre-compiled binary snapshot installation
file sets.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 28th February 2009 at 03:07 AM. Reason: Flag day explained
Reply With Quote
  #9   (View Single Post)  
Old 28th February 2009
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by J65nko View Post
I don't understand why all this recompiling is needed, just install the snapshot using the snapshot installation file sets.
If you track -current you should be subscribed to the OpenBSD source-changes mailing lists.
Thx, I will look into this

Quote:
Sometimes there is what is called a flag day, meaning a library version is bumped. This forms a major hurdle to recompile your system. Developers know how to deal with us.
I really need to get on the mailing lists..
Quote:
Non-developers just install a new snapshot from the pre-compiled binary snapshot installation
file sets.
This machine wears a lot of hats , like 3 websites , firewall and smtp gateway for 2 domains...
There is an awful lot of reconfiguring to do when I reload it with a
snapshot..

I have never done an upgrade but if that is the way to go to avoid
all the reconfiguration.. then I am willing to give it a go..
Pardon my ignorance on this one..

rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
Old 28th February 2009
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

No flag days recently. The "Following -current" FAQ lists each and every architectural change, and what to do about it, if you are updating from source..

Roundcat, you may have stated your older kernel was from Jan 1, but the dmesg you posted was built November 18. There have been three changes in the Following -current FAQ since then, but none of those three look flag day-like to me. Flag days require some sort of bootstrap build when updating from source rather than from binaries.

Even so, J65's recommendation -- installing from binary snapshot -- is a good one, as we don't know how many architectural changes you've missed since you first moved to -current.
Reply With Quote
Old 28th February 2009
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by jggimi View Post
No flag days recently. The "Following -current" FAQ lists each and every architectural change, and what to do about it, if you are updating from source..

Roundcat, you may have stated your older kernel was from Jan 1, but the dmesg you posted was built November 18. There have been three changes in the Following -current FAQ since then, but none of those three look flag day-like to me. Flag days require some sort of bootstrap build when updating from source rather than from binaries.

Even so, J65's recommendation -- installing from binary snapshot -- is a good one, as we don't know how many architectural changes you've missed since you first moved to -current.
My bad on the kernel.. I had backed up the kernel the *last* time I tried this
and it was on January 1 and again I tried on Feb 23.

I will go find the info J65 recommended regarding the non-develper path..

Guys.. thanks so much for your help here..
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
Old 28th February 2009
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

Nothing to look up... all you need to do, each time you want to upgrade -current, is:
  1. Check the Following -current FAQ, noting changes between your previous update and today.
  2. Upgrade to the most recent snapshot
  3. Run sysmerge(8)
  4. Make any manual changes necessary that were not covered by sysmerge -- this should be very rare.
I build from source, because I use a custom kernel, but upgrading snap-to-snap is less time consuming.

Whether you build from source, or use an upgrade cycle, reviewing the Following -current FAQ is mandatory prior to build or upgrade!

Subscribing to the source-changes mailing list is very helpful for -current users. This list gets an e-mail containing the CVS log entry for every patch made to the OS. You may find subscribing to the daily or weekly summary will be more convenient than getting an individual e-mail for every patch a developer commits.

Snap-to-snap use of -current is very popular.

NOTE: During key development cycles, the developers will create snapshots with uncommitted patches in them, in order to have these patches tested by a large population of users. So snapshots are sometimes "beyond" -current.
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
/usr is full (OpenBSD 4.5 current) valorisa OpenBSD Packages and Ports 7 10th June 2009 01:28 PM
OpenBSD4.5 current to current... valorisa OpenBSD Installation and Upgrading 7 6th June 2009 09:26 AM
Anyone Using FreeBSD-8-Current? MetalHead FreeBSD General 3 31st March 2009 06:50 PM
Looks like -CURRENT has a new toy.. BSDfan666 OpenBSD General 21 27th October 2008 06:36 PM


All times are GMT. The time now is 03:41 AM.


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