Which compiler compiled system?
Hi, Is there a way to determine whether a FreeBSD-system was compiled with gcc or clang? I thought of some libs or so that might significantly differ. Regards, kaltheat ___ 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"
Which core belongs to which cpu?
Hi, is there a way to determine which core (virtual or real) belongs to which cpu? Regards, kaltheat ___ 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: Which core belongs to which cpu?
On Fri, Mar 01, 2013 at 10:19:56AM +0100, kaltheat wrote: > > Hi, > > is there a way to determine which core (virtual or real) belongs to which cpu? > > Regards, > kaltheat I read smp(8). There was a link to kern.sched.topology_spec which shows exactly what I was searching for. ___ 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: how to disable bluetooth
On Fri, Mar 01, 2013 at 09:50:45PM +0100, CeDeROM wrote: > On Fri, Mar 1, 2013 at 7:30 PM, kaltheat wrote: > > On Wed, Feb 27, 2013 at 06:31:38PM +0100, CeDeROM wrote: > >> hey hey :-) its not that i dont want the bluetooth at all, just want to > >> shut it down when its supposed to be shut down :-) bluetooth stack is > >> always functional and my device is always visible even if i disable all > >> bluetooth services, this seems insecure a bit huh. :-) > > > > You might want to create a cutomized minimal kernel and load every module > > either by /boot/loader.conf or by hand. > > Yea, I have noticed that defaul kernel now contains everything. I am > not sure if this is a good choice. Do you know how can I mark which > code pieces should be build as modules and which ones should become > part of kernel? I got lots of modules - are they built into the kernel > or loaded one by one at boot time? > > Thank you! :-) > Tomek Well. I don't think that it contains everything. Do `kldstat -v` to get informations on modules built into kernel and modules loaded seperately. You can mark code pieces you want to have in kernel by writing a KERNCONF file. Details can be taken from handbook[1]. You may find other step-by-step instructions in forum[2] and on several blogs. I saw some posts of people sharing their minimal kernel configuration file. It's interesting for people using laptops and wanting to save as much power as possible, too. Regards, kaltheat [1] http://www.freebsd.org/doc/handbook/kernelconfig-building.html [2] https://forums.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"
Intel microcode update
Hi, I was wondering how to update microcode of an Intel CPU and came across cpucontrol and sysutils/devcpu-data . But last mentioned port is not up-to-date anymore. I searched Intel's webpages for microcode updates and found archives for Linux containing one single microcode.dat file. Could someone tell me if that file is compatible with FreeBSD? As devcpu-data installs .fw files it might be proper to convert/compile microcode.dat in some way. How? Regards, kaltheat ___ 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: configure recursively and build question
On Tue, Mar 12, 2013 at 05:45:07PM +0100, Istvan Gabor wrote: > Hello: > > As there are no compiled FreeBSD 9.1 packages for pkg_tools I decided to > build them. > Last I started to build kde3. First I issued make configure-recursive in > /usr/ports/x11/kde3, then make install clean, and left the computer for > overnight to work. > I expected a successful build by the morning but instead I found a screen > requiring some > config options (for apache). I selected the options and the build went on. > But later other config windows came up, so far for mysqlclient, sane-backends, > tk, tcl, libxine and sdl. So my question are: > > What is configure-recursive good for then? I thought it is for preventing > interactions > during the build process. Ho can I really configure everything in one step > and leave > the computer alone? > > Second, after I've done a configure-recursive, how can I start it over from > scratch in case > I want to change some config option? If I reissue make configure-recursive, > I get only no configuration needed messages. > > Thanks, > > Istvan make config-recursive seems to be buggy. It seems not to be recursive as this would mean that with every change of an option of the root port or it's dependencies dependencies of the root port might change. This could mean that make config needs to be invoked for a port that wasn't in the inital dependecy list of root port. The "root of all evil" seems to be in /usr/ports/Mk/bsd.port.mk line 6187 ff. You might want to use ports-mgmt/portmaster. It creates options-files of a port and it's dependencies in a better way before starting to compile ports. Regards, kaltheat ___ 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: snd_hda and front headphones jack
On Tue, Mar 12, 2013 at 08:55:49AM -0500, Mark Felder wrote: > Hi guys, > > I seem to be having problems getting my front headphones jack to work. > I've read the snd_hda man page and perhaps I'm doing this wrong, but > here's my setup: > > ... > > If I am looking at this right I believe I need to set nid25 to as=1 which > matches the nid31 Speaker and probably also set seq=15. However, this > doesn't seem to be working. Am I overlooking something obvious? > > > Thanks > Hi, in my setup I disabled all pins referring to "Unknown" and I disabled pins I don't need by setting as=0 without having any issues. I put Headphones and Speaker in same association (anything between 0 and 15, not 0, not 15), then I gave Headphones seq=15 and Speaker seq=14. As mentioned in manpage seq=15 for headphones will duplicate first pin in association, that would be Speaker. If I remember correctly online reconfiguring of device using dev.hdaa.*.reconfig sysctl-variable produced in some cases different devices than rebooting system with same changes of default configuration in device.hints. Regards, kaltheat ___ 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: Intel microcode update
On Tue, Mar 19, 2013 at 11:06:25PM +0100, kalth...@googlemail.com wrote: > > Hi, > > I was wondering how to update microcode of an Intel CPU and came across > cpucontrol and sysutils/devcpu-data . But last mentioned port is not > up-to-date > anymore. I searched Intel's webpages for microcode updates and found archives > for Linux containing one single microcode.dat file. Could someone tell me if > that file is compatible with FreeBSD? As devcpu-data installs .fw files it > might be proper to convert/compile microcode.dat in some way. How? > > Regards, > kaltheat > Just for the records: Question was answered [1]here. 1. http://lists.freebsd.org/pipermail/freebsd-hackers/2013-March/042248.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"
perl threaded, python threaded
Hi, could anyone tell me why it is obviously that difficult to get perl or python working with threaded support? Each time I tested to use threaded feature in perl or python on different machines with different FreeBSD-versions something went wrong. When I switched back everything compiled smoothly. Maybe this was already discussed somewhere. Then please give me the link. Regards, kaltheat ___ 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"
buggy awk regex handling?
Hi, I tried to replace three letters with three letters by awk using the sub-routine. I assumed that my regular expression does mean the following: match if three letters of any letter of alphabet occurs anywhere in input $ echo AbC | awk '{sub(/[[:alpha:]]{3}/,"cBa"); print;}' AbC As you can see the result was unexpected. When I try doing it for at least one letter, it works: $ echo AbC | awk '{sub(/[[:alpha:]]+/,"cBa"); print;}' cBa Same problem without macro: $ echo AbC | awk '{sub(/[A-Za-z]{3}/,"cBa"); print;}' AbC $ echo AbC | awk '{sub(/[A-Za-z]+/,"cBa"); print;}' cBa I thought that it might have something to do with the curly braces. But escaping them doesn't do the trick. What am I doing wrong? Or is awk buggy? Regards, kaltheat ___ 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"