Re: portupgrade failure
Hi, I have similar problem and find solution in portupgrade man page: -- Sometimes a database may get corrupt and the pkgtools commands start to abort due to segmentation fault. In such cases, run ``pkgdb -fu'' to rebuild the database, and the problems will go away. If the command failed itself, remove a database file (/var/db/pkg/pkgdb.db) and run it again. -- On Monday 19 June 2006 17:57, Elliot Finley wrote: After upgrading to the latest portupgrade: dns root:~#portupgrade -v portupgrade 2.0.1 (2006/06/18) I got a failure on 2 out of 4 boxes. Now when I use portversion, portupgrade, or pkgdb I get: backup root:/usr/ports#portversion [Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 34 packages found (-0 +0) Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ Any pointers on how to fix this would be appreciated. Thanks Elliot ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
if_ndis values setting problem.
Hello there, I have problem setting params to the if_ndis card. I'm using asus wl138g which is marvel chipset card. I've compiled the driver using ndisgen and the dmesg says the card is ok. When I try to do ifconfig ndis0 ssid SESS etc (with wep 128bit encryption) the led on the card blinks for a second and after that nothing happens. The ssid is empty, the encryption is WEP and all the values seems to be ok. #ifconfig ndis0 ssid MYSESS nwkey ...key here... mode shared Any ideas how ot fix that? I'm using fbsd-stable. 10x in advance! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Question about current rc scripts
Hello everybody, Before FreeBSD 6.1, I was able to write a rc script which modifies the rc.conf file. All rc scripts exectuted after this first one would use the new rc.conf then. To make this work, I put the script in /etc/rc.d/ and tagged it with BEFORE: rcconf. Unfortunately, rcconf has been removed in FreeBSD 6.1 (or -STABLE?). I have tried many different ways, like BEFORE:NETWORKING, and others. But none seems to work. I even overwrote rc.diskless, but still no luck. What is the correct way for 6-STABLE to achieve what I want to do? (i.e. write the rc.conf from a rc script) Thanks in advance, M. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
What is the correct way for 6-STABLE to achieve what I want to do? (i.e. write the rc.conf from a rc script) I thought rc.conf was simply a script that set some variables. If this is the case then you don't need to overwrite it - you simply need to make your script set the appropriate variables and then drop it in as a repplacement for rc.conf - hence no need to rewrite rc.conf at all. -pcf. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
Pete French wrote: What is the correct way for 6-STABLE to achieve what I want to do? (i.e. write the rc.conf from a rc script) I thought rc.conf was simply a script that set some variables. If this is the case then you don't need to overwrite it - you simply need to make your script set the appropriate variables and then drop it in as a repplacement for rc.conf - hence no need to rewrite rc.conf at all. -pcf. If your scripts name ends with .sh it will be sourced into the process and all variables set there will prevail (this feature only works in /etc/rc.d). If you do this you must not use the exit command anywhere in your script. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
I have investigated a bit more. Setting the variables can't work. As far as I can see, rc.conf is sourced from rc.subr. And every single script in /etc/rc.d/ sources rc.subr, so they reload the rc.conf file for each call. The rc scripts are being executed in a sub-shell though. So overwriting variables in any of them will have no effect on the following files. It does work for /usr/local/etc/rc.d though, but I really need it to execute before anything else. I made it work by overwriting rc.diskless (again). Stupid /me, rc.diskless does not follow the syntax for rc scripts. It's just a normal shell script :) Anyways, I would still be interested in the correct way to do it. M. Pete French schrieb: I thought rc.conf was simply a script that set some variables. If this is the case then you don't need to overwrite it - you simply need to make your script set the appropriate variables and then drop it in as a repplacement for rc.conf - hence no need to rewrite rc.conf at all. -pcf. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
Yes, I think this is the solution. It seems to depend on the filename, specifically the .sh extension. CODE (in /etc/rc): /etc/rc.d/*.sh) # run in current shell Thanks, I am testing this now. I'll post back as soon as I got results (1h or so...) M. [LoN]Kamikaze schrieb: If your scripts name ends with .sh it will be sourced into the process and all variables set there will prevail (this feature only works in /etc/rc.d). If you do this you must not use the exit command anywhere in your script. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
One question remains though: How can I make my script to be the very first rc script to be executed? M. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
On Tue, Jun 20, 2006 at 06:50:39PM +0200, M.Hirsch wrote: One question remains though: How can I make my script to be the very first rc script to be executed? Add appropriate BEFORE entries so it is before all unparented scripts. -- Brooks -- Any statement of the form X is the one, true Y is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 pgpm5p5J90Iuj.pgp Description: PGP signature
Re: Question about current rc scripts
As stated in my initial post, I used BEFORE: rcconf up to and including 6.0. So what is an appropriate BEFORE entry for 6-STABLE? Sorry, I really can't find any documentation on this issue, not in UPDATING and not in the mailing list archives either. Thanks, M. Brooks Davis schrieb: Add appropriate BEFORE entries so it is before all unparented scripts. -- Brooks ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
Setting the variables can't work. As far as I can see, rc.conf is sourced from rc.subr. And every single script in /etc/rc.d/ sources rc.subr, so they reload the rc.conf file for each call. Actually I was suggesting you overwrite rc.conf *itself* with the variable setting code - so every script which reloads it gets the variables set. Surely that would work ? Though it would mean your code would be run multiple times... -pete. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
On Tue, Jun 20, 2006 at 06:58:15PM +0200, M.Hirsch wrote: As stated in my initial post, I used BEFORE: rcconf up to and including 6.0. So what is an appropriate BEFORE entry for 6-STABLE? Sorry, I really can't find any documentation on this issue, not in UPDATING and not in the mailing list archives either. This no documentation because this isn't a supported action. Just start at the top of the output of rcorder /etc/rc.d.* and look at the scripts to see which ones of them aren't required by anything. Add BEFORE entries for all of them. -- Brooks -- Any statement of the form X is the one, true Y is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 pgpw8qlBzbhgo.pgp Description: PGP signature
Re: Question about current rc scripts
This is what I initially tried, but it didn't work due to a wrong BEFORE: tag. rcconf was removed from 6-STABLE, so my scripts didn't start at all anymore. Invalid dependencies seem to make rc-scripts not execute *at all* in 6-STABLE. (note taken) So far I think I got it working now. Thanks for your input! M. Pete French schrieb: Actually I was suggesting you overwrite rc.conf *itself* with the variable setting code - so every script which reloads it gets the variables set. Surely that would work ? Though it would mean your code would be run multiple times... -pete. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
On Tue, Jun 20, 2006 at 07:11:38PM +0200, M.Hirsch wrote: Pete French schrieb: Actually I was suggesting you overwrite rc.conf *itself* with the variable setting code - so every script which reloads it gets the variables set. Surely that would work ? Though it would mean your code would be run multiple times... This is what I initially tried, but it didn't work due to a wrong BEFORE: tag. rcconf was removed from 6-STABLE, so my scripts didn't start at all anymore. Pete is suggested that you put the code in /etc/rc.conf. It's just another shell script. -- Brooks -- Any statement of the form X is the one, true Y is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 pgpZEJtw5HoqU.pgp Description: PGP signature
Re: Question about current rc scripts
Ah, ok. I didn't get that correctly before. It's just another shell script - nice hack, thanks ;) M. Brooks Davis schrieb: Pete is suggested that you put the code in /etc/rc.conf. It's just another shell script. -- Brooks ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about current rc scripts
Another problem solved :) So when my script overwrote rc.conf, the file was already loaded and thus overwriting it had no effect. That's why it didn't work. (not with BEFORE: initrandom either). This must have changed somewhen between 6.0 and 6-STABLE because it did work in 6.0. Thanks vm. I'm going to publish a freebsd 6 remote deployment article on my blog after I got it working 100%. There really don't seem to be any good and recent guides for that out there... M. [LoN]Kamikaze schrieb: BTW, rc.subr only loads rc.conf if it hasn't already been loaded. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bridge.ko, sysctrl.conf and ifconfig_XXX_name, SCSI as a boot device
On 6/19/06, Todor Dragnev [EMAIL PROTECTED] wrote: Thanks, I will use if_bridge from now. Anyone have ideas about second problem? Maybe I must remove device usb from GENERIC config and recompile kernel ? This really is an FAQ. There are many ways. You can use the device.hintsfile to tie down where scsibus0 goes so that your SCSI disks are probed first. You can dynamically load umass.ko when you're using it. You can also take advantage of geom_label.ko (if you create labels on your filesystems (tunefs -L foo /dev/da0s1a, etc), then /dev/ufs/foo will appear. If you used almost any geom class, actually, the name of the disk gets virtualized to some extent. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
if_ndis for Marvell
Hello: I have two questions. The first regards support for the Broadcom BCM94318 wireless LAN adapter. When trying to compile the module for if_ndis using bcmwl5.inf and bcmwl5.sys, I get the following error; In file included from /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c:66: @/sys/bus.h:461:23: device_if.h: No such file or directory @/sys/bus.h:462:20: bus_if.h: No such file or directory In file included from /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c:75: @/dev/pci/pcivar.h:165:20: pci_if.h: No such file or directory Have these three files been removed from the source tree? Second, while googling for info on FreeBSD drivers for the Marvell Semiconductor 88E8036 Yukon PCI-E fast ethernet controller, I found reference to a if_myk.ko module, which I also don't find in the source tree. (pertinent information) [EMAIL PROTECTED] ~]$ uname -a FreeBSD sg1.sgc.org 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP i386 [EMAIL PROTECTED] ~]$ pciconf -lv ... [EMAIL PROTECTED]:0:0: class=0x02 card=0x0365107b chip=0x435111ab rev=0x10 hdr=0x00 vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)' device = '88E8036 Yukon PCI-E Fast Ethernet Controller' class= network subclass = ethernet [EMAIL PROTECTED]:4:0: class=0x028000 card=0x000617f9 chip=0x431814e4 rev=0x02 hdr=0x00 vendor = 'Broadcom Corporation' class= network ... Any pointers, help, or explainations would be greatly appreciated. TIA, Patrick ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 'make release' questions...
Andrew Li wrote: First, is there any way to instruct 'make release' to just build certain packages (and their dependencies) for inclusion in the release instead of a blanket NOPORTS? There's no need for us spend two/three days From my experience with playing with make release, you can do it. First build your packages with make package or pkg_create to get a package tarball. Then put the packages into your_path/release/R/cdrom/disc1 into a directory call packages. Create the package directory structure, like packages/All, packages/your_package_category, ... O.k. did that (and generated a new INDEX file using scrubindex.pl) However in sysinstall, after selecting the packages and selecting Install it remarks that: This is disc 1. Package $package_name is on Disc 0. Would you like to switch discs now? Disk 0? After that, modify the INDEX file so it only contain your packages (plus dependencies). Then run mkisomages.sh to create your ISO. So I have used scrubindex.pl to generate a INDEX of just our packages, however, I have to generate a new master INDEX-6 file to account for the fact that we build our packages w/o x11 support and with GSSAPI. (so scrubindex.pl can then strip the rest out) However after a 'make index' things like mtr-nox11 are included into INDEX-6, but not openssh-gssapi? The only difference is that the -gssapi moniker is declared as a GSSAPI_SUFFIX make varaible vs. the normal PKGNAMESUFFIX. I'll send a version of this email to ports@ to get their input. That's all from memory, may contain rough edges, hope it helps anyway. Thanks... The base release is done, it's just the pesky frills that take forever to resolve... :) Best Wishes - Peter signature.asc Description: OpenPGP digital signature
Re: if_ndis for Marvell
On Tue, Jun 20, 2006 at 04:04:52PM -0500, Patrick Bowen wrote: Hello: I have two questions. The first regards support for the Broadcom BCM94318 wireless LAN adapter. When trying to compile the module for if_ndis using bcmwl5.inf and bcmwl5.sys, I get the following error; In file included from /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c:66: @/sys/bus.h:461:23: device_if.h: No such file or directory @/sys/bus.h:462:20: bus_if.h: No such file or directory In file included from /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c:75: @/dev/pci/pcivar.h:165:20: pci_if.h: No such file or directory Have these three files been removed from the source tree? Second, while googling for info on FreeBSD drivers for the Marvell Semiconductor 88E8036 Yukon PCI-E fast ethernet controller, I found reference to a if_myk.ko module, which I also don't find in the source tree. http://lists.freebsd.org/pipermail/freebsd-net/2006-January/009543.html It seems that the driver is not stable but it's the only driver for Yukon II. -- Regards, Pyun YongHyeon ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: if_ndis for Marvell
Pyun YongHyeon wrote: On Tue, Jun 20, 2006 at 04:04:52PM -0500, Patrick Bowen wrote: Hello: I have two questions. The first regards support for the Broadcom BCM94318 wireless LAN adapter. When trying to compile the module for if_ndis using bcmwl5.inf and bcmwl5.sys, I get the following error; In file included from /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c:66: @/sys/bus.h:461:23: device_if.h: No such file or directory @/sys/bus.h:462:20: bus_if.h: No such file or directory In file included from /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c:75: @/dev/pci/pcivar.h:165:20: pci_if.h: No such file or directory Have these three files been removed from the source tree? Second, while googling for info on FreeBSD drivers for the Marvell Semiconductor 88E8036 Yukon PCI-E fast ethernet controller, I found reference to a if_myk.ko module, which I also don't find in the source tree. http://lists.freebsd.org/pipermail/freebsd-net/2006-January/009543.html It seems that the driver is not stable but it's the only driver for Yukon II. Thanks! That takes care of the wired connection. Now all I have to do is get the wireless to work. Regarding the original subject line, the ndis was, of course, for the Broadcom device. I tried a different .inf file after googling some more (bcmwl5a.inf), and this time I was able to produce an if_ndis.ko file. I loaded both the ndis.ko and if_ndis.ko modules, but got nothing...zip, zilch, zero. Nothing in dmesg, nothing in ifconfig...I must still be doing something wrong... Patrick ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]