Date: Thu, 30 Oct 1997 16:27:53 +0500 (ES) From: Vasim Valejev <vasim@uddias.diaspro.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4892: config gives bad numbers of pseudo-device to kernel Message-ID: <199710301127.QAA04794@uddias.diaspro.com> Resent-Message-ID: <199710301130.DAA03260@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4892
>Category: bin
>Synopsis: config gives bad numbers of pseudo-device to kernel
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 30 03:30:01 PST 1997
>Last-Modified:
>Originator: Vasim Valejev
>Organization:
DiasPro
>Release: FreeBSD 3.0-CURRENT i386
>Environment:
FreeBSD 3.0-CURRENT
config's sources from 28.10.1997
>Description:
i have next lines in /sys/i386/conf/my_system_name :
pseudo-device sl 16
pseudo-device ppp 16
after commands :
config my_system_name
cd ../../compile/my_system_name
make depend
make
make install
reboot
i got system with ONE ppp-interface and ONE slip-interface :( :( :( .
>How-To-Repeat:
try compile kernel 3.0-CURRENT with number ppp or slip-interfaces > 1 .
>Fix:
config confuses when pseudo-device have multiple (> 1) entries in /sys/conf/files . I don't sure , but i use next fix :
*** mkheaders.c.orig Thu Oct 30 16:18:35 1997
--- mkheaders.c Thu Oct 30 16:07:48 1997
***************
*** 94,98 ****
for (hicount = count = 0, dp = dtab; dp != 0; dp = dp->d_next)
if (dp->d_unit != -1 && eq(dp->d_name, dev)) {
! if (dp->d_type == PSEUDO_DEVICE) {
count =
dp->d_slave != UNKNOWN ? dp->d_slave : 1;
--- 94,98 ----
for (hicount = count = 0, dp = dtab; dp != 0; dp = dp->d_next)
if (dp->d_unit != -1 && eq(dp->d_name, dev)) {
! if (dp->d_type & PSEUDO_DEVICE) {
count =
dp->d_slave != UNKNOWN ? dp->d_slave : 1;
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710301127.QAA04794>
