<p dir="ltr"><br>
On 19 Apr 2013 01:39, "Andrew Cooks" <<a href="mailto:acooks@gmail.com">acooks@gmail.com</a>> wrote:<br>
><br>
> Hi Owain<br>
><br>
> How's the kernel hacking going?</p>
<p dir="ltr">Not bad thanks! I felt a bit lost for a while, but once I started to get actual debug information from the kernel things started to gel.</p>
<p dir="ltr">The chip I was planning on adding was an io expander which added to my confusion as it was using spi and gpios to provide more gpios. With hindsight I should have gone for an easier chip.</p>
<p dir="ltr">> >> Firstly I'm in embedded land and don't really have the full set of<br>
> >> tools that I'm used to. When I modprobe the module I don't get any<br>
> >> errors on my serial console, but I don't have access to dmesg - so I'm<br>
> >> not too sure where any kernel messages are being put - I know that<br>
> >> printk messages are sent to the serial console I'm monitoring.<br>
><br>
> Do you mean that 'dmesg' is not included in your userland tools, or is<br>
> it not available for a different reason?</p>
<p dir="ltr">Sorry, I forgot to mention I recompiled the busybox binary i was using to include dmesg. It was a bit of a squeeze, but I got there. </p>
<p dir="ltr">> > That should be sufficient then. Might be good to put 'debug' on the<br>
> > kernel command line so that you get all levels of printk messages.<br>
><br>
> There's a slight gotcha with the 'debug' kernel parameter : you still<br>
> won't see debug level messages during boot (but will see them using<br>
> 'dmesg' iirc). To really see everything, you can use the<br>
> 'ignore_loglevel' parameter, but I've found selective printing with<br>
> 'dyndbg' much more useful.</p>
<p dir="ltr">Would that be available for the 2.6 kernel I'm stuck on?</p>
<p dir="ltr">> Cheers,<br>
><br>
> a.</p>
<p dir="ltr">Thanks for the support. Getting the debug messages were the key :). Find a book - Kernel device drivers, third edition, published by o'reilly helped massively also.</p>
<p dir="ltr">Thanks, </p>
<p dir="ltr">Owain</p>