Subject: Re: Re: altq majors in /dev/altq/
To: None <port-sparc64@netbsd.org>
From: Dario Borchers <mailinglists@borchers.homelinux.net>
List: port-sparc64
Date: 12/08/2003 04:10:38
Hi,

68 doesn't work, i'm using 1.6.1 stable

what i did:
i recompiled the kernel, adding these options to the GENERIC configuration:

options =09ALTQ
options=09=09ALTQ_CBQ
options=09=09ALTQ_HFSC
options=09=09ALTQ_PRIQ
options=09=09ALTQ_WFQ
options=09=09ALTQ_FIFOQ
options=09=09ALTQ_RED
options=09=09ALTQ_BLUE
options=09=09ALTQ_LOCALQ
options=09=09ALTQ_FLOWVALVE
options=09=09ALTQ_RIO
options=09=09ALTQ_CDNR
options=09=09HZ=3D1000

compiling went fine, the new kernel runs briliant.
then i made the dev's according to sys/altq/altq_conf.c with a litle script:

#!/bin/sh
cd /dev
mkdir altq
chmod 755 altq
unit=3D0
for dev in altq cbq wfq afm fifoq red rio localq hfsc cdnr blue priq; do
    rm -f altq/$dev
    /sbin/mknod altq/$dev c 68 $unit
    chmod 777 altq/$dev
    unit=3D$(($unit + 1))
done
exit

when i try to start altqd via /etc/rc.d/altqd start it says " altqd: can't
open altq device: operation not supported by device"

the output of "nm /netbsd |grep altq" shows:

000000000101c938 T altq_assert
000000000101c6e4 T altq_attach
0000000001808978 D altq_cdnr_enabled
0000000001010700 t altq_cdnr_input
000000000101c748 T altq_detach
000000000101c880 T altq_disable
000000000101c7a4 T altq_enable
00000000011acc74 T altq_etherclassify
000000000101cee8 T altq_extractflow
00000000018089e8 D altq_input
000000000101c6a8 T altq_lookup
000000000100e108 T altqclose
000000000100e178 T altqioctl
000000000100e098 T altqopen
00000000018087e0 d altqsw
0000000001808960 D naltqsw

according to this one, adding a cbq to a pppoe0 device works on i386
http://groups.google.de/groups?q=3Dnetbsd+pppoe0+altq&hl=3Dde&lr=3D&ie=3DUTF-=
8&oe=3DUTF-8&selm=3DPine.NEB.4.53.0307191539470.24719%40uberhost.newbie-net.d=
e&rnum=3D1

so, is it correct to look at the majors/minors for the error? or where should
i look ? or is adding a cbq to a pppoe device not supported on sparc-64?