why not document load modules instead of recompiling kernel??
Hi All, When I read the freebsd handbook, I found many part of document said it is needed to recompile the kernel. for example, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html However, kldload ipfw also works. Why there isn;t any words about this? Is loadable module not encourage? Thanks, Jun Su _ Do You Yahoo!? NetVista A30 http://ad.cn.doubleclick.net/clk;5313999;7930402;p?http://www.ibm.com/cn/promotion/pc/netvista_a30/index.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
libthr faults with recent kernel?
Hi, When ever I try to run application with the new libthr.so.1 with recent kernel, I get my system falt and just reboots: Fatal trap 12: page fault while in kernel mode fault virtual address = 0xa0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc037f80e stack pointer = 0x10:0xd202fca0 frame pointer = 0x10:0xd202fcc8 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 = Idle trap number = 12 panic: page fault Anybody seen this, or am I the only getting this? I'm assuming that, it started after the LAZY_SWITCH commit, but I can't say for sure. Thanks, Haro =-- _ _Munehiro (haro) Matsuda -|- /_\ |_|_| Business Incubation Dept., Kubota Corp. /|\ |_| |_|_| 1-3 Nihonbashi-Muromachi 3-Chome Chuo-ku Tokyo 103-8310, Japan Tel: +81-3-3245-3318 Fax: +81-3-3245-3315 Email: [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
panic: mutex Giant not owned at sys/kern/kern_exit.c:122
Hello When i try to create an RAID array with atacontol I get the following panic when the rebuild is complete. The problem seems to be that exit1 requires that giant is held but it isn't. I have no idea where it should be aquired so it will be released again. #0 doadump () at /data/FreeBSD/CURRENT/sys/kern/kern_shutdown.c:239 #1 0xc0300403 in boot (howto=256) at /data/FreeBSD/CURRENT/sys/kern/kern_shutdown.c:371 #2 0xc0300703 in panic () at /data/FreeBSD/CURRENT/sys/kern/kern_shutdown.c:542 #3 0xc02f743c in _mtx_assert (m=0xc053cc00, what=0, file=0xc04e6095 /data/FreeBSD/CURRENT/sys/kern/kern_exit.c, line=122) at /data/FreeBSD/CURRENT/sys/kern/kern_mutex.c:844 #4 0xc02e9583 in exit1 (td=0xc284a000, rv=4352) at /data/FreeBSD/CURRENT/sys/kern/kern_exit.c:122 #5 0xc02ee946 in kthread_exit () at /data/FreeBSD/CURRENT/sys/kern/kern_kthread.c:135 #6 0xc01cf4c5 in ar_rebuild () at /data/FreeBSD/CURRENT/sys/dev/ata/ata-raid.c:859 #7 0xc02ec8d4 in fork_exit (callout=0xc01cf080 ar_rebuild, arg=0x0, frame=0x0) at /data/FreeBSD/CURRENT/sys/kern/kern_fork.c:796 Btw. the -CURRENT is from today. -- Simon L. Nielsen pgp0.pgp Description: PGP signature
Bug in gdtoa ?
Hello, When using 'ls -lh', I noticed a strange behavior: all file sizes ending with one or more 0 are printed incorrectly. For instance: % ls -l .Xauthority -rw--- 1 chris chris 110 Apr 6 14:38 .Xauthority % ls -lh .Xauthority -rw--- 1 chris chris 1100B Apr 6 14:38 .Xauthority While I was looking into printsize() of src/bin/ls/print.c, I made this simple test: ---8--- #include stdio.h int main(void) { printf(%.1f\n, 1.0); printf(%.1f\n, 10.0); printf(%.1f\n, 100.0); printf(%.1f\n, 1000.0); printf(%.1f\n, 1.0); printf(%.1f\n, 1.0); printf(%.1f\n, 11.0); printf(%.1f\n, 101.0); printf(%.1f\n, 1001.0); printf(%.1f\n, 10001.0); return 0; } ---8--- Which output is: % cc -o test test.c % ./test 1.0 10.00 100.000 1000. 1.0 1.0 11.0 101.0 1001.0 10001.0 I suspect a bug in gdtoa since I get the correct output with 5.0-RELEASE. I cvsup'ed up src-all and now I'm running: FreeBSD gluon.dyndns.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Apr 6 14:15:10 CEST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GLUON i386 If I got something wrong, how do I fix this ? Thanks, chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
GridEngine (was Re: building OpenPBS-2.3.16 on FreeBSD 5)
FYI, earlier this year, Brooks made an announce on bsdforums.org: http://www.bsdforums.org/forums/showthread.php?threadid=6486 Last month the FreeBSD and MacOSX ports were merged to the SGE cvs. I am not sure about FreeBSD 5.0 support, may be Brooks can answer that?? Rayson --- Glenn Johnson [EMAIL PROTECTED] wrote: Has anyone been able to build OpenPBS-2.3.16 on a FreeBSD 5-current system? There seems to be a problem generating the dependencies. Attached is a log file of my attempt. __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: device puc on non-i386 or with parallel devices
Hello, it would be nice to have the supported graphics cards mentioned in the release notes, too. Regards Am So, 2003-04-06 um 06.33 schrieb M. Warner Losh: In message: [EMAIL PROTECTED] Gavin Atkinson [EMAIL PROTECTED] writes: : I'm currently working on updating the hardware release notes to reflect : reality. the puc device is currently only in the i386 section of the : release notes, however I am under the impression people are successfully : using it with other platforms. Can anyone confirm this? Yes. : Also, is anyone successfully using it to provide parallel port access? As : far as I can tell, the device supports parallel ports, all the comments in : the code suggests it does, however I can't find any mention of people : using it for parallel ports and commit messages suggest it may be limited : to serial ports only at the moment. Limited to serial ports at the moment. Warner ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED] -- Julian Stecklina der_julian at web.de This is no ordinary fool you're dealing with. signature.asc Description: Dies ist ein digital signierter Nachrichtenteil
Re: midi problem, an isa device on a pci card
Hello, I've recived no responses. Anyway, the following includes my own solution to the question, lots of trial and error. I've found that isahints was the closest exsting code to what I wanted. As always, I would love to hear any comments. How do I create isa devices from a pci device. Do I search up the soundcard tree for the pci bus then search down for the isa bus, then create_child(...mpushim)? In pci device_attach: isa=devclass_find(isa); if( !isa ) { device_printf(sc-dev,cmi midi error no devclass for isa\n); goto err; } if (devclass_get_devices(isa, isalistp, isacountp) != 0 ) { device_printf(sc-dev,cmi midi error fetching isa devices\n); goto err; } if ( isacountp 1 ) { device_printf(sc-dev,cmi midi no isa busses found\n); goto err; } /* * Be stupid and just pick the first isa bus */ sc-isadev = isalistp[0]; mpuisa=devclass_find(mpuisa); if( !mpuisa ) { device_printf(sc-dev,cmi: midi driver not found\n); goto err; } i = devclass_find_free_unit(mpuisa,0); sc-mpudev = BUS_ADD_CHILD(sc-isadev, 1, mpuisa, i); [Needs to be done with BUS_ADD_CHILD, I tried with others, m' yo they just don't work] How do I tell the shim before the probe/attach what io region to look at, do I fiddle with ivars (or some internal structure), do I mess with hints via kenv(9) [Is there a kenv(9)? ] [ Say, p-port=0x300, then following would set it to 0x300-0x302 and the same IRQ as the pci device ] bus_set_resource(sc-mpudev, SYS_RES_IOPORT, 0, p-port, 2); bus_set_resource(sc-mpudev, SYS_RES_IRQ, 0, rman_get_start(sc-irq), 1); if( device_probe_and_attach(sc-mpudev) == 0 ) { device_printf(sc-dev,added %s/%s\n, device_get_nameunit(sc-isadev), device_get_nameunit(sc-mpudev) ); return ; } Cheers, --Mat -- Brain: Are you pondering what I'm pondering? Pinky: I think so Brain, but the Rockettes, it's mostly girls, isn't it? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Okay. who broke ata.
At Sun, 6 Apr 2003 04:18:42 + (UTC), Kevin S. Brackett wrote: make world from yesterday broke support for my promise udma66 controller, getting READ/WRITE errors on the drive attached to, reverting to previous kernel fixes problem. I got same result. After updating to latest source, I got: ad0: 76319MB ST380021A [155061/16/63] at ata0-master UDMA100 ad1: 39266MB IBM-DTLA-305040 [79780/16/63] at ata0-slave UDMA100 ad4: READ command timeout tag=0 serv=0 - resetting ata2: resetting devices .. Fatal trap 12: page fault while in kernel mode cpuid = 0; lapic.id = fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc015eed2 stack pointer = 0x10:0xe11f0c48 frame pointer = 0x10:0xe11f0c5c 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 = 14 (swi7: tty:sio clock) kernel: type 12 trap, code=0 Stopped at reinit_bus+0x12:movl0(%esi),%eax db trace reinit_bus(0,2,e11f0c90,c0147998,c7a61e00) at reinit_bus+0x12 atapi_cam_reinit_bus(c7a61e00,ec,c03adf22,3,c7a87f00) at atapi_cam_reinit_bus+0x21 ata_reinit(c7a61e00,c7a87f00,c03a9f87,0,0) at ata_reinit+0x3c8 ad_timeout(c7a87f00,0,c03c0542,bf,438) at ad_timeout+0x136 softclock(0,0,c03bd526,232,c3afd5a0) at softclock+0x19c ithread_loop(c3afc180,e11f0d48,c03bd3a2,314,0) at ithread_loop+0x182 fork_exit(c01fac70,c3afc180,e11f0d48) at fork_exit+0xc4 fork_trampoline() at fork_trampoline+0x1a Previous (Mar 26) kernel said like this: ad0: 76319MB ST380021A [155061/16/63] at ata0-master UDMA100 ad1: 39266MB IBM-DTLA-305040 [79780/16/63] at ata0-slave UDMA100 ad4: 58644MB IC35L060AVER07-0 [119150/16/63] at ata2-master UDMA100 ad5: 43979MB IBM-DTLA-307045 [89355/16/63] at ata2-slave UDMA100 acd0: CD-RW TOSHIBA DVD-ROM SD-R1002 at ata1-master PIO4 acd1: DVD-R MATSHITADVD-RAM LF-D310 at ata1-slave PIO4 pass0 at ata1 bus 0 target 0 lun 0 pass0: TOSHIBA DVD-ROM SD-R1002 1030 Removable CD-ROM SCSI-0 device pass0: 16.000MB/s transfers pass1 at ata1 bus 0 target 1 lun 0 pass1: MATSHITA DVD-RAM LF-D310 A116 Removable CD-ROM SCSI-0 device pass1: 16.000MB/s transfers -- Jun Kuriyama [EMAIL PROTECTED] // IMG SRC, Inc. [EMAIL PROTECTED] // FreeBSD Project ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Okay. who broke ata.
from another thread: try hw.ata.ata_dma=0 in /boot/loader.conf to disable DMA, it is currently broken but being worked on On Mon, 7 Apr 2003, Jun Kuriyama wrote: At Sun, 6 Apr 2003 04:18:42 + (UTC), Kevin S. Brackett wrote: make world from yesterday broke support for my promise udma66 controller, getting READ/WRITE errors on the drive attached to, reverting to previous kernel fixes problem. I got same result. After updating to latest source, I got: ad0: 76319MB ST380021A [155061/16/63] at ata0-master UDMA100 ad1: 39266MB IBM-DTLA-305040 [79780/16/63] at ata0-slave UDMA100 ad4: READ command timeout tag=0 serv=0 - resetting ata2: resetting devices .. Fatal trap 12: page fault while in kernel mode cpuid = 0; lapic.id = fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc015eed2 stack pointer = 0x10:0xe11f0c48 frame pointer = 0x10:0xe11f0c5c 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 = 14 (swi7: tty:sio clock) kernel: type 12 trap, code=0 Stopped at reinit_bus+0x12:movl0(%esi),%eax db trace reinit_bus(0,2,e11f0c90,c0147998,c7a61e00) at reinit_bus+0x12 atapi_cam_reinit_bus(c7a61e00,ec,c03adf22,3,c7a87f00) at atapi_cam_reinit_bus+0x21 ata_reinit(c7a61e00,c7a87f00,c03a9f87,0,0) at ata_reinit+0x3c8 ad_timeout(c7a87f00,0,c03c0542,bf,438) at ad_timeout+0x136 softclock(0,0,c03bd526,232,c3afd5a0) at softclock+0x19c ithread_loop(c3afc180,e11f0d48,c03bd3a2,314,0) at ithread_loop+0x182 fork_exit(c01fac70,c3afc180,e11f0d48) at fork_exit+0xc4 fork_trampoline() at fork_trampoline+0x1a Previous (Mar 26) kernel said like this: ad0: 76319MB ST380021A [155061/16/63] at ata0-master UDMA100 ad1: 39266MB IBM-DTLA-305040 [79780/16/63] at ata0-slave UDMA100 ad4: 58644MB IC35L060AVER07-0 [119150/16/63] at ata2-master UDMA100 ad5: 43979MB IBM-DTLA-307045 [89355/16/63] at ata2-slave UDMA100 acd0: CD-RW TOSHIBA DVD-ROM SD-R1002 at ata1-master PIO4 acd1: DVD-R MATSHITADVD-RAM LF-D310 at ata1-slave PIO4 pass0 at ata1 bus 0 target 0 lun 0 pass0: TOSHIBA DVD-ROM SD-R1002 1030 Removable CD-ROM SCSI-0 device pass0: 16.000MB/s transfers pass1 at ata1 bus 0 target 1 lun 0 pass1: MATSHITA DVD-RAM LF-D310 A116 Removable CD-ROM SCSI-0 device pass1: 16.000MB/s transfers -- Jun Kuriyama [EMAIL PROTECTED] // IMG SRC, Inc. [EMAIL PROTECTED] // FreeBSD Project ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
SCHED_ULE question
Hi all, How can I verify that I am using the new and improved scheduler (SCHED_ULE) on a running system that does not have the kernel config file to grep through. Cheers - aW ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: libthr faults with recent kernel?
Jake Burkholder just posted a patch to freebsd-threads that works around (fixes?) the problem; indeed, it does seem to be a result of the recent LAZY_SWITCH changes. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects [EMAIL PROTECTED] Network Associates Laboratories On Sun, 6 Apr 2003, Munehiro Matsuda wrote: Hi, When ever I try to run application with the new libthr.so.1 with recent kernel, I get my system falt and just reboots: Fatal trap 12: page fault while in kernel mode fault virtual address = 0xa0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc037f80e stack pointer = 0x10:0xd202fca0 frame pointer = 0x10:0xd202fcc8 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 = Idle trap number = 12 panic: page fault Anybody seen this, or am I the only getting this? I'm assuming that, it started after the LAZY_SWITCH commit, but I can't say for sure. Thanks, Haro =-- _ _Munehiro (haro) Matsuda -|- /_\ |_|_| Business Incubation Dept., Kubota Corp. /|\ |_| |_|_| 1-3 Nihonbashi-Muromachi 3-Chome Chuo-ku Tokyo 103-8310, Japan Tel: +81-3-3245-3318 Fax: +81-3-3245-3315 Email: [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]