Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2011, 05:30 PM   #31
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Trying it out right now on the qemu
rvs is offline   Reply With Quote
Old 03-21-2011, 06:28 PM   #32
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Can you explain how the logging works (LOGPRINTF and WARNPRINTF)? I can't find the location of these logs.

Thanks
rvs is offline   Reply With Quote
Old 03-22-2011, 04:59 AM   #33
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Hi rvs,

Every component has a files called log.h (or something simular) to control the logging of LOGPRINTF, WARNPRINTF and ERRORPRINTF. Default only WARN and ERROR are enabled. The output (default) goes to stderr.
To see the output on the emulator, you can press Ctrl-Alt-3. Pressing Ctrl-Alt-1 brings you back to the UI again.
Mackx is offline   Reply With Quote
Old 03-22-2011, 01:02 PM   #34
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Thanks Marcel, very useful information.

Do you develop using Anjuta? I'm guessing it's probably easier that way to quickly test small changes and turn logging on/off, but I still need to figure out how to import the Hackx source code into a (new) Anjuta project.
rvs is offline   Reply With Quote
Old 03-22-2011, 03:21 PM   #35
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by rvs View Post
Thanks Marcel, very useful information.

Do you develop using Anjuta? I'm guessing it's probably easier that way to quickly test small changes and turn logging on/off, but I still need to figure out how to import the Hackx source code into a (new) Anjuta project.
I use all different kinds of editors on linux and windows to change the code. But for most of the components of MackxPatch I use Anjuta projects. However I do not build using Anjuta, I am used to embedded software and thus also to compiling from command-line.
I use different Anjuta projects for every firmware component (ctb, popupmenu, sysd, etc). One of them I use to start qemu. For each component I also have a separate shell, to execute the make (with correct parameters) and copy the build executable to the qemu (using scp). I have 3 desktops/workspaces, left for the command shells, middle for the Anjuta projects and right for the qemu and a shell that is logged into the qemu (ssh qemu, just press enter for password).
For the commands to type I have a 'que-card', see attached file.
'Creating' an Anjuta project is very easy, copy the one from helloworld to the 'root' of one of the firmware components, rename it and start it.

Hope this helps.
Marcel.
Attached Files
File Type: txt build environments.txt (6.0 KB, 155 views)
Mackx is offline   Reply With Quote
Old 03-22-2011, 03:36 PM   #36
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Thanks, it's both helpful and interesting
rvs is offline   Reply With Quote
Old 03-23-2011, 07:56 PM   #37
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 712
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, in love with iRex DR800S. Also a K4NT. Now a Kobo Aura
Quote:
Originally Posted by Mackx View Post
I use all different kinds of editors on linux and windows to change the code. But for most of the components of MackxPatch I use Anjuta projects. However I do not build using Anjuta, I am used to embedded software and thus also to compiling from command-line.
I use different Anjuta projects for every firmware component (ctb, popupmenu, sysd, etc). One of them I use to start qemu. For each component I also have a separate shell, to execute the make (with correct parameters) and copy the build executable to the qemu (using scp). I have 3 desktops/workspaces, left for the command shells, middle for the Anjuta projects and right for the qemu and a shell that is logged into the qemu (ssh qemu, just press enter for password).
For the commands to type I have a 'que-card', see attached file.
'Creating' an Anjuta project is very easy, copy the one from helloworld to the 'root' of one of the firmware components, rename it and start it.

Hope this helps.
Marcel.
Interesting.

My DR development environment: a VirtualBox linux virtual machine, with 4 virtual desktops:
1. qemu, a gnome-terminal with 3 tabs (mainly for scp and qemu shell), and a second gnome-terminal with many tabs (for compiling, light editing, copying/moving files and a shared directory from my real desktop)
2. emacs
3. firefox, with some help html files. Btw, when hacking DR firnware doxygen generated files are quite useful
4. evince, a pdf reader

EDIT: I didn't mention I don't use anjuta at all... it doesn't give anything emacs + shell couldn't offer

Iņigo
Iņigo is offline   Reply With Quote
Old 03-24-2011, 11:43 AM   #38
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Thanks Iņigo,

I haven't heard of doxygen before. What do you use it for?
rvs is offline   Reply With Quote
Old 03-24-2011, 12:11 PM   #39
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by rvs View Post
I haven't heard of doxygen before. What do you use it for?
See here: http://www.stack.nl/~dimitri/doxygen/
Mackx is offline   Reply With Quote
Old 03-24-2011, 12:16 PM   #40
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 712
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, in love with iRex DR800S. Also a K4NT. Now a Kobo Aura
Quote:
Originally Posted by Mackx View Post
and for an example of its use: https://inigo.katxi.org/ereader/dr800-sources/ and click on "Directories" link.

Iņigo
Iņigo is offline   Reply With Quote
Old 03-24-2011, 12:24 PM   #41
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Very interesting, thanks! It seems quite extensive. I'll try it out (in due time).
rvs is offline   Reply With Quote
Old 03-24-2011, 01:14 PM   #42
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 712
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, in love with iRex DR800S. Also a K4NT. Now a Kobo Aura
Quote:
Originally Posted by rvs View Post
Very interesting, thanks! It seems quite extensive. I'll try it out (in due time).
It's very useful to study third party code.
Doxygen is a package which parses specially formated sources and generates this kind of documentation.

If you want it I can attach here my doxygen configuration in order to help you generate your own docs, as they are big enough to forbid publishing them.

Iņigo
Iņigo is offline   Reply With Quote
Old 03-24-2011, 03:17 PM   #43
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Quote:
Originally Posted by Iņigo View Post
If you want it I can attach here my doxygen configuration in order to help you generate your own docs, as they are big enough to forbid publishing them.
I would very much appreciate that!
rvs is offline   Reply With Quote
Old 03-24-2011, 03:58 PM   #44
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 712
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, in love with iRex DR800S. Also a K4NT. Now a Kobo Aura
Quote:
Originally Posted by rvs View Post
I would very much appreciate that!
$ gzip -d attached_file.gz

There is also a graphical UI tool for doxygen named doxywizard , you can run it and load the provided config file to modify the output.

Iņigo
Attached Files
File Type: gz Doxyfile.gz (18.6 KB, 68 views)
Iņigo is offline   Reply With Quote
Old 03-24-2011, 04:07 PM   #45
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Thanks again.

I'll try out Doxywizard, too.
rvs is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DR800 Building ctb dima_tr iRex Developer's Corner 6 06-30-2010 05:47 AM
OOOFBTools for book building BobC Workshop 0 01-24-2010 02:53 PM
Having problems building calibre 0.15.4 angevin Calibre 11 06-12-2009 08:54 PM
iLiad Building FLTK for the iLiad hudson iRex Developer's Corner 3 04-01-2007 01:33 PM


All times are GMT -4. The time now is 05:38 AM.


MobileRead.com is a privately owned, operated and funded community.