Re: "Distributions" are missing from home burnt CD
Fair enough. On Aug 1, 2011, at 10:22 PM, Robert Simmons wrote: > On Mon, Aug 1, 2011 at 11:17 PM, Ryan Coleman > wrote: >> Is portsnap installed? I was going with the effed up installer route. :) >> >> This works - I tried it when I wrote up the directions. > > I assume that if the machine boots into the OS, that base is installed > and portsnap is in base. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: "Distributions" are missing from home burnt CD
On Mon, Aug 1, 2011 at 11:17 PM, Ryan Coleman wrote: > Is portsnap installed? I was going with the effed up installer route. :) > > This works - I tried it when I wrote up the directions. I assume that if the machine boots into the OS, that base is installed and portsnap is in base. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: "Distributions" are missing from home burnt CD
Is portsnap installed? I was going with the effed up installer route. :) This works - I tried it when I wrote up the directions. On Aug 1, 2011, at 10:14 PM, Robert Simmons wrote: > On Mon, Aug 1, 2011 at 10:37 PM, Ryan Coleman > wrote: >> Distributions, by nature, shouldn't be on the disc... they are outdated the >> moment they are made into an ISO. >> >> run these commands: >> >> These are written assuming you are in as root. >> >> # ftp ftp://ftp3.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz >> This is a 50MB file. It will take some time. I have found ftp3.freebsd.org >> to be the fastest server in the US. >> # mkdir /usr/ports >> # chown root:wheel /usr/ports >> # tar -xzf ./ports.tar.gz -C /usr/ports/ >> >> Capital C is required there... it will shift you to the folder you need. >> You can now build your programs as you need to. >> /usr/ports/shells/bash* >> >> This is also the most current version of the ports since you are getting it >> straight off the server. > > Unless I'm missing something completely, portsnap makes sure that you > always have the latest ports, and it verifies the integrity of the > files that it transfers using a secure key. Your method has no such > check, so I would say you shouldn't do it that way or recommend that > method to others. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
forcing TLS auth in /usr/ports/qmail-tls install
Hi all, Not sure if this is the right spot to ask, but it seems to be particularly pertaining to FreeBSD installations. So here I am. I'm trying to install qmail-tls. The installation is successful - almost right out of the ports. Now I'm trying configure qmail such that only TLS auth is allowed through from the mail client. Digging through the previous related forums, I hope to find the clean solution via this route: http://qmail.jms1.net/tls-auth.shtml It mentions that the config can be put in /service/smtp/run, which in the FreeBSD context it does not exist. I tried to set similar environment variables before calling tcpserver, but it does not work either. Can someone advise what is the equivalent in FBSD8.1? Much appreciated. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: "Distributions" are missing from home burnt CD
On Mon, Aug 1, 2011 at 10:37 PM, Ryan Coleman wrote: > Distributions, by nature, shouldn't be on the disc... they are outdated the > moment they are made into an ISO. > > run these commands: > > These are written assuming you are in as root. > > # ftp ftp://ftp3.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz > This is a 50MB file. It will take some time. I have found ftp3.freebsd.org to > be the fastest server in the US. > # mkdir /usr/ports > # chown root:wheel /usr/ports > # tar -xzf ./ports.tar.gz -C /usr/ports/ > > Capital C is required there... it will shift you to the folder you need. > You can now build your programs as you need to. > /usr/ports/shells/bash* > > This is also the most current version of the ports since you are getting it > straight off the server. Unless I'm missing something completely, portsnap makes sure that you always have the latest ports, and it verifies the integrity of the files that it transfers using a secure key. Your method has no such check, so I would say you shouldn't do it that way or recommend that method to others. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: "Distributions" are missing from home burnt CD
On Mon, Aug 1, 2011 at 10:02 PM, Grant Walter wrote: > Hi guys, > > I burned a CD of the LiveFS image and my installation failed. I then tried > installing from the Disk 1 image and the install succeeded. > > My problem is that there are no "Ditstributions" on the disk. I don't even > have bash now. :( > I have searched all over but cannot find a file that contains the > distributions. > > Thanks for the help!!! There are a couple of ways that you can get bash and other software. First, you can use sysinstall. Read section 2.10.11 "Install Packages" in the Handbook. It can be accessed here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html Or, you can install the ports collection which also contains bash and lots of other software. To install the ports collection use portsnap. You can read about it in the Handbook section 24.3 "Portsnap: A Ports Collection Update Tool". That can be accessed here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-portsnap.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: "Distributions" are missing from home burnt CD
Distributions, by nature, shouldn't be on the disc... they are outdated the moment they are made into an ISO. run these commands: These are written assuming you are in as root. # ftp ftp://ftp3.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz This is a 50MB file. It will take some time. I have found ftp3.freebsd.org to be the fastest server in the US. # mkdir /usr/ports # chown root:wheel /usr/ports # tar -xzf ./ports.tar.gz -C /usr/ports/ Capital C is required there... it will shift you to the folder you need. You can now build your programs as you need to. /usr/ports/shells/bash* This is also the most current version of the ports since you are getting it straight off the server. -- Ryan On Aug 1, 2011, at 9:02 PM, Grant Walter wrote: > Hi guys, > > I burned a CD of the LiveFS image and my installation failed. I then tried > installing from the Disk 1 image and the install succeeded. > > My problem is that there are no "Ditstributions" on the disk. I don't even > have bash now. :( > I have searched all over but cannot find a file that contains the > distributions. > > Thanks for the help!!! > > -Grant___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
"Distributions" are missing from home burnt CD
Hi guys, I burned a CD of the LiveFS image and my installation failed. I then tried installing from the Disk 1 image and the install succeeded. My problem is that there are no "Ditstributions" on the disk. I don't even have bash now. :( I have searched all over but cannot find a file that contains the distributions. Thanks for the help!!! -Grant___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Xorg at 100%CPU when browser is on
"C. P. Ghost" wrote: > ... when mplayer plays some (rare) video files. > > Xorg then stays at 100% CPU, and it is impossible to kill it, > neither from the inside, nor from the outside (logged in via > ssh) with SIGKILL. Only a reboot helps here. An unkillable process is almost certainly hung in a driver, and in this case I would strongly suspect it is a video driver. Can you break to KDB (or get a dump) and get a ps listing and a traceback of the hung process? That may enable someone familiar with the particular driver involved to debug it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Xorg at 100%CPU when browser is on
On Mon, 1 Aug 2011, C. P. Ghost wrote: Running: FreeBSD 8.2-STABLE #0 r222832 amd64 with xorg-server-1.7.7_1,1 xorg-drivers-7.5.1 and the radeonhd driver: radeonhd is defunct. Everything it does should be done better by the radeon driver from xf86-video-ati. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Phenom II 975 BE shows 0 celsius
On Monday 01 August 2011 15:52:30 Matthew D. Fuller wrote: > On Sun, Jul 31, 2011 at 09:28:29PM -0300 I heard the voice of > > Mario Lobo, and lo! it spake thus: > > Unfortunately this Mobo died and only found AM3 boards for which my > > phenom 955 doesn't fit. > > Not that it helps you now, but the 955 _is_ perfectly compatible with > AM3. It's only the initial 920 and 940 that were AM2-only. I was just following this: http://support.amd.com/us/kbarticles/Pages/CPU-6-socket-am2-plus-phenom-ii- compatibility-alert.aspx -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: Linux Binary Compatibility: Libpam compile for FreeBSD
Hi Boris (apologies for top-posting) Thanks, I had to go this way in the end. My process was: 1. enable linux binary compatibility on freebsd. 2. build a debian chroot environment using debootstrap 3. obtain some binaries that I could not find in the debian package repos by extracting them directly from the from binary packages with rpm2cpio 4. copy all the linux binaries to /usr/compat/linux/lib ... as per the FreeBSD Handbook After that the binary works perfectly :-) FreeBSD Linux-Binary-Compatibility FTW!!! Regards, Traiano From: Boris Samorodov [b...@ipt.ru] Sent: Monday, August 01, 2011 10:23 PM To: Traiano Welcome Cc: freebsd-questions@freebsd.org Subject: Re: Linux Binary Compatibility: Libpam compile for FreeBSD Hi All, On Mon, 1 Aug 2011 14:30:32 + Traiano Welcome wrote: > I need to run a linux binary on freebsd 7.3 that expects to link to > libpam.so.0. I can't seem to find how to compile libpam (linux-pam) on > freebsd, or locate some kind of compatible binary I can run on freebsd > with linux binary compatibility enabled in the ports tree either. > Would anyone know if there is a freebsd port of linux libpam, or a > source package I could easily compile for freebsd 7.3 and upward ? > Informational: The binary I'm trying to run is "wmic" , a windows > management instrumentation client, for monitoring windows systems via > wmi. There does not seem to be a wmi client available for FreeBSD, > hence me resorting to a binary compiled for linux :-( > some information on the binary: > --- > wmic: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for > GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped > --- > running it: > --- > ./wmic: error while loading shared libraries: libpam.so.0: cannot open > shared object file: No such file or directory > --- > Any other suggestions that might help resolving this quandary would be > welcome :-) You may try to install that package by hand: http://archives.fedoraproject.org/pub/archive/fedora/linux/core/4/i386/os/Fedora/RPMS/pam-0.79-8.i386.rpm Hint: there is a how-to about installing linux packages by hand at the FreeBSD Handbook. -- WBR, bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Linux Binary Compatibility: Libpam compile for FreeBSD
Hi All, On Mon, 1 Aug 2011 14:30:32 + Traiano Welcome wrote: > I need to run a linux binary on freebsd 7.3 that expects to link to > libpam.so.0. I can't seem to find how to compile libpam (linux-pam) on > freebsd, or locate some kind of compatible binary I can run on freebsd > with linux binary compatibility enabled in the ports tree either. > Would anyone know if there is a freebsd port of linux libpam, or a > source package I could easily compile for freebsd 7.3 and upward ? > Informational: The binary I'm trying to run is "wmic" , a windows > management instrumentation client, for monitoring windows systems via > wmi. There does not seem to be a wmi client available for FreeBSD, > hence me resorting to a binary compiled for linux :-( > some information on the binary: > --- > wmic: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for > GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped > --- > running it: > --- > ./wmic: error while loading shared libraries: libpam.so.0: cannot open > shared object file: No such file or directory > --- > Any other suggestions that might help resolving this quandary would be > welcome :-) You may try to install that package by hand: http://archives.fedoraproject.org/pub/archive/fedora/linux/core/4/i386/os/Fedora/RPMS/pam-0.79-8.i386.rpm Hint: there is a how-to about installing linux packages by hand at the FreeBSD Handbook. -- WBR, bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Phenom II 975 BE shows 0 celsius
On Sun, Jul 31, 2011 at 09:28:29PM -0300 I heard the voice of Mario Lobo, and lo! it spake thus: > > Unfortunately this Mobo died and only found AM3 boards for which my > phenom 955 doesn't fit. Not that it helps you now, but the 955 _is_ perfectly compatible with AM3. It's only the initial 920 and 940 that were AM2-only. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
About ASUS EeePC 1015B
ASUS EeePC 1015B hardware list: AMD Fusion APU C50 1.0GHz (dual core) Processor AMD Radeon HD 6250 with WSVGA(1024x600) ... I have installed FreeBSD 8.2R-amd64, but there are some problems: 1. When using "pciconf -lv", I found none0@pci0:0:20:0 class=0x0c0500 card=0x43851002 chip=0x43851002 rev=0x42 hdr=0x00 vendor = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.' device = 'ATI SMBus (ATI RD600/RS600)' class = serial bus subclass = SMBus Which module should be load? I have tried "kldload amdbus" and it's useless. 2. How to enable the camera? The camera is on the screen. In Windows7, the driver name is "ECam Utility". 3. How to enable the Hotkeys? I have using "kldload acpi_asus", but the Hotkeys(Fn+*) can't use. "dmesg -a" found some warning messages: ... ACPI APIC Table : ACPI Warning: incorrect checksum in table [XSDT] - 0x89, should be 0x36 (20101013/tbutils-354) ACPI Warning: Optional field Pm2ControlBlock has zero address or length: 0x/0x1 (20101013/tbfadt-655) acpi0: <_ASUS_Notebook> on motherboard ... 4. Display driver seems exceptional I have installed Xorg 7.5.1 with xf86-video-ati. Although X can work, there are some error messages when enter X: ... failed to set mtrr: Invalid argument ... (EE) RADEON(0): Acceleration initialization failed ... expected keysym, got XF86TouchpadToggle: line 123 of inet ... It looks like the display dirver doesn't take effect. THANKS! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Phenom II 975 BE shows 0 celsius
On Sunday 31 July 2011 08:28 pm, Mario Lobo wrote: > Hi to all > > In my desktop machine, I had an AM2+ ASROCK mobo with Phenom II 955 > BE that showed each core temperature perfectly under FBSD 8-STABLE, > via dev.cpu.x.temp. amdtemp.ko loaded. > > Unfortunately this Mobo died and only found AM3 boards for which my > phenom 955 doesn't fit. So I got an ASUS M4A88T-V EVO with a Phenom > II 975 BE. > > Funny thing. An AM3 phenom II fits on an AM2 board but an AM3 board > doesn't accept an AM2/AM2+ phenom II :(. > > Anyway, now, under the very same system, it shows 0 degrees on > dev.cpu.x.temp for all cores. > > I've been looking through k8temp and amdtemp src code. I am > definitely not > > sure of this but I believe something might have happened to those: > >From k8temp.h > > K10_THERM_REG 0xa4 > K10_THERMTRIP_REG 0xe4 > K10_CURTMP(val)(((val) >> 21) & 0xfff) > K10_THERMTRIP(val) ((val >> 1) & 1) > > >From amdtemp.c > > /* > * Register control (K8 family) > */ > #define AMDTEMP_REG0F 0xe4 > #define AMDTEMP_REG_SELSENSOR 0x40 > #define AMDTEMP_REG_SELCORE 0x04 > > /* > * Register control (K10 & K11) family > */ > #define AMDTEMP_REG 0xa4 > > > Output of k8temp -dn: > > CPUID: Vendor: AuthenticAMD, 0x100f43: Model=04 Family=f+1 > Stepping=3 Advanced Power Management=0x1f9 >Temperature sensor: Yes > Frequency ID control: No >Voltage ID control: No > THERMTRIP support: Yes >HW Thermal control: Yes >SW Thermal control: Yes >100MHz multipliers: Yes >HW P-State control: Yes > TSC Invariant: Yes > Temp=c0fef > ThermTrip=1fc00c30 > 0 > > I keep a small win7 partition to test little things like this and > see if the same thing happens there, and it doesn't, so I concluded > that the sensors are there and are working. > > One thing is worth noting though. I have used a free gadget that > shows activity/temp for each core. It worked fine with the previous > MB/CPU.That ALSO stopped working with this new MB. Like FBSD, it > shows 0 degrees for any core too, although it correctly displays > each core load. > > The only windows tool that correctly shows the temperature are the > ASUS tools that came with the mobo. FYI, FreeBSD has aibs(4) (or acpi_aiboost(4) depending on your FreeBSD version) and it does essentially the same thing. Jung-uk Kim > Other than that, everything is working fine! The only thing I had > to fix was the fstab ada location. > > I know this is not a big thing but I got accustomed to keeping an > eye on those temperatures. > > I have googled for a few days now searching for Thermal register > address or offsets for the Phenom II 975 BE, or anything related to > this problem and found nothing. Every search on AMD site was > fruitless. I could not find a single bit of tech info on this > processor there, or any other tech info for that matter. > > > Would any one have any pointers/clues/suggestions on this? > > Thanks, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Phenom II 975 BE shows 0 celsius
On Monday 01 August 2011 10:14 am, Andriy Gapon wrote: > on 01/08/2011 03:28 Mario Lobo said the following: > > Hi to all > > > > In my desktop machine, I had an AM2+ ASROCK mobo with Phenom II > > 955 BE that showed each core temperature perfectly under FBSD > > 8-STABLE, via dev.cpu.x.temp. amdtemp.ko loaded. > > > > Unfortunately this Mobo died and only found AM3 boards for which > > my phenom 955 doesn't fit. So I got an ASUS M4A88T-V EVO with a > > Phenom II 975 BE. > > > > Funny thing. An AM3 phenom II fits on an AM2 board but an AM3 > > board doesn't accept an AM2/AM2+ phenom II :(. > > > > Anyway, now, under the very same system, it shows 0 degrees on > > dev.cpu.x.temp for all cores. > > Sorry, I've got lost in all the config changes. So what system do > you have now? Can please also provide CPU-related information from > dmesg? > > > I've been looking through k8temp and amdtemp src code. I am > > definitely not sure of this but I believe something might have > > happened to those: > > > > From k8temp.h > > > > K10_THERM_REG 0xa4 > > K10_THERMTRIP_REG 0xe4 > > K10_CURTMP(val)(((val) >> 21) & 0xfff) > > K10_THERMTRIP(val) ((val >> 1) & 1) > > > > From amdtemp.c > > > > /* > > * Register control (K8 family) > > */ > > #define AMDTEMP_REG0F 0xe4 > > #define AMDTEMP_REG_SELSENSOR 0x40 > > #define AMDTEMP_REG_SELCORE 0x04 > > > > /* > > * Register control (K10 & K11) family > > */ > > #define AMDTEMP_REG 0xa4 > > > > > > Output of k8temp -dn: > > > > CPUID: Vendor: AuthenticAMD, 0x100f43: Model=04 Family=f+1 > > Stepping=3 Advanced Power Management=0x1f9 > >Temperature sensor: Yes > > Frequency ID control: No > >Voltage ID control: No > > THERMTRIP support: Yes > >HW Thermal control: Yes > >SW Thermal control: Yes > >100MHz multipliers: Yes > >HW P-State control: Yes > > TSC Invariant: Yes > > Temp=c0fef > > ThermTrip=1fc00c30 > > 0 > > > > I keep a small win7 partition to test little things like this and > > see if the same thing happens there, and it doesn't, so I > > concluded that the sensors are there and are working. > > > > One thing is worth noting though. I have used a free gadget that > > shows activity/temp for each core. It worked fine with the > > previous MB/CPU.That ALSO stopped working with this new MB. Like > > FBSD, it shows 0 degrees for any core too, although it correctly > > displays each core load. > > Most likely that gadget just re-uses OS-provided information. > > > The only windows tool that correctly shows the temperature are > > the ASUS tools that came with the mobo. > > > > Other than that, everything is working fine! The only thing I had > > to fix was the fstab ada location. > > > > I know this is not a big thing but I got accustomed to keeping an > > eye on those temperatures. > > > > I have googled for a few days now searching for Thermal register > > address or offsets for the Phenom II 975 BE, or anything related > > to this problem and found nothing. Every search on AMD site was > > fruitless. I could not find a single bit of tech info on this > > processor there, or any other tech info for that matter. > > http://support.amd.com/us/Processor_TechDocs/31116.pdf > > > Would any one have any pointers/clues/suggestions on this? > > I would try to add some printfs (or used dtrace - whichever is > easier for you) to see what's going on. Or you can even use > pciconf to directly sneak a peek at what's reported by the > hardware, e.g.: > # pciconf -r pci0:0:24:3 0xa4 > 1c881880 > > You can read the BKDG to see how to interpret the value - search > for F3xA4. See F3xE4 for offset calculation. > > Hopefully you should be able to see if hardware reports sane value > and how the amdtemp ends up reporting 0�C. I gave up the DiodeOffset recently because a lot of BIOSes do not set any meaningful values. Instead, I added a tunable for that. Please see the attached patch, which is also available from here: http://people.freebsd.org/~jkim/amdtemp.diff Jung-uk Kim Index: share/man/man4/amdtemp.4 === --- share/man/man4/amdtemp.4(revision 221788) +++ share/man/man4/amdtemp.4(working copy) @@ -25,12 +25,14 @@ .\" .\" $FreeBSD$ .\" -.Dd April 8, 2008 +.Dd May 11, 2011 .Dt AMDTEMP 4 .Os .Sh NAME .Nm amdtemp -.Nd device driver for AMD K8, K10 and K11 on-die digital thermal sensor +.Nd device driver for +.Tn AMD +processor on-die digital thermal sensor .Sh SYNOPSIS To compile this driver into the kernel, place the following line in your @@ -49,22 +51,48 @@ amdtemp_load="YES" The .Nm driver provides support for the on-die digital thermal sensor present -in AMD K8, K10 and K11 processors. +in +.Tn AMD +Family 0Fh, 10h, 11h, 12h, and 14h processors. .Pp -For the K8 family, the +For Family 0Fh processors, the .Nm -driver reports each core's temperature through a sysctl node in the -corresponding CPU device
Re: larger disk for a zfs pool
On Mon 2011-08-01 16:30:50 UTC+0200, Dick Hoogendijk (d...@nagual.nl) wrote: > OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks > for a pool was quit easy. Simply replace one disk from a mirror for a > larger one, wait for the resilvering and after this replace the second > one for a larger disk and wait for the resilvering again. That's it. > Been there, done that. But my feeling tells me it is not that simple for > a FreeBSD zfs root system, or is it? By the way, a similar question appeared on the freebsd-fs list recently: http://lists.freebsd.org/pipermail/freebsd-fs/2011-June/011887.html Although the question was asked with regards to ZFS v28, which may be newer than what you are using. Regards Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: larger disk for a zfs pool
On Mon 2011-08-01 09:37:55 UTC-0500, Dan Nelson (dnel...@allantgroup.com) wrote: > In the last episode (Aug 01), Dick Hoogendijk said: > > > OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks > > for a pool was quit easy. Simply replace one disk from a mirror for a > > larger one, wait for the resilvering and after this replace the second > > one for a larger disk and wait for the resilvering again. That's it. > > Been there, done that. But my feeling tells me it is not that simple for > > a FreeBSD zfs root system, or is it? > > Should be the same procedure. Make sure you either use "zpool online -e" > when swapping in the new disks, or that you have the zpool autoexpand=on > attribute set. On my FreeBSD 8.2-RELEASE machine, "-e" is an "invalid option" and "autoexpand" an "invalid property". I suspect these are features of ZFS v28 and are not provided with the ZFS v15 provided with FreeBSD 8.2-REL. Judging from behaviour I experienced experimenting with ZFS in a virtual machine using 8.2-REL, it was possible to replace all drives in a ZFS mirror with larger ones and increase the size of the pool, but (after resilvering) it required either a reboot, or (if I recall correctly): zpool export tank zpool import tank for the increased size to become available. So I assume "autoexpand" was implied for ZFS v15. However this was not with FreeBSD booting from 'tank'. Trying to run "zpool export tank" may result in a "Device busy" error if the boot device was the "tank" pool. It might be worthwhile experimenting in on a spare (or virtual) machine to get a definitive answer, especially since there seem to be differences depending on FreeBSD version. Regards Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: larger disk for a zfs pool
On Mon 2011-08-01 17:05:02 UTC+0200, Dick Hoogendijk (d...@nagual.nl) wrote: > But I'm confused about the gpart thing I did on the original disks. > > $ gpart show > => 34 156301421 ad4 GPT (75G) > 341281 freebsd-boot (64K) > 16283886082 freebsd-swap (4.0G) > 8388770 1479126853 freebsd-zfs (71G) > > => 34 156301421 ad6 GPT (75G) > 341281 freebsd-boot (64K) > 16283886082 freebsd-swap (4.0G) > 8388770 1479126853 freebsd-zfs (71G) > Do I repeat this gpart section on the new disk(s) before putting them in > the rpool (one at a time). Basically yes. Both drives in the mirror need the freebsd-boot partition, otherwise the drive without freebsd-boot won't be bootable if the other drive fails to boot. freebsd-swap can be any size. The sector count of the freebsd-zfs partition on the new drive needs to be equal or greater to the existing sector count, though. 147912685 in your case. gpart should do that automatically if the replacement drive is larger and you tell it just to use the remaining space. Don't forget this step: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i nnn device > Is it compatrible to putting the solaris bootcode on disk before > attaching them to a rootpool and resilvering? I want to expand my > rootpool but am a little confused about the right procedure. I've not used Solaris, but I assume so. Regards Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: invalid argument in select() when peer socket is in FD_SET
Am 31.07.2011 11:50, schrieb Christoph P.U. Kukulies: I have written a small to test TCP/IP roundtrip times of the packets in a proprietary protocol and while compiling and running this server on different platforms (Windows 7/cygwin, UbuntuLinux, FreeBSD 8.0 Release), I found that the server produces an error when the listening socket (on which the accpet() is performed) is member of the select() fd_set. On the other platforms the program works without error, just under FreeBSD I'm getting this "invalid argument" error. Comments appreciated (despite comments about the error checking logic :) Here is the code: // testsrv.c // gcc -o testsrv testsrv.c // #include #include #include #include #include #include #include #include #include #define USEDBUFSIZ 60 #define MAX_HOSTNAME 256 #define MAXFDS 256 #define CLRBUF memset(buf,0,sizeof(buf)) #define max(a,b)(((a) > (b)) ? (a) : (b)) static unsigned char buf[256]; int array_of_fds[MAXFDS]; static fd_set clientfds; #define SOCKET int void *memset(void *, int, size_t); int enter (int); int remov (int); int invalidip (char *); voidexit (int); int getv (int, unsigned char *, int); int getfds (); int main(int argc, char **argv) { int nfds; static fd_set readfds; SOCKET ListenSocket, newsockfd; struct sockaddr_in cli_addr; struct sockaddr_in service; struct hostent *thisHost; int bOptVal = 0; int bOptLen = sizeof(int); charhostname[256]; char *host_addr; struct in_addr addr = {0}; char *ip; u_short port; int iResult = 0; int i , n, m, clilen, dummy, connect = 0; struct timeval tv; //--- //Create a listening socket ListenSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (ListenSocket == -1) { perror("socket creation"); return 1; } else printf("ListenSocket=%d\n", ListenSocket); //--- //Bind the socket to the local IP address // and port 3210 port = 3210; if (gethostname(hostname, 256)) perror("gethostname failed\n"), exit(3); printf("%s\n", hostname), fflush(stdout); thisHost = gethostbyname(hostname); ip = inet_ntoa(*(struct in_addr *)(*thisHost->h_addr_list)); if (argc == 2) { host_addr = argv[1]; service.sin_addr.s_addr = inet_addr(host_addr); thisHost = gethostbyaddr((const char *)&service.sin_addr.s_addr, sizeof(service.sin_addr.s_addr), AF_INET); if (thisHost == 0) printf("host unknown\n"), exit(3); if (invalidip(host_addr)) printf("invalid IP\n"), exit(4); } else { service.sin_addr.s_addr = inet_addr(ip); } service.sin_port = htons(port); service.sin_family = AF_INET; iResult = bind(ListenSocket, (struct sockaddr *)&service, sizeof(service)); if (iResult == -1) { perror("bind"); shutdown(ListenSocket, SHUT_RDWR); return 1; } listen(ListenSocket, SOMAXCONN); printf("SOMAXCONN=%d %d\n", SOMAXCONN, FD_SETSIZE); /* all sockets are put into an own array_of_fs */ /* in the while() loop below the FD_SET id used by looping through the */ /* array_of_fds to fill the readfds array in the select() */ enter(ListenSocket); /* * Wait for connect */ tv.tv_sec = 0; tv.tv_usec = 500; /* 5 seconds */ A friendly soul on FreeBSD-hackers told me that my tv_usec value is wrong in the timeval struct above. FreeBSD checks if it is in the range of 0How I came to think that the socket could be the invaid parameter, I don't know. Maybe I did two changes to the code at once and was blaming the wrong one. Thanks anyway for listening. -- Christoph ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: larger disk for a zfs pool
Op 1-8-2011 17:06, andrew clarke schreef: On Mon 2011-08-01 16:30:50 UTC+0200, Dick Hoogendijk (d...@nagual.nl) wrote: OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks for a pool was quit easy. Simply replace one disk from a mirror for a larger one, wait for the resilvering and after this replace the second one for a larger disk and wait for the resilvering again. That's it. Been there, done that. But my feeling tells me it is not that simple for a FreeBSD zfs root system, or is it? By the way, a similar question appeared on the freebsd-fs list recently: http://lists.freebsd.org/pipermail/freebsd-fs/2011-June/011887.html Although the question was asked with regards to ZFS v28, which may be newer than what you are using. Thanks for the pointer. It's not hopeful plus the fact that I want to expand a rootpool from which I want to boot the system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: larger disk for a zfs pool
Op 1-8-2011 16:37, Dan Nelson schreef: In the last episode (Aug 01), Dick Hoogendijk said: OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks for a pool was quit easy. Simply replace one disk from a mirror for a larger one, wait for the resilvering and after this replace the second one for a larger disk and wait for the resilvering again. That's it. Been there, done that. But my feeling tells me it is not that simple for a FreeBSD zfs root system, or is it? Should be the same procedure. Make sure you either use "zpool online -e" when swapping in the new disks, or that you have the zpool autoexpand=on attribute set. But I'm confused about the gpart thing I did on the original disks. $ gpart show => 34 156301421 ad4 GPT (75G) 341281 freebsd-boot (64K) 16283886082 freebsd-swap (4.0G) 8388770 1479126853 freebsd-zfs (71G) => 34 156301421 ad6 GPT (75G) 341281 freebsd-boot (64K) 16283886082 freebsd-swap (4.0G) 8388770 1479126853 freebsd-zfs (71G) Do I repeat this gpart section on the new disk(s) before putting them in the rpool (one at a time). Is it compatrible to putting the solaris bootcode on disk before attaching them to a rootpool and resilvering? I want to expand my rootpool but am a little confused about the right procedure. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Linux Binary Compatibility: Libpam compile for FreeBSD
Hi List I need to run a linux binary on freebsd 7.3 that expects to link to libpam.so.0. I can't seem to find how to compile libpam (linux-pam) on freebsd, or locate some kind of compatible binary I can run on freebsd with linux binary compatibility enabled in the ports tree either. Would anyone know if there is a freebsd port of linux libpam, or a source package I could easily compile for freebsd 7.3 and upward ? Informational: The binary I'm trying to run is "wmic" , a windows management instrumentation client, for monitoring windows systems via wmi. There does not seem to be a wmi client available for FreeBSD, hence me resorting to a binary compiled for linux :-( some information on the binary: --- wmic: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped --- running it: --- ./wmic: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory --- Any other suggestions that might help resolving this quandary would be welcome :-) Thanks in Advance, Traiano Welcome___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: larger disk for a zfs pool
In the last episode (Aug 01), Dick Hoogendijk said: > OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks > for a pool was quit easy. Simply replace one disk from a mirror for a > larger one, wait for the resilvering and after this replace the second > one for a larger disk and wait for the resilvering again. That's it. > Been there, done that. But my feeling tells me it is not that simple for > a FreeBSD zfs root system, or is it? Should be the same procedure. Make sure you either use "zpool online -e" when swapping in the new disks, or that you have the zpool autoexpand=on attribute set. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
larger disk for a zfs pool
OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks for a pool was quit easy. Simply replace one disk from a mirror for a larger one, wait for the resilvering and after this replace the second one for a larger disk and wait for the resilvering again. That's it. Been there, done that. But my feeling tells me it is not that simple for a FreeBSD zfs root system, or is it? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Phenom II 975 BE shows 0 celsius
on 01/08/2011 03:28 Mario Lobo said the following: > Hi to all > > In my desktop machine, I had an AM2+ ASROCK mobo with Phenom II 955 BE that > showed each core temperature perfectly under FBSD 8-STABLE, via > dev.cpu.x.temp. amdtemp.ko loaded. > > Unfortunately this Mobo died and only found AM3 boards for which my phenom > 955 > doesn't fit. So I got an ASUS M4A88T-V EVO with a Phenom II 975 BE. > > Funny thing. An AM3 phenom II fits on an AM2 board but an AM3 board doesn't > accept an AM2/AM2+ phenom II :(. > > Anyway, now, under the very same system, it shows 0 degrees on dev.cpu.x.temp > for all cores. Sorry, I've got lost in all the config changes. So what system do you have now? Can please also provide CPU-related information from dmesg? > I've been looking through k8temp and amdtemp src code. I am definitely not > sure of this but I believe something might have happened to those: > > From k8temp.h > > K10_THERM_REG 0xa4 > K10_THERMTRIP_REG 0xe4 > K10_CURTMP(val)(((val) >> 21) & 0xfff) > K10_THERMTRIP(val) ((val >> 1) & 1) > > From amdtemp.c > > /* > * Register control (K8 family) > */ > #define AMDTEMP_REG0F 0xe4 > #define AMDTEMP_REG_SELSENSOR 0x40 > #define AMDTEMP_REG_SELCORE 0x04 > > /* > * Register control (K10 & K11) family > */ > #define AMDTEMP_REG 0xa4 > > > Output of k8temp -dn: > > CPUID: Vendor: AuthenticAMD, 0x100f43: Model=04 Family=f+1 Stepping=3 > Advanced Power Management=0x1f9 >Temperature sensor: Yes > Frequency ID control: No >Voltage ID control: No > THERMTRIP support: Yes >HW Thermal control: Yes >SW Thermal control: Yes >100MHz multipliers: Yes >HW P-State control: Yes > TSC Invariant: Yes > Temp=c0fef > ThermTrip=1fc00c30 > 0 > > I keep a small win7 partition to test little things like this and see if the > same thing happens there, and it doesn't, so I concluded that the sensors are > there and are working. > > One thing is worth noting though. I have used a free gadget that shows > activity/temp for each core. It worked fine with the previous MB/CPU.That > ALSO > stopped working with this new MB. Like FBSD, it shows 0 degrees for any core > too, although it correctly displays each core load. Most likely that gadget just re-uses OS-provided information. > The only windows tool that correctly shows the temperature are the ASUS tools > that came with the mobo. > > Other than that, everything is working fine! The only thing I had to fix was > the fstab ada location. > > I know this is not a big thing but I got accustomed to keeping an eye on > those > temperatures. > > I have googled for a few days now searching for Thermal register address or > offsets for the Phenom II 975 BE, or anything related to this problem and > found nothing. Every search on AMD site was fruitless. I could not find a > single bit of tech info on this processor there, or any other tech info for > that matter. http://support.amd.com/us/Processor_TechDocs/31116.pdf > Would any one have any pointers/clues/suggestions on this? I would try to add some printfs (or used dtrace - whichever is easier for you) to see what's going on. Or you can even use pciconf to directly sneak a peek at what's reported by the hardware, e.g.: # pciconf -r pci0:0:24:3 0xa4 1c881880 You can read the BKDG to see how to interpret the value - search for F3xA4. See F3xE4 for offset calculation. Hopefully you should be able to see if hardware reports sane value and how the amdtemp ends up reporting 0°C. -- Andriy Gapon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Xorg at 100%CPU when browser is on
On Mon, Aug 1, 2011 at 8:56 AM, Yuri wrote: > I saw this with firefox, now I see the same with chrome. > > After a while when the browser is launched with ~10 tabs open, Xorg begins > to consume 100% CPU and all graphics apps get sluggish. Quitting the browser > brings situation back to normal. > > It looks amazing to me that both firefox and chrome exhibit the same > behavior. > > Anybody sees the same? Anybody can explain why would such thing happen? Same here, but when mplayer plays some (rare) video files. Xorg then stays at 100% CPU, and it is impossible to kill it, neither from the inside, nor from the outside (logged in via ssh) with SIGKILL. Only a reboot helps here. Running: FreeBSD 8.2-STABLE #0 r222832 amd64 with xorg-server-1.7.7_1,1 xorg-drivers-7.5.1 and the radeonhd driver: (--) PCI:*(0:1:5:0) 1002:9610:1462:7501 ATI Technologies Inc Radeon HD 3200 Graphics rev 0, Mem @ 0xd000/268435456, 0xfe9e/65536, 0xfe80/1048576, I/O @ 0xd000/256, BIOS @ 0x/65536 (II) LoadModule: "radeonhd" (II) Loading /usr/local/lib/xorg/modules/drivers/radeonhd_drv.so (II) Module radeonhd: vendor="AMD GPG" compiled for 1.7.7, module version = 1.3.0 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 6.0 (II) RADEONHD: version 1.3.0, built from dist of git branch master, commit 8cbff7bf (II) RADEONHD(0): ATOM BIOS Rom: SubsystemVendorID: 0x1002 SubsystemID: 0x1002 IOBaseAddress: 0xd000 Filename: MS7501_H_5.b BIOS Bootup Message: B27721 RS780 DDR2 200e/500m It happens only rarely, I can't reproduce that bug reliably. > Yuri -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Help needed : My FreeBSD8.2-amd64 installation keeps crashing
Hello All, My apologies for the last message and for the delay in rectifying any wrong impression it might have created. It was not FreeBSD8.2-amd64 that was the problem. As I found out, it was the system thermals that was causing my system to crash. I had to turn on my BIOS's temperature warnings to discover the root cause. Playing GNU-Chess against the built-in engine[s] accelerates the rise in system temperatures dramatically. Can anyone please suggest an amd64 (phenom-AM2+) motherboard with smbus support for FreeBSD and capable of running Windows 2000 ? Regards Manish Jain [1]invalid.poin...@gmail.com On 17-Jul-11 17:28, Manish Jain wrote: Hi all, My FreeBSD8.2-amd64 installation keeps crashing - power off in a flash with no warning. I can't imagine what might be the problem. I ran memtest86+ and it cleared Pass 1 with no errors. Win XP runs without any problems. I have pasted below XP Device Manager's system summary report below. (N: is an ext2fs slice and X: is the FreeBSD slice). Can somebody suggest what might the problem be ? There are a couple of points of interest : 1) there are no /dev/smbus* nodes 2) FreeBSD8.0-amd64 ran on my system without problems. Thanks in advance for any help. Meanwhile I am about to start running memtest86+ again to go through 2 Passes. Regards Manish Jain [2]invalid.poin...@gmail.com System Resource Report- Page: 1 SYSTEM SUMMARY Windows Version: Windows 5.1 Service Pack 3 (Build 2600) Registered Owner: Manish Jain Registered Organization: Cognizant Computer Name: CTS-235050 Machine Type: AT/AT COMPATIBLE System BIOS Version: GBT- 42302e31 System BIOS Date: 01/02/09 Processor Type: x86 Family 16 Model 2 Stepping 3 Processor Vendor: AuthenticAMD Number of Processors: 4 Physical Memory: 3071 MB DISK DRIVE INFO Drive C: Type: Fixed disk drive Total Space: 33,032,691,712 bytes Free Space: 13,457,170,432 bytes Heads: 16 Cylinders: 620178 Sectors Per Track: 63 Bytes Per Sector: 512 Drive D: Type: Fixed disk drive Total Space: 240,836,165,632 bytes Free Space: 41,083,314,176 bytes Heads: 16 Cylinders: 620178 Sectors Per Track: 63 Bytes Per Sector: 512 Drive F: Type: CD-ROM drive Total Space: 33,554,432 bytes Drive N: Type: Fixed disk drive Total Space: 4,258,791,424 bytes Free Space: 2,774,253,568 bytes Heads: 16 Cylinders: 620178 Sectors Per Track: 63 Bytes Per Sector: 512 Drive X: Type: Fixed disk drive Total Space: 37,434,163,200 bytes Free Space: 3,302,391,808 bytes Heads: 16 Cylinders: 620178 Sectors Per Track: 63 Bytes Per Sector: 512 IRQ SUMMARY IRQ Usage Summary: (ISA) 0High precision event timer (ISA) 1Standard 101/102-Key or Microsoft Natural PS/2 Keyboard (ISA) 4Communications Port (COM1) System Resource Report- Page: 2 (ISA) 8High precision event timer (ISA) 9Microsoft ACPI-Compliant System (ISA) 9AEMPH6YR IDE Controller (ISA) 12PS/2 Compatible Mouse (ISA) 13Numeric data processor (ISA) 14Primary IDE Channel (PCI) 16Standard OpenHCD USB Host Controller (PCI) 16Standard OpenHCD USB Host Controller (PCI) 16Microsoft UAA Bus Driver for High Definition Audio (PCI) 17Standard Enhanced PCI to USB Host Controller (PCI) 18ATI Radeon HD 3200 Graphics (PCI) 18PCI standard PCI-to-PCI bridge (PCI) 18Realtek RTL8168C(P)/8111C(P) PCI-E Gigabit Ethernet NIC (PCI) 18Standard OpenHCD USB Host Controller (PCI) 18Standard OpenHCD USB Host Controller (PCI) 18Standard OpenHCD USB Host Controller (PCI) 19Microsoft UAA Bus Driver for High Definition Audio (PCI) 19Standard Enhanced PCI to USB Host Controller (PCI) 22Standard Dual Channel PCI IDE Controller (PCI) 22Texas Instruments OHCI Compliant IEEE 1394 Host Controller DMA USAGE SUMMARY DMA Usage Summary: 3ECP Pri