GTA04 Debian Rootfs

GTA04 Debian Rootfs

This is a Subproject of the GTA04 and Openmoko Beagle Hybrid

Features

  • full base install of Debian Squeeze for ARMEL
  • upgrade to base install by X11, LXDE, i2c tools, libertas, alsa, etc. so that LXDE starts out of the box
  • compatible to the Linux kernel from the GTA04 Kernel project - and includes the matching modules
  • can be installed on a two-partition SD card to boot Debian from a SD card
  • drivers for built-in WiFi, Bluetooth, CDC Ethernet, touch screen etc. already configured
  • can be easily extended and adapted by apt-get (locate packages through Debian Projects)

Installation

Download binaries

Latest binary downloads are available here.

Please use either unstable or the latest "stable" (subdirectory with date/description).

Install on SD card

The SD card needs to have a special format as described here.

IMPORTANT: the first file you copy to the FAT partition must be the MLO (machine loader).

Extract the Debian Rootfs to the ext partition of a 2-partition SD card which already includes MLO, U-Boot and the Kernel.

You may find the "makesd" script convenient. Please adapt to your raw device file name!

Boot the GTA04 with the new SD card

After you have powered on, the device should boot into Linux and show LXDE. Connect the device through USB to a host (that is capable of running the ethernet gadget protocol).

ssh root@192.168.0.202

Run these commands on the GTA04

depmod -a     # to update the modules database
ts_calibrate  # to calibrate the touch screen
./useful      # this installs nice additional packages
apt-get upgrade # upgrade to the latest Debian stable
reboot

This takes a while and also charges the GTA04 battery.

Install X-Loader and U-Boot in NAND flash

  1. connect the board to RS232
  2. copy all required files (MLO, x-loader.ift, splash.rgb16z, boot.scr etc.) to a SD card as described in the previous section.
  3. install the SD card and boot from peripheral (press User/AUX button if required).
  4. break into the U-Boot console
  5. flash=yes
  6. run bootcmd

Install Kernel and Linux-System in NAND flash (as jffs)

  1. copy all required files (MLO, x-loader.ift, splash.rgb16z, boot.scr etc.) to a SD card as described in the previous section.
  2. install the SD card and boot from peripheral (press User/AUX button if required).
  3. connect through ssh
  4. ./flash-nand

Adaptations

On the Beagleboard XM you can use the Ethernet interface. You will have to manually do some ifconfig to set the network address and route add default so that all outgoing traffic is routed to usb0.

E.g. (depending on your network)

route add default gw 192.168.2.1 usb0
ifconfig usb0 192.168.2.114

The reason is that the default config is intended for the USB-OTG port which happens to be called usb0 as well. And that one has a default IP address of 192.168.0.202 to be compatible with Angstrom/Openmoko.

So to make it permanently work, you also should edit /etc/network/interfaces - but after running the postinst script (it will be overwriten by the script).

Bugs

Please report bugs in the Issue Tracking section. If you have developed patches (git format-patch), please send them through e-mail for review.

Build your own Debian from scratch

on some Linux machine

tar tvjf bootstrap-lenny.tbz   # loads base rootfs
tar tvzf modules.tbz   # installs kernel modules
tar tvzf config.tbz   # installs our specific config

completion on Beagle Board or GTA04

  1. insert SD into device
  2. boot and login as 'root' (console or through ssh over USB). The console login is 'root' with no password.
  3. run (to upgrade and install some important packages) ./postinst
  4. install additional packages with apt-get install or any packet manager you like.

Development Team
Admins
Nikolaus Schaller
Happy Crew
Rene Leitner

Powered by InDefero,
a CĂ©ondo Ltd initiative.