From owner-freebsd-questions@FreeBSD.ORG Sat Jan 20 15:16:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA14916A401 for ; Sat, 20 Jan 2007 15:16:56 +0000 (UTC) (envelope-from lr101fc@yahoo.co.uk) Received: from smtp002.mail.ukl.yahoo.com (smtp002.mail.ukl.yahoo.com [217.12.11.33]) by mx1.freebsd.org (Postfix) with SMTP id 4044C13C469 for ; Sat, 20 Jan 2007 15:16:56 +0000 (UTC) (envelope-from lr101fc@yahoo.co.uk) Received: (qmail 11712 invoked from network); 20 Jan 2007 14:50:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Received:X-YMail-OSG:Date:From:To:Subject:Message-Id:Reply-To:Organization:X-Mailer:X-Operating-System:User-Agent:X-Face:X-Face:X-Face:X-Face:X-Face:X-Face:Mime-Version:Content-Type:Content-Transfer-Encoding; b=dfCB20JGskMON4+l628DBh4E/Q/r7nz1gWvISD94NAAhsLilJVy4et3V47i2gJ6eCzwCKtZkszXtef1FBC4BJ7D+UQJ79J1+Xq0baZPwUTNndK5IH6pBJcBfO2rzWrzMdrOu3zLkWdpXR0Uwb44pzlJ7FH8SN2g4x7rfxF19i18= ; Received: from unknown (HELO smtp.mail.yahoo.co.uk) (lr101fc@89.247.87.20 with plain) by smtp002.mail.ukl.yahoo.com with SMTP; 20 Jan 2007 14:50:14 -0000 X-YMail-OSG: 2TtLXRMVM1lM9x7YBi91I0h_0b29oKAR6QJppbH.ritGdWwOKtyvPlTYXk.6ePg8sADFqxWenjrwjHjJp7y94BaRI9DiwY8pvMe5oZghSTwd2SXHw_iQei.thHOGA3ZHu9.NWvay9X4OdH2KYZ8SchQ.CFXoBzt94l_7CKndksFcHL2LnfHgWwwdjA-- Date: Sat, 20 Jan 2007 15:50:11 +0100 From: Hanno Krusken To: freebsd-questions@freebsd.org Message-Id: <20070120155011.0841eb14.lr101fc@yahoo.co.uk> Organization: ix260.net X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.8; i386-portbld-freebsd6.2) X-Operating-System: FreeBSD UNIX User-Agent: X11 Sendmail + ClamAV X-Face: M$-evil is a virus X-Face: M$-evil is only good if you like worms X-Face: M$-windows is out of date X-Face: don't use M$.... trash it and go UNIX ;o) X-Face: FreeBSD UNIX it's faster + safer X-Face: Users against TCPA crash RFID chips Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Releng-6.2 upgrade HINT for iwi0 user !! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lr101fc@yahoo.co.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 15:16:57 -0000 Hi all, well this posting is send before, part of, the specific upgrade hint regarding the iwi0 driver ! now, FreeBSD-6.1-RELENG uses /usr/ports/net/iwi-firmware, but after the upgrade to FreeBSD-6.2-RELENG iwi0 will NOT work, you need to prefetch the port file /usr/ports/net/iwi-firmware-kmod !! you need to "make fetch" the distfile "ipw2200-fw-3.0.tgz" befor you "make buildworld" or you will not get your Wlan working if you relay on iwi0 to do your upgrades !!! after fetching the "ipw2200-fw-3.0.tgz" file place it in /usr/ports/distfiles, rebuild the system to FreeBSD-6.2, install /usr/ports/net/iwi-firmware-kmod with kernel settings: ------------------------ # Wireless NIC cards options BRIDGE device if_bridge device wlan # 802.11 support device wlan_wep # WEP crypto device wlan_ccmp device wlan_tkip device wlan_xauth device wlan_acl #device an # Aironet 4500/4800 802.11 wireless NICs. device awi # BayStack 660 and others device iwi # Intel/PRO 2915abg miniPCI device firmware # Intel/PRO 2915abg miniPCI load Firmware device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. ------------------------- and you are done !!! the port "/usr/ports/net/iwi-firmware" is no longer needed, and can be deleted !! the rest of this posting is just a step by step way of doing the bulidworld upgrade.... specially for the novice of you, please read carefully !! OK, this is a "the step-by-step GUIDE" to do a FreeBSD-RELENG-upgrade + BUILDWORLD process, using CVSUP I have seen a lot of "buildworld" questions, and even more tips, on this news-group and now, finally I provide my "GUIDE" for all FreeBSD-RELENG-X.xx, builds, patches, ports-upgrades, in hope it will be help full for any one who still has problems building the system.......... to make a "BUILDWORLD" as fast, safe and easy as possible using the CVSUP way ! You will find your answer to most of your questions below......... NOTE !!! I only pull together and compress all the tips and information's out of news-groups, BSD-handbook, O'Reilly's publications and most my own try-and-error experiences. Even if it seams not quite perfect for some BSD-Gurus, but it happily dose the job for me, highly customised kernel and 564-installed-ports in one go, with out trouble. I used this steps for years now on all FreeBSD-releng-4.8, 4.9, 4.10, 4.11, 5.4, 5.5, 6.0, 6.1, 6.2 and on all patch levels. (well 4.x wont's it the old way, but 5.x and 6.x sweeps flawless ahead) Recently upgraded my Laptop from FreeBSD-6.1-p12 to FreeBSD-6.2 with out any problems, even with gcc41 for the ports............ promised ;o) Usually CVSUP the source, fetch the distfiles and e-mails in a pub with WiFi WLan down the road on my Laptop, have a beer or two, compile, build, install the rest on the way home and over night if needed. No joke, I have no DSL, ISDN or phone at home but it works sweet for me, beer taste better than a phone bill ;o) and keeps my system up-to-date as well. Now to make it even more convenience to fetch it all, using "fastest_cvsup" for the source is a treat, but to keep it simple in this "guide" I'll only describe the basic way. (at the end of this mail you'll find a small script to CVSUP with "fatetest_cvsup") any way ;o) Over all, a "buildworld" or "upgrade" with this guide will only work if your config files are OK before you carry on to follow this "guide": !! Make sure the following files are looked over and work sweet !!!! you'll run in to a lot of error messages, if not crafted carefully to suit your machine!! you have to tweak this files first, to match your system, before you even can think about calling a buildworld-step out of this guide !!! build a customs kernel first and you get in to it. If your machine boots up with your own kernel, give it a go........ /etc/make.conf /usr/src/sys/i386/conf/YOUR-KERNEL-FILE /etc/standard-supfile /etc/ports-supfile ### STEP-BY-STEP the stupid way, but easy as that "1+2=3a" or "1+2=3b" ............ ;o) ### ### 1.) FETCHING SRC-SOURCE BY CVSUP, CLEANING SYSTEM AND RUNNING BUILDWORLD !! ### 2.) BOOT UP IN SINGLE MODE, MERGEMASTER AND INSTALLWORLD !! ### 3-a.) use for: RELEASE-PATCH-UPGRADE + DAILY-PORTS-UPGRADE AND FINISH !! ### 3-b.) or use for: FULL-RELEASE-UPGRADE + FULL-PORTS-UPGRADE AND FINISH !! ### ### BUILDWORLD PROCESS WITH CVSUP: ### "guide" for system upgrade: ### all action as "root" or "su" to root ;o) ###---------------------- ### 1.) FETCHING SRC SOURCE BY CVSUP, CLEANING SYSTEM AND RUNNING BUILDWORLD: # cvsup -g -L 2 /etc/standard-supfile ### (you need to be online for this one to fetch the "source") # cd /usr/obj # chflags -R noschg * # rm -rf * # cd /usr/src # make cleanworld # make buildworld # make buildkernel KERNCONF=YOUR-KERNEL-FILE # make installkernel KERNCONF=YOUR-KERNEL-FILE # reboot ###---------------------- ### 2.) BOOT UP IN SINGLE MODE, MERGEMASTER AND INSTALLWORLD !!! # hit the if boot up delay counter starts !! # boot -s # fsck -p # mount -u / # mount -a # cd /usr/src # adjkerntz -i # cd /usr/src # mergemaster -p ### pre-buildworld mode, only essential files ! # make installworld # make delete-old # cp -Rp /etc /etc.old # mergemaster -cv ### do all changes as needed, take your time and think, redo every step if unsure !!! ... or you can hack the files by hand .... # reboot ###----------------------- ### 3-a.) use FOR RELEASE-PATCH-UPGRADE, DAILY-PORTS-UPGRADE AND FINISH !! ### BOOT UP IN NORMAL MODE, PORTS UPGRADE AND FINISH !!! ### open a "xterm" if running in X11 # su # Password: # uname -a # cd /usr/src # make delete-old-libs # make clean # cvsup -g -L 2 /etc/ports-supfile ### (you need to be online for this one to fetch the "ports collection") # cd /usr/ports # make fetchindex ### (or "make index" but takes time) # portupgrade -rRaF ### (you need to be online for this one to fetch the "distfiles" SKIP THIS STEP IF PERMANENT ONLINE) # portupgrade -rRa ### (you can go offline for this one now) ### RESTART X11 and/or boot !!! FINISHED :o) ###----------------------- ### 3-b.) FOR FULL-RELEASE-UPGRADE, AND FULL-PORTS-UPGRADE AND FINISH !!! ### (AFTER RELEASE UPGRADE) -> after FreeBSD upgrade from 5.4 to 5.x, 6.x or newer !! # cvsup -g -L 2 /etc/ports-supfile ### (you need to be online for this one to fetch the "ports collection") # cd /usr/ports # make fetchindex ### (or "make index" but takes time) # portupgrade -rRafF ### (you need to be online for this one to fetch the "distfiles" SKIP THIS STEP IF PERMANENT ONLINE) # portupgrade -afk ### (you can go offline for this one now) # pkgdb -uf && cd /usr/ports/lang/pyton && make upgrade-side-packages # pkgdb -F # reboot ### FINISHED :o) --------------------------------------------------- ### my "/etc/cvsup-new" script called out of my X11 BlackBox-menu and for daily use: --------------------------------------------------- [submenu] (CVS upgrade...) {} [exec] (cvs-new) {sudo -S xterm -e /etc/cvs-new} [exec] (cvs src) {sudo -S xterm -e cvsup /etc/standard-supfile} [exec] (cvs ports) {sudo -S xterm -e cvsup /etc/ports-supfile} [exec] (cvs doc) {sudo -S xterm -e cvsup /etc/doc-supfile} [exec] (fetch portupgrade) {xterm -sb -pob -e sudo -S portupgrade -rRaF} [exec] (portupgrade -rRa) {xterm -sb -pob -e sudo -S portupgrade -rRa} [exec] (pkgdb -F) {xterm -sb -pob -e sudo -S pkgdb -F} [end] ---"/etc/cvsup-new"----------------------------- #!/bin/sh if SERVER=`fastest_cvsup -q -c uk,dk,de`; then cvsup -h $SERVER /etc/standard-supfile fi if SERVER=`fastest_cvsup -q -c uk,dk,de`; then cvsup -h $SERVER /etc/ports-supfile fi ---------------------------------------------------- good luck.... have fun......... ;o) PS. I'm not listening to "stupid destructive critics" ...... winching and carrying on playing with M$-WinVirus on there own !!! ......... But I'll be open for constructive tips, tweak this GUIDE to enrich the way of FreeBSD for every one !!! ...... thanks ;o) XXX Hanno Krusken ___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html