RMT1: Demonstration Software Setup This guide describes how to quickly setup a stock NGW100 to support RMT1 in order to demonstrate Qtopia 4 on a LCD with touchscreen control. It is assumed that the RMT1 board hardware is configured correctly and mounted on the NGW100, and LCD/touchscreen is connected to the RMT1. Please see RMT1: Assembling an Example Prototype for details on how this may be done. avr32program program -F bin -vefcfi@0 uboot.bin Pre-Requisites This guide assumes you have available a host PC running linux, with a serial port, a SDCard reader/writer attached to the PC, and a blank SDCard (256MB minimum). You will also need a host PC running a TFTP server. A popular, easy-to-use server is Philippe Jounin's tftpd32. The following RMT1 Downloads are required: Example Root Filesystem: rmt1_sd_20080808.raw.bz2 (or newer release) Kernel image: uImage Procedure De-compress the Example Root Filesystem to get the raw image file, rmt1_sd_yyyymmdd.raw (yyyymmdd is the release date): bunzip2 rmt1_sd_yyyymmdd.raw.bz2 Install the SDCard into the card reader. If any partitions on the SDCard happen to auto-mount, please unmount them. Assuming the SDCard appears under /dev/sdb: umount /dev/sdb1 umount /dev/sdb2, etc Duplicate the .raw image file onto the SDCard (again assuming the SDCard appears under /dev/sdb). Note that this process could take upwards of 10 minutes: dd if=rmt1_sd_yyyymmdd.raw of=/dev/sdb bs=1024 You now have a SDCard with a EXT2 partition containing a complete root filesystem. Note that there is a linux kernel image stored in this filesystem: /uImage Remove the SDCard from the reader, and install into the NGW100. Note that the NGW100 SDCard socket is spring-loaded, so ensure that is it installed all the way. Connect a serial cable between your host PC and the NGW100. While connected to the serial port with a terminal program (e.g. minicom, HyperTerminal, etc), power-on the NGW100+RMT1 (e.g. by pressing and holding the power-on pushbutton). When you see u-boot boot text appear, press the Space Bar immediately, to get to the u-boot prompt. Older U-Boot versions (such as 1.1.4-at0 that comes with new NGW100 boards) do not support booting the linux kernel from many MMC/SDCards. Use U-Boot to program the kernel image into NOR Flash. This boot method must be used until at least U-Boot is upgraded on your board (see here for instructions for a possible method). setenv serverip (U-Boot needs to know the IP address of the computer running your TFTP server) setenv ipaddr (Pick a temporary IP address for your NGW100. It must be on your network domain, and it must not be used by any other machine) tftp 10000000 uImage (Get the file "uImage" from the TFTP server and store at RAM starting from location 0x10000000. Note the final "Bytes transferred =" for the file size in bytes, in hexadecimal). erase 100000 2fffff (Erase NOR Flash from address 0x10000 to 0x2ffff. 3MB should be enough for most compressed kernel image files, but adjust accordingly) cp.b 10000000 100000 (Program contents at RAM address 0x10000000 to NOR Flash address 0x100000) U-Boot environment variables must be set up, so as to boot the linux kernel from NOR Flash, and to mount the SDCard as the root filesystem. Execute the following u-boot commands: setenv bootargs console=ttyS0 root=/dev/mmcblk0p1 rootwait (Linux boot parameters: console is ttyS0; root filesystem found on MMC/SD card 0 partition 1; wait for MMC/SD driver is loaded and card fully mounted before using root filesystem) setenv bootcmd bootm 0x100000 (boot linux image from ROM location) saveenv (to permanently store the environment variables) Reset U-Boot, to make sure the environment variables are setup correctly to auto-boot linux from the SDCard. reset You should now see the U-Boot boot messages scroll by, soon followed by linux boot messages. The linux prompt should appear shortly. If you do not get to the linux prompt, scrutinize the terminal messages. If you require further assistance, please copy the terminal output, starting from the U-Boot messages, and e-mail to support@mediamatech.com -- we will do our best to help you get things going. Now that you are successfully in linux, here are some useful programs/utilities: ts_calibrate (re-calibrate the touchscreen; best to use a PDA stylus for this) ts_test (graphical program to test the touchscreen) The Qtopia4 demos are located under /usr/share/qt4/demos. Note that you must execute the first Qtopia program with the -qws argument. That program will now be running as the window manager; subsequent Qtopia programs will be in new windows. To run what is demonstrated on the RMT1 YouTube video: cd /usr/share/qt4/demos mainwindow/mainwindow -qws & pathstroke/pathstroke & To shutdown the NGW100+RMT1 (i.e. halt linux properly, and completely power-off the boards): poweroff