http://openmoko.org/index.php?title=User:Ajh&feed=atom&action=historyUser:Ajh - Revision history2024-03-28T22:03:54ZRevision history for this page on the wikiMediaWiki 1.19.24http://openmoko.org/index.php?title=User:Ajh&diff=82727&oldid=prevAjh: /* Installation */2010-10-26T07:26:05Z<p><span dir="auto"><span class="autocomment">Installation</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 07:26, 26 October 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 152:</td>
<td colspan="2" class="diff-lineno">Line 152:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>When asked, do not install a kernel, instead copy the existing from the installation image to /mnt/boot/. Same goes for the modules and /lib/firmware/. Create /mnt/boot/append-GTA02 with an additional console parameter as loglevel=8 console=tty1.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>When asked, do not install a kernel, instead copy the existing from the installation image to /mnt/boot/. Same goes for the modules and /lib/firmware/. Create /mnt/boot/append-GTA02 with an additional console parameter as loglevel=8 console=tty1.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>To get ssh over USB networking to <del class="diffchange diffchange-inline">rock'n'roll </del>on your newly installed ARMedslack <del class="diffchange diffchange-inline">to work properly </del>you have to edit /mnt/etc/rc.d/rc.inet1.conf. Remember to add the name for the interface manually.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>To get ssh over USB networking to <ins class="diffchange diffchange-inline">work properly </ins>on your newly installed ARMedslack<ins class="diffchange diffchange-inline">, </ins>you have to edit /mnt/etc/rc.d/rc.inet1.conf. Remember to add the name for the interface manually.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Config information for eth0:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># Config information for eth0:</div></td></tr>
</table>Ajhhttp://openmoko.org/index.php?title=User:Ajh&diff=82726&oldid=prevAjh: /* renaming initrd-versatile.img file was wrong */2010-10-26T07:19:24Z<p><span dir="auto"><span class="autocomment">renaming initrd-versatile.img file was wrong</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 07:19, 26 October 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 14:</td>
<td colspan="2" class="diff-lineno">Line 14:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>wget ftp://ftp.armedslack.org/armedslack/armedslack-12.2/isolinux/initrd-versatile.img</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>wget ftp://ftp.armedslack.org/armedslack/armedslack-12.2/isolinux/initrd-versatile.img</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>rename g g.gz</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>rename g g.gz <ins class="diffchange diffchange-inline">initrd-versatile.img</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>gunzip initrd-versatile.img.gz</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>gunzip initrd-versatile.img.gz</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>mkdir rootfs</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>mkdir rootfs</div></td></tr>
</table>Ajhhttp://openmoko.org/index.php?title=User:Ajh&diff=81017&oldid=prevAjh: /* Touch screen */2010-05-08T18:05:04Z<p><span dir="auto"><span class="autocomment">Touch screen</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 18:05, 8 May 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 229:</td>
<td colspan="2" class="diff-lineno">Line 229:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>echo "-67 38667 -4954632 -51172 121 46965312 65536" >/etc/pointercal</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>echo "-67 38667 -4954632 -51172 121 46965312 65536" >/etc/pointercal</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>If <del class="diffchange diffchange-inline">your </del>going to use runlevel 4 and a graphical login screen like xdm, you have to add some environment variables to /etc/rc.d/rc.4</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>If <ins class="diffchange diffchange-inline">you're </ins>going to use runlevel 4 and a graphical login screen like xdm, you have to add some environment variables to /etc/rc.d/rc.4</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># If all you have is XDM, I guess it will have to do:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># If all you have is XDM, I guess it will have to do:</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 266:</td>
<td colspan="2" class="diff-lineno">Line 266:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>/usr/local/bin/matchbox-window-manager -use_titlebar no -use_cursor no -use_desktop_mode plain</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>/usr/local/bin/matchbox-window-manager -use_titlebar no -use_cursor no -use_desktop_mode plain</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>If <del class="diffchange diffchange-inline">your </del>going to start X11 somehow from runlevel 3, use your $HOME/.xinitrc instead.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>If <ins class="diffchange diffchange-inline">you're </ins>going to start X11 somehow from runlevel 3, use your $HOME/.xinitrc instead.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Finally something relevant to /etc/X11/xorg.conf</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Finally something relevant to /etc/X11/xorg.conf</div></td></tr>
</table>Ajhhttp://openmoko.org/index.php?title=User:Ajh&diff=81008&oldid=prevAjh: /* Getting Xorg to run */2010-05-07T18:04:06Z<p><span dir="auto"><span class="autocomment">Getting Xorg to run</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 18:04, 7 May 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 201:</td>
<td colspan="2" class="diff-lineno">Line 201:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>====Getting Xorg to run====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>====Getting Xorg to run====</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">To </del>be <del class="diffchange diffchange-inline">continued</del>...</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">=====Touch screen=====</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">In order to get the touch screen working, we have to install tslib and xf86-input-tslib.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">wget http://download.berlios.de/tslib/tslib-1.0.tar.bz2</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">tar -jxf tslib-1.0.tar.bz2</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">cd tslib-1.0</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">./configure --prefix=/usr</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">make</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">su -c "make install"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">And then compile xf86-input-tslib</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">wget http://pengutronix.de/software/xf86-input-tslib/download/xf86-input-tslib-0.0.6.tar.bz2</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">tar -jxf xf86-input-tslib-0.0.6.tar.bz2</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">cd xf86-input-tslib-0.0.6</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">./configure --prefix=/usr</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">make</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">su -c "make install"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Edit your /usr/etc/ts.conf and uncomment option for raw input and add grab_events=1</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"># Uncomment if you wish to use the linux input layer event interface</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">module_raw input grab_events=1</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Create a calibration configuration</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">echo "-67 38667 -4954632 -51172 121 46965312 65536" >/etc/pointercal</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">If your going to use runlevel 4 and a graphical login screen like xdm, you have to add some environment variables to /etc/rc.d/rc.4</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"># If all you have is XDM, I guess it will have to do:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">export TSLIB_TSDEVICE=/dev/input/event1</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">export TSLIB_CONSOLEDEVICE=none</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">export TSLIB_CALIBFILE=/etc/pointercal</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">export TSLIB_PLUGINDIR=/usr/lib/ts</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">export TSLIB_CONFILE=/usr/etc/ts.conf</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">export TSLIB_FBDEVICE=/dev/fb0</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">if [ -x /usr/bin/xdm ]; then</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">  exec /usr/bin/xdm -nodaemon</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">elif [ -x /usr/X11R6/bin/xdm ]; then</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">  exec /usr/X11R6/bin/xdm -nodaemon</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">fi</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">If you wish to </ins>be <ins class="diffchange diffchange-inline">able to type your login credentials with a virtual keyboard, you need</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">to start one in</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">/etc/X11/xdm/Xsetup_0</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">#!/bin/sh</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"># $Xorg: Xsetup_0,v 1.3 2000/08/17 19:54:17 cpqbld Exp $</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">#xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">/usr/local/bin/rapukbd &</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">I had my virtual keyboard configured to pop up in the lower part of the screen, so I</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">moved the login window to the top. Added a line to /etc/X11/xdm/Xresources</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">xlogin*geometry: 480x320+0+0</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Set your xsession up in your home directory $HOME/.xsession and make the file executable.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"># Used when started from xdm.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">/usr/local/bin/rapukbd &</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">xterm -ls -bg black -fg gray -bw 0 &</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">/usr/local/bin/matchbox-window-manager -use_titlebar no -use_cursor no -use_desktop_mode plain</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">If your going to start X11 somehow from runlevel 3, use your $HOME/</ins>.<ins class="diffchange diffchange-inline">xinitrc instead</ins>.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Finally something relevant to /etc/X11/xorg</ins>.<ins class="diffchange diffchange-inline">conf</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"><pre></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Section "ServerLayout"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Identifier "Default Layout"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Screen 0 "Screen0" 0 0</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        InputDevice "Mouse0" "CorePointer"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">EndSection</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Section "InputDevice"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Identifier  "Mouse0"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Driver      "tslib"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Option      "Device" "/dev/input/event1"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Option      "CorePointer" "true"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Option      "SendCoreEvents" "true"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Option      "Width" "480"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Option      "Height" "640"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Option      "ScreenNumber" "0"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Option      "Protocol" "Auto"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">EndSection</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Section "Monitor"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Identifier  "Monitor0"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        VendorName  "Monitor Vendor"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        DisplaySize 200 200</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">EndSection</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Section "Device"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Identifier  "Videocard0"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        Driver      "fbdev"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">EndSection</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">Section "Screen"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    Identifier  "Screen0"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    Device      "Videocard0"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    Monitor    "Monitor0"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">    DefaultDepth 16</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">EndSection</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr>
</table>Ajhhttp://openmoko.org/index.php?title=User:Ajh&diff=80789&oldid=prevAjh: User page of ajh2010-04-22T21:53:08Z<p>User page of ajh</p>
<p><b>New page</b></p><div>Page about my (ajh, tuyp200 on IRC) experimentation and use of the Openmoko Freerunner.<br />
<br />
==ARMedslack==<br />
===Installing ARMedslack on MicroSD===<br />
====Setting up installation image====<br />
Here's instructions on how to get ARMedslack going on your Freerunner using an Andy-tracking kernel and Qi as bootloader. This describes my experiences and some pitfalls that I encountered. This is still work in progress.<br />
<br />
First step of installing ARMedslack is to prepare your MicroSD card and installing Qi as bootloader. I had a working SHR-image on flash so I could use it to edit my images on the MicroSD card when problems arose. I prepared three primary partitions on the MicroSD card.<br />
# /dev/mmcblk0p1 100MB type Linux ext2 (installation image, 40MB is enough though)<br />
# /dev/mmcblk0p2 15GB type Linux ext3 (target partition)<br />
# /dev/mmcblk0p3 900MB type Linux Swap<br />
<br />
On your desktop computer, get installation image from ARMedslack website ftp://ftp.armedslack.org/armedslack/armedslack-12.2/isolinux/initrd-versatile.img<br />
<pre><br />
wget ftp://ftp.armedslack.org/armedslack/armedslack-12.2/isolinux/initrd-versatile.img<br />
rename g g.gz<br />
gunzip initrd-versatile.img.gz<br />
mkdir rootfs<br />
cd rootfs<br />
su -c "cpio -i <../initrd-versatile.img"<br />
</pre><br />
The next step is to modify the installation image a bit. On the desktop computer I cross-compiled an Andy-tracking kernel from the git repository which I used to boot up the installation image and later on to boot up the installed ARMedslack distribution. The kernel and modules are copied to the installation image as described later.<br />
<br />
In the installation image, change etc/inittab so that sysinit directive is prefixed with the id of tty1 (a busybox init feature). This enables you to see what's going on in the init scripts during boot.<br />
<pre><br />
# /etc/inittab<br />
# Boot-time system configuration/initialization script.<br />
# This is run first except when booting in single-user mode.<br />
tty1::sysinit:/etc/rc.d/rc.S<br />
</pre><br />
<br />
Next I added the correct rootfs to etc/fstab<br />
<pre><br />
proc /proc proc defaults 0 0<br />
/dev/mmcblk0p1 / ext2 defaults,rw 1 1<br />
</pre><br />
<br />
I added lines to the very beginning of etc/rc.d/rc.S to be sure that filesystems would be mounted and all the necessary modules would be loaded.<br />
<pre><br />
/bin/mount -n -t proc proc /proc<br />
/bin/mount -n -t sysfs sysfs /sys<br />
/bin/mount -n -o remount,noatime,rw /<br />
/sbin/modprobe ipv6<br />
/sbin/modprobe ar6000<br />
/sbin/modprobe btusb<br />
/sbin/modprobe s3cmci<br />
/sbin/modprobe l2cap<br />
/sbin/modprobe rfcomm<br />
/sbin/modprobe sco<br />
/sbin/modprobe hidp<br />
/sbin/modprobe bnep<br />
/sbin/modprobe bluetooth<br />
/sbin/modprobe slhc<br />
/sbin/modprobe ppp_generic<br />
/sbin/modprobe ohci_hcd<br />
/sbin/modprobe g_ether<br />
</pre><br />
<br />
Also, to get dropbear started before keymap selection, I added a line for it before<br />
the prompting for keyboard layout.<br />
<pre><br />
# Don't automatically blank the screen, or it will go black during the install<br />
# process when stray keystrokes might be dangerous:<br />
/bin/setterm -blank 0<br />
<br />
# Added line to get dropbear early startup.<br />
/etc/rc.d/rc.dropbear start<br />
<br />
if ! cat /proc/cmdline | grep -q 'kbd=' 2> /dev/null ; then<br />
echo<br />
echo<br />
echo "<OPTION TO LOAD SUPPORT FOR NON-US KEYBOARD>"<br />
</pre><br />
<br />
I then added things to etc/rc.d/rc.inet1 just after the part where a local DHCP server is tried.<br />
I wanted a ssh shell over USB to get into the installation image once booted.<br />
<pre><br />
# In case we use udev -<br />
# Try to get information from a local DHCP server and store that for later:<br />
if ! grep -wq nodhcp /proc/cmdline ; then<br />
for EDEV in $(cat /proc/net/dev | grep ':' | sed -e "s/^ *//" | cut -f1 -d: |<br />
grep -v lo) ; do<br />
if grep -q $(echo ${EDEV}: | cut -f 1 -d :): /proc/net/wireless ; then<br />
continue # skip wireless interfaces<br />
fi<br />
/sbin/dhcpcd -t 10 -T $EDEV 1>$TMP/dhcpc/dhcpcd-${EDEV}.info 2>/dev/null &<br />
done<br />
fi<br />
<br />
# Added for USB networking.<br />
/sbin/ifconfig usb0 192.168.0.202 netmask 255.255.255.0<br />
/sbin/route add -net 192.168.0.0 netmask 255.255.255.0 usb0<br />
</pre><br />
<br />
For dropbear to start early, one must create a etc/motd.net manually.<br />
<pre><br />
echo "Hello." >etc/motd.net<br />
</pre><br />
<br />
Then I copied the cross-compiled kernel and the modules to the image. uImage-moredrivers-GTA02_andy-tracking-973a41fce60e5f6e.bin to /boot/uImage-GTA02.bin and untar modules-GTA02_andy-tracking-973a41fce60e5f6e.tar.gz to / of the installation image. Create /boot/append-GTA02 with the line<br />
loglevel=8. Create a tar file of your installation image and untar it to your MicroSD card's first partition (/dev/mmcblk0p1).<br />
<br />
The final step is to boot your Freerunner with Qi and USB cable attached to desktop computer. Hopefully you will see everything going well on the screen of your Freerunner and get a cdc_ether up in your desktop computer.<br />
<br />
====Installation====<br />
After booting up your Freerunner from the first partition on your MicroSD card you should ssh into your Freerunner as usual. This should now be a installer image that you are used to get when bootin<br />
the Slackware installation CD-ROM. Set up NAT on your desktop computer so that we can download packages straight from ftp://ftp.armedslack.org.<br />
<pre><br />
iptables -t nat -A POSTROUTING -s 192.168.0.202 \<br />
-d ! 192.168.0.0/24 -j SNAT --to-source IP_ADDR_OF_DESKTOP<br />
echo 1 >/proc/sys/net/ipv4/ip_forward<br />
</pre><br />
<br />
Setup default gateway and nameservers on Freerunner.<br />
<pre><br />
route add default gw 192.168.0.200<br />
echo "nameserver 208.67.222.222" >>/etc/resolv.conf<br />
echo "nameserver 208.67.220.220" >>/etc/resolv.conf<br />
</pre><br />
<br />
Modify the end of /sbin/probe so that we get our MicroSD partitions as targets for installation<br />
and swap.<br />
<pre><br />
else # old format and no RAID:<br />
if cat /proc/partitions | grep md 1> /dev/null 2> /dev/null ; then<br />
cat /proc/partitions | grep md | while read line ; do<br />
SMASHED_LINE=$line<br />
MAJOR=`echo $SMASHED_LINE | cut -f 1 -d ' '`<br />
if [ "$MAJOR" = "9" ]; then<br />
list_md `echo $SMASHED_LINE | cut -f 3 -d ' ' | tr -d '/'` \<br />
`echo $SMASHED_LINE | cut -f 4 -d ' '`<br />
fi<br />
done<br />
fi<br />
# Added to get MicroSD cards to show up in setup.<br />
if cat /proc/partitions | grep mmcblk 1> /dev/null 2> /dev/null ; then<br />
cat /proc/partitions | grep mmcblk | while read line ; do<br />
SMASHED_LINE=$line<br />
MAJOR=`echo $SMASHED_LINE | cut -f 1 -d ' '`<br />
if [ "$MAJOR" = "179" ]; then<br />
list_md `echo $SMASHED_LINE | cut -f 3 -d ' ' | tr -d '/'` \<br />
`echo $SMASHED_LINE | cut -f 4 -d ' '`<br />
fi<br />
done<br />
fi<br />
</pre><br />
<br />
Start ''setup'' as usual.<br />
<br />
When asked for source media, choose HTTP/FTP site and enter server ftp://ftp.armedslack.org and<br />
enter path to packages as /armedslack/armedslack-12.2/slackware.<br />
When asked, do not install a kernel, instead copy the existing from the installation image to /mnt/boot/. Same goes for the modules and /lib/firmware/. Create /mnt/boot/append-GTA02 with an additional console parameter as loglevel=8 console=tty1.<br />
<br />
To get ssh over USB networking to rock'n'roll on your newly installed ARMedslack to work properly you have to edit /mnt/etc/rc.d/rc.inet1.conf. Remember to add the name for the interface manually.<br />
<pre><br />
# Config information for eth0:<br />
IFNAME[0]="usb0"<br />
IPADDR[0]="192.168.0.202"<br />
NETMASK[0]="255.255.255.0"<br />
USE_DHCP=""<br />
DHCP_HOSTNAME=""<br />
</pre><br />
<br />
To be on the safe side of things I also added lines to load necessary modules in /mnt/etc/rc.d/rc.S.<br />
<pre><br />
# Mount sysfs next, if the kernel supports it:<br />
if [ -d /sys ]; then<br />
if grep -wq sysfs /proc/filesystems ; then<br />
if ! grep -wq sysfs /proc/mounts ; then<br />
/sbin/mount -v sysfs /sys -n -t sysfs<br />
fi<br />
fi<br />
fi<br />
<br />
# Added just in case.<br />
/sbin/modprobe ipv6<br />
/sbin/modprobe ar6000<br />
/sbin/modprobe btusb<br />
/sbin/modprobe s3cmci<br />
/sbin/modprobe l2cap<br />
/sbin/modprobe rfcomm<br />
/sbin/modprobe sco<br />
/sbin/modprobe hidp<br />
/sbin/modprobe bnep<br />
/sbin/modprobe bluetooth<br />
/sbin/modprobe slhc<br />
/sbin/modprobe ppp_generic<br />
/sbin/modprobe ohci_hcd<br />
/sbin/modprobe g_ether<br />
<br />
stty onlcr 0>&1<br />
<br />
</pre><br />
<br />
<br />
To get your newly installed ARMedslack to boot you must rename your kernel in /dev/mmcblk0p1 partitions /boot directory so that Qi skips to the next partition.<br />
<pre><br />
cd /boot<br />
rename 2 2-notinuse *<br />
</pre><br />
<br />
====Getting Xorg to run====<br />
To be continued...</div>Ajh