Re: New CAM locking preview

2013-08-15 Thread Hans Petter Selasky
On 08/15/13 23:40, Alexander Motin wrote: Hi. Last weeks I've made substantial progress on my CAM locking work. In fact, at this moment I think I've tied all loose ends good enough to consider the new design viable and implementation worth further testing and bug fixing. So I would like to ask

Re: priv_check/make_dev/devfs.rules: What is preventing a device to show up in a jail?

2013-06-13 Thread Hans Petter Selasky
On 05/10/13 21:33, Alexander Leidinger wrote: On Fri, 10 May 2013 13:43:47 +0200 Uffe Jakobsen u...@uffe.org wrote: On 2013-05-10 12:11, Alexander Leidinger wrote: I worry about what is going on. We have something which is supposed to provide security as required, but is does not seem to

Re: USB Printer quirks

2013-04-16 Thread Hans Petter Selasky
On 04/15/13 22:14, Joshua Isom wrote: On 4/15/2013 5:41 AM, Hans Petter Selasky wrote: Hi, What does dmesg say about your printer. Is cups hooked up the correct /dev/uxxx device ? --HPS Here's what I got the last time I plugged it in. Apr 13 07:38:17 jri root: Unknown USB device: vendor

Re: USB Printer quirks

2013-04-15 Thread Hans Petter Selasky
On 04/14/13 00:45, Joshua Isom wrote: I've got my printer to finally work, now that I got around to hooking it up again and trying. It's a Kodak AiO, and there's a driver that's been around for a few years and works under Linux. It doesn't work properly under FreeBSD, or a Debian/kFreeBSD

Re: receiving aerial digital TV

2013-02-01 Thread Hans Petter Selasky
On Friday 01 February 2013 13:46:59 Wojciech Puchar wrote: i am out of current knowledge about common TV for about 10 years. Currently in Poland there is aerial TV broadcasted in DVB-T standard. There are TVs with builtin decoder/demodulator or separate decoders/demodulator with HDMI output.

Re: Questions about USB, uhid, ukbd and quirks

2012-11-24 Thread Hans Petter Selasky
On Saturday 24 November 2012 00:00:44 Niclas Zeising wrote: Hi! I have a couple of questions about USB. I recently bought a new USB keyboard, a Logitech K120. When attaching this to a FreeBSD system, however, it is detected as a hid device (attaching to uhid) rather than a keyboard

Re: Questions about USB, uhid, ukbd and quirks

2012-11-24 Thread Hans Petter Selasky
On Saturday 24 November 2012 12:13:49 Hans Petter Selasky wrote: On Saturday 24 November 2012 00:00:44 Niclas Zeising wrote: Hi! I have a couple of questions about USB. I recently bought a new USB keyboard, a Logitech K120. When attaching this to a FreeBSD system, however, it is detected

Re: Questions about USB, uhid, ukbd and quirks

2012-11-24 Thread Hans Petter Selasky
On Saturday 24 November 2012 13:54:45 Niclas Zeising wrote: On 11/24/12 13:23, Niclas Zeising wrote: On 11/24/12 13:17, Hans Petter Selasky wrote: On Saturday 24 November 2012 12:13:49 Hans Petter Selasky wrote: On Saturday 24 November 2012 00:00:44 Niclas Zeising wrote: Hi! I have

Re: Questions about USB, uhid, ukbd and quirks

2012-11-24 Thread Hans Petter Selasky
On Saturday 24 November 2012 14:24:07 Niclas Zeising wrote: On 11/24/12 14:19, Hans Petter Selasky wrote: On Saturday 24 November 2012 13:54:45 Niclas Zeising wrote: On 11/24/12 13:23, Niclas Zeising wrote: On 11/24/12 13:17, Hans Petter Selasky wrote: On Saturday 24 November 2012 12:13

Re: VIMAGE crashes on 9.x with hotplug net80211 devices

2012-11-15 Thread Hans Petter Selasky
On Thursday 15 November 2012 20:16:12 Adrian Chadd wrote: Hans brings up a very good point for USB - they split if_alloc and if_attach across two different threads. So this works for non-USB devices, but not for USB devices. Hans, does each device implement its own workqueue for this kind

Re: VIMAGE crashes on 9.x with hotplug net80211 devices

2012-10-28 Thread Hans Petter Selasky
Hi, I currently have not tested VIMAGE with USB devices. Detach is the final exit for a USB device. There is also shutdown, but softc still is around. --HPS On Sunday 28 October 2012 19:47:20 Adrian Chadd wrote: ping? Marko - would you be willing to add the if_free() vnet context setup

Re: 9.1-RCs issues

2012-10-07 Thread Hans Petter Selasky
On Sunday 07 October 2012 01:42:33 Jin Guojun wrote: 1) moused stops functioning on 9.1-RC2. Neither PS2 nor USB mouse can work. 9.1-RC1 has no such problem. 2) All i386 / amd64 of 9.1-RC1/RC2 have USB read failure -- see dmesg output at end of this email. ada0 is internal SATA drive

Re: 9.1-RCs issues

2012-10-07 Thread Hans Petter Selasky
On Sunday 07 October 2012 12:42:11 Hans Petter Selasky wrote: On Sunday 07 October 2012 01:42:33 Jin Guojun wrote: 1) moused stops functioning on 9.1-RC2. Neither PS2 nor USB mouse can work. 9.1-RC1 has no such problem. 2) All i386 / amd64 of 9.1-RC1/RC2 have USB read failure

Re: How to claim only some of USB interfaces of a composite USB device

2012-09-30 Thread Hans Petter Selasky
On Saturday 29 September 2012 11:25:21 geoffrey levand wrote: geoffrey levand Can you verify this patch: http://svn.freebsd.org/changeset/base/241078 --HPS ___ freebsd-hackers@freebsd.org mailing list

Re: How to claim only some of USB interfaces of a composite USB device

2012-09-24 Thread Hans Petter Selasky
On Sunday 23 September 2012 16:30:53 geoffrey levand wrote: Hi, i have the following problem. I have a composite USB device with multiple USB interfaces. Some of interfaces belong to the Bluetooth device and other to the WLAN device. The problem is i want my WLAN driver to claim only the

Re: Is there a reason that xhci isn't mentioned in NOTES in 8-stable?

2012-07-19 Thread Hans Petter Selasky
On Thursday 19 July 2012 11:14:42 Doug Barton wrote: The xhci code in 8-stable works, but it's not mentioned in the NOTES files in sys/conf, sys/i386/conf, or sys/amd64/conf. The module is hooked up in sys/modules/usb/Makefile, and that's how I've been using it so far. Is it not possible to

Re: Is there a reason that xhci isn't mentioned in NOTES in 8-stable?

2012-07-19 Thread Hans Petter Selasky
On Thursday 19 July 2012 11:38:11 Doug Barton wrote: On 07/19/2012 02:17, Hans Petter Selasky wrote: On Thursday 19 July 2012 11:14:42 Doug Barton wrote: The xhci code in 8-stable works, but it's not mentioned in the NOTES files in sys/conf, sys/i386/conf, or sys/amd64/conf. The module

Re: Is there a reason that xhci isn't mentioned in NOTES in 8-stable?

2012-07-19 Thread Hans Petter Selasky
On Thursday 19 July 2012 12:34:34 Doug Barton wrote: On 07/19/2012 03:29, Hans Petter Selasky wrote: On Thursday 19 July 2012 11:38:11 Doug Barton wrote: On 07/19/2012 02:17, Hans Petter Selasky wrote: On Thursday 19 July 2012 11:14:42 Doug Barton wrote: The xhci code in 8-stable works

Re: FreeBSD Boot Times

2012-06-13 Thread Hans Petter Selasky
On Wednesday 13 June 2012 15:21:29 Ian Lepore wrote: On Wed, 2012-06-13 at 09:10 +0200, Wojciech Puchar wrote: Greetings, I was just wondering what it is that FreeBSD does that makes it take so long to boot. Booting into Ubuntu minimal or my own custom Linux distro, literally

Re: FreeBSD Boot Times

2012-06-13 Thread Hans Petter Selasky
On Wednesday 13 June 2012 23:35:17 Mel Flynn wrote: On 13-6-2012 23:16, claudiu vasadi wrote: If you simplky do sysctl -d hw.usb.no_boot_wait you will see the explanation ;) Probably why Eitan asked as that description: a) means nothing to people unfamiliar with device enumerations b)

Re: FreeBSD Boot Times

2012-06-12 Thread Hans Petter Selasky
On Tuesday 12 June 2012 08:23:33 Andriy Gapon wrote: on 12/06/2012 01:21 Brandon Falk said the following: Greetings, I was just wondering what it is that FreeBSD does that makes it take so long to boot. Booting into Ubuntu minimal or my own custom Linux distro, literally takes 0.5-2

Re: VirtualBox on FreeBSD is looking for you!

2012-06-11 Thread Hans Petter Selasky
On Sunday 10 June 2012 08:55:52 Bernhard Froehlich wrote: - USB support (needs fixing) Hi, If questions arise I can answer them and give advice with regard to libusb in baseport and the USB FS interface. I've been somewhat involved fixing the USB support for VirtualBox under FreeBSD last

Re: reverse USB driver - is it possible?

2012-06-04 Thread Hans Petter Selasky
On Monday 04 June 2012 07:00:01 Wojciech Puchar wrote: Have a look at: sys/dev/usb/storage/ustorage_fs.c Currently just implements a RAM disk. Patches are welcome. many answers - contradicting itself. others says hardware is unable to do so, you say it is done. then - how to use

Re: reverse USB driver - is it possible?

2012-06-03 Thread Hans Petter Selasky
On Sunday 03 June 2012 10:25:21 Wojciech Puchar wrote: for SCSI/SAS/FC there is targ(4) driver allows you to become SCSI target. is it the same possible with USB? i mean if i can make my laptop to simulate say USB CDROM. Yes there are no driver line targ(4) for USB, but it is technically

Re: ARM + CACHE_LINE_SIZE + DMA

2012-05-22 Thread Hans Petter Selasky
On Tuesday 22 May 2012 01:35:48 Alexander Kabaev wrote: On Thu, 17 May 2012 11:01:34 -0500 Mark Tinguely marktingu...@gmail.com wrote: On Thu, May 17, 2012 at 8:20 AM, Svatopluk Kraus onw...@gmail.com wrote: Hi, I'm working on DMA bus implementation for ARM11mpcore platform.

Re: Can't unload snd_uaudio: it hangs in D+ state

2012-04-22 Thread Hans Petter Selasky
On Monday 23 April 2012 02:51:48 Yuri wrote: I was debugging Logitech C910 webcam. 1. 'kldload snd_uaudio' while camera was attached 2. ran webcamd, which worked 3. stopped webcamd 4. 'kldunload snd_uaudio' while the camera is still attached = hanged in D+ 5. 'kldstat' also hangs in D+ I

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-03-29 Thread Hans Petter Selasky
On Thursday 29 March 2012 15:42:42 Joe Greco wrote: Hi, Do both 32- and 64-bit versions of FreeBSD crash? --HPS ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-03-29 Thread Hans Petter Selasky
On Thursday 29 March 2012 17:49:30 Joe Greco wrote: On Thursday 29 March 2012 15:42:42 Joe Greco wrote: Hi, Do both 32- and 64-bit versions of FreeBSD crash? We've only seen it happen on one virtual machine. That was a 32-bit version. And it's not so much a crash as it is a disk

Re: Reverse engineering; How to...

2012-03-29 Thread Hans Petter Selasky
On Thursday 29 March 2012 18:15:59 Chris Rees wrote: On 28 Mar 2012 21:23, Chris.H bsd.ch...@yahoo.com wrote: Greetings, I can unpack the setup file to extract the .sys files. While I _could_ utilize the ndisulator to load them, that's not my goal. Should I unpack the .sys file, and

Re: USB issue on 8.2

2012-02-23 Thread Hans Petter Selasky
On Thursday 23 February 2012 18:52:50 Vijay Singh wrote: Hi hackers. I am seeing an issue where the USB controller is generating a large number of interrupts. last pid: 6639; load averages: 1.39, 1.48, 2.46 up 0+01:07:14 12:35:05 2590 processes:9 running, 462 sleeping, 3 zombie,

Re: devd based AUTOMOUNTER

2012-02-18 Thread Hans Petter Selasky
On Saturday 18 February 2012 10:48:11 vermaden wrote: Added a check if ntfs-3g is available, if not then mount_ntfs is used instead. Added deleting of empty directories at ${MNTPREFIX}. Added ${MNTPREFIX} to be set to /mnt or /media according to preference #! /bin/sh

Re: 8 to 9: Kernel modularization -- did it change?

2012-02-17 Thread Hans Petter Selasky
On Friday 17 February 2012 16:05:42 Alex Goncharov wrote: == This is shocking to me: I have the /boot/kernel/snd_hda.ko but I can't load and unload it -- apparently the sound support is in the kernel now. Maybe there is a missing depencency towards sound.ko. Try loading that first. --HPS

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-17 Thread Hans Petter Selasky
On Tuesday 17 January 2012 20:54:51 Steven Hartland wrote: boot time fixes (disable memtest), Hi, Another noticeable part is that ufsread.c in boot2 uses very small block sizes to read the file system data. If that could be fixed boot times would drop too ! --HPS

Re: Sound on the system briefly interrupts when kde4 switches windows with nvidia card

2012-01-15 Thread Hans Petter Selasky
On Monday 16 January 2012 01:21:19 Yuri wrote: On 01/15/2012 15:34, Dieter BSD wrote: Some drivers do things like DELAY(big number) while interrupts are turned off. Very bad. Look through the source, maybe you can find it. We REALLY need a way to service one device without shutting off

Re: USB Zero length packet

2012-01-13 Thread Hans Petter Selasky
On Friday 13 January 2012 10:29:18 Daniel Grech wrote: Hi, does anybody know what the procedure for sending a zero length packet through libusb on FreeBSD is ? Thanks in advance, Regards, Daniel By writing zero bytes, you send a zero length packet. With the libusb20 API you can set

Re: kern_yield vs ukbd_yield

2011-12-18 Thread Hans Petter Selasky
On Sunday 18 December 2011 11:58:57 Andriy Gapon wrote: on 17/12/2011 19:06 Hans Petter Selasky said the following: If the problem is only in UKBD driver, I don't think this is a big problem to solve. The reason for the auto-magic locking, is that I've sometimes seen callers in non-polling

Re: kern_yield vs ukbd_yield

2011-12-17 Thread Hans Petter Selasky
On Saturday 17 December 2011 15:57:24 Andriy Gapon wrote: on 16/12/2011 01:16 Hans Petter Selasky said the following: I think I was not aware about the Giant locking maybe having something to do about this. I was just thinking about this recently, that syscons and all keyboard stuff

Re: kern_yield vs ukbd_yield

2011-12-17 Thread Hans Petter Selasky
On Saturday 17 December 2011 15:57:30 Andriy Gapon wrote: Replying further... Not directly, but indirect. You know, if you pause thread 1 (which I thought was thread 0), then other thread will get a chance to run. pause() could be a sufficient action to let other thread run, but it is

Re: kern_yield vs ukbd_yield

2011-12-15 Thread Hans Petter Selasky
On Thursday 15 December 2011 15:17:01 Andriy Gapon wrote: on 14/12/2011 23:56 Hans Petter Selasky said the following: On Wednesday 14 December 2011 16:37:50 Andriy Gapon wrote: So, Hans Petter, do you recall any details of this problem? I am curious about which thread got starved by which

Re: kern_yield vs ukbd_yield

2011-12-15 Thread Hans Petter Selasky
On Friday 16 December 2011 00:05:54 Andriy Gapon wrote: on 16/12/2011 00:56 Hans Petter Selasky said the following: On Thursday 15 December 2011 15:17:01 Andriy Gapon wrote: Hmm... I looked at the history of ukbd.c (which I should have done from the very start) and I see two relevant

Re: kern_yield vs ukbd_yield

2011-12-14 Thread Hans Petter Selasky
On Wednesday 14 December 2011 16:37:50 Andriy Gapon wrote: on 13/12/2011 10:17 Andriy Gapon said the following: on 13/12/2011 00:21 Andriy Gapon said the following: [snip] And in the view of the below data I would like us to revisit this problem. I looked over usb code and it seems that

Re: kern_yield vs ukbd_yield

2011-12-12 Thread Hans Petter Selasky
On Monday 12 December 2011 16:55:38 m...@freebsd.org wrote: On Mon, Dec 12, 2011 at 12:03 AM, Andriy Gapon a...@freebsd.org wrote: on 11/12/2011 23:48 m...@freebsd.org said the following: On Sun, Dec 11, 2011 at 1:12 PM, Andriy Gapon a...@freebsd.org wrote: Does the following change do what

Re: kern_yield vs ukbd_yield

2011-12-12 Thread Hans Petter Selasky
On Monday 12 December 2011 20:05:38 John Baldwin wrote: Hi, hselasky@ or someone else familiar with the various usb threads would have to answer that. The problem is only during init() where the init thread has highest priority and that doesn't allow other threads to run

Re: USB Texas Instruments CDCE modem not recognized by cdce

2011-12-08 Thread Hans Petter Selasky
On Thursday 08 December 2011 14:09:47 Lorenzo Cogotti wrote: Dear all, I am new to this list and to FreeBSD in general, so first of all hi everyone and thank you for providing this awesome and rock solid OS. I have a CDC compliant (at least this is what the manufacturer claims) USB Modem,

Re: USB Texas Instruments CDCE modem not recognized by cdce

2011-12-08 Thread Hans Petter Selasky
On Thursday 08 December 2011 16:35:47 Lorenzo Cogotti wrote: Il giorno gio, 08/12/2011 alle 15.39 +0100, Hans Petter Selasky ha scritto: Typically you need to select configuration 1 for dual RNDIS/CDCE devices to work. 1) Locate your device: usbconfig 2) Set config 1

Re: USB Texas Instruments CDCE modem not recognized by cdce

2011-12-08 Thread Hans Petter Selasky
On Thursday 08 December 2011 16:54:40 Lorenzo Cogotti wrote: Eventually, should I send a patch to someone so that I am not the only one to benefit from your help? If you want this quirk permanently you could try to add an entry to: /sys/dev/usb/quirk/usb_quirk.c You should use the quirk:

Re: USB FS

2011-11-08 Thread Hans Petter Selasky
On Tuesday 08 November 2011 17:24:33 Daniel Grech wrote: Hi, I am trying to write a program that makes use of the USB_FS ioctl calls to achieve it's functionality. Unfortunately I am encountering some difficulties with these ioctl calls and am not exactly sure which call is supposed to do

Re: Sharing device driver between kernel and user space

2011-09-21 Thread Hans Petter Selasky
On Wednesday 21 September 2011 08:05:25 geoffrey levand wrote: I think you misunderstood what i need. If i got it right then cuse4bsd allows user applications to create char devices, right ? I do not want to create character devices from user space. My VUART kernel module should provide the

Re: Sharing device driver between kernel and user space

2011-09-20 Thread Hans Petter Selasky
On Tuesday 20 September 2011 20:35:57 geoffrey levand wrote: Currently i'm developing VUART device drivers for PS3 architecture. VUART is bi-directional FIFO queue between 2 logical partitions on PS3. I want to use the device in the kernel and user space. During system boot PS3 system has to

Re: Detach USB Device Driver and Attach it to ugen driver at runtime

2011-09-06 Thread Hans Petter Selasky
On Tuesday 06 September 2011 03:53:55 Daniel O'Connor wrote: On 05/09/2011, at 23:10, Daniel Grech wrote: Hi, I'm using libusb to gain access to raw USB Data from userspace. My problem is that this library only works with devices which are treated as generic devices (handled by the ugen

Re: Detach USB Device Driver and Attach it to ugen driver at runtime

2011-09-05 Thread Hans Petter Selasky
On Monday 05 September 2011 15:40:44 Daniel Grech wrote: Hi, I'm using libusb to gain access to raw USB Data from userspace. My problem is that this library only works with devices which are treated as generic devices (handled by the ugen driver). I need a mechanism that will allow me to

Re: USB Stack Hooking

2011-08-25 Thread Hans Petter Selasky
On Thursday 25 August 2011 13:04:26 Daniel Grech wrote: Hi, I need to write a kernel module that would hook onto some function at a low level in the USB stack in order to have direct access to the raw data that is received from the USB Controller Hardware. Has this ever been done before ? Any

Re: sane hal and configuring a Canon CanoScan N650U

2011-08-09 Thread Hans Petter Selasky
On Tuesday 09 August 2011 07:48:17 Robert McKenzie wrote: I am just wondering if anyone has any ideas as to who to get such a combination working as I have despite much effort, not been able to do so. The device is visible, the permissions for the device appear to be correct with the details

Re: State of FreeBSD/xbox

2011-06-26 Thread Hans Petter Selasky
On Sunday 26 June 2011 16:19:14 Chris Rees wrote: It was panicking on boot apparently, though kdb doesn't appear to work with the USB keyboard I was forced to use. If you give USB some time to enumerate I should work in kdb. --HPS ___

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Hans Petter Selasky
On Friday 24 June 2011 09:22:57 Robert Millan wrote: 2011/6/24 Hans Petter Selasky hsela...@c2i.net: Updated bus_auto.conf: http://hselasky.homeunix.org:8192/bus_auto.conf Very nice. But why not use variable names instead of hardcoding numbers? It makes the output much easier

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Hans Petter Selasky
On Friday 24 June 2011 14:59:37 Robert Millan wrote: 2011/6/24 Hans Petter Selasky hsela...@c2i.net: Very nice. But why not use variable names instead of hardcoding numbers? It makes the output much easier to understand. To save memory. I haven't inspected devd code, but I was under

Re: misc/157903: automated kldload for USB class devices

2011-06-23 Thread Hans Petter Selasky
On Thursday 23 June 2011 20:37:33 Warner Losh wrote: How'd you go about generating all these .conf files? I don't see where you defined USB_* as variables in them either. Maybe you could point me at it? Warner On Jun 23, 2011, at 10:00 AM, Robert Millan wrote: usb.diff Hi Warner,

Re: misc/157903: automated kldload for USB class devices

2011-06-23 Thread Hans Petter Selasky
Hi, I need some people testing the following patch: http://svn.freebsd.org/changeset/base/223486 svn up and build a new kernel. Try to remove all USB devices from kernel config except the host controllers and USB keyboard. Then put the following file into /etc/devd/

Re: misc/157903: automated kldload for USB class devices

2011-06-23 Thread Hans Petter Selasky
On Friday 24 June 2011 04:37:25 Hans Petter Selasky wrote: Hi, I need some people testing the following patch: http://svn.freebsd.org/changeset/base/223486 svn up and build a new kernel. Try to remove all USB devices from kernel config except the host controllers and USB keyboard

Re: Is there some implicit locking of device methods?

2011-04-26 Thread Hans Petter Selasky
On Tuesday 26 April 2011 11:52:27 Bartosz Fabianowski wrote: 1. attach() is running and executes make_dev(). Before attach() has finished, someone calls open() on the newly created device node and tries to read from a device that is not fully instantiated. 2. read() is running when the

Re: Is there some implicit locking of device methods?

2011-04-26 Thread Hans Petter Selasky
On Tuesday 26 April 2011 16:37:17 John Baldwin wrote: On Tuesday, April 26, 2011 10:27:14 am Warner Losh wrote: On Apr 26, 2011, at 7:42 AM, John Baldwin wrote: - The Giant protection for new-bus should prevent attach/detach from running concurrently I believe (either that or the

Re: Need an alternative to DELAY()

2011-04-11 Thread Hans Petter Selasky
On Monday 11 April 2011 03:59:13 dieter...@engineer.com wrote: FreeBSD 8.2 amd64 uniprocessor kernel: siisch1: DISCONNECT requested kernel: siisch1: SIIS reset... kernel: siisch1: siis_sata_connect() calling DELAY(1000) last message repeated 59 times kernel: siisch1: SATA connect

Re: ichsmb - correct locking strategy?

2011-02-18 Thread Hans Petter Selasky
On Friday 18 February 2011 15:10:47 Svatopluk Kraus wrote: Hi, I try to figure out locking strategy in FreeBSD and found 'ichsmb' device. There is a mutex which protects smb bus (ichsmb device). For example in ichsmb_readw() in sys/dev/ichsmb/ichsmb.c, the mutex is locked and a command is

Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Hans Petter Selasky
On Saturday 15 January 2011 22:55:30 Aryeh Friedman wrote: I am brand new to the whole android development thing... All I know is the phone some how makes it self look like a Linux machine to the outside world (how and such I have no clue)... when I connected it to USB I got: ugen5.2: HTC

Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Hans Petter Selasky
On Sunday 16 January 2011 11:49:28 Hans Petter Selasky wrote: if_cdce kernel, if_cdce kernel module --HPS ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd

Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Hans Petter Selasky
On Sunday 16 January 2011 12:59:17 Aryeh Friedman wrote: On Sun, Jan 16, 2011 at 6:48 AM, Hans Petter Selasky hsela...@c2i.net wrote: On Sunday 16 January 2011 11:49:28 Hans Petter Selasky wrote: if_cdce kernel, if_cdce kernel module --HPS flosoft-stable# kldload if_cdce

Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Hans Petter Selasky
On Sunday 16 January 2011 13:20:39 Aryeh Friedman wrote: On Sun, Jan 16, 2011 at 7:07 AM, Hans Petter Selasky hsela...@c2i.net wrote: On Sunday 16 January 2011 12:59:17 Aryeh Friedman wrote: On Sun, Jan 16, 2011 at 6:48 AM, Hans Petter Selasky hsela...@c2i.net wrote: On Sunday 16

Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Hans Petter Selasky
On Sunday 16 January 2011 13:30:33 Aryeh Friedman wrote: On Sun, Jan 16, 2011 at 7:27 AM, Hans Petter Selasky hsela...@c2i.net wrote: On Sunday 16 January 2011 13:20:39 Aryeh Friedman wrote: On Sun, Jan 16, 2011 at 7:07 AM, Hans Petter Selasky hsela...@c2i.net wrote: On Sunday 16

Re: MacBookPro7,1 and FreeBSD 8.1

2010-11-12 Thread Hans Petter Selasky
On Friday 12 November 2010 18:28:02 Veniamin Gvozdikov wrote: Hi everybody. I have the macbook and I tryed install FreeBSD 8.1. But I have froze loading. I have it's: with acpi (default loading) http://img203.imageshack.us/img203/2556/dscn2822u.jpg disable acpi

Re: disassembler

2010-08-27 Thread Hans Petter Selasky
On Friday 27 August 2010 10:27:38 Jim Bryant wrote: ah, ok. if it's a flash drive, the data may be toast. depends on how many dead cells there are. Hi, dd if=/dev/da0 of=/root/temp.mbr bs=512 count=1 Then use objcopy to convert /root/temp.mbr into something that objdump can read, and

Re: Not getting interrupts from PCI express slot

2010-08-10 Thread Hans Petter Selasky
On Wednesday 04 August 2010 23:24:12 Neel Natu wrote: Hi, On Wed, Aug 4, 2010 at 12:29 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Wednesday 04 August 2010 21:13:55 Neel Natu wrote: Hi, On Wed, Aug 4, 2010 at 10:18 AM, Hans Petter Selasky hsela...@c2i.net wrote: Hi

Not getting interrupts from PCI express slot

2010-08-04 Thread Hans Petter Selasky
Hi, I'm not getting any interrupts from a PCI express slot. When I insert a device, no attach event is generated. If the device is present during boot the device is fully detected, but still no IRQ's. Is there anything I can do or test? I'm running 8-stable on amd64. --HPS

Re: Not getting interrupts from PCI express slot

2010-08-04 Thread Hans Petter Selasky
On Wednesday 04 August 2010 21:13:55 Neel Natu wrote: Hi, On Wed, Aug 4, 2010 at 10:18 AM, Hans Petter Selasky hsela...@c2i.net wrote: Hi, I'm not getting any interrupts from a PCI express slot. When I insert a device, no attach event is generated. If the device is present during

Re: UCLogic tablets on FreeBSD

2010-07-23 Thread Hans Petter Selasky
On Thursday 22 July 2010 19:23:55 m...@aldan.algebra.com wrote: Hello! chuckr@ seems http://www.mail-archive.com/freebsd-hackers@freebsd.org/msg65714.html to have implemented support for UC-LOGIC tablets http://www.trust.com/products/group.aspx?coll=TABLETS for FreeBSD. I have a user with

Re: sysctl way too slow

2010-07-14 Thread Hans Petter Selasky
On Wednesday 14 July 2010 13:49:07 Atom Smasher wrote: http://smasher.org/tmp/zsh-bsd-sysctl-slow.png is there a way to get this information that doesn't take so long? the same info is available on linux via /sys and /proc and on comparable hardware, i can get the info about 100x faster.

Re: [HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1

2010-06-23 Thread Hans Petter Selasky
On Wednesday 23 June 2010 08:47:52 Andriy Gapon wrote: on 23/06/2010 03:38 Hans Petter Selasky said the following: Hi, I'm creating a new thread on this issue. On Tue, Jun 22, 2010 at 04:39:17PM -0400, Ryan Stone wrote: I saw similar behaviour a couple of years ago when I switched

Re: [HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1

2010-06-23 Thread Hans Petter Selasky
On Wednesday 23 June 2010 09:10:59 Andriy Gapon wrote: on 23/06/2010 10:02 Andriy Gapon said the following: I don't dispute that it is found broken in particular environments, I just think that the analysis could be incorrect. Ok. Which also brings the question - what arch(s) is

Re: building world with debugging symbols [broken?]

2010-06-22 Thread Hans Petter Selasky
the kernel tree no longer load. Any clues about what is wrong? Is this a compiler issue, or has it got to do with missing/wrong symbols? For example one guy writes: On Tue, 22 Jun 2010 19:11:09 +0200 Hans Petter Selasky hsela...@freebsd.org wrote: On Tuesday 22 June 2010 18:06:58 Ted Faber

[HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1

2010-06-22 Thread Hans Petter Selasky
Hi, I'm creating a new thread on this issue. On Tue, Jun 22, 2010 at 04:39:17PM -0400, Ryan Stone wrote: I saw similar behaviour a couple of years ago when I switched from using gcc 4.0.2 to gcc 4.3.0 to compile some out-of-tree KLD modules. The problem ended up being a change in the linker

lib32 and Makefiles

2010-06-04 Thread Hans Petter Selasky
Hi, What is the recommended way to detect a lib32 build on FreeBSD 8/9 from inside the Makefile? --HPS ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

[FreeBSD 8/9] [64-bit IOCTL] Using the USB stack from a 32-bit application under a 64-bit kernel.

2010-05-30 Thread Hans Petter Selasky
Hi, The USB team in FreeBSD has discussed this issue internally and would like some advice how to best resolve the 32 bit to 64 bit IOCTL conversion issue. Sometimes IOCTL requests contain userland pointers of type void *. When compiled on a 64-bit OS, sizeof(void *) is 8 bytes and when

Re: [FreeBSD 8/9] [64-bit IOCTL] Using the USB stack from a 32-bit application under a 64-bit kernel.

2010-05-30 Thread Hans Petter Selasky
On Monday 31 May 2010 00:19:55 Kostik Belousov wrote: Hi, Doesn't this change the existing ABI for 32bit platforms ? Yes, it changes the ABI. You may take a look at the sys/net/bpf.c, where the similar issue is handled for bpf ioctls. To keep the ABI intact, you would need to define the

Re: Deadlock between GEOM and devfs device destroy and process exit.

2010-02-01 Thread Hans Petter Selasky
On Monday 01 February 2010 10:23:34 Pawel Jakub Dawidek wrote: On Sat, Jan 30, 2010 at 12:44:51PM +0100, Pawel Jakub Dawidek wrote: Maybe I'll add how I understand what's going on: GEOM calls destroy_dev() while holding the topology lock. Destroy_dev() wants to destroy device, but can't

Re: USB floppy fails to attach

2009-10-28 Thread Hans Petter Selasky
On Wednesday 28 October 2009 20:46:20 Yuri wrote: My USB floppy dive fails to attach to device (see debug log below). VendorID=0x0409 ProductID=0x0040 not mentioned in /usr/src/sys/dev/usb/storage/umass.c Can this be that some that there is a simple fix for this, like adding a quirk? Yuri

Re: Help troubleshooting...

2009-10-26 Thread Hans Petter Selasky
On Monday 26 October 2009 01:05:03 n...@ever.sanda.gr.jp wrote: M. Warner Losh wrote: I have a usb stick (8GB) on it. This stick has about 5GB of junk on it at this point. I tried to do 'cat * /dev/null' recently, to measure how fast it goes. It got about 1GB into the drive and then

Re: Help troubleshooting...

2009-10-26 Thread Hans Petter Selasky
On Monday 26 October 2009 12:48:16 M. Warner Losh wrote: I know that the august 25th version failed badly when I tried to burn DVDs from a USB drive to a USB attached DVD burner. This used to work flawlessly. Hi, There has been a recent fix to the EHCI driver, which might affect Mass

Re: Help troubleshooting...

2009-10-26 Thread Hans Petter Selasky
On Monday 26 October 2009 12:48:16 M. Warner Losh wrote: In message: 200910260959.20772.hsela...@c2i.net Hans Petter Selasky hsela...@c2i.net writes: : On Monday 26 October 2009 01:05:03 n...@ever.sanda.gr.jp wrote: : M. Warner Losh wrote: : I have a usb stick (8GB

Re: Help troubleshooting...

2009-10-26 Thread Hans Petter Selasky
On Monday 26 October 2009 14:01:17 M. Warner Losh wrote: In message: 200910261258.08135.hsela...@c2i.net Hans Petter Selasky hsela...@c2i.net writes: : On Monday 26 October 2009 12:48:16 M. Warner Losh wrote: : I know that the august 25th version failed badly when I tried to burn

Re: Help troubleshooting...

2009-10-26 Thread Hans Petter Selasky
On Monday 26 October 2009 14:37:59 M. Warner Losh wrote: In message: 86skd6cmm8@ds4.des.no Dag-Erling_Smørgrav d...@des.no writes: : M. Warner Losh i...@bsdimp.com writes: : FreeBSD lighthouse 9.0-CURRENT FreeBSD 9.0-CURRENT #41 r185338:198411M: : Fri Oct 23 10:08:48 MDT

Re: Help with device drivers

2009-08-11 Thread Hans Petter Selasky
On Tuesday 11 August 2009 08:06:26 Krassimir Slavchev wrote: Hans Petter Selasky wrote: On Monday 10 August 2009 13:39:31 Krassimir Slavchev wrote: If I try to open the device from userland with: fd = open(/dev/xxx0, O_RDWR) it fails because open() tries to open the device for reading

Re: Help with device drivers

2009-08-10 Thread Hans Petter Selasky
On Monday 10 August 2009 13:39:31 Krassimir Slavchev wrote: If I try to open the device from userland with: fd = open(/dev/xxx0, O_RDWR) it fails because open() tries to open the device for reading first and then for writing. There is a bug in the code. If you open using read+write flags, then

Re: improve my USB knowledge

2009-05-25 Thread Hans Petter Selasky
On Monday 25 May 2009, Rodrigo OSORIO (ros) wrote: Hi fellow hackers, This weekend I try to increase my knowledge about USB devices - I start from 0 - playing with one of this funny low cost USB gadgets. I read few articles about writing USB drivers, specially the Linux USB development

Which priority do taskqueues have?

2009-05-19 Thread Hans Petter Selasky
Hi, I'm about to factor out some taskqueue-alike code from USB(II) and I need to know at which priority taskqueues are running. I know there is a priority argument which can be specified for TASK_INIT(), but tracing in the code shows that this is just a queue-priority. At which priority level

Re: undetected umass device

2009-05-08 Thread Hans Petter Selasky
On Friday 08 May 2009, Danny Braniss wrote: Hi, this is a: USB to Parallel-ATA bridge(0x0c05), Sunplus Technology Inc.(0x04fc) or in english, a nifty dongle that can be connected to ata/sata disk, but umass fails to detected it fully, and detaches it. any hints? quircks? thanks,

Re: generalizing fd allocation code to id allocation

2009-02-11 Thread Hans Petter Selasky
On Wednesday 11 February 2009, Andriy Gapon wrote: My nose has just been rubbed into alloc_unr(9) :) Thanks, Roman! The only problem about alloc_unr() is that you cannot allocate multiple contiguous units? --HPS ___ freebsd-hackers@freebsd.org

Re: write(2) to /dev/ad4 = EINVAL

2009-01-26 Thread Hans Petter Selasky
On Monday 26 January 2009, Lukasz Jaroszewski wrote: Hi, after opening /dev/ad4 with success for O_RDWR, I am getting [EINVAL] from write(2), which according to man 2 write, means `` [EINVAL] The pointer associated with d was negative.'', as you can see below it is not true, I

Re: write(2) to /dev/ad4 = EINVAL

2009-01-26 Thread Hans Petter Selasky
On Monday 26 January 2009, Lukasz Jaroszewski wrote: 2009/1/26 Hans Petter Selasky hsela...@c2i.net: On Monday 26 January 2009, Lukasz Jaroszewski wrote: Hi, after opening /dev/ad4 with success for O_RDWR, I am getting [EINVAL] from write(2), which according to man 2 write, means

Re: write(2) to /dev/ad4 = EINVAL

2009-01-26 Thread Hans Petter Selasky
On Monday 26 January 2009, Lukasz Jaroszewski wrote: 2009/1/26 Christoph Mallon christoph.mal...@gmx.de: Lukasz Jaroszewski schrieb: 2009/1/26 Hans Petter Selasky hsela...@c2i.net: On Monday 26 January 2009, Lukasz Jaroszewski wrote: Hi, It would be helpful, if you showed the actual

Re: device driver: cdesw questions?

2009-01-21 Thread Hans Petter Selasky
On Wednesday 21 January 2009, Andriy Gapon wrote: Question 3: is it ok to use M_WAITOK in pci attach routine? Yes. --HPS ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any

Re: panic by unlocking of mutex in KLD

2009-01-12 Thread Hans Petter Selasky
On Monday 12 January 2009, Alexej Sokolov wrote: Hello, by unloading of folowing module I have kernel panic. I would like to get any explanation about my mistake. #include sys/param.h #include sys/module.h #include sys/kernel.h #include sys/systm.h #include sys/queue.h #include

  1   2   3   >