Tracing SIGKILL, is that possible?

2013-02-18 Thread Daniel.
Is there a way to track signals, specially SIGKILL. I would like to know if some process dies because reach some resource limit, because an OMM error or something likewise.. Cheers -- "Do or do not. There is no try" Yoda Master ___ Kernelnewbies mai

Re: Addning new protocol and new driver on Linux

2015-05-18 Thread Daniel.
A new topic to the list :) - Write netlink api for access with iproute2 Cheers, 2015-05-18 17:21 GMT-03:00 Daniel. : > Hi all! > > I have a driver for nordic nRF24L01+ module: > http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01P > > I'm looking for a requirements

Addning new protocol and new driver on Linux

2015-05-18 Thread Daniel.
Hi all! I have a driver for nordic nRF24L01+ module: http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01P I'm looking for a requirements list of what I need to do. For now I have this topics - Write driver using kernel NAPI (I already have a driver working with cdev API) - Write new protoc

Linux's MMC driver and SDCard life time doubt

2015-06-09 Thread Daniel.
Hi for all, I have an application running on top of an sd card formated with vfat. This application is Java and uses ActiveMQ on same vfat sdcard filesystem, the ActiveMQ generates a huge I/O on sdcard. I know that SDCards sectors have an specific writing limits. I want to know if Linux's mmc dri

Using gpio from device tree on platform devices.

2015-08-20 Thread Daniel.
Hi all, I'm trying to migrate a driver from board files to device tree. I've added the gpios to device tree. My device is loaded automatically, this is nice, but I'm facing problems while getting gpio from device tree using of_get_property(). Here is the device tree node: powerfailure {

Re: Using gpio from device tree on platform devices.

2015-08-21 Thread Daniel.
Hi Victor, the of_get_named_gpio works fine. Thank you so much! I'll take a look at gpio-poweroff, this should cut my code by half :) Best regards, - dhs 2015-08-21 4:10 GMT-03:00 : > On 15-08-21 12:29:49, victorascr...@gmail.com wrote: >> On 15-08-20 17:53:27, Daniel. wrot

SPI operations on interrupt context!?

2015-09-08 Thread Daniel.
Hi all, I'm dealing with a SPI driver and I have a doubt. I need to read and write data to spi (registers and values) inside interrupt handler. I want to know if this pattern is safe or if I'll face problems with it. This code is being added to gpio-mcp23s08.c driver to handle IRQ and save INTCAP

Re: SPI operations on interrupt context!?

2015-09-08 Thread Daniel.
singh : > > > On Tue, Sep 8, 2015 at 10:19 AM, Daniel. wrote: >> >> Hi all, >> >> I'm dealing with a SPI driver and I have a doubt. I need to read and write >> data to spi (registers and values) inside interrupt handler. I want to know >> if this patte

Re: SPI operations on interrupt context!?

2015-09-09 Thread Daniel.
roller) code/clock/rates etc. Cheers, - dhs 2015-09-08 18:23 GMT-03:00 Daniel. : > Even spi_async sleeps? I thought that spi_async wouldn't sleep :/ > > I have a board with an MCP23S17 gpio expander that is used as an > digital input. I need to notify my application every time that an

Re: SPI operations on interrupt context!?

2015-09-09 Thread Daniel.
I also found that we having problems with MCP supply, so this is it! Thanks anish for your reply! Cheers, - dhs 2015-09-09 15:30 GMT-03:00 Daniel. : > I've checked the iomux configuration, there was some pins miss > configured. Anyway I'm still losing IRQs. But now I have s

Accessing pointers inside struct passed as argument to ioctl calls

2015-09-28 Thread Daniel.
Hi all, I have a doubt about using pointers inside structs that are passed (as pointers) to ioctl argument. Since pointers passed from userspace can't be trusted, I need to copy they to kernel before accessing they. In this case I have a pointer inside a struct that is passed to the ioctl call also

Re: Accessing pointers inside struct passed as argument to ioctl calls

2015-09-28 Thread Daniel.
So a > #define would be signed, but if you change the type of int tx_siz, be > careful. Also, likely you don't want negative buffer sizes. size_t or > uint16_t should suit your purposes. > > On Mon, Sep 28, 2015 at 12:51 PM, Daniel. wrote: > >> Hi all, I have a doubt abo

Re: Accessing pointers inside struct passed as argument to ioctl calls

2015-09-28 Thread Daniel.
ic. I may use this non copying aproach to exchange lot of frames without copying. This would improve driver's performance. :) Best regards! -dhs Em 28/09/2015 17:08, "Yann Droneaud" escreveu: > Hi, > > Le lundi 28 septembre 2015 à 13:51 -0300, Daniel. a écrit : > >

make headers_install for out-of-tree modules

2015-10-07 Thread Daniel.
Hi all, I'm trying to install headers from out-of-tree module. I've writed this[1] Makefile. I have Kbuild files with header-y tokens poiting for propper folders and files. When I run "make headers_install" I got this[2] error message, [1] http://pastebin.com/9f3kYT8k [2] http://pastebin.com/yfi

Re: make headers_install for out-of-tree modules

2015-10-07 Thread Daniel.
le? 2015-10-07 10:46 GMT-03:00 Daniel. : > Hi all, > > I'm trying to install headers from out-of-tree module. I've writed > this[1] Makefile. I have Kbuild files with header-y tokens poiting for > propper folders and files. When I run "make headers_install" I got

Re: make headers_install for out-of-tree modules

2015-10-08 Thread Daniel.
hilst/nrf24/src/1b63724a4bcf181568a0970133d1e51a5883ad9f/include/linux/nrf24.h?at=master&fileviewer=file-view-default Best regards, 2015-10-07 13:09 GMT-03:00 Greg KH : > On Wed, Oct 07, 2015 at 10:51:25AM -0300, Daniel. wrote: >> Uhh, as I see from docs, this isn't supported, >> >> --- 2.3 Targets &

spi_async inside IRQ handler and spin_(un)lock_irq* doubt.

2015-11-11 Thread Daniel.
Hi everybody! I'm using an gpio expansion called MCP23s17 from Microchip as a digital input device. There are 6 input ports at my device. The MCP is configured to generate an interrupt at input state change (from 0 to 1, or 1 to 0, what ever), the interrupts are disabled on MCP until the INTCAP re

Developing environments used for kernel development

2015-12-22 Thread Daniel.
My boss came to my desk today raiging that I should use more productive tools for developing. Well I don't want to begin an editor war but, yes, I use emacs. I used to use vim before but the integration of emacs and gdb has caught my attention. To be clear, as "more productive tools" he understand

Re: Developing environments used for kernel development

2015-12-22 Thread Daniel.
r big projects. Tried a few LLVM code browsers but none > was good enough. > Vim for minor modifications. > > Thanks > > On Tue, Dec 22, 2015 at 5:27 PM, Daniel. wrote: > >> My boss came to my desk today raiging that I should use more productive >> tools for develop

Re: Developing environments used for kernel development

2015-12-22 Thread Daniel.
I rarely use it too, but some times its worth, when you get something that simply crash, I do a bt to get an starting point :) Em 22/12/2015 19:43, "Lucas Tanure" escreveu: > Hi, > > No, I don't use gdb inside eclipse. I rarely use gdb. > > On Tue, Dec 22, 2

Re: Developing environments used for kernel development

2015-12-22 Thread Daniel.
completion.. I'll give vim a second chance :) Regards Em 22/12/2015 20:15, "Clemens Gruber" escreveu: > Hi Daniel, > > > My boss came to my desk today raiging that I should use more productive > > tools for developing. Well I don't want to begin an editor w

Re: Developing environments used for kernel development

2015-12-22 Thread Daniel.
him happy > and then do the real work using the tried and true command line tools in > another desktop. > > > > Good luck, > > > > Jeff Haran > > > > > > > > From: kernelnewbies-boun...@kernelnewbies.org > [mailto:kernelnewbies-boun...@kernel

Re: Developing environments used for kernel development

2015-12-23 Thread Daniel.
Well, no body except Lucas, but I also had never researched for this like I'm doing right now. I think that the vim is still the more used editor for C programming on Linux. Regards - dhs 2015-12-22 23:18 GMT-02:00 Daniel. : > Hey Jeff, thanks for the reply, what I realy don't li

Re: Developing environments used for kernel development

2015-12-23 Thread Daniel.
startup time. Vim has everything that a good editor needs, emacs has this a lot of lots of more, this make it a little fat. So we have 3 vim users, one emacs and one eclipse so far. Best Regards, - dhs 2015-12-23 12:45 GMT-02:00 amit mehta : > On Wed, Dec 23, 2015 at 3:30 PM, Daniel. wrote: &g

Re: Developing environments used for kernel development

2015-12-24 Thread Daniel.
I had heard about emacs server, but never tried it.. This should fix the starting time, but not the learning curve :) Regards, Em 24/12/2015 09:59, "Andrey Skvortsov" escreveu: > On 22 Dec, Daniel. wrote: > > I was thinking about back to vim, it starts so fast and has everyt

Re: Developing environments used for kernel development

2015-12-24 Thread Daniel.
VI EMAC war. > > Ruben > > > On Thu, Dec 24, 2015 at 02:59:13PM +0300, Andrey Skvortsov wrote: > > On 22 Dec, Daniel. wrote: > > > I was thinking about back to vim, it starts so fast and has everything > you > > > need in tree letters, and the completion works out

Re: Developing environments used for kernel development

2015-12-28 Thread Daniel.
Is there anybody using cscope inside vim? Is there an alternative keybinds for the :cs commands? Regards, - dhs 2015-12-25 15:14 GMT-02:00 Raymond Jennings : > On Tue, Dec 22, 2015 at 11:27 AM, Daniel. wrote: >> >> My boss came to my desk today raiging that I should use more prod

Re: Developing environments used for kernel development

2015-12-28 Thread Daniel.
This is fun: http://vimdoc.sourceforge.net/htmldoc/usr_41.html#script :D 2015-12-28 12:05 GMT-02:00 Fernando Apesteguía : > > El 28/12/2015 13:58, "Manuel Pégourié-Gonnard" escribió: >> >> Hi, >> >> On 28/12/2015 13:28, Daniel. wrote: >> > Is t

Re: Developing environments used for kernel development

2015-12-28 Thread Daniel.
h. While I can get a diff from file with %!git diff % at vim, I can't jump to modification on file directly from the patch window. Any ideas on how to achieve this? Regards, 2015-12-28 17:11 GMT-02:00 Daniel. : > This is fun: http://vimdoc.sourceforge.net/htmldoc/usr_41.html#script :D &g

Re: Developing environments used for kernel development

2016-01-14 Thread Daniel.
ind (C-M-b), so I'm loking for more alternatives. Best regards, 2016-01-13 22:37 GMT-02:00 Geyslan G. Bem : > 2016-01-13 21:23 GMT-03:00 Ismael Luceno : > > On Thu, Dec 24, 2015 at 11:57:32AM -0200, Daniel. wrote: > >> I had heard about emacs server, but never tried it.

Re: Developing environments used for kernel development

2016-01-14 Thread Daniel.
ded autocompletion to navigate that mess. Clang parsing seems fast to me, I've tried to avoid it but, well, it worked fine... Regards, 2016-01-14 12:26 GMT-02:00 Geyslan G. Bem : > 2016-01-14 10:06 GMT-03:00 Daniel. : > > Thanks for the tip, I've past the last month trying vim a

Re: Developing environments used for kernel development

2016-01-14 Thread Daniel.
clang is used only for parsing, nothing to do with compilation :) Here it is :) 2016-01-14 13:35 GMT-02:00 Geyslan G. Bem : > 2016-01-14 12:23 GMT-03:00 Daniel. : > > I've tried using semantic mode but it gives me ""# - > > Arithmetic error"*" all the ti

Re: Developing environments used for kernel development

2016-01-14 Thread Daniel.
ops, forget the link: http://pastebin.com/uQkErV46 Cheers, 2016-01-14 14:28 GMT-02:00 Daniel. : > clang is used only for parsing, nothing to do with compilation :) > > Here it is :) > > 2016-01-14 13:35 GMT-02:00 Geyslan G. Bem : > >> 2016-01-14 12:23 GMT-03:00 Daniel.

Re: Developing environments used for kernel development

2016-01-14 Thread Daniel.
ching for a better keybind. Maybe creating an sparse keymap and making it active with some avaible keystroke, swithing window and desabling the keymap when first unknown key is pressed, but I didn't have time to research on that yet :) Cheers, 2016-01-14 14:28 GMT-02:00 Daniel. : > ops, fo

Re: Developing environments used for kernel development

2016-01-14 Thread Daniel.
Its autoindentation is a little intrusive, but at the coding style at kernel.org there is some code that fix that :) 2016-01-14 17:19 GMT-02:00 Geyslan G. Bem : > 2015-12-22 22:18 GMT-03:00 Daniel. : > > Hey Jeff, thanks for the reply, what I realy don't like in IDEs is tying &g

how to use wait_event_interruptible_timeout with less than 1 jiffie timeout?

2016-01-19 Thread Daniel.
Hi everybody, I have some code that convert an timeout comming from userspace (in ms) to jiffies prior passing to wait_event_interrupitible_timeout(). The code looks like this: unsigned long tout = user.timeout * HZ / 1000; /* convert from ms to jiffie */ int status = wait_event_interruptible_tim

spi_master->rt member, what changes when you change the priority of spi workers?

2016-01-25 Thread Daniel.
Hi all, I was testing some driver that I have for nRF24L01+. ATM the driver sends a frame a changes from TX to RX the fastest possible. The switching from TX to RX is maded at hard IRQ, the rf_hard_irq() sends one message, two spi_transfers to program the nRF24L01+ to RX. The messages are sended as

Re: Books Regarding Linux Kernel

2016-02-22 Thread Daniel.
There is Understanding the Linux Kernel, Daniel P. Bovet, Marco Cesati LKD by Love is a really good book, I love it! LDD3 can be found at http://www.makelinux.net/ldd3/ I suggest the documentation from the source too: https://www.kernel.org/doc/Documentation/ Best regards and good reading

Adding new protocol to linux.

2016-03-25 Thread Daniel.
Hi everybody, I'm planing to write a socket API for Nordic's nRF24L01+ and I was digging on socket code and find all supported protocols at include/linux/socket.h with all that #define AF_x y. So my questions are: 1) Is it possible to write a new protocol for linux with an out of tree module with

Re: Adding new protocol to linux.

2016-03-26 Thread Daniel
realy happens.. I am wondering if is possible to achieve my goal with and only with out of tree module. I'm planing to get this merged at main tree anyway, but first I would like to keep it out ou tree until is ready... Cheers,  2016-03-26 8:04 GMT-03:00 Rami Rosen : > Hi Daniel, > > Fo

Res: Adding new protocol to linux.

2016-03-26 Thread Daniel
Enviado do meu smartphone BlackBerry 10.   Mensagem original   De: valdis.kletni...@vt.edu Enviada: sábado, 26 de março de 2016 16:59 Para: Daniel. Cc: kernelnewbies Assunto: Re: Adding new protocol to linux. On Fri, 25 Mar 2016 23:00:48 -0300, "Daniel." said: > Hi everybody, >

Re: Adding new protocol to linux.

2016-03-28 Thread Daniel.
Hey everybody, I see that sockets, protocols and network device drivers are pieces of a same puzzle. So after some digging and thinking I'm considering write the driver in such way that it only deals with data link layer, no socket bits. It should sit at 2nd OSI layer and let routing and segmenting

Re: single, comprehensive kernel data types document?

2016-04-15 Thread Daniel.
Hi John stdint.h is part of standard headers (C99?), I think you shouldn't use standard headers for kernel when there are such "kernel headers" for same proprose. If the developers created that specific headers for kernel, they should have a good reason for it. I have a pertinent question on this

Re: single, comprehensive kernel data types document?

2016-04-15 Thread Daniel.
2016-04-15 10:55 GMT-03:00 Greg KH : > On Fri, Apr 15, 2016 at 10:09:35AM -0300, Daniel. wrote: >> I've been using *aways* u8, u16, u32 in kernel code (driver code) and >> *aways* __u8, __u16, __u32 >> for code that goes to both (usualy ioctl definition headers). What is

Res: anyone aware of a high availability setup that relies on fully redundant install?

2016-04-17 Thread Daniel
‎This depends on environment proposes. It,s aways a good thing to have a recovery boot option that can boot a minimum shell to dignoses whats going wrong but a full instalation for that is even useful?? IMHO is not a good idea, since you will have to maintain two instalations per hardware.  ‎ Yo

if block style when condition spams to multiple lines.

2016-05-19 Thread Daniel.
What is the preferred way to ident if statement when the condition spams to multiple lines, ex: if (cond1 && cond2 && cond3) { ... ... } or if (cond1 && cond2 && cond3) { ... ... } or if only one statement inside body if (cond1 && cond2 && cond3

Re: What is the point of this function?

2016-06-22 Thread Daniel.
The function body you see will be use only when CONFIG_SMP is not present. Take a look at https://www.kernel.org/doc/Documentation/CodingStyle Chapter 20: Conditional Compilation Regards, 2016-06-21 8:56 GMT-03:00 Andrea Benelli : > So, it's just an override? > Why return true and not false? > >

Re: spi can't read more than 64 bytes

2016-07-06 Thread Daniel.
Hi, isn't it possible that your hal_frame_read be called again prior rf_rx_completion_handler is called, and because of this calling spi_message_init on a spi_message that is in spi queue yet? 2016-07-06 10:25 GMT-03:00 Moti Cohen : > Hi all, > > > > I'm trying to write a kernel device driver for

Interrutp from USB I/O Expander.

2016-07-19 Thread Daniel.
Hi everybody. I know that there are some GPIO lines that needs sleeping to get actived/deactived, this is why we have the gpio_cansleep_*() functions. So, I'm planing using the Microchip MCP2210 which act as USB->SPI bridge. The problem is that the SPI slave device has two extra lines, one for IR

Re: doubt on schedule_work() - work task getting scheduled lately

2016-07-29 Thread Daniel.
Nice tool @Ricardo! 2016-07-29 10:48 GMT-03:00 Ricardo Ribalda Delgado : > you can use http://lttng.org/ for analyzing this > > Regards! > > On Fri, Jul 29, 2016 at 12:44 PM, Pranay Srivastava wrote: >> On Fri, Jul 29, 2016 at 4:02 PM, Muni Sekhar wrote: >>> Hi All, >>> >>> I have a doubt regard

Re: doubt on schedule_work() - work task getting scheduled lately

2016-08-01 Thread Daniel.
thing more complex. If not you can enable FTRACE and generate trace output with delta timestamps on it, event for interrupts :) Best regards, 2016-08-01 7:32 GMT-03:00 Muni Sekhar : > On Fri, Jul 29, 2016 at 9:05 PM, Daniel. wrote: >> Nice tool @Ricardo! >> >> 2016-07-

Re: Stupid question regarding bogomips and udelay()

2016-08-02 Thread Daniel.
I *guess* that the value is calculated at boot, in real mode (for x86) when no clock variation takes place. Take a look at the source... :) http://lxr.free-electrons.com/source/arch/x86/realmode/rm/wakemain.c?v=4.0#L4 It brings me to some io magic which I can't grasp :) good luck! Regards, 2016

spi device probe not carring device tree pointer, how to troubleshoot?

2016-08-04 Thread Daniel.
Hi everybody. I'm trying to get one of my drivers working on top of this[1]. My driver gets probed but spi->dev.of_node is NULL. Does anybody knows where spi->dev.of_node gets setted!? Here is a sample [2]. [1] https://github.com/daniel-santos/mcp2210-linux [2] https://gist.gith

Re: doubt on schedule_work() - work task getting scheduled lately

2016-08-05 Thread Daniel.
ftrace :) 2016-08-05 4:22 GMT-03:00 Muni Sekhar : > On Mon, Aug 1, 2016 at 6:34 PM, Daniel. wrote: >> Did you tried ftrace? >> https://www.kernel.org/doc/Documentation/trace/ftrace.txt >> >> I've been using this to measure some latencies. The problem here is &

Re: Kernel Panic - not syncing: Attempted to kill init! exitcode=0x0000000b

2016-08-22 Thread Daniel.
The first process that the *nix starts after booting up is init. The init process which has pid 1 live for as long as the host do not reboot. That message means that something has made init exit prematurely. Check your init.d, systemd or whatever init system you're using... Regards, 2016-08-22 9:

Re: Network unreachable error when sending mail from mutt

2016-09-05 Thread Daniel.
I think this is not the best place to ask, you should look for some network mail list, but, ... this type of message means that the network layer can't find a route to google's smtp. See if you can ping that addresses, probally no.. Looking at that timeout message, yes it seems that you're being tr

Re: Request Chinese mail list and FrontPage

2016-09-06 Thread Daniel.
I agree with Ruben We're opensource developers, when we are not happy with something, we fork it... lol. Still, I'm brazillian and have already found other brazillians at this list. When I want to talk in portuguese I send a message directly to they, no problem at all. If you see some good chinese

Getting stacktrace for userspace applications on crash(SIGSEGV)

2016-09-09 Thread Daniel.
Hi everybody, I'm debugging a library that implement some nasty protocol. This library is used by some JNI library which exports the native library to Java world. By the way I'm running on ARMv7. Well, some times, at random times, that library crashes. The problem is that I can't get stacktrace.

Re: Getting stacktrace for userspace applications on crash(SIGSEGV)

2016-09-09 Thread Daniel.
> > Regards, > Rami Rosen > http://ramirose.wix.com/ramirosen > > > On 9 September 2016 at 21:21, Daniel. wrote: >> Hi everybody, >> >> I'm debugging a library that implement some nasty protocol. This >> library is used by some JNI library which exports the nativ

Re: Getting stacktrace for userspace applications on crash(SIGSEGV)

2016-09-09 Thread Daniel.
e and try ? I used dump_stack() in the past many times and it >> worked for me. IIRC, kernel hacking->Kernel debugging was selected in >> my kernekl config, and I did not had to to anything else >> >> Regards, >> Rami Rosen >> http://ramirose.wix.com/ra

Re: Getting stacktrace for userspace applications on crash(SIGSEGV)

2016-09-09 Thread Daniel.
Yeap it is. The protocol takes 4 threads the other are user's threads. Still, when getting some core dump and fatal error log I was expecting to get backtrace from the thread responsible for the segmentation fault? Am I wrong? Thanks for the help and best regards!!! 2016-09-09 18:42 GMT-03:00 Joh

Re: Extend device driver?

2016-09-10 Thread Daniel.
You may want to look at http://www.signal11.us/oss/hidapi/ too, it has nice interface to HID device and supports libusb and hidraw backends (y) Regards, 2016-09-10 12:14 GMT-03:00 Greg KH : > On Sat, Sep 10, 2016 at 04:41:34PM +0200, Pol Eyschen wrote: >> Hi everyone, >> >> I want to implement so

Re: Getting stacktrace for userspace applications on crash(SIGSEGV)

2016-09-12 Thread Daniel.
Ohhh, I see, Thansk Johannes, now everything make sense. If this was a post I would mark it as SOLVED :) Best regards, 2016-09-11 14:39 GMT-03:00 Johannes Thoma : > Hi, > > Am 10.09.16 um 05:18 schrieb Daniel.: >> >> Yeap it is. The protocol takes 4 threads the other are use

ndo_start_xmit what to return when packet is too big!?

2016-09-19 Thread Daniel.
Hi everybody, I was looking at network chapter of LDD3. The .ndo_start_xmit member of struct net_device_ops should return netdev_tx_t which are: enum netdev_tx { __NETDEV_TX_MIN = INT_MIN, /* make sure enum is signed */ NETDEV_TX_OK = 0x00,/* driver took care of pa

Re: RF class driver

2016-09-21 Thread Daniel.
I have a driver for nRF24L01+ (not L0) I'm planing to submit it to main line but before that I was trying to make it a network device. My dificult was to make it fit in the ethernet world since it does not have anything in common to a network card. This one can be found here: https://bitbucket.org/

Re: RF class driver

2016-09-21 Thread Daniel.
F devices you’re working with, but it is a case > where a network interface was created for devices that are very different > than Ethernet. > > Shaun > > On 9/21/16, 8:43 AM, "kernelnewbies-boun...@kernelnewbies.org on behalf of > Daniel." danielhi...@gmail.com>

Re: RF class driver

2016-09-21 Thread Daniel.
I was trying to make it out-of-tree, but seems not possible or not easy spottable for me :) 2016-09-21 10:05 GMT-03:00 Daniel. : > I look into it, > > Still I need to patch if_ether.h and add some ETH_P_* > > 2016-09-21 9:57 GMT-03:00 Hayward, Shaun : >> It might be worth

Re: SMP on different cores.

2016-09-22 Thread Daniel.
s/iMX6/iMX7/ 2016-09-22 10:04 GMT-03:00 Daniel. : > I know about i.MX6 which has Cortex-A7 + Cortex-M4... but I don't > think that M4 is handled by Linux but by some RTOS > > 2016-09-22 9:17 GMT-03:00 Greg KH : >> On Thu, Sep 22, 2016 at 04:46:12PM +0530, Madhu K wrote: &

Re: SMP on different cores.

2016-09-22 Thread Daniel.
I know about i.MX6 which has Cortex-A7 + Cortex-M4... but I don't think that M4 is handled by Linux but by some RTOS 2016-09-22 9:17 GMT-03:00 Greg KH : > On Thu, Sep 22, 2016 at 04:46:12PM +0530, Madhu K wrote: >> Hi All, >> >> If i want to enable SMP, cores should be of same version( ex: both >>

Re: Char device write repeating

2016-10-04 Thread Daniel.
Because the libc is calling it again based on what has been passed as argument and what was received as return value. Here is one example https://gist.github.com/gkos/5479135. I don't really know if this code is working since I made it a long time ago. Regards, 2016-10-04 12:05 GMT-03:00 Greg KH

Re: SocketCAN Driver

2016-10-17 Thread Daniel.
CAN drivers can be found here; http://lxr.free-electrons.com/source/drivers/net/can/ The device driver interface is at dev.c AFAIK the only other files referencing to can outside of drivers/ folder is http://lxr.free-electrons.com/source/include/uapi/linux/if_ether.h#L120 You may want to look at

Re: SocketCAN Driver

2016-10-17 Thread Daniel.
If you're dealing with network drivers you will want to know about socket buffs: http://www.linuxjournal.com/article/1312 LDD3 has a chapter for network drivers too: http://www.makelinux.net/ldd3/chp-17 Regards :) 2016-10-17 10:22 GMT-02:00 Daniel. : > CAN drivers can be found he

Re: QEMU?

2016-10-19 Thread Daniel.
Why not use networking? 2016-10-19 8:53 GMT-02:00 Kenneth Adam Miller : > So, we can use qemu within our development system here, but the > problem is we have something that is a bit specialized in that the > machines talk to one another over a special interface. It's a bit like > named pipes, and

Re: QEMU?

2016-10-19 Thread Daniel.
Did you see this? http://fedoraproject.org/wiki/Features/VirtioSerial Regards, 2016-10-19 14:24 GMT-02:00 Kenneth Adam Miller : > That doesn't work for our use case. We have special hardware for our use > case. > > > On Oct 19, 2016 12:21 PM, "Daniel." wrote

What subsystem!?

2016-10-25 Thread Daniel.
Hi everybody, I've been studying linux for some time now. I still see my self as an begginer, but that's not a bad thing. I struggling to decide what subsystem to focus right know. I have three options and would like to know what people think about, since listening (or reading) other people aways

Re: What subsystem!?

2016-10-25 Thread Daniel.
10:33:47 -0200, "Daniel." said: >> I've been studying linux for some time now. I still see my self as an >> begginer, but that's not a bad thing. I struggling to decide what >> subsystem to focus right know. > > I've said it before, and I'll say it

Re: omap watchdog

2016-10-27 Thread Daniel.
Seems a bug to me, you should post it to linux-omap :) Regards, 2016-10-27 6:14 GMT-02:00 Cor Peters : > Hello everybody > > I was looking into an issue with the omap-wdt.c. The watchdog driver not is > reporting a different boot status when a reset is being triggered by the > watchdog. > > >Fro

Re: Cannot boot to compiled kernel

2016-11-02 Thread Daniel.
2016-11-02 9:27 GMT-02:00 Quentin Lambert : > Hi, > On 11/02/2016 12:05 PM, Daniel Bokser wrote: > > Now I am thrown into the recovery shell with an 'Unable to find root > device /dev/sdc2' (my SSD). > > The real strange thing is that the (PS/2) keyboard does

Re: Cannot boot to compiled kernel

2016-11-10 Thread Daniel.
2016-11-10 2:48 GMT-02:00 Daniel Bokser : > >> On Nov 8, 2016, at 5:50 AM, Andrey Skvortsov >> wrote: >> >> On 16-11-07 23:26, Daniel Bokser wrote: >>> >>>> On Nov 3, 2016, at 11:22 AM, Matias Mucciolo >>>> wrote: >>>>

Re: disable input event device

2016-12-03 Thread Daniel.
Is blacklisting it an option?? Regards, 2016-12-03 15:18 GMT-02:00 Ran Shalit : > > > On Sat, Dec 3, 2016 at 3:15 PM, Greg KH wrote: >> >> On Sat, Dec 03, 2016 at 02:43:30PM +0200, Ran Shalit wrote: >> > Hello, >> > >> > Is there some way to disable input event device ? >> > Maybe a way to disab

Re: disable input event device

2016-12-03 Thread Daniel.
Is xinput avaible? I know that it can be use to disable input devices, but IFAIK android use custom GUI, that is not X... 2016-12-03 16:04 GMT-02:00 Ran Shalit : > > > On Sat, Dec 3, 2016 at 7:59 PM, Ran Shalit wrote: >> >> >> >> On Sat, Dec 3, 2016 at 7:

Re: disable input event device

2016-12-03 Thread Daniel.
it can be used* 2016-12-03 16:58 GMT-02:00 Daniel. : > Is xinput avaible? I know that it can be use to disable input devices, > but IFAIK android use custom GUI, that is not X... > > > 2016-12-03 16:04 GMT-02:00 Ran Shalit : >> >> >> On Sat, Dec 3, 2

Re: Kernelnewbies Digest, Vol 73, Issue 3

2016-12-03 Thread Daniel.
Some guys are likely to prefer complex tools, but I'm a simple guy. My first try at debugging is printing. Using pr_debug is not always possible so ftrace and early printk may be useful. Another tool that comes with kernel and that is amazing is perf. You may find undercover bottlenecks with this o

Re: easiest way to deactivate a driver at boot time?

2016-12-15 Thread Daniel.
Or maybe using [status = "disabled"] at the device tree. Do you control the compilation of these device-trees, kernel, drivers and apps? 2016-12-15 10:20 GMT-02:00 Clemens Gruber : > On Thu, Dec 15, 2016 at 03:49:01AM -0800, Greg KH wrote: >> On Thu, Dec 15, 2016 at 04:56:18AM -0500, Robert P. J.

Re: easiest way to deactivate a driver at boot time?

2016-12-15 Thread Daniel.
bert P. J. Day : > On Thu, 15 Dec 2016, Daniel. wrote: > >> Or maybe using [status = "disabled"] at the device tree. Do you >> control the compilation of these device-trees, kernel, drivers and >> apps? > > this sounds like the simplest approach -- u-boot c

Re: Kernel function sequence

2016-12-15 Thread Daniel.
There is: https://www.kernel.org/doc/Documentation/trace/ftrace.txt 2016-12-15 0:04 GMT-02:00 Aruna Hewapathirane : >> How to know at what sequence , what function are being called when >> kernel starts ? Any way to trace what function calling what ... so on >> .? > > Google is your friend: >

Re: How to browse the code

2017-04-13 Thread Daniel.
ctags + cscope + vim The Makefile has targets for indexing the kernel.. Sometimes "find -exec grep" helps... I will take a look in opengrok Em 13/04/2017 7:40 AM, "manty kuma" escreveu: > Here you can see where sk_buff structure is delared. > http://androidxref.com/kernel_3.18/xref/include/linu

Software and Hardware interrupt in top command

2017-04-18 Thread Daniel.
Hi, top command show si (sw irq) and hi (hw irq). The linux has request_threaded_irq(irq, handler, thread_fn, ...) ... Is `si' the time spend on thread_fn and `hi' the time spend on handler Regards, -- “If you're going to try, go all the way. Otherwise, don't even start. ..." Charles Buk

Re: How to make per process firewall ?

2017-04-18 Thread Daniel.
I think docker or lxc may help you. You run the process(es) in a container and attach a tap interface to the container, the process inside the container can only see the attached interface. Regards, 2017-04-18 4:28 GMT-03:00 Lev Olshvang : > Hi all, > > I would like to constrain process (by name

Re: Don't know where to start linux kernel programming

2017-08-23 Thread Daniel.
Go through LDD3: https://lwn.net/Kernel/LDD3/ :) 2017-08-23 6:34 GMT-03:00 Ruben Safir : > On 08/22/2017 07:26 PM, Greg Freemyer wrote: > > just send an email to the right address and all the > > participants in the thread will do a reply-all so you can see the > > responses without subscribing.?

Re: Updating LDD3

2017-10-24 Thread Daniel.
There is a repo at github with all the samples don't? On Oct 24, 2017 9:06 AM, "Ozgur" wrote: > Hello Ryan, > > 24.10.2017, 13:58, "Liam Ryan" : > > I'm currently working through the Linux Device Drivers 3rd edition > > (https://lwn.net/Kernel/LDD3/) and much of the code is outdated. > > > > Rig

Re: Updating LDD3

2017-10-24 Thread Daniel.
Here it is https://github.com/martinezjavier/ldd3 Regards On Oct 24, 2017 9:58 AM, "Ozgur" wrote: > Hello Daniel, > > 24.10.2017, 14:50, "Daniel." : > > There is a repo at github with all the samples don't? > > > > I think that no, I not see

Re: Updating LDD3

2017-10-24 Thread Daniel.
You're welcome! On Oct 24, 2017 10:38 AM, "Ozgur" wrote: > > Hello, > > 24.10.2017, 15:31, "Daniel." : > > Here it is https://github.com/martinezjavier/ldd3 > > Regards > > > oh, it's very good, nice. > Thank you > >

Re: Debugging a kernel freeze

2017-12-01 Thread Daniel.
In this scenario I would isolate stuff until find at last the domain of the problem. You say that it happens after some hours, can it be because of temperature?, What is the workload? 2017-12-01 12:05 GMT-02:00 Victor Ascroft : > Hello, > > I have a iMX6 running a 4.9 kernel with a custom kernel

Re: Linux Kernel contains only C code?

2018-02-02 Thread Daniel.
I'm just curious. What problems in kernel involves parsing? On Feb 2, 2018 5:01 AM, wrote: > On Thu, 01 Feb 2018 11:37:26 -0500, Aruna Hewapathirane said: > > > Somethings are not so obvious like what could possibly be a *.y file or > > *.tc file ? If you type in find -name "*.y" in my case i se

Re: Linux Kernel contains only C code?

2018-02-02 Thread Daniel.
Oh, thank you so much! I see dtc, the device tree compiler I guess. Parsing is a cool programming subject but I didn't expect to see parsers in the kernel level, cool, cool! Regards, 2018-02-02 8:27 GMT-02:00 Augusto Mecking Caringi : > On Fri, Feb 2, 2018 at 11:11 AM, Daniel. wrote:

Re: Building separate files for a kernel module

2018-04-18 Thread Daniel.
except if it's GPL too* 2018-04-18 12:57 GMT-03:00 Daniel. : > AFAIK if foo is GPL, you can't link bar to it except if it's GPL to. Doing > so would be license breaking. If foo is not GPL, you are tainting your > kernel and would be hard to get help with a tainted kern

Re: Building separate files for a kernel module

2018-04-18 Thread Daniel.
AFAIK if foo is GPL, you can't link bar to it except if it's GPL to. Doing so would be license breaking. If foo is not GPL, you are tainting your kernel and would be hard to get help with a tainted kernel. 2018-04-09 14:19 GMT-03:00 Martin Galvan : > 2018-04-05 12:02 GMT-03:00 Greg KH : > > On Th

Will RT patches be merged in main line?

2018-05-28 Thread Daniel.
Hi everybody. Does the RT patches have been merged in the main line? or, They will be merged at all? I found the RT wiki at https://wiki.linuxfoundation.org/realtime/documentation/technical_details/start but can't find if the patches were merged. Also I have some questions about RT benefits/draw

Re: Will RT patches be merged in main line?

2018-05-29 Thread Daniel.
it. The technical stuff can be hard to grasp at first... thanks for helping me out! Cheers, 2018-05-28 21:48 GMT-03:00 : > On Mon, 28 May 2018 15:04:41 -0300, "Daniel." said: > >> Does the RT patches have been merged in the main line? or, They will >> be merged at all

  1   2   3   4   >