v4l howto and help request
Hi! This is a short guide on how to build webcamd and a request for help. webcamd is a port of Linux v4l drivers as a system daemon. I'm tryng to get it working so that I can migrate my desktop someday. Webcam support is mandatory or my sister will be upset ;-) Here are my steps: 1. Install libusb2 8.1-5 or later (to fix bug #594330) 2. Download kernel source. Put it in /usr/src/sys 3. ln -s x86_64 /usr/src/sys/amd64 4. Download fetch script from bug #594483 and put it in your path 5. Add /usr/lib/freebsd to your path 6. Build cuse4bsd as in step 3 in http://www.selasky.org/hans_petter/video4bsd/ 7. kldload cuse4bsd.ko and copy the library to /usr/lib 8. Build webcamd as in step 4 in http://www.selasky.org/hans_petter/video4bsd/ But then when I run webcamd, get this weird error: Attached ugen0.2[0] to cuse unit 0 webcamd: malloc.c:3097: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd old_size == 0) || ((unsigned long) (old_size) = (unsigned long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) ~((2 * (sizeof(size_t))) - 1))) ((old_top)-size 0x1) ((unsigned long)old_end pagemask) == 0)' failed. Aborted Heap corruption maybe? I also obtained a gdb backtrace. It seems that this is something related with threads. What does sigsuspend do? Is the problem with handling of this signal or is the signal itself something that shouldn't happen? This part really gets me confused. Some help would be nice! Thanks a lot backtrace Description: Binary data
Bug#594483: BSD fetch
Package: freebsd-utils Version: 8.1-1 Severity: wishlist Hello there! I've been playing with webcamd from video4bsd project to see if I can get my webcam to work on kFreeBSD, but to run the make fetch target I was missing the BSD fetch command. BSD fetch is a lot like wget which is already present in GNU/kFreeBSD, so I wrote a small wrapper like the one in /bin/mount. I figured you could include it in freebsd-utils if it can be useful to other users. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 8.1-1-amd64 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages freebsd-utils depends on: ii libbsd0 0.2.0-1utility functions from BSD systems ii libc0.1 2.11.2-2 Embedded GNU C Library: Shared lib ii libcam0 8.1-3 FreeBSD CAM (Common Access Method) ii libgcc1 1:4.4.4-8 GCC support library ii libgeom0 8.1-3 FreeBSD GEOM library ii libkiconv48.1-3 FreeBSD kernel side iconv library ii libkvm0 8.1-3 FreeBSD kvm (kernel memory interfa ii libsbuf0 8.1-3 FreeBSD string buffer library ii libstdc++64.4.4-8The GNU Standard C++ Library v3 ii ufsutils 7.3-1 UFS filesystems utilities freebsd-utils recommends no packages. Versions of packages freebsd-utils suggests: pn freebsd-hackedutils none (no description available) ii kbdcontrol8.1-1 command-line tool to change keyboa ii vidcontrol8.1-1 command-line tool to control the s -- no debconf information #!/bin/sh set -e args= while [ $# -gt 0 ]; do case $1 in -o) shift ; args=${args} -O $1 ;; *) args=${args} $1 ;; esac shift done exec wget ${args} 2
Bug#594330: libusb2 doesn't detect any devices
Package: libusb2 Version: 8.1-3 Severity: grave Tags: patch Hi! libusb2 is unusable because libusb_get_device_list doesn't detect any devices. This happens because libusb20_be_alloc_ugen20 is disabled. This problem can be reproduced with lsusb from http://code.google.com/p/segin-utils/source/browse/trunk/freebsd-utils/lsusb-libusb.c. I'm providing a patch. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 8.1-1-amd64 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libusb2 depends on: ii libbsd0 0.2.0-1utility functions from BSD systems ii libc0.1 2.11.2-2 Embedded GNU C Library: Shared lib libusb2 recommends no packages. libusb2 suggests no packages. -- no debconf information diff -Nurp freebsd-libs-8.1/lib/libusb/libusb20.c freebsd-libs-8.1-new/lib/libusb/libusb20.c --- freebsd-libs-8.1/lib/libusb/libusb20.c 2010-04-06 20:34:05.0 -0400 +++ freebsd-libs-8.1-new/lib/libusb/libusb20.c 2010-08-25 06:54:51.453938361 -0400 @@ -1166,7 +1166,7 @@ libusb20_be_alloc_ugen20(void) { struct libusb20_backend *pbe; -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) pbe = libusb20_be_alloc(libusb20_ugen20_backend); #else pbe = NULL;
Bug#594183: can't build kernel modules
Package: freebsd-buildutils Version: 8.1-1 Severity: normal Hi there I was trying to build cuse4bsd and freebsd-make gives this critical error: cd: 1: can't cd to /usr/src/sys/x86_64/include Kernel sources are in /usr/src/sys, but freebsd-make is looking at the wrong directory. the directory for amd64 headers is /usr/src/sys/amd64/include. I had a look at the included makefiles, and it seems the problem originates with ${MACHINE} variable which is x86_64 instead of amd64. cuse4bsd has other problems, which I'm workng on, but you can reproduce this with attached makefile. Cheers -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 8.1-1-amd64 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages freebsd-buildutils depends on: ii bsdmainutils8.0.13 collection of more utilities from ii libbsd0 0.2.0-1 utility functions from BSD systems ii libc0.1 2.11.2-2 Embedded GNU C Library: Shared lib ii make3.81-8 An utility for Directing compilati ii original-awk2010-05-23-1 The original awk described in The ii patchutils 0.3.1-2 Utilities to work with patches ii unzip 6.0-4De-archiver for .zip files freebsd-buildutils recommends no packages. freebsd-buildutils suggests no packages. -- no debconf information SRCS=test.c ..include bsd.kmod.mk
Re: APM support kernel
--- On Sun, 8/22/10, AngelD ang...@froga.net wrote: I have a old portable IBM ThinkPad T20. This it does not work with ACPI (hal freeze the computer), only work with APM. I need to recompile the kfreebsd kernel with other options. How compile the kernel?. A manual of kfreebsd kernel config?. You don't have to. ACPI is built as a module (acpi.ko) so just edit grub.cfg and remove the acpi.ko line. -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/361913.1782...@web120109.mail.ne1.yahoo.com
Re: GNU/kFreeBSD debian-installer
--- On Wed, 8/18/10, Aurelien Jarno aurel...@aurel32.net wrote: Please test it on your machine or favorite virtualization software and report the issues on the mailing list. Please note that ext2 support is slightly broken (wrong entry in /etc/fstab), it should be fixed in tomorrow's build. I tested today's kfreebsd-amd64 netboot ISO (http://d-i.debian.org/daily-images/kfreebsd-amd64/20100821-10:40/netboot/mini.iso), tried installing on ext2 and found these problems: o After partitioning, I get an error saying Your root partition has not been configured with the UFS file system. This is needed by your machine in order to boot. Please go back and use UFS file system. (luckily it can be skipped) o GRUB is not installed. Selecting the menu option to install GRUB does nothing (the installer returns to main menu silently). I suppose it has to do with ext2 option? -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/771425.42200...@web120115.mail.ne1.yahoo.com