CM-A510: Linux: Ubuntu

From Compulab Mediawiki
Revision as of 06:31, 27 January 2011 by Mike (talk | contribs) (Required system changes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Prepare installation media

Installation of generic Ubuntu 10.04 Server

  • Connect the host PC to the CM-A510 via the serial cable supplied with the CM-A510 evaluation kit.
  • Start terminal emulation software on your PC using the COM port to which the serial cable is connected. Set baud rate to 115200 bps, 8 bit per frame, 1 stop bit, no parity, no flow control.
  • Connect LAN0 Ethernet port on CM-A510 (connector P11 on SB-A510) to your local Ethernet.
  • Connect LiveUSB to L11 USB port on CM-A510 (connector P11 on SB-A510).
  • Connect storage media to the SATA port (connector P18 on SB-A510).
  • Turn on the CM-A510. The U-Boot boot-loader will start and you will get a command prompt.
Admolition note.png If the boot settings of your CM-A510 are different than default, you may need to press and hold ^C while turning on the CM-A510, in order to get command prompt.
  • Start the U-Boot USB subsystem, check that your LiveUSB has valid filesystem and boot.
usb start
fatls usb 0
fatload usb 0:1 0x00200000 /cdrom/uImage
fatload usb 0:1 0x01100000 /cdrom/uInitrd
setenv bootargs pm_disable console=ttyS0,115200 file=/cdrom/preseed/ubuntu-server.seed cdrom-detect/try-usb=true
bootm 0x00200000 0x01100000
  • The resulting output should be similar to the following:
CM-A510>> usb start
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
CM-A510>> fatls usb 0
            dists/
            pics/
            .disk/
            install/
            preseed/
            pool/
            cdrom/
     1115   cdromupgrade 
   122326   md5sum.txt 
     1461   boot.scr 
      240   readme.diskdefines 

4 file(s), 7 dir(s)

CM-A510>> fatload usb 0:1 0x00200000 /cdrom/uImage
reading /cdrom/uImage
............................................................................................................................................................................................................................................................................................

2919244 bytes read
CM-A510>> fatload usb 0:1 0x01100000 /cdrom/uInitrd
reading /cdrom/uInitrd
.......................................................................................................................................................................................................................................................................................................................................................................................

3846585 bytes read
CM-A510>> setenv bootargs pm_disable console=ttyS0,115200 file=/cdrom/preseed/ubuntu-server.seed cdrom-detect/try-usb=true
CM-A510>> bootm 0x00200000 0x01100000
## Booting kernel from Legacy Image at 00200000 ...
   Image Name:   Linux-2.6.32.21+drm33.7-00068-g2
   Created:      2011-01-18   7:57:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2919180 Bytes =  2.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   Ubuntu Initrd
   Created:      2010-04-28  12:45:39 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3846521 Bytes =  3.7 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Linux version 2.6.32.21+drm33.7-00068-g25da183 (kostya@kostya-linux) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #7 Tue Jan 18 09:57:39 IST 2011 ()
[    0.000000] CPU: Marvell PJ4 v7 Processor-wmmx [560f5815] revision 5 (ARMv7), cr=10c53c7f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: Compulab CM-A510 Board
...
  • Continue standard Ubuntu Server installation - choose timezone, partitions, username, password etc.
    • Choose language, country, territory or area and keyboard layout
    • Say "Yes" when asked "Continue the install without loading kernel modules?"
    • Choose primary network interface, timezone and hostname
    • Choose manual partitioning method.
    • Make separate partition for /boot with ext2 or ext3 filesystem. It is essential because U-Boot is able to read uImage file only from the root directory of a partition.
    • Make separate partitions for / and swap.
    • For example use the following scheme:
SCSI1 (0,0,0) (sda) - 160.0 GB ATA Hitachi HTS54321
>     #1  primary  100.0 MB    F  ext2          /boot
>     #2  primary  158.9 GB    F  ext4          /
>     #3  primary    1.0 GB    F  swap          swap
Admolition note.png If your partitioning scheme is different, you may need to edit U-Boot boot parameters accordingly.
  • Write changes to disk and continue installing the system.
    • Say "Yes" when asked "Continue without installing a kernel?"
    • Choose username, password and wait until installation will be finished.
    • Reboot the CM-A510, leave LiveUSB plugged in the USB port.
    • The U-Boot boot-loader will start and you will get a command prompt.
  • After the reboot
usb start
fatload usb 0:1 0x00200000 /cdrom/uImage
setenv bootargs 'root=/dev/sda2 pm_disable console=ttyS0,115200'
bootm 0x00200000
  • The resulting output should be similar to the following:
CM-A510>> usb start
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
CM-A510>> fatload usb 0:1 0x00200000 /cdrom/uImage
reading /cdrom/uImage
............................................................................................................................................................................................................................................................................................

2919244 bytes read
CM-A510>> setenv bootargs 'root=/dev/sda2 pm_disable console=ttyS0,115200'
CM-A510>> bootm 0x00200000
## Booting kernel from Legacy Image at 00200000 ...
   Image Name:   Linux-2.6.32.21+drm33.7-00068-g2
   Created:      2011-01-18   7:57:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2919180 Bytes =  2.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Linux version 2.6.32.21+drm33.7-00068-g25da183 (kostya@kostya-linux) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #7 Tue Jan 18 09:57:39 IST 2011 ()
[    0.000000] CPU: Marvell PJ4 v7 Processor-wmmx [560f5815] revision 5 (ARMv7), cr=10c53c7f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: Compulab CM-A510 Board

...
  • Boot and login using previously selected username and password.

Required system changes

  • Add the following lines to /etc/apt/sources.list
## Repository for CM-A510 users provided by Compulab
deb https://compulab.co.il/workspace/sw/ubuntu/lucid binary/
  • Refresh update manager
sudo apt-get update && sudo apt-get upgrade
  • For convenience we created single metapackage that provides GUI environment, kernel, graphic drivers and media player libraries for HD playback.
sudo apt-get install ubuntu-lucid-a510-desktop
  • Remove custom headers that are not fully compatible with CM-A510.
sudo apt-get purge linux-headers-2.6.31-608-imx51 linux-headers-2.6.32-209 linux-headers-2.6.32-209-dove linux-headers-dove linux-headers-imx51 && sudo apt-get autoremove
  • Ubuntu 10.04 Desktop is now installed, power-off the CM-A510 and unplug LiveUSB.
  • Turn on the CM-A510. The U-Boot boot-loader will start and you will get a command prompt.
  • Update default boot configuration for the installed system:
setenv bootargs 'root=/dev/sda2 pm_disable console=ttyS0,115200'
setenv bootcmd 'ide reset; ext2load ide 0:1 0x200000 /uImage; bootm 0x200000'
saveenv
  • Boot and wait for login screen to appear.
  • Welcome to Ubuntu 10.04 Desktop.

See also