[solved] Re: usb-stick accessible, but doesn't boot
clemens fischer
ino-news at spotteswoode.dnsalias.org
Wed Dec 24 13:40:07 UTC 2008
On Tue, 23 Dec 2008 21:10:23 +0100 clemens fischer wrote:
>> Hans Petter Selasky:
>
>> Try the attached patch to "sys/kern/vfs_mount.c"
>>
>> Thanks for reporting. I have been aware about this issue for some time
>> now, but the patch has not been committed to current yet.
>
> Sorry, currently I get build errors, possibly unrelated:
>
> ===> zyd (depend)
> @ -> /usr/src-main/sys
> machine -> /usr/src-main/sys/i386/include
> ln -sf /usr/local/obj/usr/src-main/sys/usb2_fbsd8_i386/opt_usb.h opt_usb.h
> awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
> awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
> awk -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h
> rm -f .depend
> mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/local/obj/usr/src-main/sys/usb2_fbsd8_i386 /usr/src-main/sys/modules/zyd/../../dev/usb/if_zyd.c
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
>
> I'll svn the repo (to HEAD of CURRENT) and try again.
In the meantime the repo is updated to r186477. An old-school USB
kernel compiles, but USB2 does not:
===> zyd (depend)
@ -> /usr/src-main/sys
machine -> /usr/src-main/sys/i386/include
ln -sf /usr/local/obj/usr/src-main/sys/usb2_fbsd8_i386/opt_usb.h opt_usb.h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h
rm -f .depend
mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/local/obj/usr/src-main/sys/usb2_fbsd8_i386 /usr/src-main/sys/modules/zyd/../../dev/usb/if_zyd.c
machine -> /usr/src-main/sys/i386/include
awk -f /usr/src-main/sys/tools/vnode_if.awk /usr/src-main/sys/kern/vnode_if.src -c
...
/usr/bin/make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -march=athlon-mp -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src-main/sys -I/usr/src-main/sys/contrib/altq -I/usr/src-main/sys/contrib/ipfilter -I/usr/src-main/sys/contrib/pf -I/usr/src-main/sys/dev/ath -I/usr/src-main/sys/dev/ath/ath_hal -I/usr/src-main/sys/contrib/ngatm -I/usr/src-main/sys/dev/twa -I/usr/src-main/sys/gnu/fs/xfs/FreeBSD -I/usr/src-main/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src-main/sys/gnu/fs/xfs -I/usr/src-main/sys/contrib/opensolaris/compat -I/usr/src-main/sys/dev/cxgb -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stac
k-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector
/usr/src-main/sys/dev/usb/ucom.c:92:21: error: usbdevs.h: No such file or directory
mkdep: compile failed
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
The manual page to zyd(4) indicates that it wants "device usb", so it
may be an error in zyd, not USB2.
A few questions question though: do I need to specify "nodevice usb"
in an USB2 kernel config as well? In the comments, it says: "USB Bus
(required)", and the compile error says: "error: usbdevs.h: No such file
or directory".
Next, I'll try to exclude the zyd module from building. The kernel
doesn't contain it, anyway.
-c
More information about the freebsd-questions
mailing list