geli+Root on ZFS installation

2013-09-20 Thread yudi v
Hi,

I managed to install with "geli+root on ZFS" setup but have a few
questions.  Most of the instructions just list commands but offer very
little explanation.
I adapted the instructions in
https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE  to suit my needs.

Here's the process I used for the test on a VM:

2 GB RAM
two HDDs 8 GB each mirrored - three partitions

for boot code 128 KB
for /boot 2 GB
for the rest of the system and encrypted

no key file for encrypted partitions, only passphrase
using 9.1-RELEASE
there will be no swap or handling of 4k drives, just to keep it as simple
as possible.

*Create the basic three partitions:*


gpart destroy -F da0
gpart destroy -F da1
gpart create -s gpt da0
gpart create -s gpt da1
gpart add -s 128 -t freebsd-boot da0
gpart add -s 128 -t freebsd-boot da1
gpart add -s 2G -t freebsd-zfs da0
gpart add -s 2G -t freebsd-zfs da1
gpart add -t freebsd-zfs da0
gpart add -t freebsd-zfs da1

*Write boot code to both disks:*

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1

*Load necessary modules:*

kldload zfs
kldload geom_eli
*
Encrypt the disks with only a passphrase:*

geli init -b -s 4096 /dev/da0p3
geli init -b -s 4096 /dev/da1p3

geli attach /dev/da0p3
geli attach /dev/da1p3

*Creating ZFS datasets:*

zpool create bootdir mirror /dev/da0p2 /dev/da1p2
zpool set bootfs=bootdir bootdir

zpool create -R /mnt -O canmount=off tank mirror /dev/da0p3.eli
/dev/da1p3.eli
zfs create -o mountpoint=/tank/ROOT
zfs set mountpoint=/mnt/bootdirbootdir
zfs mount bootdir

*Then exit out of the shell and go back to bsdinstall. Install as normal
and then get back to the shell after bsdinstall finishes ( do not reboot
yet).*

Once in the newly installed system:

mount -t devfs devfs /dev   ( to use ZFS commands in the new environment)

*Add the necessary variables/settings:*

echo ‘zfs_enable=”YES”‘ >> /etc/rc.conf
echo ‘vfs.root.mountfrom=”zfs:tank/ROOT”‘  >> /boot/loader.conf
echo ‘zfs_load=”YES”‘ >> /boot/loader.conf
echo ‘geom_eli_load=”YES”‘ >> /boot/loader.conf

*Then create a zpool cache file:*

 zpool set cachefile=/boot/zfs/zpool.cache tank.

*Then move the boot folder to the second partition under the bootdir
dataset:*

mv boot bootdir/
*
Then set the final mount points:*

zfs set mountpoint=legacy tank
zfs set mountpoint=/bootdir bootdir

*then reboot.*
It should boot fine into the new system.

-  My questions:  -

*1.*   Almost all the guides  I came across, do not install to the root
dataset, they only seem to use it to derive/mount other
datasets/filesystems.
One of the reasons is to user boot environments, what are the other
possible reasons for doing this?



*2*.   Is it necessary to create a symbolic link to the /boot dir? Again
one of the howtos on the web had this step (
https://www.dan.me.uk/blog/2012/05/06/full-disk-encryption-with-zfs-root-for-freebsd-9-x/
).

ln -fs bootdir/boot

*3*.   This below option is where I had most trouble. This definitely needs
to be present when using geli+ZFS, if it's only ZFS, then I think the
bootfs flag suffices. Can someone with more knowledge of this please shed
some light on when this entry is needed.

vfs.root.mountfrom=”zfs:tank/ROOT”

*4.* In the wiki link above, what is the purpose of:

# zfs set mountpoint=/  zroot/ROOT
# zfs set mountpoint=/zroot zroot

I cannot understand the logic behind the second command.
Does that mean zroot  will display under / (root of the filesystem)?  and
Why?

looking at the rest of the commands:

# zfs set mountpoint=/tmp zroot/tmp
 # zfs set mountpoint=/usr zroot/usr
 # zfs set mountpoint=/var zroot/var

so if ROOT is set to /
then tmp, usr and var all appear under ROOT, is that right?


*5.* There seems to be lot of variation on how the system directories are
mounted under ZFS. In the above wiki link, there seems to be separate
filesystems created under the root dataset for usr, var, tmp, usr/home 
  What's the logic? Are there any general guidelines/best practice
instructions?



Thank you.
Yudi
___
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: this 48-core box...

2013-09-20 Thread Vincent Schut
On Thu, 19 Sep 2013 12:05:14 -0700 (PDT)
Dennis Glatting  wrote:

> 
> 
> On Thu, 19 Sep 2013, Vincent Schut wrote:
> 
> > On Tue, 17 Sep 2013 12:08:43 -0500
> > Michael Chen  wrote:
> >
> >> I'm considering bidding on this 48-core box:
> >>
> >> http://www.ebay.com/itm/Supermicro-A-Server-1042G-TF-1U-H8QG6-4-CPUS-48-cores-2-2Ghz-128GB-RAM-/151119828428?pt=COMP_EN_Servers&hash=item232f7195cc
> >>
> >> Does anyone have experience with it and can I use all the cores?
> >>
> >> 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"
> >>
> >
> > I recently bought one like that (48 cores but 'only' 96 Gb ram). It
> > was meant to play a double role as both zfs file server and data
> > processing server (we do lots of satellite image processing),
> > running FreeBSD 9.1. It connects with a SAN and we'll use it to
> > process about 36TB of satellite data in the next months. (In a
> > couple of weeks we will probably have budget to split those roles,
> > and buy a dedicated file server.) After several weeks of tweaking
> > and testing, I can say that:
> > - the zfs/file server part runs without problems
> > - the satellite data processing had problems scaling to all 48
> > cores, I got max performance when running about 18 processes in
> > parallel, scaling up more would lower the overall performance.
> > However, this (sorry guys) appeared to be a FreeBSD problem, and
> > not a hardware problem. As a test I switched to linux with ZoL (ZFS
> > on Linux), and, though zfs performance is less compared to freebsd,
> > data processing is much much better, like a factor 12 or so.
> >
> 
> I've noticed this same scaling problem on 32+ core servers but
> haven't had a chance to look into the detail. From the performance
> graphs I am confused whether my problems are processing problems or a
> data I/O problem.

I have done some (light) investigation as I did need the processing
power. In my case the bottleneck was definitely not data I/O. Bonnie+
rates from and to the dataset were as expected, top and atop and other
utils did not show any stress on the I/O system, and the algorithm which
did not scale should not be IO bound, rather cpu or memory (or
both). I've heard/read rumors (when I was investigating the extreme
long compile time of openblas on freebsd compared to linux) about bsd
being less well optimized in e.g. using the processor's L2 cache.
Things like this can play an important role in the processing we do
(many numerical calculations on lots of data in memory). Most of the
calculations were done by quite optimized software for numerical
processing (numpy/scipy using openblas (yes I did make sure openblas
used only 1 thread when scaling up)). The fact that the problems
disappeared when running the same under linux also point in the
cpu/memory direction rather that I/O, as the ZFS on Linux performance
is still behind that of ZFS on BSD.

> 
> 
> > Conclusion: the hardware is alright, however when needed to do lots
> > of heavy calculations on terabytes of data, the combination with
> > FreeBSD appears not ideal.
> >
> > Of course it is you get what you pay for. Decent, OK working
> > hardware, but none of the special handy-dandy features expensive
> > brands will give you. If you don't need them, in my experience it
> > is decent hardware for a good price.
> >
> > regards,
> > Vincent.
> >
> > ___
> > 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"
> 

___
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: PKGNG

2013-09-20 Thread Matthew Seaman
On 09/20/13 05:05, Ethan W. House wrote:
> What is the status of pkgng. The handbook says to use it but else were it
> says that the repos are empty due to a security incident last November.
> 
> Are there beta repos hidden somewhere that can be used? The reason I ask is
> I want to install packages like Gimp and LibreOffice which will take a
> fortnight on my laptop to compile. I tried pkg_add but that broke
> everything when I updated to 9.2.

pkgng is in rude health.  It's certainly usable -- you can enable it on
your systems and use it with the ports (portmaster, portupgrade style)
or you can try various repos which are available online.

The systems that will be the official FreeBSD pkg repo are on-line and
available for testing with:

% cat /usr/local/etc/pkg/repos/pkg-test.conf
---
pkg-test:
  URL: http://pkg-test.freebsd.org/pkg-test-${ABI}/latest
  ENABLED: YES
  MIRROR_TYPE: SRV


This doesn't have package signatures yet, but otherwise it's pretty much
what will be the official pkg repository for 10.0-RELEASE.

There are other publicly available pkg repos, such as the one provided
by Exonetric which is at

http://mirror.exonetric.net/pub/pkgng/${ABI}/latest

Cheers,

Matthew
___
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: PKGNG

2013-09-20 Thread Mehmet Erol Sanliturk
On Fri, Sep 20, 2013 at 5:16 AM, Matthew Seaman <
m.sea...@infracaninophile.co.uk> wrote:

> On 09/20/13 05:05, Ethan W. House wrote:
> > What is the status of pkgng. The handbook says to use it but else were it
> > says that the repos are empty due to a security incident last November.
> >
> > Are there beta repos hidden somewhere that can be used? The reason I ask
> is
> > I want to install packages like Gimp and LibreOffice which will take a
> > fortnight on my laptop to compile. I tried pkg_add but that broke
> > everything when I updated to 9.2.
>
> pkgng is in rude health.  It's certainly usable -- you can enable it on
> your systems and use it with the ports (portmaster, portupgrade style)
> or you can try various repos which are available online.
>
> The systems that will be the official FreeBSD pkg repo are on-line and
> available for testing with:
>
> % cat /usr/local/etc/pkg/repos/pkg-test.conf
> ---
> pkg-test:
>   URL: http://pkg-test.freebsd.org/pkg-test-${ABI}/latest
>   ENABLED: YES
>   MIRROR_TYPE: SRV
>
>
> This doesn't have package signatures yet, but otherwise it's pretty much
> what will be the official pkg repository for 10.0-RELEASE.
>
> There are other publicly available pkg repos, such as the one provided
> by Exonetric which is at
>
> http://mirror.exonetric.net/pub/pkgng/${ABI}/latest
>
> Cheers,
>
> Matthew
>


The following links are not accessible ( at least from Turkey ) :

http://pkg-test.freebsd.org/
http://pkg-test.freebsd.org/pkg-test-amd64/
http://pkg-test.freebsd.org/pkg-test-i386/

The message is the following :

Server not found
Firefox can't find the server at pkg-test.freebsd.org.


The following links are accessible :

http://mirror.exonetric.net/pub/pkgng/
http://mirror.exonetric.net/pub/pkgng/freebsd%3A10%3Ax86%3A64/
http://mirror.exonetric.net/pub/pkgng/freebsd%3A8%3Ax86%3A64/
http://mirror.exonetric.net/pub/pkgng/freebsd%3A9%3Ax86%3A64/




Thank you very much .

Mehmet Erol Sanliturk
___
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: PKGNG

2013-09-20 Thread Matthew Seaman
On 09/20/13 10:59, Mehmet Erol Sanliturk wrote:
> The following links are not accessible ( at least from Turkey ) :
> 
> http://pkg-test.freebsd.org/
> http://pkg-test.freebsd.org/pkg-test-amd64/
> http://pkg-test.freebsd.org/pkg-test-i386/
> 

pkg-test.freebsd.org is a SRV record, not an A record[*].  pkg(8) will
be able to find the repo given the information I showed.

Also ${ABI} in pkg.conf expands to a string like freebsd:9:x86:64 which
includes more than just the CPU architecture.

Cheers,

Matthew

[*] This usage is not in compliance with RFC 2616 so the URL will need
to be changed at some point.  See https://github.com/freebsd/pkg/issues/550


___
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"


e2fsprogs fails to build/compile in FreeBSD 9.1

2013-09-20 Thread Antonio Olivares
gmake[2]: Entering directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/resize'
CC extent.c
CC resize2fs.c
CC main.c
CC online.c
CC resource_track.c
CC sim_progress.c
CC test_extent.c
SUBST resize2fs.8
LD test_extent
LD resize2fs
gmake[2]: Leaving directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/resize'
making all in tests/progs
gmake[2]: Entering directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/tests/progs'
CC test_icount.c
MK_CMDS test_icount_cmds.c
CC crcsum.c
CC test_icount_cmds.c
LD crcsum
LD test_icount
gmake[2]: Leaving directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/tests/progs'
making all in po
gmake[2]: Entering directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/po'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/po'
gmake[1]: Leaving directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8'
gmake docs
gmake[1]: Entering directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8'
gmake[2]: Entering directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/doc'
MAKEINFO libext2fs.info
gmake[2]: Leaving directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/doc'
gmake[1]: Leaving directory
`/usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8'
cd /usr/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.8/e2fsck &&
/bin/rm -f e2fsck  && gmake e2fsck  STATIC_LIBS="../lib/libext2fs.a
../lib/libcom_err.a  ../lib/libblkid.a  ../lib/libuuid.a"
LIBINTL="/usr/local/lib/libintl.a"
LD e2fsck
/usr/local/lib/libintl.a(dcigettext.o): In function `_nl_find_msg':
dcigettext.c:(.text+0x94b): undefined reference to `libiconv_open'
dcigettext.c:(.text+0x9fa): undefined reference to `libiconv'
dcigettext.c:(.text+0xbaf): undefined reference to `libiconv_open'
/usr/local/lib/libintl.a(relocatable.o): In function
`libintl_set_relocation_prefix':
relocatable.c:(.text+0x14b): undefined reference to
`libiconv_set_relocation_prefix'
gmake: *** [e2fsck] Error 1
*** [post-build] Error code 2

Stop in /usr/ports/sysutils/e2fsprogs.
*** [build] Error code 1

Stop in /usr/ports/sysutils/e2fsprogs.

===>>> make failed for sysutils/e2fsprogs
===>>> Aborting update

===>>> Update for sysutils/e2fsprogs failed
===>>> Aborting update

===>>> Killing background jobs
Terminated





Ideas, advice, suggestions, will be greatly appreciated.

Best Regards,


Antonio
___
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"


SES tools and RRD perhaps?

2013-09-20 Thread aurfalien
Hi all,

1) Any one have a way to monitor fan speeds/temp of a JBOD connected via a SAS 
cable?

2) Any one integrate SES into something like Cacti or Zabbix?

I know the later is sort of not FreeBSD specific but this list has many a guru 
lurking.

Thanks in advance,

- aurf
___
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: SES tools and RRD perhaps?

2013-09-20 Thread aurfalien

On Sep 20, 2013, at 12:05 PM, Juan Bernhard wrote:

> El 20/09/2013 03:48 p.m., aurfalien escribió:
>> Hi all,
>> 
>> 1) Any one have a way to monitor fan speeds/temp of a JBOD connected via a 
>> SAS cable?
> You can get disk temperature by sysutils/smartmontools, and motherboard fans 
> sysutils/mbmon (assuming that your fans are connected to the motherboard)
>> 
>> 2) Any one integrate SES into something like Cacti or Zabbix?
> I don't know what SES means

Its SCSI Enclosure Services and commands like getencstat can see my JBODs, just 
unsure how I can get more granular info.

I'll try to see if the tools you listed detect the JBODs.

Thanks for that.

- aurf
___
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: PKGNG

2013-09-20 Thread Ethan W. House
Thanks, that was exactly the information I was looking for.

Ethan House


On Fri, Sep 20, 2013 at 2:16 AM, Matthew Seaman <
m.sea...@infracaninophile.co.uk> wrote:

> On 09/20/13 05:05, Ethan W. House wrote:
> > What is the status of pkgng. The handbook says to use it but else were it
> > says that the repos are empty due to a security incident last November.
> >
> > Are there beta repos hidden somewhere that can be used? The reason I ask
> is
> > I want to install packages like Gimp and LibreOffice which will take a
> > fortnight on my laptop to compile. I tried pkg_add but that broke
> > everything when I updated to 9.2.
>
> pkgng is in rude health.  It's certainly usable -- you can enable it on
> your systems and use it with the ports (portmaster, portupgrade style)
> or you can try various repos which are available online.
>
> The systems that will be the official FreeBSD pkg repo are on-line and
> available for testing with:
>
> % cat /usr/local/etc/pkg/repos/pkg-test.conf
> ---
> pkg-test:
>   URL: http://pkg-test.freebsd.org/pkg-test-${ABI}/latest
>   ENABLED: YES
>   MIRROR_TYPE: SRV
>
>
> This doesn't have package signatures yet, but otherwise it's pretty much
> what will be the official pkg repository for 10.0-RELEASE.
>
> There are other publicly available pkg repos, such as the one provided
> by Exonetric which is at
>
> http://mirror.exonetric.net/pub/pkgng/${ABI}/latest
>
> Cheers,
>
> Matthew
> ___
> 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"


Re: SES tools and RRD perhaps?

2013-09-20 Thread Juan Bernhard

El 20/09/2013 03:48 p.m., aurfalien escribió:

Hi all,

1) Any one have a way to monitor fan speeds/temp of a JBOD connected via a SAS 
cable?
You can get disk temperature by sysutils/smartmontools, and motherboard 
fans sysutils/mbmon (assuming that your fans are connected to the 
motherboard)


2) Any one integrate SES into something like Cacti or Zabbix?

I don't know what SES means


I know the later is sort of not FreeBSD specific but this list has many a guru 
lurking.

Thanks in advance,

- aurf
___
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"


sound settings

2013-09-20 Thread Ajtim
Hi!
My system is FreeBSD 10.0-ALPHA1 #0 r255501: Fri Sep 13 01:57:31 UTC 2013 
r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64 installed on iMac 
11,1.
It works very good but I don't know how to setup sound system.
After start system:
cat /dev/sndstat
Installed devices:
pcm0:  (play)
pcm1:  (play/rec) default
pcm2:  (play/rec)
pcm3:  (play/rec)

Than I run sysctl dev.hdaa:

dev.hdaa.0.%desc: ATI R6xx Audio Function Group
dev.hdaa.0.%driver: hdaa
dev.hdaa.0.%location: nid=1
dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x00aa0100
dev.hdaa.0.%parent: hdacc0
dev.hdaa.0.nid2: audio output
Widget cap: 0x0201 DIGITAL STEREO
Association: 0 (0x0001)
OSS: pcm (pcm)
Stream cap: 0x0001 PCM
PCM cap: 0x00020070 16 bits, 32 44 48 KHz

dev.hdaa.0.nid3: pin: Digital-out (Jack)
Widget cap: 0x00400381 DIGITAL UNSOL STEREO
Association: 0 (0x0001)
Pin cap: 0x0094 PDC OUT HDMI
Pin config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital 
loc=0x18 color=Unknown misc=0
Pin control: 0x0040 OUT
Connections: 1
+ <- nid=2 [audio output]

dev.hdaa.0.nid3_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.0.nid3_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.0.gpi_state: 
dev.hdaa.0.gpio_state: 
dev.hdaa.0.gpio_config: 
dev.hdaa.0.gpo_state: 
dev.hdaa.0.gpo_config: 
dev.hdaa.0.reconfig: 0 
dev.hdaa.1.%desc: Cirrus Logic CS4206 Audio Function Group 
dev.hdaa.1.%driver: hdaa 
dev.hdaa.1.%location: nid=1 
dev.hdaa.1.%pnpinfo: type=0x01 subsystem=0x106b5100 
dev.hdaa.1.%parent: hdacc1 
dev.hdaa.1.nid2: audio output 
Widget cap: 0x000d041d PWR STEREO 
Association: 4 (0x0001) 
OSS: pcm (pcm)
Stream cap: 0x0003 FLOAT32 PCM
PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz
Output amp: 0x80017f73 mute=1 step=127 size=1 offset=115 (-57/6dB)

dev.hdaa.1.nid3: audio output
Widget cap: 0x000d041d PWR STEREO
Association: 3 (0x0001)
OSS: pcm (pcm)
Stream cap: 0x0003 FLOAT32 PCM
PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz
Output amp: 0x80017f73 mute=1 step=127 size=1 offset=115 (-57/6dB)

dev.hdaa.1.nid4: audio output
Widget cap: 0x000d041d PWR STEREO
Association: 3 (0x0004)
OSS: pcm (pcm)
Stream cap: 0x0003 FLOAT32 PCM
PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz
Output amp: 0x80017f73 mute=1 step=127 size=1 offset=115 (-57/6dB)

dev.hdaa.1.nid5: audio input
Widget cap: 0x0018051b PWR STEREO
Association: 1 (0x0001)
Stream cap: 0x0003 FLOAT32 PCM
PCM cap: 0x001e01f5 16 20 24 32 bits, 8 16 32 44 48 88 96 KHz
Input amp: 0x80033f33 mute=1 step=63 size=3 offset=51 (-51/12dB)
Connections: 2
+ <- nid=12 [pin: Line-in (Blue Jack)] (selected)
+ [DISABLED] <- nid=18 [pin: Line-out (None)] [DISABLED]

dev.hdaa.1.nid6: audio input
Widget cap: 0x0018051b PWR STEREO
Association: 0 (0x0001)
Stream cap: 0x0003 FLOAT32 PCM
PCM cap: 0x001e01f5 16 20 24 32 bits, 8 16 32 44 48 88 96 KHz
Input amp: 0x80033f33 mute=1 step=63 size=3 offset=51 (-51/12dB)
Connections: 2
+ <- nid=13 [pin: Mic (Fixed)] (selected)
+ [DISABLED] <- nid=14 [pin: Line-out (None)] [DISABLED]

dev.hdaa.1.nid7: audio input
Widget cap: 0x00180791 PWR DIGITAL UNSOL STEREO
Association: 2 (0x0001)
Stream cap: 0x0007 AC3 FLOAT32 PCM
PCM cap: 0x001e0570 16 20 24 32 bits, 32 44 48 96 192 KHz
Connections: 1
+ <- nid=15 [pin: SPDIF-in (White Jack)]

dev.hdaa.1.nid8: audio output
Widget cap: 0x00040611 PWR DIGITAL STEREO
Association: 5 (0x0001)
OSS: pcm (pcm)
Stream cap: 0x0007 AC3 FLOAT32 PCM
PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz

dev.hdaa.1.nid9: pin: Headphones (Green Jack)
Widget cap: 0x00410581 PWR UNSOL STEREO
Association: 4 (0x0001)
Pin cap: 0x001c PDC HP OUT
Pin config: 0x012b4050 as=5 seq=0 device=Headphones conn=Jack ctype=Combo 
loc=Rear color=Green misc=0
Pin control: 0x00c0 HP OUT
Connections: 1
+ <- nid=2 [audio output]

dev.hdaa.1.nid9_config: 0x012b4050 as=5 seq=0 device=Headphones conn=Jack 
ctype=Combo loc=Rear color=Green misc=0
dev.hdaa.1.nid9_original: 0x012b4050 as=5 seq=0 device=Headphones conn=Jack 
ctype=Combo loc=Rear color=Green misc=0
dev.hdaa.1.nid10: pin: Speaker (Fixed)
Widget cap: 0x00410581 PWR UNSOL STEREO
Association: 3 (0x0001)
Pin cap: 0x0054 PDC OUT BAL
Pin config: 0x90100140 as=4 seq=0 device=Speaker conn=Fixed ctype=Unknown 
loc=Internal color=Unknown misc=1
Pin control: 0x0040 OUT
Connections: 1
+ <- nid=3 [audio output]

dev.hdaa.1.nid10_config: 0x90100140 as=4 seq=0 device=Speaker conn=Fixed 
ctype=Unknown loc=Internal color=Unknown misc=1
dev.hdaa.1.nid10_original: 0x90100140 as=4 seq=0 device=Speaker conn=Fixed 
ctype=Unknown loc=Internal color=Unknown misc=1
dev.hdaa.1.nid11: pin: Speaker (Fixed)
Widget cap: 0x00410101 STEREO
Association: 3 (0x0004)
Pin cap: 0x0050 OUT BAL
Pin config: 0x90100142 as=4 se

Re: sound settings

2013-09-20 Thread Martin Alejandro Paredes Sanchez
On Friday 20 September 2013 14:26:08 Ajtim wrote:
> Hi!
> My system is FreeBSD 10.0-ALPHA1 #0 r255501: Fri Sep 13 01:57:31 UTC 2013
> r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64 installed on iMac
> 11,1.
> It works very good but I don't know how to setup sound system.
> After start system:
> cat /dev/sndstat
> Installed devices:
> pcm0:  (play)
> pcm1:  (play/rec) default
> pcm2:  (play/rec)
> pcm3:  (play/rec)
>

You have 4 devices where the sound can go

which one has the speakers pluged in, you especify with (as root)

# sysctl hw.snd.default_unit=n

test sending a file to the sound system

% cat filename > /dev/dsp
___
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"