Re: cbb cardbus activation failed
Salut, Doug Rabson <[EMAIL PROTECTED]> wrote: >On Sat, 2003-11-15 at 22:32, Philippe Charnier wrote: >> Hello, >> >> I have a Compaq armada 7800 with a noname pccard ethernet adapter >> which used to be detected as: >> >> rl0: port 0x1100-0x11ff mem 0x8800-0x880001f >f irq 11 at device 0.0 on cardbus0 >> rl0: Ethernet address: 00:10:60:58:60:b8 >> miibus0: on rl0 >> rlphy0: on miibus0 >> rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> rl0: bpf attached >> >> After revision 1.222 of src/sys/pci/if_rl.c, the card is not detected >> anymore and I get: >> >> cardbus0: at device 0.0 (no driver attached) >> cbb0: CardBus card activation failed > >Which version of dev/cardbus/cardbus.c and dev/pci/pci.c do you have? > > In a CET timezone (1 hour shift against UTC) I got a working kernel using cvs update -D "november 3" which gives if_rl.c(1.121) cardbus.c(1.42) and pci.c(1.234). I got a failing kernel using cvs update -D "november 5" which gives if_rl.c(1.122) cardbus.c(1.42) and pci.c(1.235). I don't think 1.234->1.235 of pci.c (committed by jhb@) is relevant here ("Enable PCI interrupt routing for i386 SMP kernels") because SMP is not defined in my kernel configuration file. Using if_rl.c(1.125 but with 1.121->1.122 reverted), I have a running kernel with cardbus(1.42) and pci.c(1.235) which is -current. I takes nearly 2 hours to get a new kernel, but if you need more testing, just ask. ---- Philippe Charnier [EMAIL PROTECTED],free.fr,FreeBSD.org} ``a PC not running FreeBSD is like a venusian with no tentacles'' ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
cbb cardbus activation failed
Hello, I have a Compaq armada 7800 with a noname pccard ethernet adapter which used to be detected as: rl0: port 0x1100-0x11ff mem 0x8800-0x880001ff irq 11 at device 0.0 on cardbus0 rl0: Ethernet address: 00:10:60:58:60:b8 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: bpf attached After revision 1.222 of src/sys/pci/if_rl.c, the card is not detected anymore and I get: cardbus0: at device 0.0 (no driver attached) cbb0: CardBus card activation failed in place of the above message. revision 1.222 was DRIVER_MODULE(rl, pci, rl_driver, rl_devclass, 0, 0); -DRIVER_MODULE(rl, cardbus, rl_driver, rl_devclass, 0, 0); DRIVER_MODULE(miibus, rl, miibus_driver, miibus_devclass, 0, 0); Adding the removed line makes the card work again. ---- Philippe Charnier [EMAIL PROTECTED],free.fr,FreeBSD.org} ``a PC not running FreeBSD is like a venusian with no tentacles'' ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
incorrect output in pstat -s
Hello, Running pstat -s, I get: Device 1K-blocks UsedAvail Capacity Type /dev/rda0s2b1318080 131808 0%Interleaved /dev/rda1s1b 66432066432 0%Interleaved /dev/rda2s1b 32640032640 0%Interleaved /dev/rda3s1b 32640032640 0%Interleaved Total 2635200 263520 0% Which I corrected with the following changes. Printing /dev/da... instead of /dev/rda... is maybe a better fix? Index: pstat.c === RCS file: /home0h/FreeBSD.cvsroot/src/usr.sbin/pstat/pstat.c,v retrieving revision 1.46 diff -u -r1.46 pstat.c --- pstat.c 1999/11/27 17:03:07 1.46 +++ pstat.c 1999/12/04 13:42:02 @@ -996,13 +996,13 @@ header = getbsize(&hlen, &blocksize); if (totalflag == 0) { - (void)printf("%-11s %*s %8s %8s %8s %s\n", + (void)printf("%-12s %*s %8s %8s %8s %s\n", "Device", hlen, header, "Used", "Avail", "Capacity", "Type"); for (i = 0; i < n; ++i) { (void)printf( - "%-11s %*d ", + "%-12s %*d ", kswap[i].ksw_devname, hlen, CONVERT(kswap[i].ksw_total) @@ -1029,7 +1029,7 @@ ); } else if (n > 1) { (void)printf( - "%-11s %*d %8d %8d %5.0f%%\n", + "%-12s %*d %8d %8d %5.0f%%\n", "Total", hlen, CONVERT(kswap[n].ksw_total), ---- Philippe Charnier charnier@{lirmm.fr,xp11.frmug.org,FreeBSD.org} ``a PC not running FreeBSD is like a venusian with no tentacles'' To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Error handling for src/usr.sbin/pccard/pccardc/*
fprintf(stderr, -"usage: pccardc enabler slot driver [-m addr size] [-a iobase] [-i irq]\n"); +"Usage: enabler slot driver [-m addr size] [-a iobase] [-i irq]\n"); Usage string use to start with "usage", not "Usage". Progname should follow. - fprintf(stderr, "usage: pccardc ...\n"); - fprintf(stderr, "subcommands:\n"); + fprintf(stderr, "Usage:\n"); + fprintf(stderr, "\t%s ...\n", argv[0]); We do hardcode the progname, because it is known. [removing of usage()] A bad thing. - usage(); + errx(1, "Usage: %s pccardmem [ memory-address ]", argv[0]); Err(3) is wrong at displaying the usage string because it prepends the progname. + + if (argc != 4) + errx(1, "Usage: %s rdattr slot offs length", argv[0]); Errx() -> usage() + if ((buf = malloc(length)) == 0) + err(1, "%s", name); Name give no information here. And because our malloc doesn't set errno, err() which makes use of errno now prints garbage. I suggest errx(1, "malloc failed"). ---- Philippe Charnier charn...@{lirmm.fr,xp11.frmug.org,FreeBSD.org} ``a PC not running FreeBSD is like a venusian with no tentacles'' To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message