Re: GTK+3.0 application does not show some existing icons
El día Sunday, May 05, 2013 a las 10:06:23PM +0200, Koop Mast escribió: > On 4-5-2013 20:06, Matthias Apitz wrote: > > Hello, > > > > I have a problem with some GTK+3 application not showing some existing > > icons of the gnome-icon-theme. To nail it down, I went to some GTK tutorial > > pages and hacked together a simple application (attached) which can be > > compiled with just: > > The program got eaten by mailman, could you put it on a webspace somewhere? > > -Koop > > > $ gcc -g image.c `pkg-config --cflags --libs gtk+-3.0` -o image > > > > and shows the first argument as icon name, for example: > > > > $ ./image document-print-preview The C code can be fetched from here http://www.unixarea.de/image.c The problem is solved meanwhile. I got to know that I have to start the $ /usr/local/libexec/gnome-settings-daemon & which is not launched by default for KDE users (like me). I have updated the Wiki page about how to compile and start Ekiga (this was the application I was debugging): http://wiki.ekiga.org/index.php/Compile_your_own_SVN_version_of_Ekiga_on_FreeBSD Would be nice, though, if someone could explain how the icon files are coming from the disk to the GTK application, because they are not visible in the truss log. Thanks matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
GTK+3.0 application does not show some existing icons
Hello, I have a problem with some GTK+3 application not showing some existing icons of the gnome-icon-theme. To nail it down, I went to some GTK tutorial pages and hacked together a simple application (attached) which can be compiled with just: $ gcc -g image.c `pkg-config --cflags --libs gtk+-3.0` -o image and shows the first argument as icon name, for example: $ ./image document-print-preview which works fine, while other icons do not work, for example $ ./image bottom Could some kind soul bring a bit light into the relation between an icon name and the corresponding PNG file name.png? Because, even in the case when the icon is shown, one does no see any open of the PNG file with truss(1). How this is done? And why some of the icons are woring while others do not? If it does matter, it is a system with a fresh ports tree from April, 1st, SVN revision r315646. Thanks matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: g...@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Ports: make fails, if DESTDIR path has spaces
El día Monday, April 01, 2013 a las 06:13:53PM +0200, rank1see...@gmail.com escribió: > > Try "DESTDIR='/usr/TZ\ ONE'; export DESTDIR". > > > > You need to escape the space. > > This is '#!/bin/sh' scripting. > Doing so "fixes" *.mk, but breaks sh => dir simply doesn't exist anymore. > > Matthias && Chris => *.mk is at fault here, for not supporting FreeBSD's > full range of chars for dir paths Feel free to fix it. I could even imagine that *.mk and a lot of tools are not UTF-8 ready and the missing blank is one of thousands chars you might miss. matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Ports: make fails, if DESTDIR path has spaces
El día Sunday, March 31, 2013 a las 05:29:18PM +0100, Chris Rees escribió: > Yeah, don't do that. +1 > > Spaces in directories will always cause problems; I suppose someone > could fix it in bsd.port.mk, but it will probably break somewhere > else; spaces in Make variables have a special meaning. > > Use an underscore if you're desperate. Until today I thought that this, spaces in file or dir names, have been the typically attitude of Windows minded people; if it now comes to FreeBSD hackers, the world is coming to its end :-) matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: g...@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: blocking teamviewer trojan
El día Thursday, February 21, 2013 a las 05:22:02PM +0100, Wojciech Puchar escribió: > anyone have tested method on doing this? > > tried blocking port 5938 as well as teamviewer.com domain in squid (and > all port 80 traffic is already forwarded to squid). > > Still doesn't work. What the h... is a teamviewer troyan and how it is related to our beloved FreeBSD? matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: g...@unixarea.de | - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | - No proprietary attachments phone: +49-170-4527211 | - Respect for open standards ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: building select ports for packaging on install media
El día Monday, February 11, 2013 a las 02:24:32PM -0500, Kurt Lidl escribió: > What I'd like to do is augement that CD-ROM image with several > binary packages, so I can just install them via 'sysinstall', > rather than having to maintain a /usr/ports tree on every host > and compile the same software again and again... > > I've found: > http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng-packages/article.html > and > http://www.freebsd.org/doc/en/articles/portbuild/article.html > > But those seem to revolve around building *all* the ports. > I just want to do a couple of dozen of them, but I'd like to > end up with something that will generate binary packages that > 'pkg install' can deal with. Just compile and install the required ports from /usr/ports on your main host and create binary packages of them in some central directory with: for i in /var/db/pkg/*; do pkg=`basename $i` pkg_create -Rnb $pkg done Move the result to the CD/DVD and that's it matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: g...@unixarea.de | - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | - No proprietary attachments phone: +49-170-4527211 | - Respect for open standards ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: FreeBSD Kernel Internals, lecture video
El día Monday, August 27, 2012 a las 09:56:49AM +0200, Paul Schenkeveld escribió: > Kirk often teaches 1-day or 2-day courses at BSD conferences at a very > reasonable price, especially for people working or wanting to work as > volunteers for FreeBSD, NetBSD and OpenBSD. > > Your next opportunity is the EuroBSDcon 2012 conference in Warsaw, > Poland where Kirk teaches on friday October 19, 2012: I was once at a USENIX conference in Anahein, California, where Sam Leffler gave a two days teaching about sockets etc., very useful such trainings, but expensive too; and far away to reach an audience big enough as we would need to get more volunteers on board, I think matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: FreeBSD Kernel Internals, lecture video
El día Sunday, August 26, 2012 a las 02:25:57PM +0100, Chris Rees escribió: > On 26 Aug 2012 13:15, "Wojciech Puchar" > wrote: > > > > very expensive.. > > Training and education generally are. Agreed, if the goal is commercial. But I do not know if this price invites are people who want to start digging into the FreeBSD kernel to take over volunteer work there and help FreeBSD growing. matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: cleaning /usr/obj before copying it to USB key
El día Tuesday, June 19, 2012 a las 07:43:46PM -0400, Garance A Drosehn escribió: > On 6/11/12 8:34 AM, Matthias Apitz wrote: > > Thanks for the hints concerning find(1) usage. I was wondering if there > > is nothing like > > > > # make install-clean > > or > > # make remove-tempfiles > > > > Thanks > > > > matthias > > > I missed the beginning of this thread, but if you're talking about doing yes :-) > a 'make buildworld' and 'make installworld', then note that there is also > a target for /usr/src called 'make cleanworld'. This will clean up the > files from 'make buildworld', but would not clean up files in /usr/obj > which were created by other things (such as ports, for instance). I was looking for a way to remove all temp. files in /usr/obj, but after this it must still be possible to do 'make installworld' and 'make installkernel'; just to reduce the amount of files to copy over to the USB key; matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Sunday, June 17, 2012 a las 09:16:12PM -0600, Warren Block escribió: > On Sat, 16 Jun 2012, Matthias Apitz wrote: > > > OK, but I wanted to have most of the space of the 4 GB SSD encrypted > > with geli(8); so I should make there some slice containing /boot > > (unencrypted) and a second slice which later will contain my HOME and > > encrypted; wrong? > > That's correct: http://forums.freebsd.org/showthread.php?t=29652 Thanks for the pointers and the comments from you and Wojciech; I'm attaching below what I have planned as the exactly procedure now and would thank in advance for any comments; one remaining question is, how could I attache the geli(8) crypted file system during boot (via rc.conf) but using a passphrase which should be asked and typed in on boot? is this somehow possible? Thanks matthias $Id:$ current disk layout of EeePC: Filesystem SizeUsed Avail Capacity Mounted on /dev/ada0s1a3.7G568M3.1G15%/ /dev/ada1s1a 14G8.7G5.8G60%/usr/local future disk layout. /dev/ada0p1freebsd-boot /dev/ada0p2freebsd-ufs /boot 256 Mbyte /dev/ada0p3freebsd-ufs /private 3.5 GByte (geli encrypted) /dev/ada1p1freebsd-boot /dev/ada1p2freebsd-ufs /14.0 GByte (/ /usr /var ... all in one file system and unencrypted) commands: # gpart destroy -F ada0 # gpart create -s gpt ada0 # gpart add -t freebsd-boot -s 512k ada0 # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 ada0 # gpart add -t freebsd-ufs -b 1m -s 256m ada0 # gpart add -t freebsd-ufs ada0 # gpart destroy -F ada1 # gpart create -s gpt ada1 # gpart add -t freebsd-boot -s 512k ada1 # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 ada1 # gpart add -t freebsd-ufs -b 1m ada1 this allows as well at the beginning to boot the system from ada1 (must be done manually from BIOS); later we will copy over /boot from ada1p2 to ada0p2 (see below); create on ada0 the future /boot and /privae file systems and on ada1 the future / root file system; and mount the last as /mnt # newfs /dev/ada0p2 # newfs /dev/ada0p3 # newfs /dev/ada1p2 # mount /dev/ada1p2 /mnt start the mouse daemon (only for cut&paste: # /etc/rc.d/moused onestart install the system (user land and kernel) from /usr/src to /mnt: # cd /usr/src # make installworld DESTDIR=/mnt # make installkernel DESTDIR=/mnt KERNCONF=GENERIC INSTALL_NODEBUG=t # make distrib-dirs DESTDIR=/mnt # make distribution DESTDIR=/mnt create the future /etc/fstab to mount / as root fs: # echo /dev/ada1p2 / ufs rw 1 1 > /mnt/etc/fstab configure some basic services in future /etc/rc.conf: # cat < /mnt/etc/rc.conf tmpmfs="YES" tmpsize="128m" wlans_ath0="wlan0" ifconfig_wlan0="WPA DHCP" ifconfig_bge0="DHCP" ifconfig_em0="DHCP" hostname=aurora.Sisis.de sshd_enable="YES" moused_enable="YES" keymap="german.iso" EOF create at least one unpriv user to be able to SSH into the new system later: # chroot /mnt /usr/sbin/adduser unmount the new / and reboot: # umount /mnt # reboot after reboot system should now come up from ada1 and we copy over the /boot to ada0p2 # mount /dev/ada0p2 /mnt # cp -Rp /boot /mnt # echo 'geom_eli_load="YES"' > /mnt/boot/loader.conf # echo 'vfs.root.mountfrom="ufs:ada1p2"'>> /mnt/boot/loader.conf # umount /mnt # reboot should now boot by itself from ada0 and mount the tootfs from ada1p2; later we will use /dev/ada0p3 for the geli(8) encrypted file system and we will mount this as /private; my $HOME should be /private/home -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Wednesday, May 30, 2012 a las 07:44:37PM +0200, Wojciech Puchar escribió: > > from; one has to go (by pressing ESC) to the boot menu to pick it up as > > current boot device; any idea how this could be changed? > > boot from 4GB. just put /boot here and add > > vfs.root.mountfrom="ufs:XXX" > > where XXX is your root filesystem device name with "/dev/" stripped > > do not forget to bsdlabel -B your.4GB.SSD > > WARNING: you must have proper disklabel with a: partition containing UFS > with /boot. > > But you may have a partition equal to whole disk > >a: 117231408 04.2BSD0 0 0 >c: 117231408 0unused0 0 # "raw" part, don't > edit > > > and it is absolutely OK, UFS do not overwrite first few sectors as it is > reserved for it. > > And PLEASE DO NOT make this stupid MSDOS style slices. It is not just > unneeded but introduces mess and only mess. > > just have /dev/ad0a not /dev/ad0s1a OK, but I wanted to have most of the space of the 4 GB SSD encrypted with geli(8); so I should make there some slice containing /boot (unencrypted) and a second slice which later will contain my HOME and encrypted; wrong? matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: cleaning /usr/obj before copying it to USB key
El día Monday, June 11, 2012 a las 09:24:02AM +0200, Lars Engels escribió: > On Sun, Jun 10, 2012 at 01:07:58PM +0300, Aldis Berjoza wrote: > > On Sat, 9 Jun 2012 08:57:33 -0700 > > Tim Kientzle wrote: > > > > > > > > You can delete all of the '.o' files using a command like this: > > > > > >find /usr/obj -name '*.o' | xargs rm > > > > > > > > > I think: > > find /usr/obj -name '*.o' -delete > > is much better > > Or: > find /usr/obj -name '*.o' -exec rm {} \+ Thanks for the hints concerning find(1) usage. I was wondering if there is nothing like # make install-clean or # make remove-tempfiles Thanks matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: cleaning /usr/obj before copying it to USB key
El día Saturday, June 09, 2012 a las 08:57:33AM -0700, Tim Kientzle escribió: > On Jun 9, 2012, at 7:35 AM, Matthias Apitz wrote: > > > > To use the (booted) USB key later to install other laptops or netbooks I > > enrich the key with /usr/src and /usr/obj as: > > > > # cd /usr > > # cp -Rp src /mnt/usr > > # cp -Rp obj /mnt/usr > > > > my problem is that the both 'cp -Rp ...' commands takes many hours (12 > > and six hours) because they are transferring a lot(!!!) of small files; > > As someone else pointed out, flash drives are pretty slow > when making a lot of small writes. > > You can speed things up a lot by creating the image locally > then copying the image to USB. Here are parts of a shell > script I've been using for something similar: > ... Thanks for your hints, Wojciech and Tim; the USB key in question is of 16 marketing GByte; will this work as well with mdconfig or is there some limit? Thanks again matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
cleaning /usr/obj before copying it to USB key
Hi, I build kernel and userland (out of SVN) and install in on an USB key mounted as /mnt this way: # cd /usr/src ... # make installworld DESTDIR=/mnt # make installkernel DESTDIR=/mnt KERNCONF=GENERIC INSTALL_NODEBUG=t # make distrib-dirs DESTDIR=/mnt # make distribution DESTDIR=/mnt To use the (booted) USB key later to install other laptops or netbooks I enrich the key with /usr/src and /usr/obj as: # cd /usr # cp -Rp src /mnt/usr # cp -Rp obj /mnt/usr Having done this I can use the key just to install the system on the laptop with the above DESTDIR=/mnt wherein /mnt is now the target root of the laptop; all this works just fine; my problem is that the both 'cp -Rp ...' commands takes many hours (12 and six hours) because they are transferring a lot(!!!) of small files; I have had a look into /usr/obj and it seems that after 'makeworld' and 'makekernel' there are left over a lot of temporary files from the build processes... is there a clean way to remove those files before 'cp -Rp obj /mnt/usr' while the result is still useful for another make install with DESTDIR=/mnt ? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Wednesday, May 30, 2012 a las 07:44:37PM +0200, Wojciech Puchar escribió: > > Concerning your hint installing the systen on the second SSD of around > > 16 GByte (marketing GBytes :-)), the BIOS by itself is unable to boot > right. 16 billion bytes. > > A simple marketing trick to cheat you for 7.6% I think, it's only 7.3% $ bc (16*1024*1024*1024-160)/160*100 7.300 but it's just to cheat you; and nobody cares about 1179869184 bytes, more then 1 billion of bytes :-( matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Saturday, May 26, 2012 a las 04:01:54PM +0200, Wojciech Puchar escribió: > >> Why? Your laptop have most probably slow CPU and it will make everything > >> too slow if you make everything encrypted. > > > > I'd suggest some experiments - create a largish RAMdisk with and without > > GELI and see how the performance compares (this will be a lot faster than > > converting your SSD as well as saving a full-SSD erase/write cycle). > > right. DO TESTs. > > mdconfig -a -t swap -s512m -u 0 > dd if=/dev/zero of=/dev/md0 bs=128k count=4k > dd if=/dev/md0 of=/dev/null bs=128k count=4k > > geli init -s 2048 /dev/md0 > geli attach /dev/md0 > dd if=/dev/md0.eli of=/dev/null bs=128k count=4k (*) > dd if=/dev/zero of=/dev/md0.eli bs=128k count=4k (*) > geli detach /dev/md0 > mdconfig -d -u 0 I did the same tests with my laptop Acer Aspire One D250 and the small netbook EeePC 900: Acer Aspire One D250: $ dmesg | fgrep CPU: CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (1596.22-MHz 686-class CPU) # mdconfig -a -t swap -s512m -u 0 # dd if=/dev/zero of=/dev/md0 bs=128k count=4k 536870912 bytes transferred in 2.252701 secs (238323196 bytes/sec) # dd if=/dev/md0 of=/dev/null bs=128k count=4k 536870912 bytes transferred in 1.355759 secs (395992908 bytes/sec) # geli init -s 2048 /dev/md0 Enter new passphrase: ... # geli attach /dev/md0 Enter passphrase: # dd if=/dev/md0.eli of=/dev/null bs=128k count=4k 536868864 bytes transferred in 40.844322 secs (13144272 bytes/sec) # dd if=/dev/zero of=/dev/md0.eli bs=128k count=4k 536868864 bytes transferred in 43.093812 secs (12458143 bytes/sec) # geli detach /dev/md0 # mdconfig -d -u 0 EeePC 900 # dmesg | fgrep CPU: CPU: Intel(R) Celeron(R) M processor 900MHz (900.11-MHz 686-class CPU) # mdconfig -a -t swap -s512m -u 1 # dd if=/dev/zero of=/dev/md1 bs=128k count=4k 536870912 bytes transferred in 2.072289 secs (259071449 bytes/sec) # dd if=/dev/md1 of=/dev/null bs=128k count=4k 536870912 bytes transferred in 1.439256 secs (373019761 bytes/sec) # # geli init -s 2048 /dev/md1 Enter new passphrase: Reenter new passphrase: ... # geli attach /dev/md1 Enter passphrase: # dd if=/dev/md1.eli of=/dev/null bs=128k count=4k 536868864 bytes transferred in 35.093015 secs (15298454 bytes/sec) # dd if=/dev/zero of=/dev/md1.eli bs=128k count=4k 536868864 bytes transferred in 38.044995 secs (14111419 bytes/sec) # geli detach /dev/md1 # mdconfig -d -u 1 As you can see the EeePC with it's Intel Celeron CPU of only 900 MHz is even faster then the Acer with Atom CPU; BTW: On the EeePC I run 10-CURRENT, KDE 3.5.10 and never encounter performance issues while reading, writing etc. Concerning your hint installing the systen on the second SSD of around 16 GByte (marketing GBytes :-)), the BIOS by itself is unable to boot from; one has to go (by pressing ESC) to the boot menu to pick it up as current boot device; any idea how this could be changed? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Saturday, May 19, 2012 a las 08:09:01PM +0200, Matthias Apitz escribió: > My EeePC netbook shows for the two SSD: > > $ uname -a > FreeBSD tiny 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r226986: Tue Nov 1 > 14:27:40 CET 2011 guru@caracas:/usr/obj/usr/src/sys/GENERIC i386 > $ gpart show > ... Talking about another question, related to file systems on SSD: My netbook with the two SSD has file systems mounted as: $ df -kh Filesystem SizeUsed Avail Capacity Mounted on /dev/ada0s1a3.7G567M3.1G15%/ /dev/ada1s1a 14G8.7G5.9G60%/usr/local /dev/md0125M 88k115M 0%/tmp Below /usr/local is also my (one and only) HOME dir; I'm on the way to reinstall all with 10-CURRENT and I'd like to crypt the partition /dev/ada1s1a with geli(8). Any objections against running geli(8) on SSD? Should I split /dev/ada1 into two separate partitions, one for real /usr/local and one for my HOME and only crypt this with geli(8)? I think it would be good to crypt my HOME on a netbook. Thanks matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Tuesday, May 22, 2012 a las 07:42:18AM -0600, Warren Block escribió: > On Tue, 22 May 2012, Matthias Apitz wrote: > > > El día Sunday, May 20, 2012 a las 03:36:01AM +0900, rozhuk...@gmail.com > > escribió: > >> > >> Do not use MBR (or manually do all to align). > >> 63 - not 4k aligned. > > > > To create the above shown partition layout I have not used gpart(8); I > > just said: > > > ># fdisk -I /dev/ada0 > ># fdisk -B /dev/ada0 > > > > ... > > What is wrong with this procedure? > > The filesystem partitions end up at locations that aren't even multiples > of 4K. This can reduce performance. How much probably depends on the > SSD. But this is then rather a bug in fdisk(8) and not a PEBKAC, or? :-) matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Sunday, May 20, 2012 a las 03:36:01AM +0900, rozhuk...@gmail.com escribió: > > My EeePC netbook shows for the two SSD: > > > > $ uname -a > > FreeBSD tiny 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r226986: Tue Nov 1 > > 14:27:40 CET 2011 guru@caracas:/usr/obj/usr/src/sys/GENERIC i386 > > $ gpart show > > => 63 7880481 ada0 MBR (3.8G) > >63 7880481 1 freebsd [active] (3.8G) > > > > => 63 31522113 ada1 MBR (15G) > > 63 31522113 1 freebsd [active] (15G) > > > > => 0 7880481 ada0s1 BSD (3.8G) > > 0 16 - free - (8.0k) > >16 7880465 1 freebsd-ufs (3.8G) > > > > => 0 31522113 ada1s1 BSD (15G) > > 016 - free - (8.0k) > > 16 31522097 1 freebsd-ufs (15G) > > > > Do not use MBR (or manually do all to align). > 63 - not 4k aligned. Hi, To create the above shown partition layout I have not used gpart(8); I just said: # fdisk -I /dev/ada0 # fdisk -B /dev/ada0 # bsdlabel -w ada0s1 auto # bsdlabel -B ada0s1 changed partition "a" from "unused" to "4.2BSD" as partition type: # setenv EDITOR /usr/bin/vi # bsdlabel -e ada0s1 created the future root-filesystem on it # newfs -m 0 -o space /dev/ada0s1a The 2nd SSD was formated like this: # dd if=/dev/zero of=/dev/ada1 count=2 # fdisk -I /dev/ada1 # newfs -m 0 -o space /dev/ada1s1a # echo "/dev/ada1s1a /usr/local ufs rw,noatime 1 1" >> /etc/fstab # mount /usr/local What is wrong with this procedure? Thanks matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Sunday, May 20, 2012 a las 03:00:46AM +0900, rozhuk...@gmail.com escribió: > Partition must be aligned to: > > # gpart show > => 34 62533229 ada0 GPT (29G) > 34 6- free - (3.0k) - for align > 40 512 1 freebsd-boot (256k) - size 4k aligned >552 62532648 2 freebsd-ufs (29G) - size 4k aligned > 6253320063- free - (31k) My EeePC netbook shows for the two SSD: $ uname -a FreeBSD tiny 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r226986: Tue Nov 1 14:27:40 CET 2011 guru@caracas:/usr/obj/usr/src/sys/GENERIC i386 $ gpart show => 63 7880481 ada0 MBR (3.8G) 63 7880481 1 freebsd [active] (3.8G) => 63 31522113 ada1 MBR (15G) 63 31522113 1 freebsd [active] (15G) => 0 7880481 ada0s1 BSD (3.8G) 0 16 - free - (8.0k) 16 7880465 1 freebsd-ufs (3.8G) => 0 31522113 ada1s1 BSD (15G) 016 - free - (8.0k) 16 31522097 1 freebsd-ufs (15G) matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: proper newfs options for SSD disk
El día Saturday, May 19, 2012 a las 10:40:32AM +0200, User Wojtek escribió: > > You may be able to find the exact erase block size in the technical > > documentation of your specific SSD. But the manufacturers don't always > > tell. :) > > ... Hi, Some weeks ago in the context of Openmoko (my Linux based cellphone) I came across to this very interesting article about file systems and SSD; even if the article is in Linux context, it contains useful information about how SSD behaves when updating blocks on SSD. https://lwn.net/Articles/428584/ I have to admit, that I run an EeePC 900 netbook for many years now (with now FreeBSD 10-CURRENT) and the only special option for the SSD (the EeePC has only two SSD) is -noatime on mounting. But this is just a small netbook to read stuff or write something when I'm in town and does not need performance tweaking. HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: iso2flash img
Hello, I've forwarded your question to a colleague who is an Ubuntu fan and he replied, that the creation of a booting Ubuntu USB key is possile with Ubuntu tools/methods only, i.e. booting the Ubuntu live CD and following the ways to install it onto the key (and not on disk). He wrote some years ago a small Wiki page about, it is in German but maybe you can clue something from the commands there: http://mikiwiki.org/wiki/Ubuntu_8.10_Intrepid_Ibex/Installation_2009.04.07_usbstick HIH matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: How to use pfind in freeBSD
El día Friday, March 16, 2012 a las 10:13:27AM +0100, Rodrigo OSORIO escribió: > Hi, > > pfind and friends looks like kernel only function. I can suggest you to > explore > the sysctl(3) way to recover the kern.proc structures. There are fexw examples > on the internet, you can check a code I wrote few years ago to recover the > battery state in my laptop using sysctl ; hope this help. > http://www.bebik.net/doku.php/battery_life_and_sysctl_3 Hi Rodrigo, Thanks for your pointer to your page; the page has a small typo: % sysctrl hw.acpi.battery it should say "sysctl"; one question: how do you get the output of 'battery' into the status bar (I'musing KDE 3.5.10). Thanks matthias PD: the lines of your mail are filled up to position 191 with trailing blanks; -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: o
El día Sunday, February 26, 2012 a las 01:05:11PM -0800, Julian Elischer escribió: > On 2/26/12 5:34 AM, Bob Bishop wrote: > > Hi, > > > > I'd like to hear from somebody who understands this stuff on the relative > > merits of blackhole routes vs firewall drop rules for dealing with packets > > from unwanted sources. I'm particularly interested in efficiency and > > scalability. Thanks > > the key is the word "from". routes can only be selected on 'TO' > (destination) where > firewalls can select on any combination of header fields. I understand the idea of the OP as, based on the source IP addr, he wants to install routes that the resulting IP pkg to the source IP goes to "nowhere", i.e. not back to the origin IP and the 1st SYN is not answered back to the source IP; matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Broadcom BCM4310 / bwi(4) and interface bwi0 is not showing up
El día Sunday, October 24, 2010 a las 07:48:15PM -0400, Mark Johnston escribió: > > none2 at pci0:1:0:0: class=0x028000 card=0xe01b105b chip=0x431514e4 > > rev=0x01 hdr=0x00 > > vendor = 'Broadcom Corporation' > > device = 'BCM4310 USB Controller' > > class = network > > > > I learned after searching around that it should be supported by bwi(4) > > and one should install the firmware kmod from the ports. > > ... > > > > What I am missing here? Thanks > > > > matthias > > -- > > Matthias Apitz > > t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 > > e - w http://www.unixarea.de/ > > Looking at bwi/if_bwi_pci.c, it doesn't seem as though your particular > chip is supported: > ... Yes, I saw this later too. And sys/dev/bwn does not compile in my old kernel env. I've pulled out now HEAD from SVN and will build an USB key based on this to see if it will have support for this chip. Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Broadcom BCM4310 / bwi(4) and interface bwi0 is not showing up
Hello, I have a new laptop Acer Aspire One D250 and I want to install a 8-CURRENT as of CVS from May 2009 (as I use this on all my laptops). The laptop comes with as Wifi chip: no...@pci0:1:0:0: class=0x028000 card=0xe01b105b chip=0x431514e4 rev=0x01 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM4310 USB Controller' class = network I learned after searching around that it should be supported by bwi(4) and one should install the firmware kmod from the ports. I have in loader.conf: if_bwi_load="YES" bwi_v3_ucode_load="YES" and a kldstat shows that both are loaded. But the bwi0 interface is not showing up. If I do a kldunload/kldload it says: pci0: driver added found-> vendor=0x8086, dev=0x27d8, revid=0x02 domain=0, bus=0, slot=27, func=0 class=04-03-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0010, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=16 powerspec 2 supports D0 D3 current D0 MSI supports 1 message, 64 bit pci0:0:27:0: reprobing on driver added found-> vendor=0x8086, dev=0x27da, revid=0x02 domain=0, bus=0, slot=31, func=3 class=0c-05-00, hdrtype=0x00, mfdev=0 cmdreg=0x0001, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=b, irq=17 pci0:0:31:3: reprobing on driver added pci1: driver added found-> vendor=0x14e4, dev=0x4315, revid=0x01 domain=0, bus=1, slot=0, func=0 class=02-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0010, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=16 powerspec 3 supports D0 D1 D2 D3 current D0 MSI supports 1 message, 64 bit pci0:1:0:0: reprobing on driver added pci2: driver added pci3: driver added found-> vendor=0x1969, dev=0x1062, revid=0xc0 domain=0, bus=3, slot=0, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=18 powerspec 3 supports D0 D3 current D0 MSI supports 1 message, 64 bit pci0:3:0:0: reprobing on driver added pci4: driver added pci5: driver added and a 'dmesg | fgrep bwi' shows: Preloaded elf module "/boot/kernel/if_bwi.ko" at 0xc10ed228. Preloaded elf module "/boot/modules/bwi_v3_ucode.ko" at 0xc10ed2d4. firmware: 'bwi_v3_ucode' version 0: 0 bytes loaded at 0xc10d33d4 firmware: 'bwi_v3_ucode11' version 0: 21680 bytes loaded at 0xc10d33d4 firmware: 'bwi_v3_ucode2' version 0: 16360 bytes loaded at 0xc10d8884 firmware: 'bwi_v3_ucode4' version 0: 20096 bytes loaded at 0xc10dc86c firmware: 'bwi_v3_ucode5' version 0: 22280 bytes loaded at 0xc10e16ec firmware: 'bwi_v3_a0g0bsinitvals2' version 0: 18 bytes loaded at 0xc10e6df4 firmware: 'bwi_v3_a0g0bsinitvals5' version 0: 158 bytes loaded at 0xc10e6e06 firmware: 'bwi_v3_a0g0initvals2' version 0: 2520 bytes loaded at 0xc10e6ea4 firmware: 'bwi_v3_a0g0initvals5' version 0: 1818 bytes loaded at 0xc10e787c firmware: 'bwi_v3_a0g1bsinitvals5' version 0: 158 bytes loaded at 0xc10e7f96 firmware: 'bwi_v3_a0g1initvals5' version 0: 1818 bytes loaded at 0xc10e8034 firmware: 'bwi_v3_b0g0bsinitvals2' version 0: 18 bytes loaded at 0xc10e874e firmware: 'bwi_v3_b0g0bsinitvals5' version 0: 158 bytes loaded at 0xc10e8760 firmware: 'bwi_v3_b0g0initvals2' version 0: 2520 bytes loaded at 0xc10e87fe firmware: 'bwi_v3_b0g0initvals5' version 0: 1818 bytes loaded at 0xc10e91d6 firmware: 'bwi_v3_pcm4' version 0: 1320 bytes loaded at 0xc10e98f0 firmware: 'bwi_v3_pcm5' version 0: 1320 bytes loaded at 0xc10e9e18 What I am missing here? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: USB key && can't mount /root during boot
El día Saturday, October 23, 2010 a las 10:49:56AM +0200, Matthias Apitz escribió: > I have now again the same problem (see Subject) again with a new laptop > Acer Aspire One D250 and neither of the two values in loader.conf: > > > kern.cam.boot_delay="1" > > kern.cam.scsi_delay="1" > > seems to help. The 10 sec delay is not even visible during the boot, the > message to enter manually the root device just pops up without any > delay. What does this mean? After a lot of testing I got it to woork with: kern.cam.boot_delay="1" kern.cam.scsi_delay="3000" i.e. it works with 3000, but not with 1 Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
USB key && can't mount /root during boot
Hello, I have now again the same problem (see Subject) again with a new laptop Acer Aspire One D250 and neither of the two values in loader.conf: kern.cam.boot_delay="1" kern.cam.scsi_delay="1" seems to help. The 10 sec delay is not even visible during the boot, the message to enter manually the root device just pops up without any delay. What does this mean? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: kmod if_alc in 8-CURRENT
El día Friday, October 22, 2010 a las 09:14:03AM +0200, Matthias Apitz escribió: > # make > Warning: Object directory not changed from original > /usr/src/sys/modules/alc > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE > -nostdinc -I. -I@ -I@/contrib/altq -finli > ne-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -mno-align-long > -strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse > -mno-sse2 -mno-sse3 -ffreestanding -fsta > ck-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototype > s -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions > -c /usr/src/sys/modules/alc/../../dev/alc/if_alc.c > cc1: warnings being treated as errors > /usr/src/sys/modules/alc/../../dev/alc/if_alc.c: In function > 'alc_rxfilter': > /usr/src/sys/modules/alc/../../dev/alc/if_alc.c:3465: warning: implicit > declaration of function 'if_maddr_rl > ock' > /usr/src/sys/modules/alc/../../dev/alc/if_alc.c:3465: warning: nested > extern declaration of 'if_maddr_rlock' > /usr/src/sys/modules/alc/../../dev/alc/if_alc.c:3473: warning: implicit > declaration of function 'if_maddr_ru > nlock' > /usr/src/sys/modules/alc/../../dev/alc/if_alc.c:3473: warning: nested > extern declaration of 'if_maddr_runloc > k' > *** Error code 1 The change was introduced with rev. 1.2 of the driver: revision 1.2 date: 2009/06/26 11:45:06; author: rwatson; state: Exp; lines: +2 -2 SVN rev 195049 on 2009-06-26 11:45:06Z by rwatson Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ IF_ADDR_UNLOCK() across network device drivers when accessing the per-interface multicast address list, if_multiaddrs. This will allow us to change the locking strategy without affecting our driver programming interface or binary interface. and I checked out RELENG_8_0_0_RELEASE (revision: 1.3.2.2.2.1) will Cc: the author to see what I should do with my 8-CURRENT from May 2009 to get support for this NIC; Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: kmod if_alc in 8-CURRENT
El día Thursday, October 21, 2010 a las 08:44:32PM +0200, Paul B Mahol escribió: > On 10/21/10, Matthias Apitz wrote: > > El dia Thursday, October 21, 2010 a las 08:35:09PM +0200, Paul B Mahol > > escribio: > > > >> > # cd /usr/src > >> > # make buildkernel KERNCONF=GENERIC > >> > > >> > does not build the module if_alc.ko > >> > > >> > What I'm missing? Or what is the correct way to get this module for my > >> > kernel level? > >> > >> /sys/modules/alc > > > > Yes, thanks. I realized this some hours ago and CVS up this too, but > > the module does not get build. > > Because you did not have Makefiles of higher directories. > > Anyway: > > # cd /sys/modules/alc && make install clean > > Should do it. Thanks, but: # make Warning: Object directory not changed from original /usr/src/sys/modules/alc cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finli ne-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long -strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fsta ck-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototype s -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/alc/../../dev/alc/if_alc.c cc1: warnings being treated as errors /usr/src/sys/modules/alc/../../dev/alc/if_alc.c: In function 'alc_rxfilter': /usr/src/sys/modules/alc/../../dev/alc/if_alc.c:3465: warning: implicit declaration of function 'if_maddr_rl ock' /usr/src/sys/modules/alc/../../dev/alc/if_alc.c:3465: warning: nested extern declaration of 'if_maddr_rlock' /usr/src/sys/modules/alc/../../dev/alc/if_alc.c:3473: warning: implicit declaration of function 'if_maddr_ru nlock' /usr/src/sys/modules/alc/../../dev/alc/if_alc.c:3473: warning: nested extern declaration of 'if_maddr_runloc k' *** Error code 1 matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: kmod if_alc in 8-CURRENT
El día Thursday, October 21, 2010 a las 08:35:09PM +0200, Paul B Mahol escribió: > > # cd /usr/src > > # make buildkernel KERNCONF=GENERIC > > > > does not build the module if_alc.ko > > > > What I'm missing? Or what is the correct way to get this module for my > > kernel level? > > /sys/modules/alc Yes, thanks. I realized this some hours ago and CVS up this too, but the module does not get build. matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
kmod if_alc in 8-CURRENT
Hello, I have on my laptop a kernel based on CVS from May 2009, i.e. 8-CURRENT at this time. I now need support for Atheros AR813x/AR815x PCIe Ethernet, the kmod if_alc.ko. That's why I did: # cd /usr/src/sys/dev # cvs update -d -r RELENG_8_0_0_RELEASE alc and have now: # ls -l alc total 142 drwxr-xr-x 2 root wheel 512 21 oct 15:30 CVS -rw-r--r-- 1 root wheel 103832 21 oct 15:30 if_alc.c -rw-r--r-- 1 root wheel 29084 21 oct 15:30 if_alcreg.h -rw-r--r-- 1 root wheel8119 21 oct 15:30 if_alcvar.h but a # cd /usr/src # make buildkernel KERNCONF=GENERIC does not build the module if_alc.ko What I'm missing? Or what is the correct way to get this module for my kernel level? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Permissive licensed toolchain
El día Sunday, May 30, 2010 a las 09:15:05PM +0700, "C. Bergström" escribió: > Hi > > What's the real status of a fully permissive licensed toolchain? > > ... Please don't high-jack another tread with a new topic; your mail contains: In-Reply-To: <45c1fa95-c9a3-41ea-9e3a-61e35c7f6...@cederstrand.dk> HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ¡Ya basta! ¡Tropas de OTAN, fuera de Afghanistan! There's an end of it! NATO troups out of Afghanistan! Schluss jetzt endlich! NATO raus aus Afghanistan! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: CURRENT sees only /dev/ad2s1a, but not /dev/ad3s1a
El día Thursday, April 02, 2009 a las 05:06:53PM +0200, Paul B. Mahol escribió: > On 4/2/09, Matthias Apitz wrote: > > El día Friday, March 27, 2009 a las 05:52:40PM +0100, Paul B. Mahol > > escribió: > > > >> On 3/27/09, Matthias Apitz wrote: > >> > > >> > Hello, > >> > > >> > When I boot my EeePC from USB key (/dev/da0s1a) -CURRENT it sees the two > >> > SSD > >> > only > >> > as > >> > > >> > $ ls -l /dev/ad* > >> > /dev/ad2 > >> > /dev/ad2s1 > >> > /dev/ad2s1a > >> > /dev/ad3 > >> > /dev/ad3a > >> > > >> > I can mount /dev/ad2s1a but ofc not /dev/ad3s1a; > >> > > >> > when I'm booting the RELENG_7 from /dev/ad2s1a itself it looks like > >> > this: > >> > > >> > $ mount > >> > /dev/ad2s1a on / (ufs, local, noatime) > >> > /dev/ad3s1a on /usr/home (ufs, local, noatime) > >> > >> CURRENT have replaced geom_bsd with geom_part_bsd > >> and that can cause various problems, search current archives for more > >> info. > > > > When I will update the EeePC from USB key (/dev/da0s1a) to CURRENT I > > will install into /dev/ad2s1a (with make installworld/installkernel ...) > > and I want to keep the partition /dev/ad3s1a as it is; would it be > > enough to just do: > > > > # bsdlabel -w ad3s1 auto > > > > from CURRENT booted? > > When you do that, make backups anyway. > > I dont use bsdlabel/fdisk/sade any more, I use gpart(8) instead. I > actually wiped completely old crappy parttion table and replaced it > with gpart one, and now I'm using more than 8 labels. This is only to close this thread: Today morning I installed CURRENT into /dev/ad2s1a (without problems) and I've found no way to re-use the other old (RELENG_7) partition in the 2nd SSD /dev/ad3; I had to wipe it out to make fdisk happy: # dd if=/dev/zero of=/dev/ad3 count=2 # fdisk -I /dev/ad3 # newfs -m 0 -o space /dev/ad3s1a # echo "/dev/ad3s1a /usr/local ufs rw,noatime 1 1" >> /etc/fstab # mount /usr/local matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: CURRENT sees only /dev/ad2s1a, but not /dev/ad3s1a
El día Friday, March 27, 2009 a las 05:52:40PM +0100, Paul B. Mahol escribió: > On 3/27/09, Matthias Apitz wrote: > > > > Hello, > > > > When I boot my EeePC from USB key (/dev/da0s1a) -CURRENT it sees the two SSD > > only > > as > > > > $ ls -l /dev/ad* > > /dev/ad2 > > /dev/ad2s1 > > /dev/ad2s1a > > /dev/ad3 > > /dev/ad3a > > > > I can mount /dev/ad2s1a but ofc not /dev/ad3s1a; > > > > when I'm booting the RELENG_7 from /dev/ad2s1a itself it looks like this: > > > > $ mount > > /dev/ad2s1a on / (ufs, local, noatime) > > /dev/ad3s1a on /usr/home (ufs, local, noatime) > > CURRENT have replaced geom_bsd with geom_part_bsd > and that can cause various problems, search current archives for more info. When I will update the EeePC from USB key (/dev/da0s1a) to CURRENT I will install into /dev/ad2s1a (with make installworld/installkernel ...) and I want to keep the partition /dev/ad3s1a as it is; would it be enough to just do: # bsdlabel -w ad3s1 auto from CURRENT booted? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
CURRENT sees only /dev/ad2s1a, but not /dev/ad3s1a
oot mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered Root mount waiting for: usbus4 usbus3 usbus1 usbus0 uhub1: 2 ports with 2 removable, self powered Root mount waiting for: usbus4 usbus1 usbus0 uhub3: 2 ports with 2 removable, self powered Root mount waiting for: usbus4 usbus1 uhub4: 2 ports with 2 removable, self powered Root mount waiting for: usbus4 Root mount waiting for: usbus4 Root mount waiting for: usbus4 Root mount waiting for: usbus4 uhub2: 8 ports with 8 removable, self powered ugen4.2: at usbus4 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks = 0x Root mount waiting for: usbus4 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 7712MB (15794176 512 byte sectors: 255H 63S/T 983C) Root mount waiting for: usbus4 ugen4.3: at usbus4 umass1: on usbus4 umass1: SCSI over Bulk-Only; quirks = 0x Root mount waiting for: usbus4 umass1:1:1:-1: Attached to scbus1 (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim1:1:0:0): CAM Status: SCSI Status Error (probe0:umass-sim1:1:0:0): SCSI Status: Check Condition (probe0:umass-sim1:1:0:0): NOT READY asc:3a,0 (probe0:umass-sim1:1:0:0): Medium not present (probe0:umass-sim1:1:0:0): Unretryable error da1 at umass-sim1 bus 1 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/da0s1a -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
doing 'make installworld / installkernel' a second time?
Hello, I've created a bootable USB key with -CURRENT like this: # mkdir -p /usr/src/CURRENT/obj # cd /usr/src/CURRENT # setenv CVSROOT :pserver:anon...@anoncvs.fr.freebsd.org:/home/ncvs # cvs login # cvs checkout src # cd /usr/src/CURRENT/src # setenv MAKEOBJDIRPREFIX /usr/src/CURRENT/obj # make buildworld # make buildkernel KERNCONF=GENERIC (USB key inserted as /dev/da0) # fdisk -I da0 # fdisk -B da0 # bsdlabel -w da0s1 auto # bsdlabel -B da0s1 # newfs /dev/da0s1a # mount /dev/da0s1a /mnt # make installworld DESTDIR=/mnt # make installkernel DESTDIR=/mnt KERNCONF=GENERIC INSTALL_NODEBUG=t # make distrib-dirs DESTDIR=/mnt # make distribution DESTDIR=/mnt # echo /dev/da0s1a / ufs rw 1 1 > /mnt/etc/fstab # cat < /mnt/etc/rc.conf wlans_ath0="wlan0" ifconfig_wlan0="WPA DHCP" hostname=tinyCurrent sshd_enable="YES" EOF-EOF-EOF # cp /etc/wpa_supplicant.conf /mnt/etc # umount /mnt the resulting USB key boots fine; what I'm unsure about is: can I copy /usr/src/CURRENT onto the key with # cp -rp /usr/src/CURRENT /mnt and when it is booted (in my EeePC) can I do there the installation to the SSD again with # newfs -m 0 -o space /dev/ad2s1a # mount /dev/ad2s1a /mnt # setenv MAKEOBJDIRPREFIX /CURRENT/obj # cd /CURRENT/src # make installworld DESTDIR=/mnt # make installkernel DESTDIR=/mnt KERNCONF=GENERIC INSTALL_NODEBUG=t # make distrib-dirs DESTDIR=/mnt # make distribution DESTDIR=/mnt or is /CURRENT/src and /CURRENT/obj not enough for the 2nd installation, for example because the 1st 'make installworld' has removed stuff below /usr/src/CURRENT/obj? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Fwd: associated to AP (WEP mode) && no IP addr via DHCP
Hello, I've posted the problem below to freebsd-mobile with zero (visible) effect; maybe someone from freebsd-hackers has at least an idea for me where to look into for further debugging; it should to stay that a simple stupid Nokia works in a Wifi zone, while FreeBSD does not :-) Thx for your time reading my problem matthias - Forwarded message from Matthias Apitz - From: Matthias Apitz Date: Thu, 5 Mar 2009 13:00:22 +0100 To: freebsd-mob...@freebsd.org Subject: associated to AP (WEP mode) && no IP addr via DHCP Hello, I'm going frequently to a Greek restaurant in my town to have dinner there or some red wine, and reading stuff; the owner of the restaurant has a Wifi zone and gave me, as its best client, the WEP-key to connect to Internet; the problem is that he does not have the admin password of the AP (some else configured it) and so I can't have a look into the config of the AP; my /etc/wpa_supplicant.conf for the AP is: # Restaurante Odyssey (2007-11-18) # network={ ssid="ConnectionPoint" scan_ssid=0 key_mgmt=NONE wep_tx_keyidx=0 wep_key0=xx } and the interface associates fine: # ifconfig ath0 ath0: flags=8843 metric 0 mtu 1500 ether 00:15:af:b2:ae:e6 inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255 media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps) status: associated ssid ConnectionPoint channel 11 (2462 Mhz 11g) bssid 00:01:e3:0e:97:99 authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit txpower 31.5 bmiss 7 scanvalid 60 protmode CTS burst roaming MANUAL but a DHCP request does not give me any IP addr; with # tcpdump -n -i ath0 it says: 19:01:01.603869 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:15:af:b2:ae:e6, length 300 19:01:02.036549 00:01:e3:0e:97:98 Unknown SSAP 0x2c > ff:ff:ff:ff:ff:ff Unknown DSAP 0xa2 Information, send seq 98, rcv seq 39, Flags [Command], length 36 19:01:02.958057 00:01:e3:0e:97:98 ProWay NM > ff:ff:ff:ff:ff:ff Unknown DSAP 0x5c Supervisory, Reject, rcv seq 8, Flags [Response], length 36 19:01:04.186892 00:01:e3:0e:97:98 Unknown SSAP 0xbe > ff:ff:ff:ff:ff:ff Unknown DSAP 0x44 Supervisory, Reject, rcv seq 39, Flags [Final], length 36 19:01:09.606218 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:15:af:b2:ae:e6, length 300 this situation is already for monthes and I gave up and always use UMTS if I want connect to Internet; until yesterday I was thinking in some kind of MAC addr filter in the AP, but yesterday I was there with a friend who has a Nokia mobile E51 device; I gave him the key, he associated like me and got in the next second IP, DNS and all was fine; what is that for a problem? it is not ath0 related because my other laptop with iwi0 does not get IP either; what can I provide as information to nail this down? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-mob...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscr...@freebsd.org" - End forwarded message - -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: /dev/dsp* & /dev/audio* devices not present
El día Thursday, January 08, 2009 a las 09:06:45AM +0200, Vladimir Terziev escribió: > Hi Matthias, > > i configured Ekiga and during the configuration process it didn't find > any Audio device, so i think /dev/dsp* devices must be present, isn't > it ? > > Regards, > > Vladimir Which version of Ekiga you are using? In the past I've send patches to the Ekiga maintainer to make /dev/dsp working. I don't know if they made it, for example, into the version the 7.0 port is using. matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ SPAMer of the year: Subject: Alle Software ist Deutsche Sprachen >From: -40 % die Neujahrsaktion ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: /dev/dsp* & /dev/audio* devices not present
El día Wednesday, January 07, 2009 a las 06:52:31PM +0200, Vladimir Terziev escribió: ... > device sound > device snd_hda > > > The driver seems to recognize the controller: > > $ dmesg | grep pcm > > pcm0: mem > 0xe04c-0xe04c3fff irq 21 at device 27.0 on pci0 > pcm0: [ITHREAD] > pcm0: > pcm0: > > > This is also confirmed here: > > $ cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) > Installed devices: > pcm0: at memory > 0xe04c irq 21 [20071129_0050] [MPSAFE] (1p:1v/1r:1v channels duplex > default) all fine until here; > > Now the problem ... > The strange thing is all audio related devices are missing in /dev > > $ ls -l /dev/audio* /dev/dsp* > ls: /dev/audio*: No such file or directory > ls: /dev/dsp*: No such file or directory fine too; you will not see /dev/dsp* with ls(1), just open the device /dev/dsp with some application and it will appear; > Respectively i have no working sound support :( what you mean exactly with 'i have no working sound support'? try changing the values with the mixer(1) command if no sound is coming out from apps; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ SPAMer of the year: Subject: Alle Software ist Deutsche Sprachen >From: -40 % die Neujahrsaktion ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
7.0R && amd does not unmount USB-based UFS
Hello, I'm using the amd to mount CDFS and MSDOSFS on USB without any kind of problems for years; now I formated a new USB key with UFS, added the config in amd's map and encounter that it does not unmount the file system after the configured time of 20 secs: any idea? thanks in advance; matthias details: # cat /etc/amdmaps/amd.ufs ufs type:=ufs;fs:=/mnt/ufs;dev:=/dev/da0s1a;opts:=rw # tail -f /var/log/amd Oct 30 12:06:04 rebelion amd[23331]/info: /f: disabling nfs congestion window Oct 30 12:06:04 rebelion amd[23328]/info: initializing amd.conf map /etc/amdmaps/amd.usb of type file Oct 30 12:06:04 rebelion amd[23328]/info: first time load of map /etc/amdmaps/amd.usb succeeded Oct 30 12:06:04 rebelion amd[23328]/info: /etc/amdmaps/amd.usb mounted fstype toplvl on /u Oct 30 12:06:04 rebelion amd[23328]/info: initializing amd.conf map /etc/amdmaps/amd.cdrom of type file Oct 30 12:06:04 rebelion amd[23328]/info: first time load of map /etc/amdmaps/amd.cdrom succeeded Oct 30 12:06:04 rebelion amd[23328]/info: /etc/amdmaps/amd.cdrom mounted fstype toplvl on /a Oct 30 12:06:04 rebelion amd[23328]/info: initializing amd.conf map /etc/amdmaps/amd.ufs of type file Oct 30 12:06:04 rebelion amd[23328]/info: first time load of map /etc/amdmaps/amd.ufs succeeded Oct 30 12:06:04 rebelion amd[23328]/info: /etc/amdmaps/amd.ufs mounted fstype toplvl on /f entering the dir /f/ufs mounts the FS: Oct 30 12:08:02 rebelion amd[23328]/map: Trying mount of /dev/da0s1a on /f/usf fstype ufs Oct 30 12:08:02 rebelion amd[23328]/info: /dev/da0s1a mounted fstype ufs on /mnt/ufs here another example of entering /a/cdrom which gets unmounted after 20 secs: Oct 30 12:54:49 rebelion amd[23328]/map: Trying mount of /dev/acd0 on /a/cdrom fstype cdfs Oct 30 12:54:50 rebelion amd[23328]/error: /cdrom: mount: Input/output error Oct 30 12:54:50 rebelion amd[23328]/error: mount_cdfs: Input/output error Oct 30 12:54:59 rebelion amd[23328]/map: Trying mount of /dev/acd0 on /a/cdrom fstype cdfs Oct 30 12:55:00 rebelion amd[23328]/info: /dev/acd0 mounted fstype cdfs on /cdrom Oct 30 12:55:20 rebelion amd[23328]/info: /dev/acd0 unmounted fstype cdfs from /cdrom the UFS stays mounted forever: $ mount /dev/ad4s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad4s1e on /tmp (ufs, local, soft-updates) /dev/ad4s1f on /usr (ufs, local, soft-updates) /dev/ad4s1d on /var (ufs, local, soft-updates) [EMAIL PROTECTED]:/u on /u (nfs) [EMAIL PROTECTED]:/a on /a (nfs) [EMAIL PROTECTED]:/f on /f (nfs) /dev/da0s1a on /mnt/ufs (ufs, local) a umount by hand helps: # umount /mnt/ufs # mount /dev/ad4s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad4s1e on /tmp (ufs, local, soft-updates) /dev/ad4s1f on /usr (ufs, local, soft-updates) /dev/ad4s1d on /var (ufs, local, soft-updates) [EMAIL PROTECTED]:/u on /u (nfs) [EMAIL PROTECTED]:/a on /a (nfs) [EMAIL PROTECTED]:/f on /f (nfs) -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ A computer is like an air conditioner, it stops working when you open Windows Una computadora es como aire acondicionado, deja de funcionar si abres Windows ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kern/122331: panic's on KDE-launches (but only in WPA Wifi area)
El día Tuesday, September 16, 2008 a las 11:25:44AM -0400, John Baldwin escribió: > Well, fd_ofiles being NULL here is really odd. It's also odd that you have > no > current directory. Because fd_nfiles is 20, fd_ofiles should be pointing to > the static file descriptor array. Off the top of my head I don't see how > this is happening. It might help if you can narrow down exactly what WPA > operation you are doing that causes the panic. I'm doing nothing by my own with WPA; the wpa_supplicant is launched at boot time via /etc/rc.conf entry as: ifconfig_iwi0="WPA" i.e. in the moment when I launch the X11+KDE with 'startx' is already running, iwi0 is associated with the AP and IP/routing is up in the interface (I've checked this always with 'ifconfig iwi0'); the difference between my home and the office is WEP (at home where I don't face that problem) and WPA in the office; yesterday and today morning KDE booted fine without causing this panic; could the reason be some inconsistency in the file system? but in this case as well I don't know where this could come from; I have always clean shutdowns before moving from my home to the office: matthias -- Matthias Apitz A computer is like an air conditioner, it stops working when you open Windows Una computadora es como aire acondicionado, deja de funcionar si abres Windows ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: panic's on KDE-launches (but only in WPA Wifi area) / kern/122331
El día Monday, September 15, 2008 a las 04:08:06PM -0400, John Baldwin escribió: > > > Can you go to frame 7 in kgdb and 'p *fdp'? > > > > (kgdb) frame 7 > > #7 0xc0788b98 in kern_select (td=0xc49d5630, nd=9, fd_in=0x298ad840, > > fd_ou=0x298ad9c4, fd_ex=0x298adb48, tvp=0x0) at filedesc.h:136 > > return (fd < 0 || fd >= fdp->fd_nfiles ? NULL : > > fdp->fd_ofiles[fd]); > > (kgdb) p *fdp > > Variable "fdp" is not available. > > (kgdb) > > If 'td' is available then you can do 'p *td->td_proc->p_fd' (kgdb) frame 7 #7 0xc0788b98 in kern_select (td=0xc49d5630, nd=9, fd_in=0x298ad840, fd_ou=0x298ad9c4, fd_ex=0x298adb48, tvp=0x0) at filedesc.h:136 136 return (fd < 0 || fd >= fdp->fd_nfiles ? NULL : fdp->fd_ofiles[fd]); (kgdb) p td $7 = (struct thread *) 0xc49d5630 (kgdb) p *td->td_proc->p_fd $8 = {fd_ofiles = 0x0, fd_ofileflags = 0x0, fd_cdir = 0x0, fd_rdir = 0xc42f3a00, fd_jdir = 0x0, fd_nfiles = 20, fd_map = 0xc49db8b4, fd_lastfile = 9, fd_freefile = 10, fd_cmask = 18, fd_refcnt = 1, fd_holdcnt = 1, fd_sx = {lock_object = { lo_name = 0xc0ad3cbe "filedesc structure", lo_type = 0xc0ad3cbe "filedesc structure", lo_flags = 37421056, lo_witness_data = {lod_list = {stqe_next = 0x0}, lod_witness = 0x0}}, sx_lock = 17, sx_recurse = 0}, fd_kqlist = {slh_first = 0x0}, fd_holdleaderscount = 0, fd_holdleaderswakeup = 0} (kgdb) matthias ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: panic's on KDE-launches (but only in WPA Wifi area) / kern/122331
El día Monday, September 15, 2008 a las 02:48:05PM -0400, John Baldwin escribió: > > #0 doadump () at pcpu.h:195 > > 195 pcpu.h: No such file or directory. > > in pcpu.h > > (kgdb) bt > > #0 doadump () at pcpu.h:195 > > #1 0xc0754457 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 > > #2 0xc0754719 in panic (fmt=Variable "fmt" is not available.) > at /usr/src/sys/kern/kern_shutdown.c:563 > > #3 0xc0a4905c in trap_fatal (frame=0xe6960a8c, eva=12) > at /usr/src/sys/i386/i386/trap.c:899 > > #4 0xc0a492e0 in trap_pfault (frame=0xe6960a8c, usermode=0, eva=12) > > at /usr/src/sys/i386/i386/trap.c:812 > > #5 0xc0a49c8c in trap (frame=0xe6960a8c) > at /usr/src/sys/i386/i386/trap.c:490 > > #6 0xc0a2fc0b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 > > #7 0xc0788b98 in kern_select (td=0xc49d5630, nd=9, fd_in=0x298ad840, > fd_ou=0x298ad9c4, > > fd_ex=0x298adb48, tvp=0x0) at filedesc.h:136 > > #8 0xc07890de in select (td=0xc49d5630, uap=0xe6960cfc) > at /usr/src/sys/kern/sys_generic.c:663 > > #9 0xc0a49635 in syscall (frame=0xe6960d38) > at /usr/src/sys/i386/i386/trap.c:1035 > > #10 0xc0a2fc70 in Xint0x80_syscall () > at /usr/src/sys/i386/i386/exception.s:196 > > #11 0x0033 in ?? () > > Previous frame inner to this frame (corrupt stack?) > > (kgdb) > > ... > Can you go to frame 7 in kgdb and 'p *fdp'? (kgdb) frame 7 #7 0xc0788b98 in kern_select (td=0xc49d5630, nd=9, fd_in=0x298ad840, fd_ou=0x298ad9c4, fd_ex=0x298adb48, tvp=0x0) at filedesc.h:136 return (fd < 0 || fd >= fdp->fd_nfiles ? NULL : fdp->fd_ofiles[fd]); (kgdb) p *fdp Variable "fdp" is not available. (kgdb) perhaps I do something wrong? matthias ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
panic's on KDE-launches (but only in WPA Wifi area) / kern/122331
Hello, I'm booting my laptop 3 times a day: in the morning at home (WEP area), when I arrive in my office (WPA area) and in the evening at home (again); the sequence is always the same: booting, login into console, startx which launches via ~/.xinitrc the KDE; in about 1 of 2-3 cases and only in the office(!) the system panics when KDE comes up, at the end of the KDE booting and the jingle already played; today it crashed again and again and after switching off the Wifi radio on the laptop it came finally up fine; I did this (Wifi off) because I'm assuming somehow a relation with http://www.freebsd.org/cgi/query-pr.cgi?pr=122331 where my laptop as well only panic'ed in WPA mode (i.e. in the office) and with 'bgscan' active; which I now have deactivated; all these panics look in the debugger more or less like this one: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xc fault code = supervisor read, page not present instruction pointer = 0x20:0xc0788b98 stack pointer = 0x28:0xe6960acc frame pointer = 0x28:0xe6960c50 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process = 1426 (kdeinit) trap number = 12 panic: page fault cpuid = 0 Uptime: 1m36s Physical memory: 1009 MB Dumping 129 MB: 114 98 82 66 50 34 18 2 #0 doadump () at pcpu.h:195 195 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:195 #1 0xc0754457 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc0754719 in panic (fmt=Variable "fmt" is not available.) at /usr/src/sys/kern/kern_shutdown.c:563 #3 0xc0a4905c in trap_fatal (frame=0xe6960a8c, eva=12) at /usr/src/sys/i386/i386/trap.c:899 #4 0xc0a492e0 in trap_pfault (frame=0xe6960a8c, usermode=0, eva=12) at /usr/src/sys/i386/i386/trap.c:812 #5 0xc0a49c8c in trap (frame=0xe6960a8c) at /usr/src/sys/i386/i386/trap.c:490 #6 0xc0a2fc0b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc0788b98 in kern_select (td=0xc49d5630, nd=9, fd_in=0x298ad840, fd_ou=0x298ad9c4, fd_ex=0x298adb48, tvp=0x0) at filedesc.h:136 #8 0xc07890de in select (td=0xc49d5630, uap=0xe6960cfc) at /usr/src/sys/kern/sys_generic.c:663 #9 0xc0a49635 in syscall (frame=0xe6960d38) at /usr/src/sys/i386/i386/trap.c:1035 #10 0xc0a2fc70 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:196 #11 0x0033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) the 'current process' (kdeinit in the above crash) changes, but is always one of the KDE parts; of course the problem is not KDE related, it is just that the system comes under heavy usage in that moment; I already run 'memtest 128' for some hours without any noted problem in memory; test are just passing fine; the same problem is with 7.0-RELEASE as with RELENG_7; what can I do to nail this down? it sucks somehow seeing it crashing on startup in the morning in the office :-(( thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ A computer is like an air conditioner, it stops working when you open Windows Una computadora es como aire acondicionado, deja de funcionar si abres Windows ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: WPA && associating with unknown SSID
El día Wednesday, September 03, 2008 a las 10:33:06PM +0200, Roland van Laar escribió: > I encountered the same problem last week. I had a contrab which did an > ifconfig ath0 down; ifconfig ath0 up > This worked fine with WEP but wpa_supplicant exits when ath0 goes done. > ath0 connects to the first open AP after it gets up again; not reconnecting > to my WPA AP. In my case wpa_supplicant always was running; it is launched by /etc/rc.conf as: ifconfig_iwi0="WPA" at home where I have this problem the association is WEP based; >From time to time my AP seems to get stuck and in this case wpa_supplicant seems picking up the wrong foreign AP; it triggers even on LINK_UP via the devd(8) my script which I have to assign IP or do DHCP according the AP-location, which of course does not know this foreign AP and does nothing, but I see it in the log: Wed Sep 3 07:07:49 CEST 2008: /usr/local/etc/devd/iwi.sh iwi0 LINK_UP AP [00:19:cb:86:b3:84] not known in /usr/local/etc/devd/iwi.sh I will try to collect a debug-log of wpa_supplicant for such a situation; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: WPA && associating with unknown SSID
El día Wednesday, September 03, 2008 a las 08:04:49AM -0700, Sam Leffler escribió: > Matthias Apitz wrote: > >Hello, > > > >I'm using WPA to connect to my various Wifi AP's (office, home, partner > >locations) and have them well configured in the wpa_supplicant.conf(5) > >file; > > > >from time to time at home I encounter that it is associating with an > >unknown AP of my neighbourhood: > > > > > ># ifconfig iwi0 > >iwi0: flags=8843 metric 0 mtu 1500 > >ether 00:13:ce:a1:e6:81 > >inet 192.168.2.3 netmask 0xff00 broadcast 192.168.2.255 > >media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > >status: associated > >ssid o2DSL_kJaR channel 1 (2412 Mhz 11g) bssid 00:19:cb:86:b3:84 > >authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit bmiss 10 > >scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 > >roam:rate11g 5 protmode CTS roaming MANUAL > ># ifconfig iwi0 list scan > >SSIDBSSID CHAN RATE S:N INT CAPS > >o2DSL_kJaR 00:19:cb:86:b3:841 54M 19:0100 EP > >00:14:6c:44:aa:f6 11 54M 13:0100 EP WPA > > > >the network with SSID 'o2DSL_kJaR' is not im my > >/etc/wpa_supplicant.conf; > > > >how this is possible and how can I prevent this? > > > You must have a wildcard entry in your wpa_supplicant.conf file (i.e. > one w/o an ssid specified). Thx for the idea, but I don't have any wildcard entry; I've checked the conf file and also wpa_cli says: > list_networks network id / ssid / bssid / flags 0 santaclara any 1 tarara any [CURRENT] 2 OCLCPICAUK any 3 board_room any 4 guagua any 5 OCN-LAN any 6 ConnectionPoint any and: # fgrep network= /etc/wpa_supplicant.conf | wc -l 7 # fgrep ssid=\" /etc/wpa_supplicant.conf ssid="santaclara" ssid="tarara" ssid="OCLCPICAUK" ssid="board_room" ssid="guagua" ssid="OCN-LAN" ssid="ConnectionPoint" matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
WPA && associating with unknown SSID
Hello, I'm using WPA to connect to my various Wifi AP's (office, home, partner locations) and have them well configured in the wpa_supplicant.conf(5) file; from time to time at home I encounter that it is associating with an unknown AP of my neighbourhood: # ifconfig iwi0 iwi0: flags=8843 metric 0 mtu 1500 ether 00:13:ce:a1:e6:81 inet 192.168.2.3 netmask 0xff00 broadcast 192.168.2.255 media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) status: associated ssid o2DSL_kJaR channel 1 (2412 Mhz 11g) bssid 00:19:cb:86:b3:84 authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS roaming MANUAL # ifconfig iwi0 list scan SSIDBSSID CHAN RATE S:N INT CAPS o2DSL_kJaR 00:19:cb:86:b3:841 54M 19:0100 EP 00:14:6c:44:aa:f6 11 54M 13:0100 EP WPA the network with SSID 'o2DSL_kJaR' is not im my /etc/wpa_supplicant.conf; how this is possible and how can I prevent this? thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: USB key && kernel: da0: ...
El día Thursday, August 07, 2008 a las 02:01:22PM +0200, Michel Talon escribió: > > Matthias Apitz wrote: > > Aug 6 10:06:12 rebelion kernel: umass0: > rev 2.00/2.00, addr 2> on uhub4 > > Aug 6 10:06:12 rebelion root: Unknown USB device: vendor 0x08ec product > > 0x0020 bus uhub4 > > Aug 6 10:06:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug > > 6 10:06:12 > > rebelion kernel: da0: Removable Direct Access SCSI-0 > > device > > Aug 6 10:06:12 rebelion kernel: da0: 40.000MB/s transfers > > Aug 6 10:06:12 rebelion kernel: da0: Attempt to query device size failed: > > UNIT ATTENTION, Medium not present > > > > Here is another example: > > Aug 5 14:48:59 niobe kernel: umass0: rev 2.00/2.00, addr 2> on uhub3 > Aug 5 14:48:59 niobe root: Unknown USB device: vendor 0x0951 product 0x1603 > bus uhub3 > Aug 5 14:48:59 niobe kernel: da1 at umass-sim0 bus 0 target 0 lun 0 > Aug 5 14:48:59 niobe kernel: da1: Removable > Direct Access SCSI-2 device > Aug 5 14:48:59 niobe kernel: da1: 40.000MB/s transfers > Aug 5 14:48:59 niobe kernel: da1: 1905MB (3902464 512 byte sectors: 255H > 63S/T 242C) > Aug 5 14:49:25 niobe kernel: umass0: BBB reset failed, IOERROR > Aug 5 14:49:25 niobe kernel: umass0: BBB bulk-in clear stall failed, IOERROR ... Have you plug'ed in or out while writing to da1 another device in the USB? I saw this as well with a USB key which worked normaly until I did a plug'in/out on the bus; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present
El día Thursday, August 07, 2008 a las 04:18:19AM -0700, Jeremy Chadwick escribió: > Can we get the brand and model of USB stick, and any specific > model/version numbers that are on the device? The dmesg you provided > doesn't have very good vendor strings in it (that's not your fault). ... here we go: Aug 6 10:06:12 rebelion kernel: umass0: on uhub4 Aug 6 10:06:12 rebelion root: Unknown USB device: vendor 0x08ec product 0x0020 bus uhub4 Aug 6 10:06:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 6 10:06:12 rebelion kernel: da0: Removable Direct Access SCSI-0 device Aug 6 10:06:12 rebelion kernel: da0: 40.000MB/s transfers Aug 6 10:06:12 rebelion kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present seems to be this one: http://luhdc.berlios.de/Pages/USB//ViewSingle/ID=143/ matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: USB key && kernel: da0: Attempt to query device size failed: UNIT ?ATTENTION, Medium not present
El día Wednesday, August 06, 2008 a las 07:29:31PM +0200, Oliver Fromme escribió: > Matthias Apitz wrote: > > I've updated usb/80361, see > > http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 > > because I have the same problem as well that an USB key attaches fine > > when plugged in at boot time, but not later: > > I'm just wondering what happens if you enforce a rescan > on the (virtual) SCSI bus. That is, after you have > plugged in the USB stick and the problem occured, type > "camcontrol rescan 0". > this did not helped; I tried it a lot of times; also reading with dd(1) from /dev/da0 did not helped; > If that doesn't help, please try this patch: ... The problem is that this was a USB stick of a friend of me in which I have created a booting FreeBSD so he can make the installation of it in an eeePC; will try to get back this USB stick from him for further tests... matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
USB key && kernel: da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present
Hello, I've updated usb/80361, see http://www.freebsd.org/cgi/query-pr.cgi?pr=80361 because I have the same problem as well that an USB key attaches fine when plugged in at boot time, but not later: what makes me worry is that the problem was raised in 5.4-RC3 in 2005 and still exists in 7.0R in 2008, or have I overlooked some cool system parameter to fix this; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Q: case studies about scalable, enterprise-class firewall w/ IPFilter
El día Tuesday, August 05, 2008 a las 08:55:38AM -0400, Andrew Duane escribió: > Well, there are always Juniper Networks boxes :-) Exactly this is what I'm not wanting to end up with :-) -- Matthias Apitz w http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: restore of file system into USB key terrible slow
El día Tuesday, August 05, 2008 a las 11:40:13AM +0200, Matthias Apitz escribió: > > Hello, > > I'm trying to restore a DUMP into an USB key; the DUMP was extracted > from another USB key which I just want to colne this way; > > the USB key type is: > > Aug 5 10:53:34 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Aug 5 10:53:34 rebelion kernel: da0: < Cn Memory 1100> Removable Direct > Access SCSI-0 device > Aug 5 10:53:34 rebelion kernel: da0: 40.000MB/s transfers > Aug 5 10:53:34 rebelion kernel: da0: 3871MB (7928832 512 byte sectors: 255H > 63S/T 493C) > ... > > the restore is *terrible* slow, aound 200 blocks per second: This must have been an issue of the USB key; I've plug'ed in another one: Aug 5 13:53:12 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 5 13:53:12 rebelion kernel: da0: Removable Direct Access SCSI-2 device Aug 5 13:53:12 rebelion kernel: da0: 40.000MB/s transfers Aug 5 13:53:12 rebelion kernel: da0: 2037MB (4171776 512 byte sectors: 255H 63S/T 259C) and the restore of about 600 MByte was done in half hour; sorry for bother the list with this; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
restore of file system into USB key terrible slow
Hello, I'm trying to restore a DUMP into an USB key; the DUMP was extracted from another USB key which I just want to colne this way; the USB key type is: Aug 5 10:53:34 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 5 10:53:34 rebelion kernel: da0: < Cn Memory 1100> Removable Direct Access SCSI-0 device Aug 5 10:53:34 rebelion kernel: da0: 40.000MB/s transfers Aug 5 10:53:34 rebelion kernel: da0: 3871MB (7928832 512 byte sectors: 255H 63S/T 493C) and I've created a partition (only one covering the full ~4 GByte) and a file system as: # newfs -m 0 -o space /dev/da0s1a /dev/da0s1a: 3867.2MB (7919964 sectors) block size 16384, fragment size 2048 using 22 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200, 7903552 # mount /dev/da0s1a /mnt # cd /mnt # restore -rv -f /home/guru/myThings/FreeBSD/tinyUsb.dmp Verify tape and initialize maps Tape block size is 32 Header with wrong dumpdate. Dump date: Tue Aug 5 09:50:36 2008 Dumped from: the epoch Level 0 dump of /mnt on rebelion.Sisis.de:/dev/da0s1a Label: none Begin level 0 restore Initialize symbol table. Extract directories from tape Calculate extraction list. warning: ./.snap: File exists Make node ./var Make node ./var/account Make node ./var/at Make node ./var/at/jobs Make node ./var/at/spool Make node ./var/audit the restore is *terrible* slow, aound 200 blocks per second: $ df -k /mnt ; sleep 60 ; df -k /mnt Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/da0s1a 3829660 454 3829206 0%/mnt Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/da0s1a 3829660 642 3829018 0%/mnt Am I doing something wrong? What means 'Header with wrong dumpdate'? matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Fwd: Q: case studies about scalable, enterprise-class firewall w/ IPFilter
Hello, I've posted the attached mail in the IP Filter mailing list; the only responses have been bad configured vacation replies :-( someone from freebsd-hackers has an idea? thanks in advance matthias - Forwarded message from Matthias Apitz <[EMAIL PROTECTED]> ----- From: Matthias Apitz <[EMAIL PROTECTED]> Date: Sun, 3 Aug 2008 08:24:15 +0200 To: IP Filter <[EMAIL PROTECTED]> Subject: Q: case studies about scalable, enterprise-class firewall w/ IPFilter Hello, We're currently protecting our network (and as well some FreeBSD laptops standalone) with IPFilter... I'm wondering if there are any case studies about scalable, enterprise-class firewall solutions, redundancy with state-full failover, and application-level inspection, and all that a like, based on IPFilter and FreeBSD; thanks in advance for any pointers matthias -- Matthias Apitz w http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. - End forwarded message - ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Laptop suggestions?
El día Thursday, July 31, 2008 a las 11:37:16AM +0300, Stefan Lambrev escribió: > >FreeBSD has support for webcams? News to me. > > > multimedia/pwcbsd > multimedia/linux-gspca-kmod > multimedia/linux-ov511-kmod > > Though I never heard for someone using successfully his webcam with > skype2 ;) > > http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html > > The question for webcamps pop-ups regularly on -multimedia. I've this cam: Mar 19 10:31:28 rebelion kernel: pwc0: vendor 0x0471 product 0x0329, rev 1.10/0.03, addr 2 Mar 19 10:31:29 rebelion kernel: pwc0: Philips SPC900NC USB webcam Mar 19 10:31:29 rebelion kernel: pwc0: This camera is equipped with a Sony CCD sensor + TDA8787 (32 which is supported by multimedia/pwcbsd and works fine with Ekiga (SVN version) via the V4L plugin of ptlib (ptlib/plugins/vidinput_v4l); matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
list blocklist from inode
Hello, Is there a way (without using fsdb(8)) to list the block list from a given inode? thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
merging into DVD+RW with growisofs && non aligned DMA transfer (7.0R)
Hello, I wanted to add a file to an already written DVD+RW (written a day before on the same system) with # growisofs -M /dev/cd0 -r -T -J -joliet-long -v directory This produced tons of error messages via syslog as Jul 11 13:45:30 rebelion kernel: ata0: FAILURE - non aligned DMA transfer attempted Jul 11 13:45:30 rebelion kernel: acd0: setting up DMA failed and the only way to get the system back to a usable state was rebooting it; I've reloaded the files from the DVD to the file system, added the file I wanted get merged and wrote the DVD again with -Z which worked fine; this is with FreeBSD-7.0R; what is wrong with -M or what I've done wrong? thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: error 1 lba 752976 while booting from USB key to install
El día Thursday, July 10, 2008 a las 03:01:54PM +0200, Oliver Fromme escribió: > Matthias Apitz wrote: > > so I cam up with the idea to boot from that USB key I have used to > > install 7.0-REL on that eeePC, i.e. the USB key works fine in any > > laptop; on the HP NAT 1000s storage system it says: > > > > FreBSD/i386 > > Default: 0:ad(0,a)/boot/kernel/kernel > > Hm. Strange. The boot0 code should load /boot/loader, > not the kernel. (While it is possible to load the kernel > directly under certain conditions, AFAIK, it is better > to go the "official" way and let the bootloader do its > job.) > > Have you modified the boot sequence on that USB stick in > a special way? Please make sure that it contains the > proper infrastructure, i.e. a /boot directory with the > loader, a kernel subdirectory etc. I've created the USB key like this (more or less) and did not specified or changed anything in the boot-sequence: # dd if=/dev/zero of=/dev/da0 bs=1m # fdisk -BI /dev/da0 # bsdlabel -wB /dev/da0s1 # export EDITOR=/mnt2/usr/bin/vi # bsdlabel -e /dev/da0s1 # newfs -m 0 -o space /dev/da0s1a # mount /dev/da0s1a /mnt # export DESTDIR=/mnt # cd /a/cdrom/7.0-RELEASE # for i in base manpages catpages do cd $i; echo y|./install.sh; cd ..; done # rmdir /mnt/boot/kernel # cd /a/cdrom/7.0-RELEASE kernels; # cat generic.??|tar --unlink -xpzf - -C /mnt/boot # cd /mnt/boot && mv GENERIC kernel # echo "/dev/da0s1a / ufs rw,noatime 1 1" >/mnt/etc/fstab # cat </mnt/etc/rc.conf.local #!/bin/sh tmpmfs="YES" tmpsize="128m" varmfs="YES" varsize="128m" populate_var="YES" hostname="eeePC" keyrate="fast" keymap="german.iso" EOFRCCONF # chmod 0755 /mnt/etc/rc.conf.local # chroot /mnt /usr/bin/passwd root and again: the USB key works fine in the eeePC 900 and other laptops I have; here is what is in /mnt/boot: rebelion# ls -l /mnt/boot /mnt/boot/kernel/kernel -r-xr-xr-x 1 root wheel 9051823 29 jun 16:52 /mnt/boot/kernel/kernel /mnt/boot: total 710 -r--r--r-- 1 root wheel7636 24 feb 18:52 beastie.4th -r--r--r-- 1 root wheel8192 24 feb 18:52 boot -r--r--r-- 1 root wheel 512 24 feb 18:52 boot0 -r--r--r-- 1 root wheel 512 24 feb 18:52 boot0sio -r--r--r-- 1 root wheel 512 24 feb 18:52 boot1 -r--r--r-- 1 root wheel7680 24 feb 18:52 boot2 -r--r--r-- 1 root wheel1201 24 feb 18:52 cdboot drwxr-xr-x 2 root wheel 512 24 feb 18:52 defaults -r--r--r-- 1 root wheel1739 24 feb 18:53 device.hints drwxr-xr-x 2 root wheel 512 24 feb 18:49 firmware -r--r--r-- 1 root wheel2249 24 feb 18:52 frames.4th drwxr-xr-x 2 root wheel 26624 29 jun 17:23 kernel drwxr-xr-x 2 root wheel 25600 24 feb 21:16 kernel.orig -r-xr-xr-x 1 root wheel 253952 24 feb 18:52 loader -r--r--r-- 1 root wheel7545 24 feb 18:52 loader.4th -rw-r--r-- 1 root wheel 116 29 jun 16:46 loader.conf -r--r--r-- 1 root wheel 15219 24 feb 18:52 loader.help -r--r--r-- 1 root wheel 385 24 feb 18:52 loader.rc -r--r--r-- 1 root wheel 512 24 feb 18:52 mbr drwxr-xr-x 2 root wheel 512 24 feb 18:49 modules -r--r--r-- 1 root wheel 256000 24 feb 18:52 pxeboot -r--r--r-- 1 root wheel 692 24 feb 18:52 screen.4th -r--r--r-- 1 root wheel 36435 24 feb 18:52 support.4th drwxr-xr-x 2 root wheel 512 24 feb 18:49 zfs > If it still fails, I suggest you try a more recent > version of FreeBSD. I don't know if it's related to > your problem, but there has been a significant change > in the boot loader code (so-called BTX) that fixes > USB-booting on certain machines. You can either csup > RELENG_7 and build a fresh /boot directory, or fetch > it from the June snapshot. Then replace /boot/loader > on your USB stick with the new one, and don't forget > to re-install the bootblocks, too (bsdlabel -B). ok; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
error 1 lba 752976 while booting from USB key to install
Hello, I've some server (a 2 years old HP NAT 1000s storage system) and I want to drop the installed W2k system and re-install it with FreeBSD 7.0R and later use it as a central backup-system with Bacula. The problem is that this server has no CD or DVD device, but can (theoretically) boot from external USB CD/DVD (which I don't have either); so I cam up with the idea to boot from that USB key I have used to install 7.0-REL on that eeePC, i.e. the USB key works fine in any laptop; on the HP NAT 1000s storage system it says: FreBSD/i386 Default: 0:ad(0,a)/boot/kernel/kernel boot: error 1 lba 752976 No /boot/kernel/kernel Any idea about why it does not work? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: eeePC 900 with SSD && reducing writes
El día Tuesday, July 08, 2008 a las 06:01:57PM +0200, Oliver Fromme escribió: > Matthias Apitz wrote: > > I'd also like to get rid of 'lastlog' and 'wtmp' but even if the man > > page claims that they will not be created if they don't exist, they > > come up again and again; > > > > another candidate of not needed log is > > /var/log/Xorg.n.log ... > > You can get rid of an on-disk /var alltogether. > Add these lines to /etc/rc.conf: > > varmfs="yes" > varsize="32m" > > It will create a memory FS for /var of 32 MB (default). Thanks for the hint, but memfs is not so good because you will loose /var/db; I've created a symlink now from /var/log to /tmp/log and /tmp is memfs; > You could also mount some or all of your disk partitions > read-only. That's what I do on my embedded FreeBSD-driven > mp3 player (running from a CF card instead of hard disk), > because it doesn't have to write anything anywhere. > > If you have any disk partitions that you mount read+write, > be sure to enable soft-updates because it tends to reduce > the number of physical write operations. will think about tunefs and soft-updates; thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: eeePC 900 && turning off wireless (ath0)
El día Monday, July 07, 2008 a las 01:45:38PM +0100, Rui Paulo escribió: > On Mon, Jul 07, 2008 at 02:19:37PM +0200, Matthias Apitz wrote: > > /* Notify devd(8) */ > > device_printf(sc->dev, > > "Fn+F2 pressed, notify to devd(8) is %08x\n", notify); > > acpi_UserNotify("ASUS-Eee", h, notify); > > > > and it turns out that in case of switching wireless of it is 0x0011, > > while on switch-on it is 0x0010; but the devd(8) only sees both > > events as '_SB_.ATKD'; I've grep'ed a lot around but can't see the place > > where the hex events of acpi_UserNotify() are converted into the string > > '_SB_.ATKD', any idea where to look; > > They are not converted, your devd.conf entries are probably wrong. > > Can you show again where do you get _SB_.ATKD from? You are right! my file /usr/local/etc/devd/ath.conf for devd(8) says now: tify 1 { match "system" "ACPI"; action "/usr/local/etc/devd/ath.sh $system $subsystem $notify"; }; notify 1 { match "system" "IFNET"; match "subsystem" "ath0"; match "type""LINK_UP"; action "/usr/local/etc/devd/ath.sh $system $subsystem $type"; }; notify 1 { match "system" "IFNET"; match "subsystem" "ath0"; match "type""LINK_DOWN"; action "/usr/local/etc/devd/ath.sh $system $subsystem $type"; }; note that in the case of "IFNET" you have to watch the $type to see LINK_UP or LINK_DOWN as the events, while in "ACPI" you have to watch the $notify ($type gives you _SB_.ATKD, $notify gives you 0x10 or 0x11); thanks for the answer which let me look closer into the man page of devd.conf; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: eeePC 900 && turning off wireless (ath0)
El día Friday, July 04, 2008 a las 04:40:02PM +0200, Matthias Apitz escribió: > Hello Rui, > > With your changes of acpi_asus.c in RELENG_7 the devd(8) and my > hook-script in /usr/local/etc/devd/ath.conf sees the Fn+F2 now as the > event "ACPI ASUS-Eee _SB_.ATKD", but it is anyway if Fn+F2 switches off > or on the wireless NIC, the event for devd(8) is always the same; > from the above event it is clear where > the strings for system ACPI and subsystem ASUS-Eee come from, but I > don't see where the string "_SB_.ATKD" is made; it must be derived > from the 'notify' argument of the call > > /* Notify devd(8) */ > acpi_UserNotify("ASUS-Eee", h, notify); > > and I was hoping to distinguish it into two different events, one when > Fn+F2 is switching off the NIC, and one of the case of switch on; any > idea? thx I have modified /usr/src/sys/dev/acpi_support/acpi_asus.c to see what 'notify' is send upstream to devd(8): /* Notify devd(8) */ device_printf(sc->dev, "Fn+F2 pressed, notify to devd(8) is %08x\n", notify); acpi_UserNotify("ASUS-Eee", h, notify); and it turns out that in case of switching wireless of it is 0x0011, while on switch-on it is 0x0010; but the devd(8) only sees both events as '_SB_.ATKD'; I've grep'ed a lot around but can't see the place where the hex events of acpi_UserNotify() are converted into the string '_SB_.ATKD', any idea where to look; for the devd(8) hook it would be essential to know if the wireless was turned on of off, to load or unload the driver module if_ath.ko in that case and bring the interface up again (which works fine if I do it by hand); matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel HEAD && userland 7.0-REL?
El día Friday, July 04, 2008 a las 08:12:58PM -0400, Alexander Sack escribió: > On Fri, Jul 4, 2008 at 4:40 PM, Mike Meyer > <[EMAIL PROTECTED]> wrote: > > On Fri, 4 Jul 2008 14:42:27 +0200 > > Matthias Apitz <[EMAIL PROTECTED]> wrote: > >> I'm running a RELENG_7 kernel and a userland as 7.0-REL on one of my > >> laptops; I've been asked to check if a given driver problem in RELENG_7 is > >> as > >> well with HEAD... can I update the kernel to HEAD and let the userland > >> (and all my compiled ports) as 7.0-REL; I know that this is not the > >> intention, but it would cost me a lot of work if I should compile as > >> well ~200 ports > > > > When you say HEAD, do you mean the HEAD of 8-CURRENT or 7-STABLE? In > > either case whether or not it works depends on whether something has > > changed in the kernel that has a required userland change. > > > > On the other hand, if you mean 7-STABLE, then the ports should work > > properly whether userland does or not. > > As a note, I just recently used HEAD on a 7_STABLE box to test changes > recently to re for an updated PCIe revision NIC card on my Eee Box. > It worked fine (both runtime and my NIC which I then patched my > 7_STABLE tree which also worked, yea!). In a thread I started about > cross platform building, it seems that historically FreeBSD has had a > very stable ABI allowing multiple kernels to run underneath different > versions of user land (this is certainly not the case for all *NIX > variants). When I said HEAD, I mean HEAD in terms of CVS; and my situation is the same: I want to check some problem with ath / hal on my eeePC 900, if it is also in HEAD or only in RELENG_7 branch; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: eeePC 900 && turning off wireless (ath0)
El día Tuesday, July 01, 2008 a las 12:14:26PM +0100, Rui Paulo escribió: > On Tue, Jul 01, 2008 at 11:02:20AM +0200, Matthias Apitz wrote: > > Rui, > > Have you commited your changes to RELENG_7 too or only to HEAD? I'm > > asking because Fn+F2 does toggle the power of the wireless NIC but > > devd(8) does not see any ACPI event in this case; it sees it for example > > if the battery comes full; > > > > thx for clarifying this > > > > could you please send me the /etc/devd.conf file you mention in the page > > http://wiki.freebsd.org/AsusEee ? in the one which came out of CVS with > > RELENG_7 I could not see anything about hotkeys; thx in advance > > Only to HEAD. I'm going to MFC it today. Hello Rui, With your changes of acpi_asus.c in RELENG_7 the devd(8) and my hook-script in /usr/local/etc/devd/ath.conf sees the Fn+F2 now as the event "ACPI ASUS-Eee _SB_.ATKD", but it is anyway if Fn+F2 switches off or on the wireless NIC, the event for devd(8) is always the same; from the above event it is clear where the strings for system ACPI and subsystem ASUS-Eee come from, but I don't see where the string "_SB_.ATKD" is made; it must be derived from the 'notify' argument of the call /* Notify devd(8) */ acpi_UserNotify("ASUS-Eee", h, notify); and I was hoping to distinguish it into two different events, one when Fn+F2 is switching off the NIC, and one of the case of switch on; any idea? thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kernel HEAD && userland 7.0-REL?
Hello, I'm running a RELENG_7 kernel and a userland as 7.0-REL on one of my laptops; I've been asked to check if a given driver problem in RELENG_7 is as well with HEAD... can I update the kernel to HEAD and let the userland (and all my compiled ports) as 7.0-REL; I know that this is not the intention, but it would cost me a lot of work if I should compile as well ~200 ports thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: eeePC 900 && turning off wireless (ath0)
El día Sunday, June 29, 2008 a las 05:22:34PM +0100, Rui Paulo escribió: > On Sun, Jun 29, 2008 at 06:05:27PM +0200, Matthias Apitz wrote: > > Hola Rui, > > > > I've found your very usefull pages in http://wiki.freebsd.org/AsusEee > > > > I CVS'uped the kernel to RELENG_7, built it and moved it to the eeePC; > > now Fn+F2 works as it should and I can even kldunload if_ath, power-off > > and power-on the wireless card, and after kldload if_ath the interface > > comes up fine again and my devd(8) hook assigns IP again; now it works as > > it should; will have a look into the events seen by devd(8) to make the > > kldunload and kldload perhaps there; > > > > thanks for your work and help; > > Cool, no problem. Rui, Have you commited your changes to RELENG_7 too or only to HEAD? I'm asking because Fn+F2 does toggle the power of the wireless NIC but devd(8) does not see any ACPI event in this case; it sees it for example if the battery comes full; thx for clarifying this could you please send me the /etc/devd.conf file you mention in the page http://wiki.freebsd.org/AsusEee ? in the one which came out of CVS with RELENG_7 I could not see anything about hotkeys; thx in advance matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: eeePC 900 && turning off wireless (ath0)
El día Friday, June 27, 2008 a las 08:44:47PM +0100, Rui Paulo escribió: > On Fri, Jun 27, 2008 at 10:02:03AM +0200, Matthias Apitz wrote: > > Hello Rui, > > > > I recompiled the kernel to have if_ath out of the kernel, but as a > > loaded module at boot: > > > > $ kldstat > > Id Refs AddressSize Name > > 1 14 0xc040 8c7098 kernel > > 21 0xc0cc8000 1242cif_ath.ko > > 33 0xc0cdb000 46324ath_hal.ko > > 42 0xc0d22000 4218 ath_rate.ko > > 51 0xc0d27000 14324snd_hda.ko > > 62 0xc0d3c000 4a5acsound.ko > > 71 0xc0d87000 6a32cacpi.ko > > 81 0xc4394000 22000linux.ko > > > > I can unload if_ath, ath_hal and ath_rate which drops the interface > > ath0, but even in this case Fn+F2 has no affect at all; any idea? > > Oh, then I guess the 900 is different. > > > I've had a look into the Xandros Linux and they do it with ACPI events, > > dropping the modules and others; I could provide their script > > /etc/acpi/wlan.sh if someone wants to have a look into; > > If turning off WLAN is now done via ACPI events, then the patch I > committed to HEAD will probably help. I'll MFC it in a week, but if you > can give it a try, that would be great. Please contact me off-list if > you need assistance. Hola Rui, I've found your very usefull pages in http://wiki.freebsd.org/AsusEee I CVS'uped the kernel to RELENG_7, built it and moved it to the eeePC; now Fn+F2 works as it should and I can even kldunload if_ath, power-off and power-on the wireless card, and after kldload if_ath the interface comes up fine again and my devd(8) hook assigns IP again; now it works as it should; will have a look into the events seen by devd(8) to make the kldunload and kldload perhaps there; thanks for your work and help; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: eeePC 900 && turning off wireless (ath0)
El día Friday, June 27, 2008 a las 12:16:03AM +0100, Rui Paulo escribió: > On Thu, Jun 26, 2008 at 09:55:45AM +0200, Matthias Apitz wrote: > > > > Hello, > > > > Yesterday I did some tests with my eeePC 900 to see how long it would > > work with the 4400 mAh battery ... it seems that turning of the wireless > > card (ath0), which can be turned of from the BIOS, has big effect and > > let work the eeePC for more then 2hours 15minutes; > > > > in the Xandros Linux you can turn off the NIC as well with Fn+F2 which > > in FreeBSD does not work at boot stage, i.e. when you may defer the > > booting in the boot loader countdown; > > Yes, this only works after booting. At least on the 701. > > > is there any way to switch this off without going into the BIOS? > > After booting you can unload ath module and press Fn+F2. It should turn > off wireless. > > The problem is that you can't turn it back on. For that, we need PCIe > hotplug support. (That's what Fn+F2 does, it ejects the wireless card). Hello Rui, I recompiled the kernel to have if_ath out of the kernel, but as a loaded module at boot: $ kldstat Id Refs AddressSize Name 1 14 0xc040 8c7098 kernel 21 0xc0cc8000 1242cif_ath.ko 33 0xc0cdb000 46324ath_hal.ko 42 0xc0d22000 4218 ath_rate.ko 51 0xc0d27000 14324snd_hda.ko 62 0xc0d3c000 4a5acsound.ko 71 0xc0d87000 6a32cacpi.ko 81 0xc4394000 22000linux.ko I can unload if_ath, ath_hal and ath_rate which drops the interface ath0, but even in this case Fn+F2 has no affect at all; any idea? I've had a look into the Xandros Linux and they do it with ACPI events, dropping the modules and others; I could provide their script /etc/acpi/wlan.sh if someone wants to have a look into; Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
eeePC 900 && turning off wireless (ath0)
Hello, Yesterday I did some tests with my eeePC 900 to see how long it would work with the 4400 mAh battery ... it seems that turning of the wireless card (ath0), which can be turned of from the BIOS, has big effect and let work the eeePC for more then 2hours 15minutes; in the Xandros Linux you can turn off the NIC as well with Fn+F2 which in FreeBSD does not work at boot stage, i.e. when you may defer the booting in the boot loader countdown; is there any way to switch this off without going into the BIOS? thx in advance matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
eeePC 900 with SSD && reducing writes
Hello, I have installed FreeBSD 7.0R on that eeePC 900 and because of the limited life time of the SSD (see http://en.wikipedia.org/wiki/Wear_levelling ) I disabled some logging stuff which I don't need on that tiny laptop, for example: syslogd_enable="NO" sendmail_enable="NONE" cron_enable="NO" newsyslog_enable="NO" as well I have: - not created any swap partition (the box runs fine with 1 GByte RAM) - mount the file systems with 'noatime' - put /tmp into memory file system with 128 MByte any other ideas how to reduces unnecessary often-writes? I'd also like to get rid of 'lastlog' and 'wtmp' but even if the man page claims that they will not be created if they don't exist, they come up again and again; another candidate of not needed log is /var/log/Xorg.n.log ... thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: moving FreeBSD installation disk1 to an USB stick
El día Thursday, June 19, 2008 a las 11:14:32AM +0200, Ed Schouten escribió: > You could consider installing FreeBSD by hand. Just make sure you > get a bootable FreeBSD system on that USB stick and do this: > > bsdlabel -w -B /dev/ad0 # assuming ad0 is the eeepc flash > # just do bsdlabel -e /dev/ad0 if you want to add multiple slices > for i in a d e f g ... # any partitions you have > do > newfs -U -O 2 /dev/ad0$i > done > > # mount all your partitions in /new > mkdir /new > mount /dev/ad0a /new > mkdir /new/var > mount /dev/ad0d /var > > # make sure you have the `base' and `kernels' directories on > # your USB stick and do this: > cd /X.Y-RELEASE/base > DESTDIR=/new sh install.sh > cd ../kernels > DESTDIR=/new sh install.sh generic > mv /boot/GENERIC/* /boot/kernel/ > > # create a /etc/fstab file > vi /etc/fstab > > Good luck! Thanks, Ed, for this hint; this is also more or less how the recipe is to make that boot-able USB stick; I've just played around with /usr/sbin/sysinstall and realised (what I've never used before) that you can choose as installation source also any point in the file system; so if I put /packages from disk1 to the USB stick as well I could perhaps mount it after booting it and run /usr/sbin/sysinstall and point it to that directory. Will let you know once the beast arrives here. Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
moving FreeBSD installation disk1 to an USB stick
Hello, I'm preparing the installation of FreeBSD 7.0 on an Asus eeePC which has no CD/DVD drive for the installation (and I have no external CD driver with USB): http://www.laptoppen.nl/product-260-Asus-EEE-PC-900-Zwart.html My idea is to 'copy' somehow the FreeBSD 7.0 installation disk1 to an USB stick of 1 GByte; there is some kind of recipe how to put a boot-able system onto such an USB stick, like; http://groups.google.com/group/lucky.freebsd.questions/msg/5c759b1c87376b22 but this is not what I want; I want to boot the stick (of course) and run the 'sysinstall' having the complete disk1 on the stick; maybe it is an option making only the file system on the stick and the boot sector and fill in a dump of the file system of disk1, with some minor changes that after booting it uses the USB as CD device? any other ideas? Thx in advance matthias -- Matthias Apitz e <[EMAIL PROTECTED]> - w http://www.UnixArea.de/ Irland - EU 1:0 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Firewall and Oracle SQLNet
On Tue, Jul 06, 1999 at 10:28:54AM +0400, ryn...@mtk.comcor.ru wrote: > > > Hi everybody! > Does anybody manage to install firewall before an Oracle SQL Server? We need > to > allow a few remote users to connect to our Oracle SQL Server. We install > FreeBSD > box with ipfw and discover next problem: we allow for remote users to connect > to > the Oracle box using port mentioned in SQLNet listener configuration (1521). > But > remote user try to connect twice: first time using port mentioned above and > second time using some other port, which, as we suggest, Oracle server sent > him ... check this article Message-ID: <930243288.714.0.pluto.d4ee1...@news.demon.nl> in comp.databases.oracle.server matthias -- firm: matthias.ap...@sisis.de [voc:+49 89 61308 351, fax: +49 89 61308 188] priv: g...@thias.muc.de WWW: http://www.sisis.de/~guru/ Give me UNIX or give me a typewriter. To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message
Re: Firewall and Oracle SQLNet
On Tue, Jul 06, 1999 at 10:28:54AM +0400, [EMAIL PROTECTED] wrote: > > > Hi everybody! > Does anybody manage to install firewall before an Oracle SQL Server? We need to > allow a few remote users to connect to our Oracle SQL Server. We install FreeBSD > box with ipfw and discover next problem: we allow for remote users to connect to > the Oracle box using port mentioned in SQLNet listener configuration (1521). But > remote user try to connect twice: first time using port mentioned above and > second time using some other port, which, as we suggest, Oracle server sent him ... check this article Message-ID: <[EMAIL PROTECTED]> in comp.databases.oracle.server matthias -- firm: [EMAIL PROTECTED] [voc:+49 89 61308 351, fax: +49 89 61308 188] priv: [EMAIL PROTECTED] WWW: http://www.sisis.de/~guru/ Give me UNIX or give me a typewriter. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message