This page describes how to run a Linaro build on Samsung Orion board (SMDKV310).

Dependencies

There are few packages that must be installed before creating the installable image. You need to make sure they are installed:

# Add Linaro Tools PPA
$ sudo add-apt-repository ppa:linaro-maintainers/tools
$ sudo apt-get update

# Install required packages
$ sudo apt-get install qemu-kvm qemu-kvm-extras-static vgabios bzr python-argparse python-parted

Creating Linaro Image

Follow these steps to create a bootable SD card for Samsung Orion board with Linaro images. Please note that these steps will erase contents of the SD card.

Get the linaro hwpack (replace YYYYMMDD to date):

$ wget http://snapshots.linaro.org/11.05-daily/linaro-hwpacks/lt-s5pv310/YYYYMMDD/0/images/hwpack/hwpack_linaro-lt-s5pv310_YYYYMMDD-0_armel_supported.tar.gz

Get rootfs of your choice (replace YYYYMMDD to date):

Minimal image :

$ wget http://snapshots.linaro.org/11.05-daily/linaro-nano/YYYYMMDD/0/images/tar/nano-n-tar-YYYYMMDD-0.tar.gz

Full featured image with X windows :

$ wget http://snapshots.linaro.org/11.05-daily/linaro-alip/YYYYMMDD/0/images/tar/alip-n-tar-YYYYMMDD-0.tar.gz

Get Linaro Image Tools:

$ bzr branch lp:linaro-image-tools

You may now write the Linaro images to SD card using the Linaro Image Tools downloaded previously with (replace YYYYMMDD to date) and use the correct image from above:

$ sudo ./linaro-image-tools/linaro-media-create --mmc /dev/sdc --dev smdkv310 --hwpack hwpack_linaro-s5pv310_YYYYMMDD-0_armel_supported.tar.gz --binary nano-n-tar-YYYYMMDD-0.tar.gz.tar.gz

NOTES:

  • /dev/sdc - This is the raw SD device. This may vary from system to system (sdb/sdd/mmcblk0 etc.). You can discover the device by running dmesg after plugging in your SD card.
  • The image creation process takes a few minutes and will ask a few questions requiring your positive confirmation.

Testing the Image

  1. Place SD card in Orion board's SD slot (MMC CH2).
  2. Connect serial cable to UART port.
  3. Start a serial console session on your computer. The baud rate is 115200 /No Hardware Flow Control/No Software Flow Control , so an example commands would be:

# minicom -b 115200 -D /dev/tty0
  1. If you use USB-Serial, you can see message via /dev/ttyUSB0, /dev/ttyUSB1..
  2. Connect the power to the board

This should boot up the kernel and mount the filesystem present in the hardware pack.

Please report test results here https://wiki.linaro.org/QA/QATracker

The following section will be useful if you want to use a custom filesystem.

To Build an Image From Source

If you want to build the hwpack from source, you may refer to this link.

SD card layout

Various binaries are loaded onto the SD card within this given regions. The numbers specified are in multiple of sector size of 512 bytes. The numbers within () specifies the size allocated for each binary.

Raw Sectors

Partitions

0

1 to 32

33 to 64

65 to 1088

boot

rootfs

R

BL1

ENV

u-boot

kernel

initrd

ext3 root filesystem

  • R: Reserved for MBR
  • ENV: U-Boot Environment

If you want to write raw image into raw sectors:

  • # dd if=u-boot-mmc-spl.bin of=/dev/sdb bs=512 seek=1
  • # dd if=u-boot.bin of=/dev/sdb bs=512 seek=65
  • # dd if=uImage of=/dev/sdb bs=512 seek=1089

Boards/SMDKV310/Setup (last modified 2011-07-26 17:14:01)