Mobile/debug on maemo: Difference between revisions

Line 68: Line 68:
If you want this swap file to be mounted on device startup, you can add "swapon -a" in /etc/init.d/rcS, but it's not recommended to mount it systematically, as it will wear the flashcard out progressively.
If you want this swap file to be mounted on device startup, you can add "swapon -a" in /etc/init.d/rcS, but it's not recommended to mount it systematically, as it will wear the flashcard out progressively.
* Install opcontrol
* Install opcontrol
Now, let's install oprofile....
<pre>
sudo gainroot
echo "deb http://repository.maemo.org/ diablo/tools free" >> /etc/apt/sources.list
apt-get update
yes | apt-get install oprofile
</pre>
Before going further, let's see if your kernel is oprofile-enabled (it should be since you flashed the new kernel image in step 1).
opcontrol -status  # should return
* Install the debug packages
* Install the debug packages


=DEBUG AND PROFILE=
=DEBUG AND PROFILE=