1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Logging before syslog

Discussion in 'Tomato Firmware' started by arrmo, Dec 13, 2013.

  1. arrmo

    arrmo Addicted to LI Member

    Hi,

    Perhaps a dumb question, but ... what mechanisms exit for logging before syslog is up? printk() work for the kernel, but for other items (like inside rc) ... any suggestion? I see some use of _dprintf(), but I admit - not sure where that goes .. :(.

    Thanks!
     
  2. koitsu

    koitsu Network Guru Member

    See klogd.
     
  3. arrmo

    arrmo Addicted to LI Member

    Tried this, but syslog and klogd are not running at this point ... :-(. Any other suggestions?

    Thanks!
     
  4. koitsu

    koitsu Network Guru Member

    Simple then: there is no kernel logging. Use the kernel printf() function equivalent (I don't know what it's called on Linux, but printk() distantly rings a bell) and be done with it. All this goes to console (could be serial console for example). That's as good as it's going to get.
     
  5. arrmo

    arrmo Addicted to LI Member

    Yep, trying to use printk() ... but I admit, by no means an expert. Can you use this outside the kernel? And also, what include do you need for printk()?
     
  6. koitsu

    koitsu Network Guru Member

    I'm sorry to sound rude, but this is not a Linux kernel or driver development forum. Please subscribe to the LKML and ask these types of questions there. That's exactly what the list is for.
     
  7. arrmo

    arrmo Addicted to LI Member

    No problem, will do - sorry for the questions. Just thought someone may have an easy / quick answer. I pretty much have the WNDR4000 working now (soon to add 3400 and 3700), but struggling with this one item. Will let folks know once this HW is supported.

    Thanks anyways.
     

Share This Page