Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: jukeboxhero on July 28, 2010, 02:27:15 PM

Title: How to debug boot process on a new port?
Post by: jukeboxhero on July 28, 2010, 02:27:15 PM
Hello,

I am new to rockbox and like to port it to an older mp3 player of mine: Medion Jukebox MD 420. There is also a special thread open for this player since ages (id 6784). According to that thread I build rockbox based on the H10 settings and tried to boot it.

The problem is, that I cannot see any output on the display - it just gets blank.

But when I look into the player, I can see, that there was a '/tmp' directory created during boot, this means the file system driver seems to work. I searched a lit in the sources and also in the forum and documentation to learn something about debugging techniques for rockbox, but only found something about JTAG and I am more a system programmer than a hardware developer...

Is it possible to generate debug logfiles somehow in the filesystem? I found some hint in logf.h, but I do not really see how to start...

Any tips are welcome!

Many thanks and best regards,

    JukeBoxHero
Title: Re: How to debug boot process on a new port?
Post by: torne on July 28, 2010, 03:01:52 PM
Rockbox doesn't use a /tmp directory, so that's presumably not Rockbox creating that... so I don't think it's reasonable to assume that Rockbox is getting far enough to write to the disk.

If there's some kind of serial port (perhaps used for a remote/dock, or just unpopulated pads on the board) that's a good option; if JTAG is available that's another good one but requires more knowledge (and hardware) to use. Other than that you have options like.. trying to flash an LED/the backlight/etc.. :)