From owner-freebsd-mobile@FreeBSD.ORG Tue Jan 16 15:22:09 2007 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F6CB16A407 for ; Tue, 16 Jan 2007 15:22:09 +0000 (UTC) (envelope-from lr101fc@yahoo.co.uk) Received: from smtp010.mail.ukl.yahoo.com (smtp010.mail.ukl.yahoo.com [217.12.11.79]) by mx1.freebsd.org (Postfix) with SMTP id 12CA813C468 for ; Tue, 16 Jan 2007 15:22:08 +0000 (UTC) (envelope-from lr101fc@yahoo.co.uk) Received: (qmail 40426 invoked from network); 16 Jan 2007 14:55:28 -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=3kp1u2IgI0lap07i3FGcAlHBY3dCq/uAO5YOqokeJ+cwC0raUPHe8n99hmlxWnSV5RQc0Jr6k6y52YYHbrvGOHWvjY/YC5GGz8GAaE7MZiz2eVmyHodDPC6LEs4nI5k3qLD/b3ni2DNsiB8zcFSZlXzBBLso7+quLA8naxnAJ1U= ; Received: from unknown (HELO smtp.mail.yahoo.co.uk) (lr101fc@89.247.126.63 with plain) by smtp010.mail.ukl.yahoo.com with SMTP; 16 Jan 2007 14:55:23 -0000 X-YMail-OSG: 0rDD.U0VM1kSYw1sTh7i5xiW99oeV_XpwRkJpZ0xVS1cawbkZc8bmhydGh.Tvv3ZPxePKO7UFCrbWYQPKNnKa.roDlRmVUlDXQn6Jbz_LkZmshCOaCcEvwZX7H7SNPAICKyGmD2fSuwg Date: Tue, 16 Jan 2007 15:55:19 +0100 From: Hanno Krusken To: freebsd-mobile@freebsd.org Message-Id: <20070116155519.f933b83e.lr101fc@yahoo.co.uk> Organization: ix260.net X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.7; i386-portbld-freebsd6.1) 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-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lr101fc@yahoo.co.uk List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 15:22:09 -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 and you are done !!! 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 520-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 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-5.4-p15 to FreeBSD-5.5-p1 and a FreeBSD-6.0 with out any problems, it will work for FreeBSD-6.1 and above as well............ 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