Re: USB disk on CS5536 unstable

2010-11-09 Thread Anselm Strauss
I opened a PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=152075

On Wed, Oct 13, 2010 at 11:28 PM, Hans Petter Selasky wrote:

> On Wednesday 13 October 2010 23:22:59 Hans Petter Selasky wrote:
> > Can you add this device to the quirk entries in:
> >
> > sys/dev/usb/controller/ehci.c
>
> ehci_pci.c actually.
>
> --HPS
> ___
> 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"


Shotwell 0.7 on FreeBSD

2010-10-27 Thread Anselm Strauss
Hi,

I was wondering if there are any plans when shotwell in version 0.7 will
come on ports. Currently it is on 0.6.1, the new version would make it
possible to import a f-spot library. But it also requires an update of
vala from 0.8 to 0.9. Are there any blockers?

Cheers,
Anselm
___
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: USB disk on CS5536 unstable

2010-10-09 Thread Anselm Strauss
On 10/07/10 22:59, Lowell Gilbert wrote:
> Anselm Strauss  writes:
> 
>> On 10/02/10 16:39, Hans Petter Selasky wrote:
>>> On Saturday 02 October 2010 14:44:07 Anselm Strauss wrote:
>>>> On 09/30/10 21:38, Hans Petter Selasky wrote:
>>>>> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote:
>>>>>> Maybe sending it to just the USB list was too specific ...
>>>>>>
>>>>>> On 09/30/10 00:08, Anselm Strauss wrote:
>>>>>>> Hi
>>>>>>>
>>>>>>> I have an ALIX board that has an AMD Geode and the CS5536 companion
>>>>>>> chip with integrated USB on it. When I connect a USB disk I have
>>>>>>> observed various problems. For example when I run fsck_ufs on a 250 GB
>>>>>>> partition the process gets stuck in biord state and fsck reports
>>>>>>> unreadable sectors. When I do a dd over the whole disk and direct it
>>>>>>> to /dev/null it suddenly returns with no error, but having read only a
>>>>>>> small fraction of the disk. I tried it with two different disks and
>>>>>>> two different ALIX boards. I'm pretty sure the disks are okay since I
>>>>>>> tried them on other hardware.
>>>>>>>
>>>>>>> As far as I know there was some trouble with the chip regarding
>>>>>>> timeouts. Under load after some time the USB just stops responding. I
>>>>>>> have tried 8.0 and 8.1. Is there any known problem? How can I track
>>>>>>> this down?
>>>>>>>
>>>>>>> Anselm
>>>>>
>>>>> If you compile the kernel with USB_DEBUG, then there are some sysctls
>>>>> under hw.usb.ehci which you can tweak. Needs to be set before boot.
>>>>>
>>>>> --HPS
>>>>
>>>> Did not know that there were configurable bug workarounds in sysctl.
>>>> When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems
>>>> seem gone.
>>>>
>>>> Without this setting I got the following kernel message when dd did abort:
>>>>
>>>> ehci_timeout: xfer=0xc29cd3c8
>>>>
>>>>
>>>> Thanks,
>>>> Anselm
>>>
>>> Maybe you can report the PCI vendor ID and product so that we can add this 
>>> quirk.
>>>
>>> --HPS
>>
>> Not sure what a "PCI vendor ID" is and how to determine it. It's a ALIX
>> 2d2 from http://pcengines.ch/alix.
> 
> pciconf(8) will tell you.  Try sending "pciconf -l" output.

-> pciconf -lv
hos...@pci0:0:1:0:  class=0x06 card=0x20801022 chip=0x20801022
rev=0x33 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'Conrad Kostecki'
class  = bridge
subclass   = HOST-PCI
no...@pci0:0:1:2:   class=0x101000 card=0x20821022 chip=0x20821022
rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'Geode GX3 AES Crypto Driver (GX3)'
class  = encrypt/decrypt
v...@pci0:0:9:0:class=0x02 card=0x01061106 chip=0x30531106 rev=0x96
hdr=0x00
vendor = 'VIA Technologies, Inc.'
device = 'Rhine III Management Adapter (VT6105M)'
class  = network
subclass   = ethernet
v...@pci0:0:11:0:   class=0x02 card=0x01061106 chip=0x30531106 rev=0x96
hdr=0x00
vendor = 'VIA Technologies, Inc.'
device = 'Rhine III Management Adapter (VT6105M)'
class  = network
subclass   = ethernet
a...@pci0:0:12:0:   class=0x02 card=0x1600185f chip=0x001b168c
rev=0x01 hdr=0x00
vendor = 'Atheros Communications Inc.'
device = 'AR5006 family 802.11abg Wireless NIC'
class  = network
subclass   = ethernet
is...@pci0:0:15:0:  class=0x060100 card=0x20901022 chip=0x20901022
rev=0x03 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'CS5536 [Geode companion] ISA'
class  = bridge
subclass   = PCI-ISA
atap...@pci0:0:15:2:class=0x010180 card=0x209a1022 chip=0x209a1022
rev=0x01 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'CS5536 IDE Controller (CS5536)'
class  = mass storage
subclass   = ATA
oh...@pci0:0:15:4:  class=0x0c0310 card=0x20941022 chip=0x20941022
rev=0x02 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'CS5536 OHCI USB Host Controller (CS5536)'
class  = serial bus
subclass   = USB
eh...@pci0:0:15:5:  class=0x0c0320 card=0x20951022 chip=0x20951022
rev=0x02 hdr=0x00
vendor = 'Advanced Micro Devices (AMD)'
device = 'CS5536 EHCI USB Host Controller (CS5536)'
class  = serial bus
subclass   = USB

So I guess it is the last one, the ehci device.
___
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: USB disk on CS5536 unstable

2010-10-07 Thread Anselm Strauss
On 10/07/10 22:12, Anselm Strauss wrote:
> On 10/02/10 16:39, Hans Petter Selasky wrote:
>> On Saturday 02 October 2010 14:44:07 Anselm Strauss wrote:
>>> On 09/30/10 21:38, Hans Petter Selasky wrote:
>>>> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote:
>>>>> Maybe sending it to just the USB list was too specific ...
>>>>>
>>>>> On 09/30/10 00:08, Anselm Strauss wrote:
>>>>>> Hi
>>>>>>
>>>>>> I have an ALIX board that has an AMD Geode and the CS5536 companion
>>>>>> chip with integrated USB on it. When I connect a USB disk I have
>>>>>> observed various problems. For example when I run fsck_ufs on a 250 GB
>>>>>> partition the process gets stuck in biord state and fsck reports
>>>>>> unreadable sectors. When I do a dd over the whole disk and direct it
>>>>>> to /dev/null it suddenly returns with no error, but having read only a
>>>>>> small fraction of the disk. I tried it with two different disks and
>>>>>> two different ALIX boards. I'm pretty sure the disks are okay since I
>>>>>> tried them on other hardware.
>>>>>>
>>>>>> As far as I know there was some trouble with the chip regarding
>>>>>> timeouts. Under load after some time the USB just stops responding. I
>>>>>> have tried 8.0 and 8.1. Is there any known problem? How can I track
>>>>>> this down?
>>>>>>
>>>>>> Anselm
>>>>
>>>> If you compile the kernel with USB_DEBUG, then there are some sysctls
>>>> under hw.usb.ehci which you can tweak. Needs to be set before boot.
>>>>
>>>> --HPS
>>>
>>> Did not know that there were configurable bug workarounds in sysctl.
>>> When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems
>>> seem gone.
>>>
>>> Without this setting I got the following kernel message when dd did abort:
>>>
>>> ehci_timeout: xfer=0xc29cd3c8
>>>
>>>
>>> Thanks,
>>> Anselm
>>
>> Maybe you can report the PCI vendor ID and product so that we can add this 
>> quirk.
>>
>> --HPS
> 
> Not sure what a "PCI vendor ID" is and how to determine it. It's a ALIX
> 2d2 from http://pcengines.ch/alix.
> 
> Anselm

Sorry, wrong URL: http://pcengines.ch/alix.htm
___
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: Swap on ZFS

2010-10-07 Thread Anselm Strauss
On 10/02/10 17:52, Adam Vande More wrote:
> On Sat, Oct 2, 2010 at 4:30 AM, Anselm Strauss  wrote:
> 
>> Hi
>>
>> I have a virtual server with only 512 MB of memory but still want to run
>> ZFS on it.
>> 
>> Has there been any fix or workaround for this? I guess it does not help
>> when I use a swap file on ZFS instead of a separate zvol.
>>
> 
> Make sure you are following this:
> http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot  Please note swap is not a
> ZVOL, it is a sepate partition.  You'd have the same problem with ZVOL.
> Also use i386, that will save you a bit of memory.  Follow the ZFS tuning
> guide.  Even if you follow all those things, I'm not sure you'll be able to
> get it stable.  512MB is really tight.
> 

I now have the swap on a separate disk and it seems more stable.
Although the server still has only 512 MB of RAM, runs on amd64 and I
did no tuning. It's not a file server but compiling ports and running
some services seems okay.

I have seen multiple posts on the net where people put swap on ZFS. What
sense does it make when every time the machine runs out of physical
memory it freezes before it can allocate some swap memory. Does it only
make sense in case you have additional non-ZFS swap?
___
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: USB disk on CS5536 unstable

2010-10-07 Thread Anselm Strauss
On 10/02/10 16:39, Hans Petter Selasky wrote:
> On Saturday 02 October 2010 14:44:07 Anselm Strauss wrote:
>> On 09/30/10 21:38, Hans Petter Selasky wrote:
>>> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote:
>>>> Maybe sending it to just the USB list was too specific ...
>>>>
>>>> On 09/30/10 00:08, Anselm Strauss wrote:
>>>>> Hi
>>>>>
>>>>> I have an ALIX board that has an AMD Geode and the CS5536 companion
>>>>> chip with integrated USB on it. When I connect a USB disk I have
>>>>> observed various problems. For example when I run fsck_ufs on a 250 GB
>>>>> partition the process gets stuck in biord state and fsck reports
>>>>> unreadable sectors. When I do a dd over the whole disk and direct it
>>>>> to /dev/null it suddenly returns with no error, but having read only a
>>>>> small fraction of the disk. I tried it with two different disks and
>>>>> two different ALIX boards. I'm pretty sure the disks are okay since I
>>>>> tried them on other hardware.
>>>>>
>>>>> As far as I know there was some trouble with the chip regarding
>>>>> timeouts. Under load after some time the USB just stops responding. I
>>>>> have tried 8.0 and 8.1. Is there any known problem? How can I track
>>>>> this down?
>>>>>
>>>>> Anselm
>>>
>>> If you compile the kernel with USB_DEBUG, then there are some sysctls
>>> under hw.usb.ehci which you can tweak. Needs to be set before boot.
>>>
>>> --HPS
>>
>> Did not know that there were configurable bug workarounds in sysctl.
>> When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems
>> seem gone.
>>
>> Without this setting I got the following kernel message when dd did abort:
>>
>> ehci_timeout: xfer=0xc29cd3c8
>>
>>
>> Thanks,
>> Anselm
> 
> Maybe you can report the PCI vendor ID and product so that we can add this 
> quirk.
> 
> --HPS

Not sure what a "PCI vendor ID" is and how to determine it. It's a ALIX
2d2 from http://pcengines.ch/alix.

Anselm
___
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: USB disk on CS5536 unstable

2010-10-02 Thread Anselm Strauss
On 09/30/10 21:38, Hans Petter Selasky wrote:
> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote:
>> Maybe sending it to just the USB list was too specific ...
>>
>> On 09/30/10 00:08, Anselm Strauss wrote:
>>> Hi
>>>
>>> I have an ALIX board that has an AMD Geode and the CS5536 companion chip
>>> with integrated USB on it. When I connect a USB disk I have observed
>>> various problems. For example when I run fsck_ufs on a 250 GB partition
>>> the process gets stuck in biord state and fsck reports unreadable
>>> sectors. When I do a dd over the whole disk and direct it to /dev/null
>>> it suddenly returns with no error, but having read only a small fraction
>>> of the disk. I tried it with two different disks and two different ALIX
>>> boards. I'm pretty sure the disks are okay since I tried them on other
>>> hardware.
>>>
>>> As far as I know there was some trouble with the chip regarding
>>> timeouts. Under load after some time the USB just stops responding. I
>>> have tried 8.0 and 8.1. Is there any known problem? How can I track this
>>> down?
>>>
>>> Anselm
> 
> If you compile the kernel with USB_DEBUG, then there are some sysctls under 
> hw.usb.ehci which you can tweak. Needs to be set before boot.
> 
> --HPS

Did not know that there were configurable bug workarounds in sysctl.
When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems
seem gone.

Without this setting I got the following kernel message when dd did abort:

ehci_timeout: xfer=0xc29cd3c8


Thanks,
Anselm
___
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"


Swap on ZFS

2010-10-02 Thread Anselm Strauss
Hi

I have a virtual server with only 512 MB of memory but still want to run
ZFS on it. When there is IO load and only few memory left it
occasionally happens that the server freezes, network ping will still
work. As far as I know there was the problem that an IO request on ZFS
first needs to allocate some memory before it can be run. So in the case
where no memory is left and some swap must be used which lies also on
ZFS, it would still first need some free memory for the request. This
basically results in a deadlock and the system freezes.

Would this not happen every time when the system is out of memory and
swap must be used? So it basically makes swap on ZFS useless.

Has there been any fix or workaround for this? I guess it does not help
when I use a swap file on ZFS instead of a separate zvol.

Appreciating any ideas
Anselm
___
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: USB disk on CS5536 unstable

2010-09-30 Thread Anselm Strauss
Maybe sending it to just the USB list was too specific ...

On 09/30/10 00:08, Anselm Strauss wrote:
> Hi
> 
> I have an ALIX board that has an AMD Geode and the CS5536 companion chip
> with integrated USB on it. When I connect a USB disk I have observed
> various problems. For example when I run fsck_ufs on a 250 GB partition
> the process gets stuck in biord state and fsck reports unreadable
> sectors. When I do a dd over the whole disk and direct it to /dev/null
> it suddenly returns with no error, but having read only a small fraction
> of the disk. I tried it with two different disks and two different ALIX
> boards. I'm pretty sure the disks are okay since I tried them on other
> hardware.
> 
> As far as I know there was some trouble with the chip regarding
> timeouts. Under load after some time the USB just stops responding. I
> have tried 8.0 and 8.1. Is there any known problem? How can I track this
> down?
> 
> Anselm

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

2010-05-28 Thread Anselm Strauss
Hi,

I'm using the snd_hda driver on FreeBSD 8.0 for my ATI SB600 sound chip.
First, I can't adjust the main volume with the mixer(8) command. If I set it
to 0 everything is muted, when I set it to 1-100 sound is unmuted but has
the same volume for all values. Second, is it possible to mute the sound
with the mixer command and later unmute it restoring the values I had before
muting?

Thanks for any help,
Anselm
___
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: VirtualBox: no network

2010-05-17 Thread Anselm Strauss
I'm using the default adapter, that's the intel desktop one I think.
Establishing the connection with DHCP is indeed a bit inconsistent.
Sometimes it's there just after boot, sometimes it scans for half a minute
before making the connection. No problems with DNS. So far I tested browsing
and software updates, worked pretty well. I have not yet done extensive
networking or used it for very long time.

On Mon, May 17, 2010 at 5:32 PM, Ondrej Majerech wrote:

> Ondrej Majerech wrote:
>
>> Anselm Strauss wrote:
>>
>>> I switched to NAT networking for now. It doesn't require any modules to
>>> load
>>> besides the vboxdrv.ko and runs stable so far. Only strange that ICMP is
>>> not
>>> working ...
>>>
>>>
>> NAT networking doesn't work for me. Which Adapter Type are you using? And
>> did you have to do any further configuration or did it jsut work
>> out-of-the-box?
>>
>> ~ Ondra
>>
>
> Ah, wait.
>
> The connection partly does work with the default settings. ICMP doesn't
> work for me either, so testing with ping gave me "false" negative. Also,
> DHCP-configured DNS resolver doesn't work for me -- I had to type in a DNS
> server IP address manually. That way, Firefox running on Ubuntu inside VBox
> can finally load pages.
>
> ~ Ondra
>
___
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: VirtualBox: no network

2010-05-17 Thread Anselm Strauss
I switched to NAT networking for now. It doesn't require any modules to load
besides the vboxdrv.ko and runs stable so far. Only strange that ICMP is not
working ...

On Tue, May 11, 2010 at 10:16 PM, Anselm Strauss wrote:

> Okay, so it works with the stock kernel when I don't load the module and
> don't start the vboxnet service on boot, but just manually load the
> vboxnetflt module when the system is up. Then I start virtualbox and the
> network works fine. Unfortunately there is no indication what kernel
> modules are needed. I think it needs at least netgraph and ng_ether. But
> obviously that's not enough since network still doesn't work with my
> custom kernel.
>
> Oh, and then it regularly freezes my whole system after running for
> about 20 minutes and I have to do a hardware reset ... ;-)
>
>
> On 05/09/10 13:37, Anselm Strauss wrote:
> > Hi,
> >
> > I'm running VirtualBox 3.1.6 on FreeBSD 8.0 amd64. I loaded the vboxdrv
> > module on boot and started the vboxnet service. Then I set up an Ubuntu
> > 10.04 amd64 guest and configured one bridged network interface. But I
> > can't get an IP address from my DHCP server. When I check with tcpdump
> > on all hosts, the traffic goes out from the Ubuntu guest over the
> > FreeBSD host and arrives at my DHCP server. The replies come in on the
> > host system but are then somehow not forwarded to the guest. I never see
> > incoming traffic on the guest system.
> >
> > I tested this with the stock FreeBSD kernel and with both types bridged
> > and NAT networking. There is no firewall on the host system.
> >
> > Any ideas?
> >
> > Thanks,
> > Anselm
>
>
___
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: VirtualBox: no network

2010-05-11 Thread Anselm Strauss
Okay, so it works with the stock kernel when I don't load the module and
don't start the vboxnet service on boot, but just manually load the
vboxnetflt module when the system is up. Then I start virtualbox and the
network works fine. Unfortunately there is no indication what kernel
modules are needed. I think it needs at least netgraph and ng_ether. But
obviously that's not enough since network still doesn't work with my
custom kernel.

Oh, and then it regularly freezes my whole system after running for
about 20 minutes and I have to do a hardware reset ... ;-)


On 05/09/10 13:37, Anselm Strauss wrote:
> Hi,
> 
> I'm running VirtualBox 3.1.6 on FreeBSD 8.0 amd64. I loaded the vboxdrv
> module on boot and started the vboxnet service. Then I set up an Ubuntu
> 10.04 amd64 guest and configured one bridged network interface. But I
> can't get an IP address from my DHCP server. When I check with tcpdump
> on all hosts, the traffic goes out from the Ubuntu guest over the
> FreeBSD host and arrives at my DHCP server. The replies come in on the
> host system but are then somehow not forwarded to the guest. I never see
> incoming traffic on the guest system.
> 
> I tested this with the stock FreeBSD kernel and with both types bridged
> and NAT networking. There is no firewall on the host system.
> 
> Any ideas?
> 
> Thanks,
> Anselm

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


VirtualBox: no network

2010-05-09 Thread Anselm Strauss
Hi,

I'm running VirtualBox 3.1.6 on FreeBSD 8.0 amd64. I loaded the vboxdrv
module on boot and started the vboxnet service. Then I set up an Ubuntu
10.04 amd64 guest and configured one bridged network interface. But I
can't get an IP address from my DHCP server. When I check with tcpdump
on all hosts, the traffic goes out from the Ubuntu guest over the
FreeBSD host and arrives at my DHCP server. The replies come in on the
host system but are then somehow not forwarded to the guest. I never see
incoming traffic on the guest system.

I tested this with the stock FreeBSD kernel and with both types bridged
and NAT networking. There is no firewall on the host system.

Any ideas?

Thanks,
Anselm
___
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-smalltalk] gst-browser on FreeBSD

2010-05-07 Thread Anselm Strauss
Sorry, this should have gone to the gnu smalltalk list.

On Thu, May 6, 2010 at 7:47 PM, Anselm Strauss  wrote:

> On 05/06/10 07:54, Johan van Selst wrote:
> > Anselm Strauss wrote:
> >> I didn't find any GTK packages coming with the installation, maybe the
> >> port for FreeBSD is incomplete ...?
> >
> > Yes, the FreeBSD port installs smalltalk without GTK support (because
> > the combination was broken). This has been the default setup for over 6
> > years now. I'm not sure how bad it is these days. If you want to test it
> > with GTK support, then add "gtk20" to the USE_GNOME line and remove the
> > "--disable-gtk" line in the port's Makefile, before compiling and
> > installing again. Please let me know if this works for you and what
> > system you use (FreeBSD version and architecture).
> >
> >
> > Best regards,
> > Johan van Selst
>
> It compiles and installs on FreeBSD 8.0-p2 on amd64. But it segfaults on
> start:
>
> -> gst-browser
> Recompiling classes...
> Recompiling class: GTK.GtkRequisition class
> Recompiling selector: #sizeof
> Recompiling classes...
> Recompiling classes...
> Recompiling classes...
> Recompiling class: GTK.GdkEventButton class
> Recompiling selector: #sizeof
> Recompiling classes...
> Recompiling class: GTK.GdkEventMotion class
> Recompiling selector: #sizeof
> Recompiling classes...
> Recompiling class: GTK.GdkEventConfigure class
> Recompiling selector: #sizeof
> Recompiling classes...
> Recompiling class: GTK.GdkEventKey class
> Recompiling selector: #sizeof
> Segmentation fault: 11
> ->
>
> Think I will have to look deeper into it ...
>
> Thanks,
> Anselm
>
___
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-smalltalk] gst-browser on FreeBSD

2010-05-06 Thread Anselm Strauss
On 05/06/10 07:54, Johan van Selst wrote:
> Anselm Strauss wrote:
>> I didn't find any GTK packages coming with the installation, maybe the
>> port for FreeBSD is incomplete ...?
> 
> Yes, the FreeBSD port installs smalltalk without GTK support (because
> the combination was broken). This has been the default setup for over 6
> years now. I'm not sure how bad it is these days. If you want to test it
> with GTK support, then add "gtk20" to the USE_GNOME line and remove the
> "--disable-gtk" line in the port's Makefile, before compiling and
> installing again. Please let me know if this works for you and what
> system you use (FreeBSD version and architecture).
> 
> 
> Best regards,
> Johan van Selst

It compiles and installs on FreeBSD 8.0-p2 on amd64. But it segfaults on
start:

-> gst-browser
Recompiling classes...
Recompiling class: GTK.GtkRequisition class
Recompiling selector: #sizeof
Recompiling classes...
Recompiling classes...
Recompiling classes...
Recompiling class: GTK.GdkEventButton class
Recompiling selector: #sizeof
Recompiling classes...
Recompiling class: GTK.GdkEventMotion class
Recompiling selector: #sizeof
Recompiling classes...
Recompiling class: GTK.GdkEventConfigure class
Recompiling selector: #sizeof
Recompiling classes...
Recompiling class: GTK.GdkEventKey class
Recompiling selector: #sizeof
Segmentation fault: 11
->

Think I will have to look deeper into it ...

Thanks,
Anselm
___
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: USB mount delay

2010-05-03 Thread Anselm Strauss
On 05/03/10 19:54, Lowell Gilbert wrote:
> Anselm Strauss  writes:
> 
>> I have the problem that on my ALIX system USB is first powered up when
>> the FreeBSD kernel is loading. When local filesystems are mounted the
>> USB disk is not yet ready and booting fails giving me a shell prompt.
>> Shortly after I see the kernel message for the recognized /dev/da0 USB
>> disk, mount it manually and booting can continue. Unfortunately I have
>> to do this manual step every time I boot. The root filesystem is not
>> mounted from USB. The USB disk has non-system relevant data.
>>
>> Is there any way to either tell the kernel to wait some time before
>> mounting local filesystems from USB disks, or to mount filesystems later
>> during boot?
>>
>> I already tried the following sysctl variables in /boot/loader.conf with
>> values of 3000-5000 ms, they did not help:
>>
>> kern.cam.scsi_delay: Delay to allow devices to settle after a SCSI bus
>> reset (ms)
>> hw.usb.ss_delay: USB status stage delay in ms
>> hw.usb.pr_recovery_delay: USB port reset recovery delay in ms
>>
>> hw.usb.no_boot_wait is set to 0.
> 
> Why don't you just have devfs mount the disk when the disk does finally
> show up?  It sounds like you don't actually need that USB disk for
> booting.  You might need to use glabel to make sure only that one disk
> is mounted automatically.
> 

I totally missed the 'late' option in fstab. This mounts the filesystem
later during boot and does the trick for me ;-)

Thanks,
Anselm
___
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"


USB mount delay

2010-05-01 Thread Anselm Strauss
Hi,

I have the problem that on my ALIX system USB is first powered up when
the FreeBSD kernel is loading. When local filesystems are mounted the
USB disk is not yet ready and booting fails giving me a shell prompt.
Shortly after I see the kernel message for the recognized /dev/da0 USB
disk, mount it manually and booting can continue. Unfortunately I have
to do this manual step every time I boot. The root filesystem is not
mounted from USB. The USB disk has non-system relevant data.

Is there any way to either tell the kernel to wait some time before
mounting local filesystems from USB disks, or to mount filesystems later
during boot?

I already tried the following sysctl variables in /boot/loader.conf with
values of 3000-5000 ms, they did not help:

kern.cam.scsi_delay: Delay to allow devices to settle after a SCSI bus
reset (ms)
hw.usb.ss_delay: USB status stage delay in ms
hw.usb.pr_recovery_delay: USB port reset recovery delay in ms

hw.usb.no_boot_wait is set to 0.


Thanks,
Anselm
___
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: USB keyboard: mode switch / numlock freezes

2010-04-27 Thread Anselm Strauss
On 04/27/10 07:06, Polytropon wrote:
> On Mon, 26 Apr 2010 00:33:28 +0200, Anselm Strauss  
> wrote:
>> Could it be a numlock issue? Any idea how to address this?
> 
> A good tool for diagnostics always is the xev program. See
> if something like
> 
> KeyPress event, serial 24, synthetic NO, window 0x1c1,
> root 0x73, subw 0x0, time 1034406899, (-570,493), root:(12,632),
> state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
> XLookupString gives 0 bytes: 
> XmbLookupString gives 0 bytes: 
> XFilterEvent returns: False
> 
> KeyRelease event, serial 27, synthetic NO, window 0x1c1,
> root 0x73, subw 0x0, time 1034406949, (-570,493), root:(12,632),
> state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
> XLookupString gives 0 bytes: 
> XFilterEvent returns: False
> 
> comes out when pressing the Num key.
> 
> You can always remap the Num Lock functionality onto another
> key that doesn't fail after the 4th use - see xmodmap.
> 
> 

I tried xev, but there is no event when I press the mode switch. I
mapped numlock to scrolllcok for testing. I then see the numlock event
but the mode on the keyboard block does not change. So it doesn't seem
to be implemented over the numlock functionality.

Is there another way to debug the USB device directly?

Anselm
___
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: ZFS scheduling

2010-04-27 Thread Anselm Strauss
On 04/26/10 00:03, Dan Naumov wrote:
>> Hi,
>>
>> I noticed that my system gets very slow when I'm doing some simple but
>> intense ZFS operations. For example, I move about 20 Gigabytes of data
>>from one data set to another on the same pool, which is a RAIDZ of 3 500
>> GB SATA disks. The operations itself runs fast, but meanwhile other
>> things get really slow. E.g. opening a application takes 5 times as long
>> as before. Also simple operations like 'ls' stall for some seconds which
>> they did never before. It already changed a lot when I switched from
>> RAIDZ to a mirror with only 2 disks. Memory and CPU don't seem to be the
>> issue, I have a quad-core CPU and 8 GB RAM.
>>
>> I can't get rid of the idea that this has something to do with
>> scheduling. The system is absolutely stable and fast. Somehow small I/O
>> operations on ZFS seem to have it very difficult to make it through when
>> other bigger ones are running. Maybe this has something to do with tuning?
>>
>> I know my system information is very incomplete, and there could be a
>> lot of causes. But anybody knows if this could be an issue with ZFS itself?
> 
> Hello
> 
> As you do mention, your system information is indeed very incomplete,
> making your problem rather hard to diagnose :)
> 
> Scheduling, in the traditional sense, is unlikely to be the cause of
> your problems, but here's a few things you could look into:
> 
> First one is obviously the pool layout, heavy-duty writing on a pool,
> consisting of a single raidz vdev is slow (slower than writing to a
> mirror, as you already discovered), period. such is the nature of
> raidz. Additionally, your problem is magnified by the fact that your
> have reads competing with writes since you are reading (I assume) from
> the same pool. One approach to alleviating the problem would be to
> utilize a pool consisting of 2 or more raidz vdevs in a stripe, like
> this:
> 
> pool
>   raidz
> disc1
> disc2
> disc3
>   raidz
> disc4
> disc5
> disc6
> 
> The second potential cause of your issues is the system wrongly
> guesstimating your optimal TXG commit size. ZFS works in such a
> fashion, that it commits data to disk in chunks. How big chunks it
> writes at a time it tries to optimize by evaluating your pool IO
> bandwidth over time and available RAM. The TXG commits happen with an
> interval of 5-30 seconds. The worst case scenario is such, that if the
> system misguesses the optimal TXG size, then under heavy write load,
> it continues to defer the commit for up to the 30 second timeout and
> when it hits the caps, it frantically commits it ALL at once. This can
> and most likely will completely starve your read IO on the pool for as
> long as the drives choke while committing the TXG.
> 
> If you are on 8.0-RELEASE, you could try playing with the
> vfs.zfs.txg.timeout= variable in /boot/loader.conf, generally sane
> values are 5-30, with 30 being the default. You could also try
> adjusting vfs.zfs.vdev.max_pending= down from the default of 35 to a
> lower value and see if that helps. AFAIK, 8-STABLE and -HEAD have a
> systctl variable which directly allow you to manually set the
> preferred TXG size and I've pretty sure I've seen some patches on the
> mailing lists to add this functionality to 8.0.
> 
> Hope this helps.
> 
> 
> - Sincerely,
> Dan Naumov

Thanks for the explanation and hints. As I said it's now already a lot
better with mirror instead of raidz, maybe I will try to adjust some
sysctl parameters as you suggested.

But I'm still a bit puzzled why it is possible at all that one simple
operation can stall the system so much. In my naive view I just compare
it to CPU scheduling. Even when I have a process that consumes the CPU
100%, when I start another small process in parallel that only needs
very few CPU time there is virtually no slowdown to it. A normal fair
scheduling would assign 50% of the CPU to each process so the small one
still has plenty of resources and doubling the execution time of a
already very short running process is barely noticeable. Of course it
changes when there are lots of processes, so even a small process only
gets a fraction of the CPU.
But I guess this is not how I/O scheduling or ZFS works. Maybe this goes
more into the topic of I/O scheduling priority of processes.

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


USB keyboard: mode switch / numlock freezes

2010-04-25 Thread Anselm Strauss
Hi,

I have a Roccat Arvo keyboard that has a number block with integrated
positioning keys (arrows, del, end, ...), but no extra keys for them. There
is a mode switch button that switches between the two layouts, like the
numlock key, but I'm not sure if this really is numlock. For some reason the
switch stops to work after exactly 4 presses. This only happens during boot,
or when the FreeBSD kernel is loaded. It does not happen when I boot into
Windows or Linux. I also tried other computers, getting the same result.

Could it be a numlock issue? Any idea how to address this?

Thanks,
Anselm
___
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"


ZFS scheduling

2010-04-25 Thread Anselm Strauss
Hi,

I noticed that my system gets very slow when I'm doing some simple but
intense ZFS operations. For example, I move about 20 Gigabytes of data
from one data set to another on the same pool, which is a RAIDZ of 3 500
GB SATA disks. The operations itself runs fast, but meanwhile other
things get really slow. E.g. opening a application takes 5 times as long
as before. Also simple operations like 'ls' stall for some seconds which
they did never before. It already changed a lot when I switched from
RAIDZ to a mirror with only 2 disks. Memory and CPU don't seem to be the
issue, I have a quad-core CPU and 8 GB RAM.

I can't get rid of the idea that this has something to do with
scheduling. The system is absolutely stable and fast. Somehow small I/O
operations on ZFS seem to have it very difficult to make it through when
other bigger ones are running. Maybe this has something to do with tuning?

I know my system information is very incomplete, and there could be a
lot of causes. But anybody knows if this could be an issue with ZFS itself?

Thanks,
Anselm
___
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: KDE firefox integration

2010-03-21 Thread Anselm Strauss
On Wednesday 10 March 2010 23:45:37 you wrote:
> On 03/07/2010 12:29, Josh Paetzel wrote:
> > On Sunday 07 March 2010 10:53:29 Anselm Strauss wrote:
> >> On Sunday 07 March 2010 15:52:30 Josh Paetzel wrote:
> >>> On Sunday 07 March 2010 08:13:53 Elias Chrysoheris wrote:
> >>>> On Sunday 07 of March 2010 15:56:15 Anselm Strauss wrote:
> >>>>> Hi,
> >>>>>
> >>>>> I noticed that in PC-BSD 8 firefox is nicely integrated into KDE.
> >>>>> Anybody knows how to achieve this on FreeBSD 8?
> >>>>>
> >>>>> Anselm
> >>>>> ___
> >>>>> 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 believe you mean that you need KDE to open Firefox whenever you
> >>>> click on a link. That's easy. From your KDE menu, open "System
> >>>> Settings" (in the first tab, "favorites")
> >>>> Then select "Default Applications". Then, in the left list of the
> >>>> applications, choose "Web browser", and at the right part of the
> >>>> screen choose the radio button "in the following browser" and in the
> >>>> edit box enter the "/usr/local/bin/firefox3". Then apply the new
> >>>> settings.
> >>>>
> >>>> Elias
> >>>
> >>> Another trick that PC-BSD useswhich might be more of what you are
> >>>
> >>>   asking about is the installation of a port called
> >>>   x11-themes/gtk-qt4-engine  This port allows gtk applications to be
> >>>   displayed using qt, which helps integrate the look of things like FF,
> >>>   Thunderbird, OOo with KDE.
> >>
> >> I already installed the gtk-qt4-engine, but it has some serious bugs.
> >> Scroll bars are not painted, tab borders are painted at the wrong
> >> position, etc. Could this be because I modified some of KDEs appearance
> >> options?
> 
> The gtk-qt4-engine works great here, not run into those problems you
> describe. Check the gtk-qt4-engine configuration gui in KDE4's system
> settings though, there is a fix you can enable to fix scrollbar issues.
> 
> >> Are there any other integration tweaks, like icons, keyboard shortcuts,
> >> file chooser dialog, ... ?
> 
> We've not modified anything else like that, just standard stuff.
> 
> >> Thanks,
> >> Anselm
> 
> Kris Moore
> PC-BSD Software
> http://www.pcbsd.com
> 

I think I found a rather complete guide of firefox integration in KDE on:

http://digitizor.com/2009/09/20/a-complete-guide-to-firefox-integration-in-kubuntu/

Unfortunately a lot of it is not working for me in FreeBSD 8. The 
gtk-qt4-engine stuff constantly produces high CPU usage after I close firefox. 
At least it does not crash or freeze. Also, I don't see any changes in fonts at 
all, and in the GUI when I already have enabled a KDE theme in firefox. When I 
enable the FlashGot plugin there is also a constant very high CPU usage after 
startup. And for the printing I can't find kprinter in KDE 4.3.5.

For now, I will just use a KDE theme in firefox and enable the KDE file chooser 
dialog ... ;-(

Thanks for the help,
Anselm
___
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: KDE firefox integration

2010-03-07 Thread Anselm Strauss
On Sunday 07 March 2010 15:52:30 Josh Paetzel wrote:
> On Sunday 07 March 2010 08:13:53 Elias Chrysoheris wrote:
> > On Sunday 07 of March 2010 15:56:15 Anselm Strauss wrote:
> > > Hi,
> > >
> > > I noticed that in PC-BSD 8 firefox is nicely integrated into KDE.
> > > Anybody knows how to achieve this on FreeBSD 8?
> > >
> > > Anselm
> > > ___
> > > 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 believe you mean that you need KDE to open Firefox whenever you click
> > on a link. That's easy. From your KDE menu, open "System Settings" (in
> > the first tab, "favorites")
> > Then select "Default Applications". Then, in the left list of the
> > applications, choose "Web browser", and at the right part of the screen
> > choose the radio button "in the following browser" and in the edit box
> > enter the "/usr/local/bin/firefox3". Then apply the new settings.
> >
> > Elias
> 
> Another trick that PC-BSD useswhich might be more of what you are
>  asking about is the installation of a port called
>  x11-themes/gtk-qt4-engine  This port allows gtk applications to be
>  displayed using qt, which helps integrate the look of things like FF,
>  Thunderbird, OOo with KDE.

I already installed the gtk-qt4-engine, but it has some serious bugs. Scroll 
bars are not painted, tab borders are painted at the wrong position, etc. 
Could this be because I modified some of KDEs appearance options?

Are there any other integration tweaks, like icons, keyboard shortcuts, file 
chooser dialog, ... ?

Thanks,
Anselm
___
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"


KDE firefox integration

2010-03-07 Thread Anselm Strauss
Hi,

I noticed that in PC-BSD 8 firefox is nicely integrated into KDE. Anybody 
knows how to achieve this on FreeBSD 8?

Anselm
___
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: Port/package install preview

2010-03-05 Thread Anselm Strauss
That gives me some static information on the ports requirements. But I would
like a preview of what rests to be done. Some ports have a lot of
dependencies, most of them are already installed. Can ports also incorporate
the current state of installed packages?

On Fri, Mar 5, 2010 at 5:01 PM, daniele  wrote:

> On 03/05/10 16:43, Anselm Strauss wrote:
>
>> Hi,
>>
>> is it possible to do a real preview with portupgrade? I want to see all
>> ports that would be installed/upgraded when installing a particular port.
>> The --noexecute option doesn't really show me a lot. How would this be
>> done
>> with packages? pkg_add would have to download all packges first to be able
>> to calculate all dependencies, or can it operate on an index file?
>>
>> Anselm
>> ___
>> 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"
>>
>>
>>  Hello !
>
> Take a look at the 'ports' manpage and you will find a mean on how to get
> useful information on the ports collection (configuring building discover
> dependencies etc..) :
>
>
> http://www.freebsd.org/cgi/man.cgi?query=ports&apropos=0&sektion=0&manpath=FreeBSD+8.0-RELEASE&format=html
>
> Examples
>
> * fetch-list
>Show list of files to be fetched in order to build the port.
>
> * run-depends-list, build-depends-list
>  Print a list of all the compile and run dependencies,
> and dependencies of those dependencies, by port directory.
>
> etc...
>
> d
>
___
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"


Port/package install preview

2010-03-05 Thread Anselm Strauss
Hi,

is it possible to do a real preview with portupgrade? I want to see all
ports that would be installed/upgraded when installing a particular port.
The --noexecute option doesn't really show me a lot. How would this be done
with packages? pkg_add would have to download all packges first to be able
to calculate all dependencies, or can it operate on an index file?

Anselm
___
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: RTL8192SE WLAN

2010-02-18 Thread Anselm Strauss

On Feb 17, 2010, at 23:36 , Paul B Mahol wrote:

> On 2/17/10, Anselm Strauss  wrote:
>> On Feb 17, 2010, at 13:54 , Paul B Mahol wrote:
>> I use 8.0. Here is the script of what I did to manually setup the card:
>> 
>> Script started on Wed Feb 17 21:33:08 2010
>> [r...@thor ~]# kldload rtl8192se_sys
>> [r...@thor ~]# ifconfig ndis0
>> ndis0: flags=8802 metric 0 mtu 2290
>>  ether 00:25:d3:93:50:c8
>>  media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>>  status: no carrier
>> [r...@thor ~]# ifconfig ndis0 list caps
> 
> That is net80211 (funny) problem.
>> ifconfig: unable to get device capabilities: Invalid argument
>> [r...@thor ~]# ifconfig wlan0 create wlandev ndis0
>> [r...@thor ~]# ifconfig wlan0
>> wlan0: flags=8802 metric 0 mtu 1500
>>  ether 00:25:d3:93:50:c8
>>  media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>>  status: no carrier
>>  ssid "" channel 1 (2412 Mhz 11b)
>>  country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
>>  bintval 0
>> [r...@thor ~]# ifconfig wlan0 list caps
>> drivercaps=1802303
>> cryptocaps=b
>> [r...@thor ~]# cat /etc/wpa_supplicant.conf
>> ap_scan=2
>> network={
>>  ssid="ttyv0"
>>  scan_ssid=1
>>  proto=WPA2
>>  key_mgmt=WPA-PSK
>>  pairwise=CCMP
>>  group=CCMP
>>  psk="(removed)"
>> }
>> [ro...@thor ~]# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -dddt
> 
> Not going to work, you need explicit '-D ndis' flag.
> 
> Anyway you just need this entry in rc.conf:
> 
> wlans_ndis0="wlan0"
> ifconfig_wlan0="WPA SYNCDHCP"
> wpa_supplicant_conf_file="/etc/wpa_supplicant.conf"
> 
> '-D bsd', default one, works only for wep and only in my git repo.
> 
>> 1266441009.079270: Initializing interface 'wlan0' conf
>> '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge
>> 'N/A'
>> 1266441009.080825: Configuration file '/etc/wpa_supplicant.conf' ->
>> '/etc/wpa_supplicant.conf'
>> 1266441009.081640: Reading configuration file '/etc/wpa_supplicant.conf'
>> 1266441009.082993: ap_scan=2
>> 1266441009.083143: Line: 2 - start of a new network block
>> 1266441009.084136: ssid - hexdump_ascii(len=5):
>> 74 74 79 76 30ttyv0
>> 1266441009.084487: scan_ssid=1 (0x1)
>> 1266441009.084612: proto: 0x2
>> 1266441009.084719: key_mgmt: 0x2
>> 1266441009.084822: pairwise: 0x10
>> 1266441009.084943: group: 0x10
>> 1266441009.085040: PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
>> 1266441009.396285: PSK (from passphrase) - hexdump(len=32): [REMOVED]
>> 1266441009.396530: Priority group 0
>> 1266441009.396561:id=0 ssid='ttyv0'
>> 1266441009.396585: Initializing interface (2) 'wlan0'
>> 1266441009.400393: Own MAC address: 00:25:d3:93:50:c8
>> 1266441009.400453: wpa_driver_bsd_set_wpa: enabled=1
>> 1266441009.400558: wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
>> 1266441009.400618: wpa_driver_bsd_del_key: keyidx=0
>> 1266441009.400652: wpa_driver_bsd_del_key: keyidx=1
>> 1266441009.400680: wpa_driver_bsd_del_key: keyidx=2
>> 1266441009.400707: wpa_driver_bsd_del_key: keyidx=3
> See wpa_supplicant use bsd driver.
>> 1266441009.400738: wpa_driver_bsd_set_countermeasures: enabled=0
>> 1266441009.400768: wpa_driver_bsd_set_drop_unencrypted: enabled=1
>> 1266441009.400798: RSN: flushing PMKID list in the driver
>> 1266441009.400862: Setting scan request: 0 sec 10 usec
>> 1266441009.434450: EAPOL: SUPP_PAE entering state DISCONNECTED
>> 1266441009.434501: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
>> 1266441009.434521: EAPOL: SUPP_BE entering state INITIALIZE
>> 1266441009.434652: EAP: EAP entering state DISABLED
>> 1266441009.434765: Added interface wlan0
>> 1266441009.503454: State: DISCONNECTED -> SCANNING
>> 1266441009.503527: Trying to associate with SSID 'ttyv0'
>> 1266441009.503553: Cancelling scan request
>> 1266441009.503574: WPA: clearing own WPA/RSN IE
>> 1266441009.503593: Automatic auth_alg selection: 0x1
>> 1266441009.503624: wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1
>> 1266441009.503668: WPA: No WPA/RSN IE available from association info
>> 1266441009.503767: WPA: Set cipher suites based on configuration
>> 1266441009.503783: WPA: Selected cipher suites: group 16 pairwise 16
>> key_mgmt 2 proto 2
>> 1266

Re: RTL8192SE WLAN

2010-02-17 Thread Anselm Strauss

On Feb 17, 2010, at 22:25 , Anselm Strauss wrote:

> On Feb 17, 2010, at 13:54 , Paul B Mahol wrote:
> 
>> On 2/17/10, Anselm Strauss  wrote:
>>> On Tue, Feb 16, 2010 at 11:28 PM, Paul B Mahol  wrote:
>>> 
>>>> On 2/16/10, Anselm Strauss  wrote:
>>>>> Hey,
>>>>> 
>>>>> anybody got the RTL8192SE wireless chip to work with FreeBSD? I bought a
>>>>> Asus 1201N laptop. I successfully compiled the Windows XP driver with
>>>>> ndisgen(8). The driver loads and the device is there. On the FreeBSD
>>>> EeePC
>>>>> wiki it says it's a 8191 chip, but when I look at the driver download
>>>> from
>>>>> Asus and dmesg it's reported as 8192. The driver seems to work at least
>>>> in
>>>>> some way since I'm able to scan for networks and get a list. But I
>>>>> cannot
>>>>> connect to a WPA2 network. Association with the network always fails in
>>>>> wpa_supplicant(8).
>>>> 
>>>> Maybe there is some kind of timeout, I could send you small patch to test
>>>> it.
>>>> Just post full verbose debug output from wpa_supplicant(8)
>>>> 
>>>> Anyway, feel free to test http://www.gitorious.org/NDISulator
>>>> 
>>>>> Anyone has some experience?
>>>> 
>>>> You are using wpa_supplicant with -D ndis flag, right?
>>>> 
>>> 
>>> Hm, interesting. No, I didn't know this option. Can't find it on the
>>> wpa_supplicant manpage. But I will try it ...
>> 
>> You do not need it if you use 8.0 and you start wpa_supplicant via rc.conf
> 
> I use 8.0. Here is the script of what I did to manually setup the card:
> 
> Script started on Wed Feb 17 21:33:08 2010
> [r...@thor ~]# kldload rtl8192se_sys
> [r...@thor ~]# ifconfig ndis0
> ndis0: flags=8802 metric 0 mtu 2290
>   ether 00:25:d3:93:50:c8
>   media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>   status: no carrier
> [r...@thor ~]# ifconfig ndis0 list caps
> ifconfig: unable to get device capabilities: Invalid argument
> [r...@thor ~]# ifconfig wlan0 create wlandev ndis0
> [r...@thor ~]# ifconfig wlan0
> wlan0: flags=8802 metric 0 mtu 1500
>   ether 00:25:d3:93:50:c8
>   media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>   status: no carrier
>   ssid "" channel 1 (2412 Mhz 11b)
>   country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
>   bintval 0
> [r...@thor ~]# ifconfig wlan0 list caps
> drivercaps=1802303
> cryptocaps=b
> [r...@thor ~]# cat /etc/wpa_supplicant.conf 
> ap_scan=2
> network={
>  ssid="ttyv0"
>  scan_ssid=1
>  proto=WPA2
>  key_mgmt=WPA-PSK
>  pairwise=CCMP
>  group=CCMP
>  psk="(removed)"
> }
> [ro...@thor ~]# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -dddt
> 1266441009.079270: Initializing interface 'wlan0' conf 
> '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
> 1266441009.080825: Configuration file '/etc/wpa_supplicant.conf' -> 
> '/etc/wpa_supplicant.conf'
> 1266441009.081640: Reading configuration file '/etc/wpa_supplicant.conf'
> 1266441009.082993: ap_scan=2
> 1266441009.083143: Line: 2 - start of a new network block
> 1266441009.084136: ssid - hexdump_ascii(len=5):
> 74 74 79 76 30ttyv0   
> 1266441009.084487: scan_ssid=1 (0x1)
> 1266441009.084612: proto: 0x2
> 1266441009.084719: key_mgmt: 0x2
> 1266441009.084822: pairwise: 0x10
> 1266441009.084943: group: 0x10
> 1266441009.085040: PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
> 1266441009.396285: PSK (from passphrase) - hexdump(len=32): [REMOVED]
> 1266441009.396530: Priority group 0
> 1266441009.396561:id=0 ssid='ttyv0'
> 1266441009.396585: Initializing interface (2) 'wlan0'
> 1266441009.400393: Own MAC address: 00:25:d3:93:50:c8
> 1266441009.400453: wpa_driver_bsd_set_wpa: enabled=1
> 1266441009.400558: wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
> 1266441009.400618: wpa_driver_bsd_del_key: keyidx=0
> 1266441009.400652: wpa_driver_bsd_del_key: keyidx=1
> 1266441009.400680: wpa_driver_bsd_del_key: keyidx=2
> 1266441009.400707: wpa_driver_bsd_del_key: keyidx=3
> 1266441009.400738: wpa_driver_bsd_set_countermeasures: enabled=0
> 1266441009.400768: wpa_driver_bsd_set_drop_unencrypted: enabled=1
> 1266441009.400798: RSN: flushing PMKID list in the driver
> 1266441009.400862: Setting

Re: RTL8192SE WLAN

2010-02-17 Thread Anselm Strauss
On Feb 17, 2010, at 13:54 , Paul B Mahol wrote:

> On 2/17/10, Anselm Strauss  wrote:
>> On Tue, Feb 16, 2010 at 11:28 PM, Paul B Mahol  wrote:
>> 
>>> On 2/16/10, Anselm Strauss  wrote:
>>>> Hey,
>>>> 
>>>> anybody got the RTL8192SE wireless chip to work with FreeBSD? I bought a
>>>> Asus 1201N laptop. I successfully compiled the Windows XP driver with
>>>> ndisgen(8). The driver loads and the device is there. On the FreeBSD
>>> EeePC
>>>> wiki it says it's a 8191 chip, but when I look at the driver download
>>> from
>>>> Asus and dmesg it's reported as 8192. The driver seems to work at least
>>> in
>>>> some way since I'm able to scan for networks and get a list. But I
>>>> cannot
>>>> connect to a WPA2 network. Association with the network always fails in
>>>> wpa_supplicant(8).
>>> 
>>> Maybe there is some kind of timeout, I could send you small patch to test
>>> it.
>>> Just post full verbose debug output from wpa_supplicant(8)
>>> 
>>> Anyway, feel free to test http://www.gitorious.org/NDISulator
>>> 
>>>> Anyone has some experience?
>>> 
>>> You are using wpa_supplicant with -D ndis flag, right?
>>> 
>> 
>> Hm, interesting. No, I didn't know this option. Can't find it on the
>> wpa_supplicant manpage. But I will try it ...
> 
> You do not need it if you use 8.0 and you start wpa_supplicant via rc.conf

I use 8.0. Here is the script of what I did to manually setup the card:

Script started on Wed Feb 17 21:33:08 2010
[r...@thor ~]# kldload rtl8192se_sys
[r...@thor ~]# ifconfig ndis0
ndis0: flags=8802 metric 0 mtu 2290
ether 00:25:d3:93:50:c8
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
[r...@thor ~]# ifconfig ndis0 list caps
ifconfig: unable to get device capabilities: Invalid argument
[r...@thor ~]# ifconfig wlan0 create wlandev ndis0
[r...@thor ~]# ifconfig wlan0
wlan0: flags=8802 metric 0 mtu 1500
ether 00:25:d3:93:50:c8
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 1 (2412 Mhz 11b)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
bintval 0
[r...@thor ~]# ifconfig wlan0 list caps
drivercaps=1802303
cryptocaps=b
[r...@thor ~]# cat /etc/wpa_supplicant.conf 
ap_scan=2
network={
  ssid="ttyv0"
  scan_ssid=1
  proto=WPA2
  key_mgmt=WPA-PSK
  pairwise=CCMP
  group=CCMP
  psk="(removed)"
}
[ro...@thor ~]# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -dddt
1266441009.079270: Initializing interface 'wlan0' conf 
'/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
1266441009.080825: Configuration file '/etc/wpa_supplicant.conf' -> 
'/etc/wpa_supplicant.conf'
1266441009.081640: Reading configuration file '/etc/wpa_supplicant.conf'
1266441009.082993: ap_scan=2
1266441009.083143: Line: 2 - start of a new network block
1266441009.084136: ssid - hexdump_ascii(len=5):
 74 74 79 76 30ttyv0   
1266441009.084487: scan_ssid=1 (0x1)
1266441009.084612: proto: 0x2
1266441009.084719: key_mgmt: 0x2
1266441009.084822: pairwise: 0x10
1266441009.084943: group: 0x10
1266441009.085040: PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
1266441009.396285: PSK (from passphrase) - hexdump(len=32): [REMOVED]
1266441009.396530: Priority group 0
1266441009.396561:id=0 ssid='ttyv0'
1266441009.396585: Initializing interface (2) 'wlan0'
1266441009.400393: Own MAC address: 00:25:d3:93:50:c8
1266441009.400453: wpa_driver_bsd_set_wpa: enabled=1
1266441009.400558: wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
1266441009.400618: wpa_driver_bsd_del_key: keyidx=0
1266441009.400652: wpa_driver_bsd_del_key: keyidx=1
1266441009.400680: wpa_driver_bsd_del_key: keyidx=2
1266441009.400707: wpa_driver_bsd_del_key: keyidx=3
1266441009.400738: wpa_driver_bsd_set_countermeasures: enabled=0
1266441009.400768: wpa_driver_bsd_set_drop_unencrypted: enabled=1
1266441009.400798: RSN: flushing PMKID list in the driver
1266441009.400862: Setting scan request: 0 sec 10 usec
1266441009.434450: EAPOL: SUPP_PAE entering state DISCONNECTED
1266441009.434501: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
1266441009.434521: EAPOL: SUPP_BE entering state INITIALIZE
1266441009.434652: EAP: EAP entering state DISABLED
1266441009.434765: Added interface wlan0
1266441009.503454: State: DISCONNECTED -> SCANNING
1266441009.503527: Trying to associate with SSID 'ttyv0'
1266441009.503553: Cancelling scan request
1266441009.503574: WPA: cl

Re: RTL8192SE WLAN

2010-02-17 Thread Anselm Strauss
On Tue, Feb 16, 2010 at 11:28 PM, Paul B Mahol  wrote:

> On 2/16/10, Anselm Strauss  wrote:
> > Hey,
> >
> > anybody got the RTL8192SE wireless chip to work with FreeBSD? I bought a
> > Asus 1201N laptop. I successfully compiled the Windows XP driver with
> > ndisgen(8). The driver loads and the device is there. On the FreeBSD
> EeePC
> > wiki it says it's a 8191 chip, but when I look at the driver download
> from
> > Asus and dmesg it's reported as 8192. The driver seems to work at least
> in
> > some way since I'm able to scan for networks and get a list. But I cannot
> > connect to a WPA2 network. Association with the network always fails in
> > wpa_supplicant(8).
>
> Maybe there is some kind of timeout, I could send you small patch to test
> it.
> Just post full verbose debug output from wpa_supplicant(8)
>
> Anyway, feel free to test http://www.gitorious.org/NDISulator
>
> > Anyone has some experience?
>
> You are using wpa_supplicant with -D ndis flag, right?
>

Hm, interesting. No, I didn't know this option. Can't find it on the
wpa_supplicant manpage. But I will try it ...

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"


RTL8192SE WLAN

2010-02-16 Thread Anselm Strauss
Hey,

anybody got the RTL8192SE wireless chip to work with FreeBSD? I bought a Asus 
1201N laptop. I successfully compiled the Windows XP driver with ndisgen(8). 
The driver loads and the device is there. On the FreeBSD EeePC wiki it says 
it's a 8191 chip, but when I look at the driver download from Asus and dmesg 
it's reported as 8192. The driver seems to work at least in some way since I'm 
able to scan for networks and get a list. But I cannot connect to a WPA2 
network. Association with the network always fails in wpa_supplicant(8).

Anyone has some experience?

Cheers,
Anselm Strauss___
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: Fn key events in Devd

2010-02-16 Thread Anselm Strauss
Thank you, that did it.

Anselm


On Feb 16, 2010, at 03:18 , David Horn wrote:

> On Mon, Feb 15, 2010 at 3:42 PM, Anselm Strauss  wrote:
>> Hi,
>> 
>> is there a way to see all events going through devd?
> 
> cat /var/run/devd.pipe
> 
> should work for what you need too see from devd.
> 
> See the documentation for more details:
> man 8 devd
> 
>> I have loaded the acpi_asus module, but the default devd rules in 
>> /etc/devd/asus.conf don't seem to match for my Fn keys. How can I find out 
>> what Fn key produces which event in devd?
> 
> Good Luck.
> 
> --_Dave

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


Fn key events in Devd

2010-02-15 Thread Anselm Strauss
Hi,

is there a way to see all events going through devd? I have loaded the 
acpi_asus module, but the default devd rules in /etc/devd/asus.conf don't seem 
to match for my Fn keys. How can I find out what Fn key produces which event in 
devd?

Cheers,
Anselm Strauss___
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: Booting from ZFS raidz

2010-01-08 Thread Anselm Strauss
On Jan 8, 2010, at 17:12 , krad wrote:

> 2010/1/8 Anselm Strauss 
> Sorry, forgot the list ...
> 
> -- Forwarded message ------
> From: Anselm Strauss 
> Date: Fri, Jan 8, 2010 at 4:50 PM
> Subject: Re: Booting from ZFS raidz
> To: Sergiy Suprun 
> 
> 
> I've done some experiments with the 8.0 stable branch and the head branch
> from SVN. I just recompiled /boot/loader but didn't have any luck. The
> version from the stable branch gives me the exact same error, the head
> version fails with a new error. Doesn't seem this is really ready at the
> moment. I think I'll go with a separate mirror pool for now.
> 
> Anselm
> 
> 
> On Wed, Jan 6, 2010 at 9:43 PM, Sergiy Suprun wrote:
> 
> > Hi.
> > Some time ago I follow instruction from this wiki
> > http://wiki.freebsd.org/RootOnZFS and I had a problem like yours.
> > After some experiments I build loader from CURRENT, and boot fine from
> > raidz2 zpool. I don't know, may be now this code avialable in 8-STABLE.
> >
> > On Wed, Jan 6, 2010 at 20:25, Anselm Strauss  wrote:
> >
> >> Hi,
> >>
> >> I'm experimenting with a ZFS only system and booting from it in
> >> VirtualBox. Thanks to various mails and forum posts from the net I have a
> >> working scenario with booting from a ZFS mirror. However, I can't get the
> >> thing to work with raidz with the exactly same setup, except that the pool
> >> is now raidz instead of mirror and there is one more disk. I feel sure I
> >> have all the stuff with partitioning, boot loader installation, etc. right.
> >> I tested this with version 8.0-RELEASE on 64bit.
> >>
> >> Now, before I go into detailed explaining, is raidz really supported? I
> >> always get the following error after it says "FreeBSD/i386 bootstrap 
> >> loader,
> >> Revision 1.1":
> >>
> >> ZFS: i/o error - all block copies unavailable
> >> ZFS: can't read MOS object directory
> >> (repeats a lot)
> >> Can't find root filesystem - giving up
> >> can't load 'kernel'
> >>
> >> I think the "MOS" message comes from zfs_mount_root() in
> >> /usr/src/sys/boot/zfs/zfsimpl.c. I asume that is the point when 
> >> /boot/loader
> >> has been loaded and now wants to load the kernel into memory. After that
> >> error I'm in the loader prompt. When I try to load any file I always get 
> >> the
> >> same error as above.
> >>
> >> Anyone any ideas?
> >>
> >> Thanks,
> >> Anselm___
> >> 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"
> 
> you didnt export the pool at any point did you without reimporting it and 
> copying the zpool.cache?

I created /boot/zfs, exported the pool, imported again, copied 
/boot/zfs/zpool.cache to /zroot/boot/zfs, unmounted /zroot and then set the 
mountpoint for zroot to legacy. After the loader lists 3 disk drives I'm now 
getting the error:

FATAL: int13_harddisk: function 42. Can't use 64bits lba

Then, booting stops completely, no command prompt follows. This is with the SVN 
head branch.___
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"


Fwd: Booting from ZFS raidz

2010-01-08 Thread Anselm Strauss
Sorry, forgot the list ...

-- Forwarded message --
From: Anselm Strauss 
Date: Fri, Jan 8, 2010 at 4:50 PM
Subject: Re: Booting from ZFS raidz
To: Sergiy Suprun 


I've done some experiments with the 8.0 stable branch and the head branch
from SVN. I just recompiled /boot/loader but didn't have any luck. The
version from the stable branch gives me the exact same error, the head
version fails with a new error. Doesn't seem this is really ready at the
moment. I think I'll go with a separate mirror pool for now.

Anselm


On Wed, Jan 6, 2010 at 9:43 PM, Sergiy Suprun wrote:

> Hi.
> Some time ago I follow instruction from this wiki
> http://wiki.freebsd.org/RootOnZFS and I had a problem like yours.
> After some experiments I build loader from CURRENT, and boot fine from
> raidz2 zpool. I don't know, may be now this code avialable in 8-STABLE.
>
> On Wed, Jan 6, 2010 at 20:25, Anselm Strauss  wrote:
>
>> Hi,
>>
>> I'm experimenting with a ZFS only system and booting from it in
>> VirtualBox. Thanks to various mails and forum posts from the net I have a
>> working scenario with booting from a ZFS mirror. However, I can't get the
>> thing to work with raidz with the exactly same setup, except that the pool
>> is now raidz instead of mirror and there is one more disk. I feel sure I
>> have all the stuff with partitioning, boot loader installation, etc. right.
>> I tested this with version 8.0-RELEASE on 64bit.
>>
>> Now, before I go into detailed explaining, is raidz really supported? I
>> always get the following error after it says "FreeBSD/i386 bootstrap loader,
>> Revision 1.1":
>>
>> ZFS: i/o error - all block copies unavailable
>> ZFS: can't read MOS object directory
>> (repeats a lot)
>> Can't find root filesystem - giving up
>> can't load 'kernel'
>>
>> I think the "MOS" message comes from zfs_mount_root() in
>> /usr/src/sys/boot/zfs/zfsimpl.c. I asume that is the point when /boot/loader
>> has been loaded and now wants to load the kernel into memory. After that
>> error I'm in the loader prompt. When I try to load any file I always get the
>> same error as above.
>>
>> Anyone any ideas?
>>
>> Thanks,
>> Anselm___
>> 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"


Support for Asus MicroATX Boards

2010-01-08 Thread Anselm Strauss
Hi,

I was looking for some new hardware to buy. I'm interested especially in the
M4*/M3* boards from Asus with the AMD 785G/SB710, 780G/SB700 and nForce 720a
chips. I can't find real evidence on the supported hardware list whether the
following chipsets are really working with FreeBSD 8.0 or not. Maybe
somebody else has already tested them:

SATA:
- AMD SB700
- AMD SB710

Ethernet:
- Realtek RTL8112L (RTL811xS is supported)
- Realtek RTL8211CL

Sound:
- VIA VT1708S (VT1708 and VT1708B are supported)
- Realtek ALC887 (ALC88x, x=0/2/3/5/8/9 are supported)

Polywell has a box that has exactly the hardware from the 785G boards.
FreeBSD is listed under the supported OSes, but I don't know how much that
means:
http://www.polywell.com/US/desktop/MiniBox785G.asp


I would appreciate any experiences.

Thanks,
Anselm
___
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: Booting from ZFS raidz

2010-01-06 Thread Anselm Strauss
On Jan 6, 2010, at 21:37 , krad wrote:

> 2010/1/6 Anselm Strauss 
> Hi,
> 
> I'm experimenting with a ZFS only system and booting from it in VirtualBox. 
> Thanks to various mails and forum posts from the net I have a working 
> scenario with booting from a ZFS mirror. However, I can't get the thing to 
> work with raidz with the exactly same setup, except that the pool is now 
> raidz instead of mirror and there is one more disk. I feel sure I have all 
> the stuff with partitioning, boot loader installation, etc. right. I tested 
> this with version 8.0-RELEASE on 64bit.
> 
> Now, before I go into detailed explaining, is raidz really supported? I 
> always get the following error after it says "FreeBSD/i386 bootstrap loader, 
> Revision 1.1":
> 
> ZFS: i/o error - all block copies unavailable
> ZFS: can't read MOS object directory
> (repeats a lot)
> Can't find root filesystem - giving up
> can't load 'kernel'
> 
> I think the "MOS" message comes from zfs_mount_root() in 
> /usr/src/sys/boot/zfs/zfsimpl.c. I asume that is the point when /boot/loader 
> has been loaded and now wants to load the kernel into memory. After that 
> error I'm in the loader prompt. When I try to load any file I always get the 
> same error as above.
> 
> Anyone any ideas?
> 
> Thanks,
> Anselm___
> 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"
> 
> Opensolaris doesnt support booting off raidz yet so id be surprised if you 
> managed to, as i doubt all the relevent code is in the loader, and robust 
> enough yet. I have seen a few hacks mentioned in places that might get it to 
> work, bit these are unsupported and might flake out at any time.
> 
> Also why do you need a raidz for the os? It implys you might be mixing data 
> on the pool as well. This isnt best practice, and you are best off having a 
> separate pool for os and data. If you have 3+ drives, gpt it into 3 or 4 
> chunks dependent on whether you want swap on a zvol. Have and x way mirror 
> for the os and then the last and biggest gpt slice use for your raidz data. 
> Better still have the os and data on separate spindles

I was just out for maximum flexibility and easiness. Having just one pool gives 
you the most possibilities in resizing data sets. Using partitions always 
imposes some hard limits that are sometimes different to overcome when you want 
to re-layout you filesystems. I like the idea of ZFS that the boundaries 
between filesystems (or data sets) are just quotas and reservations, instead of 
low-level address borders as with partitions. But then again, as you mentioned, 
one might want to make multiple pools for best performance. At least I want to 
have the system data on a redundant volume, but you are right I could just make 
a separate mirror for that.

By the way, I also tested to boot from a degraded mirror, which worked 
perfectly well. You just have to make sure that the boot loader stages are 
installed on all drives.

Thanks,
Anselm

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


Booting from ZFS raidz

2010-01-06 Thread Anselm Strauss
Hi,

I'm experimenting with a ZFS only system and booting from it in VirtualBox. 
Thanks to various mails and forum posts from the net I have a working scenario 
with booting from a ZFS mirror. However, I can't get the thing to work with 
raidz with the exactly same setup, except that the pool is now raidz instead of 
mirror and there is one more disk. I feel sure I have all the stuff with 
partitioning, boot loader installation, etc. right. I tested this with version 
8.0-RELEASE on 64bit.

Now, before I go into detailed explaining, is raidz really supported? I always 
get the following error after it says "FreeBSD/i386 bootstrap loader, Revision 
1.1":

ZFS: i/o error - all block copies unavailable
ZFS: can't read MOS object directory
(repeats a lot)
Can't find root filesystem - giving up
can't load 'kernel'

I think the "MOS" message comes from zfs_mount_root() in 
/usr/src/sys/boot/zfs/zfsimpl.c. I asume that is the point when /boot/loader 
has been loaded and now wants to load the kernel into memory. After that error 
I'm in the loader prompt. When I try to load any file I always get the same 
error as above.

Anyone any ideas?

Thanks,
Anselm___
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: ZFS boot

2009-10-15 Thread Anselm Strauss
I just ran into the very same problem, although I use UFS instead of ZFS,
but I think this doesn't matter for this problem.
I updated to tinyBIOS v0.99h and now it works fine.

Cheers,
Anselm



> Hi,
>
> I'm trying to boot a PC-engines board off GPT+ZFS, but the GPT MBR does not
> support CHS layout and requests data per LBA, which the PC Engines BIOS
> does
> not support.
>
> Anyone have a solution for this laying around?
>
> --HPS
>
> PC Engines ALIX.2 v0.99
> 640 KB Base Memory
> 261120 KB Extended Memory
>
> 01F0 Master 044A CF 1GB
> Phys C/H/S 1966/16/63 Log C/H/S 983/32/63
> Invalid partition table
>
> sys/boot/i386/pmbr
>
> %grep Invalid pmbr.s
> err_pt: movw $msg_pt,%si# "Invalid partition
> msg_pt: .asciz "Invalid partition table"
___
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: No serial console input in loader

2009-10-14 Thread Anselm Strauss

Hi,

I have to come back to this problem. When I boot over the serial  
console, input works all fine until I come to the loader menu. There,  
input from the serial console is just ignored, I can not interrupt the  
autoboot and e.g. choose a different kernel. I have partitioned with  
GPT and installed /boot/pmbr into the MBR and /boot/gptboot into the  
first partition of type freebsd-boot. The keyboard works in the BIOS,  
and in gptboot I think, where I can interrupt the boot by pressing a  
key, and a list like this shows:


FreeBSD/i386 boot
Default: 0:ad(0p2)/boot/loader
boot:

Then, in the loader menu the input is dead, when the kernel boots and  
also afterwards it works again fine.


When I use GRUB to start the loader the keyboard also works.

Any ideas on what the problem could be or how to track this down?

Cheers
Anselm



On Jun 28, 2008, at 13:15 , Anselm Strauss wrote:


Hi,

I have a small router that has no video output, it only supports a
serial console. I configured the serial console in /boot/
boot.config, /boot/loader.conf and /etc/ttys. It's working in the
BIOS, on the boot prompt before the loader starts, and when logging
in on the getty. The only place where it's not working correctly is
at the loader prompt. I can see the loader menu and the logo, but I
can't choose the boot entry or interrupt the timeout. I can't make
any input at all. What could this be?

Cheers,
Anselm


Don't know what this was, but now it works. I use Grub to directly
load /boot/loader as kernel. I set the serial console in the BIOS to
115200 Baud. In Grub's menu.lst I then use:

serial --unit=0 --speed=115200
terminal serial

and in /boot/loader.conf:

console="comconsole"
comconsole_speed="115200"

Seems like this is all that is needed.

Anselm

___
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: gpart mbr scheme

2009-10-11 Thread Anselm Strauss
Aha, GEOM_PART_MBR is not enabled by default in the 7.2 kernel. That  
changes with 8.0:


http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/amd64/conf/DEFAULTS.diff?r1=1.10.8%3ARELENG_7_2&tr1=1.10.8.1&r2=1.19.2%3ARELENG_8&tr2=1.19.2.1

I recompiled my kernel, now it works!


On Oct 10, 2009, at 22:08 , Anselm Strauss wrote:


Hi,

I'm trying to partition a compact flash card with gpart. When I want  
to create a new MBR scheme it always complains:


-> gpart create -s mbr da0
gpart: scheme 'mbr': Invalid argument

The GPT scheme works fine:

-> gpart create -s gpt da0
da0 created
-> gpart show da0
=> 34  8027645  da0  GPT  (3.8G)
  34  8027645   - free -  (3.8G)
-> gpart destroy da0
da0 destroyed

The kernel driver seems to be loaded:

-> kldstat -v | grep mbr
   278 g_mbr
   277 g_mbrext

Does gpart in 7.2 not support MBR partitioning?


Cheers,
Anselm


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


gpart mbr scheme

2009-10-10 Thread Anselm Strauss

Hi,

I'm trying to partition a compact flash card with gpart. When I want  
to create a new MBR scheme it always complains:


-> gpart create -s mbr da0
gpart: scheme 'mbr': Invalid argument

The GPT scheme works fine:

-> gpart create -s gpt da0
da0 created
-> gpart show da0
=> 34  8027645  da0  GPT  (3.8G)
   34  8027645   - free -  (3.8G)
-> gpart destroy da0
da0 destroyed

The kernel driver seems to be loaded:

-> kldstat -v | grep mbr
278 g_mbr
277 g_mbrext

Does gpart in 7.2 not support MBR partitioning?


Cheers,
Anselm
___
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"


Build your own custom binary updates

2009-09-25 Thread Anselm Strauss

Hi,

is there a way to make your own binary patches for version updates?  
Say, if you are building your own world from /usr/src, but don't want  
to do that on every machine for every security update? I assume that  
would be somehow the same that the server part of freebsd-update is  
doing ...


Cheers,
Anselm
___
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: Booting ZFS and GPT

2009-09-22 Thread Anselm Strauss
My next question is: Is it actually the plan to use ZFS as official  
root filesystem in FreeBSD, eventually replacing UFS? Is ZFS actually  
designed for that use?


Anselm


On Sep 17, 2009, at 22:25 , krad wrote:


2009/9/17 Anselm Strauss 
Hi,

I've read and tried out that FreeBSD is able to boot from ZFS  
directly, also with GPT partitions, through zfsboot and gptzfsboot.  
When I tried the last time 8-CURRENT it was however not built into  
the release CD. Will this be included in the final release image? Is  
there any plan to include GPT and ZFS setup in sysinstall during an  
initial installation?


Cheers,
Anselm
___
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 
"


To big a rewrite needed i think. I've heard of plans to potentially  
release a graphical installer based on pc-bsd, which will do all the  
bells an whistles. Not sure what stage its at though.


The biggest thing we need for the release is for the loader to be  
compiled with zfs support in. It seems to have been in and out over  
the past few months so i try to make sure i have my own version  
specially compiled with it in.


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


Fwd: Wake up time

2009-09-22 Thread Anselm Strauss

Begin forwarded message:


From: Anselm Strauss 
Date: September 22, 2009 8:55:42 PM GMT+02:00
To: Don Brearley 
Subject: Re: Wake up time

Good idea. Would work for my setup, my router should be always on.  
And I think there is a wakeonlan port for FreeBSD.


The advantage of this solution would be that I can trigger a wakeup  
on very dynamic events. If I set the wakeup time in the BIOS it's  
rather static, and I have to know the next wakeup before I shut down  
the host.



On Sep 21, 2009, at 23:25 , Don Brearley wrote:


Roland Smith  09/21/09 4:06 PM >>>

On Mon, Sep 21, 2009 at 10:06:28PM +0200, Anselm Strauss wrote:

Hi,

anybody knows if it's possible to set BIOS wake up time in  
FreeBSD. I

have a machine I would like to regularly shutdown and wake up at
different times depending the on the day of week.



Could you enable "Wake-On-LAN" in the BIOS and then configure  
another box

to wake it up via the LAN at your specified time?

- Don
___
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: Wake up time

2009-09-22 Thread Anselm Strauss
That would be a possibility. Although I prefer a solution without  
additional hardware. Also, I'm not sure, if it's good to constantly  
disconnect the board from power. Well, it's certainly better for your  
power bill, but maybe not for the BIOS battery.


I know that my BIOS supports setting a wake up time (you can set only  
the time, and it will wake up each day on that time). I've just  
discovered the /dev/nvram device and there is a program for Linux  
called nvram-wakeup, that uses the nvram device to set this wakeup  
time from the OS. One can then compute the next wakeup time (within a  
day) at every shutdown and write it to the nvram.


I have to see if this program also compiles/runs on FreeBSD ...


On Sep 21, 2009, at 23:19 , Scott Schappell wrote:


On Sep 21, 2009, at 14:16:53, Rolf G Nielsen wrote:


Roland Smith wrote:

There are such timers, that run over a week rather than just 24  
hours, and they can have different times each day.




And make sure you set in the BIOS (if able) to power on after power  
fail and test it to make sure it works.

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


Wake up time

2009-09-21 Thread Anselm Strauss

Hi,

anybody knows if it's possible to set BIOS wake up time in FreeBSD. I  
have a machine I would like to regularly shutdown and wake up at  
different times depending the on the day of week.


Cheers,
Anselm
___
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: ZFS on small systems

2009-09-17 Thread Anselm Strauss
Thanks for your advice, Steve.

I looked a bit at the source code and in
/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c and I
found this:

/* set min cache to 1/32 of all memory, or 16MB, whichever is more */
arc_c_min = MAX(arc_c / 4, 64<<18);

Could this mean that 16 MB are already enough to run ZFS?


On Thu, Sep 17, 2009 at 2:26 PM, Steve Bertrand  wrote:
> Anselm Strauss wrote:
>> Hi,
>>
>> I'm interested in using ZFS on one of my small systems with 256 MB of
>> RAM and 4 GB flash disk. Since ZFS is now considered production ready on
>> FreeBSD I would like to use it as root filesystem and profit mainly from
>> the cool snapshot features for easy backups.
>>
>> I found multiple recommendations to run ZFS only on systems with enough
>> resources. But is this only a requirement if you want good performance
>> or also for ZFS to function properly at all?
>
> I've found that on the i386 arch, that at minimum you need 756M of
> memory to do anything really useful. Now, I don't know if this has
> changed or not, but I doubt that the box would be useful for anything
> with only 256M.
>
> With that said, I can keep a box running at max disk r/w for hours on
> end with 2GB, and 1536M allocated/reserved for ZFS.
>
> Perhaps however that there have been enhancements introduced that I
> don't know about, that allow ZFS to operate in such a small memory
> address space, but for some reason I doubt it. If I'm wrong, someone
> will let us know ;)
>
> Steve
>
___
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"


ZFS on small systems

2009-09-17 Thread Anselm Strauss

Hi,

I'm interested in using ZFS on one of my small systems with 256 MB of  
RAM and 4 GB flash disk. Since ZFS is now considered production ready  
on FreeBSD I would like to use it as root filesystem and profit mainly  
from the cool snapshot features for easy backups.


I found multiple recommendations to run ZFS only on systems with  
enough resources. But is this only a requirement if you want good  
performance or also for ZFS to function properly at all?


Thanks for any thoughts on that.
Anselm
___
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"


Booting ZFS and GPT

2009-09-17 Thread Anselm Strauss

Hi,

I've read and tried out that FreeBSD is able to boot from ZFS  
directly, also with GPT partitions, through zfsboot and gptzfsboot.  
When I tried the last time 8-CURRENT it was however not built into the  
release CD. Will this be included in the final release image? Is there  
any plan to include GPT and ZFS setup in sysinstall during an initial  
installation?


Cheers,
Anselm
___
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: bash shell colors

2008-09-17 Thread Anselm Strauss

Hi,

I use something like this (heavily inspired by Gentoo):

if [[ ${EUID} == 0 ]] ; then
  PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
else
  PS1='\[\033[01;[EMAIL PROTECTED];34m\] \w \$\[\033[00m\] '
fi

One could maybe also include a check of $TERM for different terminal  
types, not all of them will understand color escape sequences. And of  
course tools like ls and grep do colorized output themselves when  
called with appropriate options.


This is described in the PROMPTING section of Bash's manpage. I did  
not find any documentation for the exact codes for ANSI color escape  
sequences.


Anselm


On Sep 18, 2008, at 07:08 , Sam Fourman Jr. wrote:


Hello list,

I am looking to configure FreeBSD's Bash
can anyone post a config file that would make FreeBSD's Bash shell
color code like the default gentoo bash shell

or if you have a config that you like and feel like posting it I will
take a look at it.


Sam Fourman Jr.
Fourman Networks


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Process in 'biowr' state

2008-08-23 Thread Anselm Strauss

Hi,

I have a problem with my alix2c2 router. It's a all-in-one board with  
compact flash card as root device. I setup the card from another  
machine, then booted it, and then wanted to install the manpage  
distribution. But that took forever, I always had to quit it. I then  
noticed that it downloads the files okay, but then when extracting  
there is a cpio process in state biowr, which I assume means blocked I/ 
O writing. I know that CF cards can be slow compared to hard disks,  
but after all it's a 120X speed card. According to the specification  
this is about 18 Mbytes/s.


I made a simple test by just touching a lot of files, beyond 200 it  
gets really slow. The touch process then resides in biowr state, the  
CPU is 99% idle.


---
bishop test # i=1; time while [ $i -lt 100 ]; do touch $i; i=$[i+1];  
done; rm *; sync


real0m1.530s
user0m0.140s
sys 0m0.459s
bishop test # i=1; time while [ $i -lt 200 ]; do touch $i; i=$[i+1];  
done; rm *; sync


real0m3.016s
user0m0.286s
sys 0m0.922s
bishop test # i=1; time while [ $i -lt 300 ]; do touch $i; i=$[i+1];  
done; rm *; sync


real0m19.218s
user0m0.555s
sys 0m1.270s
bishop test # i=1; time while [ $i -lt 1000 ]; do touch $i; i=$[i+1];  
done; rm *; sync


real4m26.730s
user0m1.690s
sys 0m4.399s
bishop test #
---

Now, I'm not sure what to do about that. In top I see no resources  
that are exhausted. In syslog or dmesg there are no messages. Is it  
really possible that CF is that slow?


Kernel messages are:

---
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights  
reserved.

FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class  
CPU)

  Origin = "AuthenticAMD"  Id = 0x5a2  Stepping = 2
  Features=0x88a93d
  AMD Features=0xc040
real memory  = 268435456 (256 MB)
avail memory = 248811520 (237 MB)
pnpbios: Bad PnP BIOS data checksum
kbd0 at kbdmux0
K6-family MTRR support enabled (2 registers)
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,  
RF5413)

hptrr: HPT RocketRAID controller driver v1.1 (Jun 18 2008 07:32:57)
cpu0 on motherboard
pcib0:  pcibus 0 on motherboard
pci0:  on pcib0
pci0:  at device 1.2 (no driver  
attached)
vr0:  port 0x1000-0x10ff mem  
0xe000-0xe0

vr0: Quirks: 0x2
miibus0:  on vr0
ukphy0:  PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: using obsoleted if_watchdog interface
vr0: Ethernet address: 00:0d:b9:14:d9:e0
vr0: [ITHREAD]
vr1:  port 0x1400-0x14ff mem  
0xe004-0xe0

vr1: Quirks: 0x2
miibus1:  on vr1
ukphy1:  PHY 1 on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr1: using obsoleted if_watchdog interface
vr1: Ethernet address: 00:0d:b9:14:d9:e1
vr1: [ITHREAD]
ath0:  mem 0xe008-0xe008 irq 9 at device 12.0 on  
pci0

ath0: [ITHREAD]
ath0: using obsoleted if_watchdog interface
ath0: Ethernet address: 00:80:48:57:c1:69
ath0: mac 10.5 phy 6.1 radio 6.3
isab0:  port 0x6000-0x6007,0x6100-0x61ff,0x6200-0x623f, 
0x9d00-00

isa0:  on isab0
atapci0:  port  
0x1f0-0x1f7,0x3f6,0x170-0x177,0x30

ata0:  on atapci0
ata0: [ITHREAD]
ata1:  on atapci0
ata1: [ITHREAD]
ohci0:  mem 0xefffe000-0xefffefff irq  
15 at devi0

ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0:  on ohci0
usb0: USB revision 1.0
uhub0:  on usb0
uhub0: 4 ports with 4 removable, self powered
ehci0:  mem 0xefffd000-0xefffdfff  
irq 15 at 0

ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1:  on ehci0
usb1: USB revision 2.0
uhub1:  on usb1
uhub1: 4 ports with 4 removable, self powered
pmtimer0 on isa0
orm0:  at iomem 0xe-0xea7ff pnpid ORM on isa0
ppc0: parallel port not found.
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounter "TSC" frequency 498054207 Hz quality 800
Timecounters tick every 1.000 msec
hptrr: no controller detected.
ad0: DMA limited to UDMA33, device found non-ATA66 cable
ad0: FAILURE - SET_MULTI status=51 error=4
ad0: 7647MB  at ata0-master UDMA33
Trying to mount root from ufs:/dev/ad0s3a
Loading configuration files.
No suitable dump device was found.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Starting file system checks:
/dev/ad0s3a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s3a: clean, 3278935 free (5855 frags, 818270 blocks, 0.2%  
fragmentation)

Setting hostuuid: 543a82a0-bfdf-11d3-8691-000db914d9e0.
Setting hostid: 0x77f02bce.
Mounting local file systems:.
Setting hostname: bishop.

Re: bsdlabel has no effect

2008-07-08 Thread Anselm Strauss

On Jun 28, 2008, at 13:25 , Anselm Strauss wrote:


Hi,

originally I had the following labels on my ad0 disk (no partitions,  
directly labeled /dev/ad0):


# /dev/ad0:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
 a: 1048576 04.2BSD 1024  8192 46248
 c: 1048576 0unused0 0 # "raw" part,  
don't edit


Since this was written from a file image the my compact flash card,  
and the card has now 8GB instead of 512MB, I wanted to grow the  
labels after having booted the system, and that worked. So now it is:


# /dev/ad0:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
 a: 1566230404.2BSD 1024  8192 46248
 c: 156623040unused0 0 # "raw" part,  
don't edit


But unfortunately, I also grew label 'a', although I did not grow  
the filesystem. What I actually wanted was to stay 'a' the size it  
is and add new labels. So I tried to shrink 'a' again, to finally  
have something like:


# /dev/ad0:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
 a:  104857604.2BSD 1024  8192 46248
 c: 156623040unused0 0 # "raw" part,  
don't edit


before adding new labels. But somehow bsdlabel has no effect when  
shrinking 'a'. No error or verbose message, the labels are just the  
same before running it, whether I use the edit mode or restore mode.


Am I not supposed to shrink a label like that?

Cheers,
Anselm



Okay, this was of course since I tried to resize a partition that is  
mounted. I guess this will never work, even when the filesystem  
actually already has the size the partition should be shrunk to. I  
think there is no other way of resizing the root partition/filesystem  
without booting a different system than the one on this partition.


Anselm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: No serial console input in loader

2008-07-08 Thread Anselm Strauss

On Jun 28, 2008, at 13:15 , Anselm Strauss wrote:


Hi,

I have a small router that has no video output, it only supports a  
serial console. I configured the serial console in /boot/ 
boot.config, /boot/loader.conf and /etc/ttys. It's working in the  
BIOS, on the boot prompt before the loader starts, and when logging  
in on the getty. The only place where it's not working correctly is  
at the loader prompt. I can see the loader menu and the logo, but I  
can't choose the boot entry or interrupt the timeout. I can't make  
any input at all. What could this be?


Cheers,
Anselm


Don't know what this was, but now it works. I use Grub to directly  
load /boot/loader as kernel. I set the serial console in the BIOS to  
115200 Baud. In Grub's menu.lst I then use:


serial --unit=0 --speed=115200
terminal serial

and in /boot/loader.conf:

console="comconsole"
comconsole_speed="115200"

Seems like this is all that is needed.

Anselm
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: No serial console input in loader

2008-06-28 Thread Anselm Strauss
Coud you put here the related entries of /boot/loader.conf and /etc/ 
tty ?



/boot/loader.conf:

console="comconsole"
comconsole_speed="38400"

/boot/boot.config:

-h
-S38400

/etc/ttys (disabled all ttyv*):

ttyd0   "/usr/libexec/getty std.38400"  vt100   on  secure
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


No serial console input in loader

2008-06-28 Thread Anselm Strauss

Hi,

I have a small router that has no video output, it only supports a  
serial console. I configured the serial console in /boot/boot.config, / 
boot/loader.conf and /etc/ttys. It's working in the BIOS, on the boot  
prompt before the loader starts, and when logging in on the getty. The  
only place where it's not working correctly is at the loader prompt. I  
can see the loader menu and the logo, but I can't choose the boot  
entry or interrupt the timeout. I can't make any input at all. What  
could this be?


Cheers,
Anselm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


bsdlabel has no effect

2008-06-28 Thread Anselm Strauss

Hi,

originally I had the following labels on my ad0 disk (no partitions,  
directly labeled /dev/ad0):


# /dev/ad0:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a: 1048576 04.2BSD 1024  8192 46248
  c: 1048576 0unused0 0 # "raw" part,  
don't edit


Since this was written from a file image the my compact flash card,  
and the card has now 8GB instead of 512MB, I wanted to grow the labels  
after having booted the system, and that worked. So now it is:


# /dev/ad0:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a: 1566230404.2BSD 1024  8192 46248
  c: 156623040unused0 0 # "raw" part,  
don't edit


But unfortunately, I also grew label 'a', although I did not grow the  
filesystem. What I actually wanted was to stay 'a' the size it is and  
add new labels. So I tried to shrink 'a' again, to finally have  
something like:


# /dev/ad0:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  104857604.2BSD 1024  8192 46248
  c: 156623040unused0 0 # "raw" part,  
don't edit


before adding new labels. But somehow bsdlabel has no effect when  
shrinking 'a'. No error or verbose message, the labels are just the  
same before running it, whether I use the edit mode or restore mode.


Am I not supposed to shrink a label like that?

Cheers,
Anselm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 7.0-RELEASE + newer kernel

2008-05-02 Thread Anselm Strauss

On May 1, 2008, at 13:34 , Mel wrote:


On Thursday 01 May 2008 13:17:03 Anselm Strauss wrote:



The reasons why I hesitate to upgrade to 7.0-STABLE are:

- freebsd-update won't work anymore. How do I then get informed about
security updates?


Using your favorite RSS reader and subscribe to:
http://www.freebsd.org/security/advisories.rdf


Ok, I already subscribed to the freebsd-security-notifications list, I  
assume that should do the same.



- Can't install distributions with sysinstall anymore. Do I just
compile everything from source?


Yes (to distributions, no to ports), but you have to upgrade by source
to -STABLE to begin with, unless you want to go the hard way and  
bake a new

CD/DVD.


Since compiling is no problem for me, I think I will stick with the  
source, since you also can install parts of the source, e.g. install  
the manual pages afterwards.



- How do I actually update from release to stable? I have to compile
everything myself from the sources, right? As well as for any update?


The handbook has an entire section for this:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html


Yes, I saw that once, but forgot it again. Worked perfectly for me.


--
Mel

Problem with today's modular software: they start with the modules
   and never get to the software part.


Thanks,
Anselm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


7.0-RELEASE + newer kernel

2008-05-01 Thread Anselm Strauss
So, I'm one of those trying to run FreeBSD on one of the newest  
Macbooks. The hardware support looks very good, except that the  
network chips are not supported. But the Ethernet chip is supported by  
the msk driver in the current 7.0-STABLE kernel. Now, before I push  
the whole system from RELEASE to STABLE, is there some chance I can  
stay with 7.0-RELEASE and just use a new version of the msk module  
with the release kernel?


I compiled the miibus.ko and if_msk.ko modules from a stable kernel,  
but the latter complains about an undefined symbol 'm_collapse' at  
loading. This symbol is defined in sys/kern/uipc_mbuf.c, so I think I  
have bad chances running the new driver on the old kernel.


The reasons why I hesitate to upgrade to 7.0-STABLE are:

- freebsd-update won't work anymore. How do I then get informed about  
security updates?
- Can't install distributions with sysinstall anymore. Do I just  
compile everything from source?
- How do I actually update from release to stable? I have to compile  
everything myself from the sources, right? As well as for any update?


Thanks for any suggestions,
Anselm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Search for files in not installed ports

2008-04-23 Thread Anselm Strauss

Hi,

is there an easy way to find the port that will install me a specific  
file? So far, I only found the following:


# find /usr/ports -name pkg-plist | xargs -I {} grep -H 'bin/wish' {}
/usr/ports/chinese/tk83/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/devel/sourcenav/pkg-plist:bin/wish8.3
/usr/ports/japanese/tk80/pkg-plist:bin/wish8.0jp
/usr/ports/japanese/tkstep80/pkg-plist:bin/wishstep8.0jp
/usr/ports/x11-toolkits/tk80/pkg-plist:bin/wish8.0
/usr/ports/x11-toolkits/tk82/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk83/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk84/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk85/pkg-plist:bin/wish%%TK_VER%%
#

Is there a make target that lists all files installed by a port?

Cheers,
Anselm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Tracking base system and kernel updates/vulnerabilities

2008-04-16 Thread Anselm Strauss

On Apr 15, 2008, at 20:28 , Lowell Gilbert wrote:


Anselm Strauss <[EMAIL PROTECTED]> writes:


is there a tool, like portaudit for the ports tree, to track updates
and/or vulnerabilities for the base system and the kernel? What I'm
looking for is a tool that will check my current installation against
a specific checkout of the CVS source and kernel trees considering a
specific CVS tag and inform me where my system is outdated and
vulnerable. I don't know if this is even possible by just having the
CVS trees ...

For the kernel, is there something like a linear version number in  
the

-STABLE branches? I noticed there's a pX in the kernel version for
release kernels. How do I for example compare the currentness of two
7.0-STABLE kernels if I don't know from what source they were build?


freebsd-update(8)


Yep, that's exactly what I was looking for (must have overlooked it).  
Had some trouble until I noticed it will only work if the running  
kernel has a -RELEASE tag in it's uname, but now I also see how this  
works with the patch version.


I have 2 small questions left:

- Can I somehow determine the version of the base system without  
running uname on the kernel (I could have a release base system but  
run a stable kernel for example)? Sure, I could take the indirect way  
over freebsd-update again, but is there some sort of version  
information stored in the base system?


- Is there some list of all possible components in the base system? So  
far I've seen src, kernel and world. Are there more?


Thanks,
Anselm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Tracking base system and kernel updates/vulnerabilities

2008-04-15 Thread Anselm Strauss

Hi,

is there a tool, like portaudit for the ports tree, to track updates  
and/or vulnerabilities for the base system and the kernel? What I'm  
looking for is a tool that will check my current installation against  
a specific checkout of the CVS source and kernel trees considering a  
specific CVS tag and inform me where my system is outdated and  
vulnerable. I don't know if this is even possible by just having the  
CVS trees ...


For the kernel, is there something like a linear version number in the  
-STABLE branches? I noticed there's a pX in the kernel version for  
release kernels. How do I for example compare the currentness of two  
7.0-STABLE kernels if I don't know from what source they were build?


Cheers,
Anselm

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"