Q:uio_generic_pci

2018-02-06 Thread Ran Shalit
Hello, I would please like to ask about uio_generic_pci : 1. I have some misunderstanding as to how to set irq from userspace. Is there anything similar to echo "3" > /sys/bus/pci/drivers/uio_pci_generic/irq ? In all documentation which talk about it, it is not mentioned (or I don't find it): ht

Must we close serial telnet connection for kgdb to work ?

2015-10-01 Thread Ran Shalit
Hello, I've successfuly managed to work with kgdb on linux: 3.14.25 But it seems that I must close the serial connection (which uses also for stdout print), in order for the kgdb to manage its communication ? I can use telnet instead, but still I thought that kgdb can handle both the kgdb connecti

kernel debug - "Reply contains invalid hex digit"

2015-08-20 Thread Ran Shalit
Hello, I'm trying to debug kernel (vmlinux) with kgdb I am using gdb version 7.9.1. These are the logs in eclipse (host) and in target: In eclipse I see the following: Python Exception No module named gdb: /home/ubuntu/dtu/jjj/gdb-7.9.1/gdb/gdb: warning: Could not load the Python gdb module f

Device tree along side with manually configuration of some interface

2015-08-09 Thread Ran Shalit
Hello, I would like to ask if there is a way to manually configure interfaces along side with the device tree. I'll start from beginning: I have tried to configure NOR flash in device tree, but it is not detected (I get no /dev/mtdx) I wanted as alternative to try to configure it manually, in som

get pointer to "struct device" for current module

2015-03-09 Thread Ran Shalit
Hello, Is there a way to get pointer to "struct device" for current module in kernel driver ? Thank you, Ran -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-in

dev_get_by_name example

2015-03-08 Thread Ran Shalit
Hello, How should we use dev_get_by_name ? What should be the 1st parameter should it be a pointer ? (without allocation required) ? struct net_device *dev_get_by_name(struct net *net, const char *name); I get an exception when using it for unallocated pointer in 1st argument, but succeeded with t

smsc911x driver - suspend/resume

2015-03-06 Thread Ran Shalit
Hello, I try to figure out when the resume function is called in smsc911x driver: http://lxr.free-electrons.com/source/drivers/net/ethernet/smsc/smsc911x.c According to datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/9220.pdf There is the following sequence: 1. host set mode to D1 (sleep

Altera FPGA programming

2015-02-02 Thread Ran Shalit
Hello, I have found the following link for altera fpga programming driver: http://lwn.net/Articles/421434/ Is there any example or readme how to use the Altera FPGA or how to access it ? Is it the best way for jtag programming available in linux ? I try to use it with some GPIO in chip (not jtag

Altera FPGA

2015-02-01 Thread Ran Shalit
Hello, Is there any example or readme how to use the Altera FPGA ? I try to use it with some GPIO in chip. Thank you, Ran -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org