How to disable devices in -current / 5.2-BETA?
Hello, I'm trying to boot 5.2-BETA with aac, which panics as has been reported here and I can confirm panics too. I would like to try boot with aac disabled for now, but it does not work for me. There is suggested in device.hints(5), that I can do set hint.driver.unit.disabled=1 however it does not work for me - neither in loader prompt, nor in /boot/device.hints. Exactly, I'm trying hint.aac.0.disabled=1 in /boot/device.hints or set hint.aac.0.disabled=1 in loader prompt. I have tried hint.lpt.0.disabled, hint.sio.0.disabled, hint.ppi.0.disabled and hint.orm.0.disabled too, but I would not be able to disable any device and still all devices are detected during boot and 5.2-BETA panics with aac in all cases. Please, does anybody know, what I'm doing wrong and how to exactly disable any device from GENERIC kernel, atleast aac? Does really work disabling of devices through hint.driver.unit.disabled? Thanks. -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
User mounts could not use character conversions (libkiconv is just for roots)
Hello, I have found, that user mounts using libkiconv.so (msdosfs, cd9660, ...) could not use character code conversions, beause writing to sysctl kern.iconv.add is allowed just for root. Personally, I have created small patch, which allows to change kern.iconv.add to anybody, so it does work for me. Does anybody know, if there are security drawbacks and if it can or can not be commited? Thanks. --- sys/libkern/iconv.c.origTue Dec 2 16:58:05 2003 +++ sys/libkern/iconv.c Tue Dec 2 16:59:57 2003 @@ -401,7 +401,8 @@ return error; } -SYSCTL_PROC(_kern_iconv, OID_AUTO, add, CTLFLAG_RW | CTLTYPE_OPAQUE, +SYSCTL_PROC(_kern_iconv, OID_AUTO, add, CTLFLAG_RW | CTLFLAG_ANYBODY + | CTLTYPE_OPAQUE, NULL, 0, iconv_sysctl_add, S,xlat, register charset pair); /* -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cvs commit: src/sbin/umount umount.c
async %ld, sfp-f_syncreads, sfp-f_asyncreads); - printf(, fsid ); - for (i = 0; i sizeof(sfp-f_fsid); i++) - printf(%02x, ((u_char *)sfp-f_fsid)[i]); + fsid = 0; + for (i = 0; i sizeof(sfp-f_fsid); i++) { + if (((u_char *)sfp-f_fsid)[i] != 0) { + fsid = 1; + break; + } + } + if (fsid) { + printf(, fsid ); + for (i = 0; i sizeof(sfp-f_fsid); i++) + printf(%02x, ((u_char *)sfp-f_fsid)[i]); + } } (void)printf()\n); } --- Thanks. -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HEADS-UP new statfs structure
)) @@ -107,12 +107,12 @@ osfs-f_files = bsfs-f_files; osfs-f_ffree = bsfs-f_ffree; bcopy(bsfs-f_fsid, osfs-f_fsid, - max(sizeof bsfs-f_fsid, sizeof osfs-f_fsid)); + min(sizeof bsfs-f_fsid, sizeof osfs-f_fsid)); /* osfs-f_spare zeroed above */ bcopy(bsfs-f_mntonname, osfs-f_mntonname, - max(sizeof bsfs-f_mntonname, sizeof osfs-f_mntonname)); + min(sizeof bsfs-f_mntonname, sizeof osfs-f_mntonname - 1)); bcopy(bsfs-f_mntfromname, osfs-f_mntfromname, - max(sizeof bsfs-f_mntfromname, sizeof osfs-f_mntfromname)); + min(sizeof bsfs-f_mntfromname, sizeof osfs-f_mntfromname - 1)); /* XXX osfs-f_xxx should be filled in... */ #endif } Best regards. -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: boot0 and fdisk / disklabel misbehaviour
Rudolf Cejka wrote (2003/11/11): And almost at the same time, I'm looking at the last change to boot0.s 1.26, if there is forgotten TBL1SZ update, or not :o))) Just for record: I have submitted patch solving problems with bad information about partitions as kern/59256 right now. -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: boot0 and fdisk / disklabel misbehaviour
Dag-ErlingSm?rgrav wrote (2003/11/11): - boot0 off-by-one error: The OS table in boot0.s is as follows: .byte os_misc-. # Unknown ... .byte os_bsd-. # NetBSD Now, boot0 identifies my FreeBSD partitions as BSD instead of FreeBSD. It also identifies my Debian partition (type 0x83) as BSD instead of Linux and my Debian swap partition (type 0x82) as DOS instead of Unknown, and NetBSD gives it the hives. It seems to me that it's consistently off by one. And almost at the same time, I'm looking at the last change to boot0.s 1.26, if there is forgotten TBL1SZ update, or not :o))) PS: After UNIX removal, it is very hard to find clean place for 0x7 - NTFS with name better than DOS... --- boot0.s.origTue Nov 11 18:25:12 2003 +++ boot0.s Tue Nov 11 18:25:21 2003 @@ -25,7 +25,7 @@ .set PRT_OFF,0x1be # Partition table .set TBL0SZ,0x3 # Table 0 size - .set TBL1SZ,0xc # Table 1 size + .set TBL1SZ,0xb # Table 1 size .set MAGIC,0xaa55 # Magic: bootable .set B0MAGIC,0xbb66 # Identification -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recent changes to AC97 files breaks sound
Glenn Johnson wrote (2003/08/21): sound no longer works. I reverted to the previous versions of these files to get sound back. Hmm, as I expected, some cases has been fixed and some other cases are broken now :o( pcm0: Intel ICH5 (82801EB) port 0xdc00-0xdc3f,0xd800-0xd8ff mem 0xfc002000-0xfc0020ff,0xfc001000-0xfc0011ff irq 10 at device 31.5 on pci0 pcm0: Avance Logic ALC650 AC97 Codec Could you do ALC650 register dump? If you look into ftp://ftp.FreeBSD.cz/pub/FreeBSD-local/ich/ , you can see small how-to in DEBUG sections. It seems to me that there are just two possibilities: * Hope, that HP_OUT is used instead of LINE_OUT just with Analog Devices chips and in all cases, so that sound fixes can be done just for AD* chips. * Do some compile and/or sysctl or some another option, so that sound fix can be allowed just in cases, where it is needed. There is really missing feedback from users with working and broken output. Register dumps, dmesg | grep pcm and sound status would be sufficient ;o) -- Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Jail - any success?
Poul-Henning Kamp wrote (1999/05/03): You need to put ip aliases on your loopback interface, forinstance: ifconfig lo0 10.0.0.1 netmask 255.255.255.255 alias ... ifconfig lo0 10.0.0.5 netmask 255.255.255.255 alias Then you give each jail one of these ipnumbers and start whatever daemons you want in the jail (inetd, sshd, apache...) Of course your routing needs to work such that these ip numbers end up on your machine, you can also do this by adding multiple IP# to the ethernet of the machine. Thanks. Now I know where was the problem - if I create ip alias ifconfig lo0 A.B.C.D netmask 255.255.255.255 alias I must write jail command as jail /path domain.name D.C.B.A /command so on my PC ip-address isn't converted to a network format. Here are my suggestions: *) Aplly this patch to jail.c: (Or bug is in system call? What format should be there?) --- jail.c.orig Tue May 4 14:00:36 1999 +++ jail.c Tue May 4 14:00:47 1999 @@ -21,7 +21,7 @@ i = inet_aton(argv[3], in); if (!i) errx(1, Couldn't make sense if ip number\n); - j.ip_number = in.s_addr; + j.ip_number = htonl(in.s_addr); i = jail(j); if (i) err(1, Imprisonment failed); *) There should be $Id in all Makefile, jail.8, and jail.c I think. *) In jail(8) there is synopsis jail path hostname ip-number. It should be jail path hostname ip command ... as is usage of jail command. (I you want I can fill PRs :-) Is it possible to call ping in prison session? # ping some.host ping: socket: Operation not permitted --=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--= Rudolf Cejka (cej...@dcse.fee.vutbr.cz; http://www.fee.vutbr.cz/~cejkar) Brno University of Technology, Faculty of El. Engineering and Comp. Science Bozetechova 2, 612 66 Brno, Czech Republic To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Jail - any success?
I'm trying to test the new jail feature. It looks it works. But I can't find, how to setup the network communication. Is there anybody who successfully took a run of jail virtual serverrs with networking? Thanks for any suggestions. --=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--= Rudolf Cejka (cej...@dcse.fee.vutbr.cz; http://www.fee.vutbr.cz/~cejkar) Brno University of Technology, Faculty of El. Engineering and Comp. Science Bozetechova 2, 612 66 Brno, Czech Republic To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message