This page describes how to create a Linaro Ubuntu SD card for a Samsung Origen board.

Dependencies

These instructions assume you are using an Oneiric or newer host machine

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 linaro-image-tools

Download the Linaro Image

Follow these steps to create a bootable SD card for Samsung Origen 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/oneiric/lt-origen-oneiric/YYYYMMDD/0/images/hwpack/hwpack_linaro-lt-origen_YYYYMMDD-0_armel_supported.tar.gz

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

You will only need to download one of the images below not both.

Mininal Image - command line only

$ wget http://snapshots.linaro.org/oneiric/linaro-o-nano/YYYYMMDD/0/images/tar/linaro-o-nano-tar-YYYYMMDD-0.tar.gz

$ wget http://snapshots.linaro.org/oneiric/linaro-o-nano/YYYYMMDD/0/images/tar/linaro-o-alip-tar-YYYYMMDD-0.tar.gz

Write the Image

  • 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 image name from above:

$ sudo linaro-media-create  --mmc /dev/sdc --dev origen --hwpack hwpack_linaro-lt-origen_YYYYMMDD-0_armel_supported.tar.gz --binary linaro-o-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 Origen board's SD slot. It is on the top side of the board.
  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/ttyS0
  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 bugs here

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

NOTES:

  • /dev/sdb - This is the raw SD device. This may vary from system to system (sdc/sdd/mmcblk0 etc.). You can discover the device by running dmesg after plugging in your SD card.

Q&A

Touchscreen is not working!

When Touchscreen is not working, please check the following:

For the last few days I've been fighting what I thought was a
touchscreen software problem with the Origen.

I finally went back to a known good version and it didn't work either.
I've figured out what happened to my board I'm just not sure why as
there has been no mechanical stress on that connection. One of the
connectors has become de-laminated so the signals aren't getting
through.

 I've attached a picture with the area of the fault indicated.
Applying pressure to the indicted area re-establishes the connection.

ts_connection640.JPG

NotGood.jpg

Good.jpg

How to use WLAN in Origen board

Boards/Origen/Setup (last modified 2011-11-16 16:47:24)