Devkit8000 Ubuntu

From eLinux.org
Revision as of 13:34, 27 January 2010 by JTer (talk | contribs)
Jump to: navigation, search


SD-CARD

First create a SD card. See this Link for instruction : http://www.elinux.org/BeagleBoardBeginners#SD_card_setup

Short Version:

255 Heads 63 Sectors nn cylinders
cylinders = Byte/255/63/512 
Round down the cylinders
Create 1 FAT32 Partition (DEVK-BOOT)
Create 1 Linux Partition (DEVK-SYS)
Create FAT File System
mkfs.msdos -F 32 /dev/sdx1 -n DEVK-BOOT
/dev/sdx1 has to be your SD Card
Create EXt3 File System
mkfs.ext3 -L DEVK-SYS /dev/sdix2
/dev/sdx2 has to be your SD Card

Kernel and RootFS

After you created the SD-Card go to the directory of the Angstrom Distribution on the CD.

Copy MLO,uboot.bin and uImage from CD to /dev/sdx1 or /media/DEVK-BOOT  (FAT32 Partition)

Get a Ubuntu rootfs from here:

http://www.elinux.org/BeagleBoardUbuntu#Demo_Image

Unpack rootfs

7za x ubuntu-9.04-minimal-armel.tar.7z
tar xvf /path/to/rootfs/armel-rootfs-200912081224.tgz -C /media/DEVK-SYS/ (EXT3 Partition)

System configuartion

Edit /etc/network/interfaces add:

auto eth0
iface eth0 inet dhcp

To get a IP on startup.

Edit /etc/rc.local add:

ntpdate-debian

This sets the clock while booting.

u-boot env

On the DEVKIT u-boot commandline edit the Bootcmd and Bootargs Env Var.

setenv bootcmd 'mmcinit;fatload mmc 0 80300000 uImage;bootm 80300000'
setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait video=omapfb:mode:7inch_LCD'
saveenv

check Env Var

printenv

Boooting

Put the SD Card in the DEVKIT and boot. You should see the one Pinguin, after that the Screen goes blank. Wait. After a while you get the Login Screen.

Ubuntu

If you are using the above mentioned rootfs, login as Ubuntu System User Password temppwd

Update the System

sudo apt-get update

Upgrade the System

sudo apt-get upgrade

Touchscreen support

Remove the Synaptics Driver

sudo apt-get remove xserver-xorg-input-synaptics

Install the tslib driver and the tslib tools

sudo apt-get install xserver-xorg-input-tslib libts-bin

Now we have to calibrate the Touchscreen Type in Terminal

TSLIB_TSDEVICE=/dev/event2
TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_TSDEVICE TSLIB_CONFFILE
ts_calibrate

This will start the calibration Process for the Touchscreen. After that we have to restart the X-Server. In the Terminal type:

sudo stop gdm

Now you probably have to Login again. After you are logged in type:

sudo start gdm

This will start the X-Server. Now the Touchscreen should work

Troubleshoot Touchscreen

Check if the Touchscreen respons: cat /dev/event2 If you touch the Screen the should be some garbage Output