Updating messed up motd

2012-04-23 Thread Thomas D. Dean


 uname -a
FreeBSD P9X79.tddhome 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Apr 23 \
18:48:29 PDT 2012 root@P9X79.tddhome:/usr/obj/usr/src/sys/GENERIC  \
amd64

I updated via cvsup an hour ago.  Running mergemaster shows a loss of
version in /etc/motd.

 env -i make buildworld
...
 env -i make kernel
...
 reboot
 mergemaster -p
...
 make installworld
...
 make delete-old
...
 mergemaster -i -F
...
==

  *** Displaying differences between ./etc/motd and installed version:

--- /etc/motd   2012-04-23 20:54:14.0 -0700
+++ ./etc/motd  2012-04-23 21:01:48.0 -0700
@@ -1,4 +1,4 @@
-FreeBSD 9.0-STABLE (GENERIC) #0: Mon Apr 23 18:48:29 PDT 2012
+FreeBSD ?.?.?  (UNKNOWN)

 Welcome to FreeBSD!
...

all else seems OK.

Tom Dean
___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Strange Printing with CUPS

2012-03-22 Thread Thomas D. Dean

  uname -a
FreeBSD P9X79.tddhome 9.0-STABLE FreeBSD 9.0-STABLE #0: Thu Feb 23 
20:06:18 PST 2012 root@P9X79.tddhome:/usr/obj/usr/src/sys/GENERIC  amd64


 ls /var/db/pkg | grep cup
cups-1.5.0/
cups-base-1.5.2/
cups-client-1.5.2_1/
cups-image-1.5.2/
cups-pstoraster-8.15.4_6/
cups-smb-backend-1.0_6/

I cannot determine if this is a port problem or a install/config problem 
or missing something.


When I print to a windows printer (HP C4100) using the seamonkey port it 
appears the fonts are strange.  Characters on the printed page are only 
partially formed and mostly unreadable.


Printing the same web page from windows and linux (seamonkey) CUPS 
produces the expected quality print.


Using lpr with a text file works as expected.

I think I am missing something on the FreeBSD machine, but, what?

From  http://localhost:631/printers/C4100
Description:HP Photosmart C4100
Location:   HP C4100 on windows machine
Driver: HP DeskJet Series (color, 2-sided printing)
Connection: smb://windows machine/C4100
Defaults:   job-sheets=none, none media=na_letter_8.5x11in sides=one-sided

Tom Dean
___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Gcc46 and 128 Bit Floating Point

2012-02-28 Thread Thomas D. Dean

On 02/17/12 13:03, Thomas D. Dean wrote:
I have been reading the Core-i7 developers manual and looking at libm. 
I have been trying to shoe horn some calculations between the sizes of 
fpu instructions and libgmp.


I think there is little support for 128-bit floating point in the 
Core-i7 3930K CPU.


The code which uses __float128 implements functions in software and use 
the 80-bit fpu instructions to assist.


I believe there is some speed improvement with the 128-bit registers. 
But, I can find no floating point instructions that operate on 128-bit 
floating point, like there is for 80-bit.


The bottom line seems to be little gain in floating point operations 
with the core-i7 CPU.


Or, am I missing something?

#include quadmath.h
#include stdio.h
int main() {
  char buf[128];
  __float128 x = sqrtq(2.0Q);
  quadmath_snprintf(buf, sizeof buf, %.45Qf,x);
  printf(sin(%s) = ,buf);
  quadmath_snprintf(buf, sizeof buf, %.45Qf,sinq(x));
  printf(%s\n,buf);
  return 0;
}

gcc46 math.c -o math /usr/local/lib/gcc46/libquadmath.a /usr/lib/libm.a

Looking at the output of objdump -d math shows software implementation 
of sqrtq() and sinq().  gcc46 does use the fsqrt instruction but not fsin.


Tom Dean
___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Gcc46 and 128 Bit Floating Point

2012-02-17 Thread Thomas D. Dean

 uname -a
FreeBSD P9X79.tddhome 9.0-STABLE FreeBSD 9.0-STABLE #0: Sat Jan 28
10:11:39 PST 2012 tomdean@P9X79.tddhome:/usr/src/sys/GENERIC  amd64

From dmesg:
CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz (4160.12-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x206d6  Family = 6  Model = 2d 
Stepping = 6


Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE

Features2=0x17bee3bfSSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,AVX
  AMD Features=0x2c100800SYSCALL,NX,Page1GB,RDTSCP,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant, performance statistics

I have gcc46 from the ports tree:

 which gcc46
/usr/local/bin/gcc46
 gcc46 --version
gcc46 (FreeBSD Ports Collection) 4.6.3 20120106 (prerelease)
 env | grep LD
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/gcc46:/lib

I am trying to get gcc46 to issue floating point instructions using the 
xmm registers and long double's.  Looking in include directories, it 
appears the gcc46 port uses the FreeBSD system include files, which are 
from the patched gcc 4.2.1.


 cat epsilon.c
#include stdio.h
#define LD1 (long double)1.0
#define LD2 (long double)2.0
int main() {
  long double machEps;
  machEps=LD1;
  while(1) {
machEps /= LD2;
if ((LD1 + (machEps/LD2)) == LD1) break;
  }
  printf( \nCalculated Machine epsilon: %LG\n, machEps );
  return 0;
}

 gcc46 -march=corei7 -msse2 epsilon.c -o epsilon
 /usr/local/bin/objdump epsilon | grep xmm
 /usr/local/bin/objdump -d epsilon | more
...
  400667:  db 6d f0 fldt   -0x10(%rbp)
  40066a:  db 2d 20 01 00 00fldt   0x120(%rip)
  400670:  de f9fdivrp %st,%st(1)
  400672:  db 7d f0 fstpt  -0x10(%rbp)
...

gcc46 is generating 80-bit floating point instructions.

The gcc docs state gcc46 will generate 128-bit instructions.

I can get gfortran46 to generate 128-bit instructions.

How do I get gcc46 to generate 128-bit floating point instructions?

Tom Dean
___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Make Buildworld fails

2012-01-27 Thread Thomas D. Dean

#  uname -a
FreeBSD P9X79.tddhome 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Jan  4 
14:16:41 PST 2012 tomdean@P9X79.tddhome:/usr/src/sys/GENERIC  amd64


Source up-to-date as of now, via cvsup.

# env -i make cleandir
# env -i make cleandir
# env -i make buildworld
...
cc -O2 -pipe -I. -DGCCVER=\4.2\ -DIN_GCC -DHAVE_CONFIG_H 
-DPREFIX=\/usr\ -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools 
-I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools 
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc 
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config 
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include 
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include 
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber 
-g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89 
-I/usr/obj/usr/src/tmp/legacy/usr/include 
-L/usr/obj/usr/src/tmp/legacy/usr/lib -o genchecksum genchecksum.o 
errors.o libiberty.a

=== kerberos5/tools (obj,depend,all)
=== kerberos5/tools/make-print-version (obj)
=== kerberos5/tools/make-roken (obj)
=== kerberos5/tools/asn1_compile (obj)
=== kerberos5/tools/slc (obj)
=== kerberos5/tools/make-print-version (depend)
=== kerberos5/tools/make-roken (depend)
=== kerberos5/tools/asn1_compile (depend)
cd /usr/src/kerberos5/tools/asn1_compile/../make-print-version  make
make: don't know how to make /usr/src/tmp/legacy/usr/lib/libegacy.a. Stop
*** Error code 2

Stop in /usr/src/kerberos5/tools/asn1_compile.
*** Error code 1

Stop in /usr/src/kerberos5/tools.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Tom Dean
___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Make Buildworld fails

2012-01-27 Thread Thomas D. Dean

On 01/27/12 12:08, Doug Barton wrote:

On 01/27/2012 11:21, Thomas D. Dean wrote:

#  uname -a
FreeBSD P9X79.tddhome 9.0-STABLE


freebsd-stable@ is probably your best bet for this.



# cat stable-supfile
*default release=cvs tag=RELENG_9
*default delete use-rel-suffix

I have been running 9.0 since 9.0(RC2) without problem.

Some change after Jan 4 2012  broke buildworld.  That is what I am 
reporting.


Tom Dean
___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


make kernel and buildworld both fail

2012-01-04 Thread Thomas D. Dean
I really only wanted to build a new kernel.  But, I tried both after seeing
failures.

# uname -a
FreeBSD P9X79.tddhome 9.0-PRERELEASE FreeBSD 9.0-PRERELEASE #1: \
  Sun Dec 25 09:28:17 PST 2011 \
  root@P9X79.tddhome:/usr/obj/usr/src/sys/GENERIC  amd64

source up-to-date as of now, cvsup with 
   *default release=cvs tag=RELENG_9
I tried cvsup 2 times with no changes to source tree.

# cd /usr/src
# make cleandir
# make cleandir
# env -i make kernel
...
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   
-nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -fno-omit-frame-pointer -mno-sse -mcmodel=kernel 
-mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  /usr/src/sys/amd64/ia32/ia32_syscall.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   
-nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -fno-omit-frame-pointer -mno-sse -mcmodel=kernel 
-mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  /usr/src/sys/amd64/ia32/ia32_misc.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   
-nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -fno-omit-frame-pointer -mno-sse -mcmodel=kernel 
-mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  
/usr/src/sys/compat/freebsd32/freebsd32_ioctl.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   
-nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -fno-omit-frame-pointer -mno-sse -mcmodel=kernel 
-mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables 
-ffreestanding -fstack-protector -Werror  
/usr/src/sys/compat/freebsd32/freebsd32_misc.c
/usr/src/sys/compat/freebsd32/freebsd32_misc.c: In function 
'freebsd32_posix_fallocate':
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:2814: error: 'struct 
freebsd32_posix_fallocate_args' has no member named 'offset1'
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:2814: error: 'struct 
freebsd32_posix_fallocate_args' has no member named 'offset2'
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:2815: error: 'struct 
freebsd32_posix_fallocate_args' has no member named 'len1'
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:2815: error: 'struct 
freebsd32_posix_fallocate_args' has no member named 'len2'
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

===

After that failure, I did another cvsup with no changes to the source
tree and tried buildworld.

# env -i make buildworld
sed -i  -e '/\.note\.ABI-tag/s/progbits/note/' gcrt1_c.s
gcc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common  
-I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -Wsystem-headers 
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings 
-Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline 
-Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c 
-o gcrt1_c.o gcrt1_c.s
gcc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common  
-I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -Wsystem-headers 
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes 

Re: make kernel and buildworld both fail (SOLVED)

2012-01-04 Thread Thomas D. Dean
On Wed, 2012-01-04 at 11:28 -0800, Thomas D. Dean wrote:

I booted kernel.old.

make buildworld success.

I tried a patch to eliminate xhci timeouts.  Maybe that did something
strange.  After the patch, I could not load the cpuctl module.  So, I
updated source and started from scratch.  I think I may have cvsup'd
some of the 9.0 release code?

Anyway, all is OK, now.

I see lots of xchi timeouts on startup.

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: amd64/163442: boot/loader.conf not processed at boot time

2011-12-20 Thread Thomas D. Dean
On Tue, 2011-12-20 at 10:00 -0800, Thomas D. Dean wrote:

 insmod part_gpt
 insmod ufs_2
 set root='(hd1.gpt4)'
 kfreebsd /boot/kernel/kernel
 kfreebsd_loadenv /boot/device.hints
 set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ada1p4
 set kFreeBSD.vfs.root.mountfrom.options=rw

Changing to the loader fixed things.

kfreebsd /boot/loader

Thanks for the help, discussing this lead me to looking for the beastie
and the fix.

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Boot Loader Conf

2011-12-17 Thread Thomas D. Dean
FreeBSD 9.0 (RC2) amd64. up-to-date.

I want to load a module, nvidia, on boot.

/boot/loader.rc contains
  include /boot/loader.4th
  start

/boot/loader.conf contains
  cpuctl_load=YES
  nvidia_load=YES

/boot/modules/ directory contains
nvidia.ko
/boot/kernel/ directory contains
cpuctl.ko

But, the modules are not loaded.

What am I missing?

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Boot Loader Conf

2011-12-17 Thread Thomas D. Dean
On Sun, 2011-12-18 at 04:36 +0800, Denise H. G. wrote:

 
 Try to load them using kldload(8) and see what it says. You have to
 provide more details, I think.

I am sorry, I thought that was obvious from my original post.

Yes, kldload works.  kldload finds the modules located as I indicated in
my original post.

I want the modules to be loaded at boot time not after login.

It appears the loader is not looking at /boot/loader.conf.  There was
some talk of moving this functionality (at least in part) to the rc.d
functionality.  Has some of that started?

tomdean



___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Video Card for FreeBSD 9.0 (RC2) AMD64

2011-12-14 Thread Thomas D. Dean
On Mon, 2011-12-12 at 14:22 -0500, Dieter BSD wrote:

 Have you tried setting your own modeline?  I managed to get a
 crappy onboard ATI RAGE XL to do 1920x1080.  (With help from some
 nice folks on the questions@ list.)

I tried the  modeline reported by the monitor without the x60.0.  The
monitor reports 1920x1080x60.0.  Is there some syntax that will allow
the Vesa driver to recognize it?

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Video Card for FreeBSD 9.0 (RC2) AMD64

2011-12-13 Thread Thomas D. Dean
On Tue, 2011-12-13 at 03:33 +0100, Gary Jennejohn wrote:

 Try running ``make config'' and turn off Linux support, which is on by
 default.
 

Works, thanks.  Now, hurry, hurry UPS.

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Video Card for FreeBSD 9.0 (RC2) AMD64

2011-12-12 Thread Thomas D. Dean
On Mon, 2011-12-12 at 12:31 +, Matt Dawson wrote:
I found a 

MSI N210-MD512D3/LP GeForce 210 512MB 64-bit DDR3 PCI Express 2.0 x16
HDCP Ready Video Card

http://www.newegg.com/Product/Product.aspx?Item=N82E16814127603

Is this the kind of video card for xterm and gnuplot?

This is about 1/5 the $ I paid for the Radeon.  What I get for not
reading the man page, and all the references, carefully.

tomdean


___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Video Card for FreeBSD 9.0 (RC2) AMD64

2011-12-12 Thread Thomas D. Dean
On Mon, 2011-12-12 at 22:46 +, RW wrote:

ports/x11/nvidia-driver requires linux to install.

Building the port works fine.

Installing the port requires 'kldload linux' before the port will
install.

Seems like something is mixed-up.

But, kldload nvidia also loads linux.

I guess this means there is no native FreeBSD AMD64 driver, but, linux
emulation of a driver.  Or, do I mis-understand linux emulation?

tomdean


___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Video Card for FreeBSD 9.0 (RC2) AMD64

2011-12-11 Thread Thomas D. Dean
ASUS P9X79 Motherboard, Intel i7-3930K, Diamond Radeon HD 6870 Vide,
ASUS VS228 Monitor.

I have been looking for a video card that FreeBSD 9.0 (RC2) AMD64
supports fully.  Nothing, so far.

If you recall, I had to use the Vesa driver with the existing card
because KMS is not implemented.  And, it seems not likely in the near
future.

My monitor reports several modes that are not supported with the Vesa
driver.  The ones I am interested in are 1920x1080x0.0, which I do not
understand and 1920x1080x60.0.

I want a 1920x1080 display.

I need a video card that will support my monitor but not require KMS.
Any suggestions?

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Install Problems on ASUS P9X79 GPT - SOLVED

2011-12-05 Thread Thomas D. Dean
On Mon, 2011-12-05 at 00:00 -0800, Thomas D. Dean wrote:

I think I have it...  Maybe this should get in a FAQ somewhere...

I did:
1.  Install windows 7 on disk 0, 200G partition - windows corrupted the
GPT partition because microsoft does not understand GPT tables.
2.  Install Ubuntu 11.10 on disk 1, using some 110G
Update-grub finds the windows installation and I can boot either
from the grub menu.
3.  Install FreeBSD 9.0 (RC2) on disk 1 after Ubuntu, using the
remainder of the disk.
4.  Reboot and at the grub menu, enter 'c' to escape to the command
prompt.  Enter the commands:

insmod part_gpt
insmod ufs2
set root='(hd1,gpt4)'
echo Loading kernel of FreeBSD kernel ...
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad1p4
set kFreeBSD.vfs.root.mountfrom.options=rw

boot

This can be included in grub by booting Ubuntu, in my case, and creating a file
/etc/grub.d/11_freebsd:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry FreeBSD 9.0 (RC2) {
insmod part_gpt
insmod ufs2
set root='(hd1,gpt4)'
echo Loading kernel of FreeBSD kernel ...
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad1p4
set kFreeBSD.vfs.root.mountfrom.options=rw
}

From Ubuntu, gathered information:

$ sudo parted /dev/sdb print
Model: ATA WDC WD5000AAKX-6 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
 1 17.4kB 100GB 100GB ext4
 2 100GB 132GB 32.0GB linux-swap(v1)
 3 132GB 132GB 65.5kB
 4 132GB 495GB 363GB freebsd-ufs
 5 495GB 499GB 4295MB

$ sudo mount -t ufs -o ufstype=ufs2 -r /dev/sdb4 /mnt
tomdean@P9X79:~$ ls /mnt
bin COPYRIGHT etc libexec mnt rescue sbin tmp var
boot dev lib media proc root sys usr
tomdean@P9X79:~$ ls /mnt/boot
beastie.4th check-password.4th gptzfsboot menu-commands.4th userboot.so
boot color.4th kernel menu.rc version.4th
boot0 defaults loader modules zfs
boot0sio delay.4th loader.4th pmbr zfsboot
boot1 device.hints loader.help pxeboot zfsloader
boot2 firmware loader.rc screen.4th
brand.4th frames.4th mbr shortcuts.4th
cdboot gptboot menu.4th support.4th

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: Install Problems on ASUS P9X79 GPT - SOLVED

2011-12-05 Thread Thomas D. Dean
On Mon, 2011-12-05 at 23:37 -0800, Thomas D. Dean wrote:
 On Mon, 2011-12-05 at 00:00 -0800, Thomas D. Dean wrote:

 
 This can be included in grub by booting Ubuntu, in my case, and creating a 
 file
 /etc/grub.d/11_freebsd:
 
 #!/bin/sh
 exec tail -n +3 $0
 # This file provides an easy way to add custom menu entries.  Simply type the
 # menu entries you want to add after this comment.  Be careful not to change
 # the 'exec tail' line above.
 menuentry FreeBSD 9.0 (RC2) {
 insmod part_gpt
 insmod ufs2
 set root='(hd1,gpt4)'
 echo Loading kernel of FreeBSD kernel ...
 kfreebsd /boot/kernel/kernel
 kfreebsd_loadenv /boot/device.hints
 set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad1p4
 set kFreeBSD.vfs.root.mountfrom.options=rw
 }
 

And then, use update-grub.

Sorry, I stopped short...

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


CPUFreq

2011-11-30 Thread Thomas D. Dean
HP Envy 17 3D Notebook

 uname -a 
FreeBSD Envy.tddhome 8.2-STABLE FreeBSD 8.2-STABLE #3: \
Mon Oct 24 11:38:59 PDT 2011  \
tomdean@Envy.tddhome:/usr/obj/usr/src/sys/GENERIC amd64
 dmesg 
...
CPU: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz (2294.80-MHz K8-class
CPU)
...  

I screwed the cpufreq settings and cannot get back to the default (boot)
performance.  The value of dev.cpu.0.freq was 800 and this seemed
strange.

I have two processes running that I do not want to stop.  They have been
running for 19 days and I expect they will finish in another 10 days, or
so.

The core temps before I started messing with things were
Wed Nov 30 04:36:41 PST 2011
hw.acpi.thermal.tz0.temperature: 72.0C
dev.cpu.0.temperature: 73.0C
dev.cpu.1.temperature: 73.0C
dev.cpu.2.temperature: 70.0C
dev.cpu.3.temperature: 70.0C
dev.cpu.4.temperature: 72.0C
dev.cpu.5.temperature: 72.0C
dev.cpu.6.temperature: 72.0C
dev.cpu.7.temperature: 72.0C

and, a couple dev.cpu.0 values:
dev.cpu.0.freq: 800
dev.cpu.0.freq_levels: 2301/45000 2012/39375 1800/33127 1600/28627
1400/24305 1225/21266 1200/20566 1050/17995 1000/16595 875/14520
800/12801 700/11200 600/9600 500/8000 400/6400 300/4800 200/3200 

I started changing dev.cpu.0.freq and got out-of-whack!
 sudo sysctl dev.cpu.0.freq=2301
dev.cpu.0.freq: 800 - 2310

OK, I thought.  But, dev.cpu.0.temperature started rising and went to
the mid-80's.  I changed it to a lower value and the temperature
dropped, as expected.

 sudo sysctl dev.cpu.0.freq=2012
dev.cpu.0.freeq: 2310 - 2012
 sysctl dev.cpu.0.temperature
dev.cpu.0.temperature: 65.0C

The fan is silent.  I believe the CPU is running at some state different
than the boot state because the temperature has dropped.

 sysctl dev.cpu.0
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.coretemp.delta: 35
dev.cpu.0.coretemp.resolution: 1
dev.cpu.0.coretemp.tjmax: 100.0C
dev.cpu.0.coretemp.throttle_log: 0
dev.cpu.0.temperature: 65.0C
dev.cpu.0.freq: 2012
dev.cpu.0.freq_levels: 2301/45000 2012/39375 1800/33127 1600/28627
1400/24305 1225/21266 1200/20566 1050/17995 1000/16595 875/14520
800/12801 700/11200 600/9600 500/8000 400/6400 300/4800 200/3200
100/1600
dev.cpu.0.cx_supported: C1/1 C2/104
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% last 305us

Is there any way to get back to the boot state other than rebooting?

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Monitor and Control

2011-11-30 Thread Thomas D. Dean
HP Envy 17 3D notebook

 uname -a
FreeBSD Envy.tddhome 8.2-STABLE FreeBSD 8.2-STABLE #3: Mon Oct 24 \
11:38:59 PDT 2011 \
tomdean@Envy.tddhome:/usr/obj/usr/src/sys/GENERIC  amd64

How do I read vcore?  How do I control it?

How do I read fan speeds?

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: CPUFreq

2011-11-30 Thread Thomas D. Dean
On Wed, 2011-11-30 at 20:18 +0100, Tomasz Kowalczyk wrote:
 Hello
 I think you don't even need to go 'back' to boot frequency. I suggest using 
 powerd(8) to save some power and lower the temperature.
 Put it in /etc/rc.conf :
 powerd_enable=YES
 powerd_flags=-a adp -m 800
 
Making this change and starting powerd put me back to the state where
dev.cpu.0.temperature: 83.0C  # changing 82..85
dev.cpu.0.freq: 2301

I am confused about what side effect modified behavior when I changed
dev.cpu.0.freq initially.  Somehow, this change got the system away from
the boot state.

Since then, I have not seen the state where dev.cpu.0.temperature was in
the low to mid 70's.

When I have dev.cpu.0.freq: 2012, dev.cpu.0.temperature is below 60C.
When I have dev.cpu.0.freq: 2301, dev.cpu.0.temperature is above 80C.
So, the load on the CPU is not the same as when in the boot state.

I don't understand this.

tomdean

___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org


Re: amd64/162489: After some time X blanks the screen and does not respone to mouse or keyboard

2011-11-14 Thread Thomas D. Dean
The following reply was made to PR amd64/162489; it has been noted by GNATS.

From: Thomas D. Dean tomd...@speakeasy.org
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: amd64/162489: After some time X blanks the screen and does not
 respone to mouse or keyboard
Date: Mon, 14 Nov 2011 09:51:50 -0800

 If I do
 
 xset -dpms
 
 After three days, no problem.
 
 This is related to suspend/resume.
 
___
freebsd-amd64@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to freebsd-amd64-unsubscr...@freebsd.org