Difference between revisions of "CM-A510: U-Boot: Creating a bootable SATA drive"

From Compulab Mediawiki
Jump to: navigation, search
(Installing firmware on a SATA drive)
 
(Installing firmware on a SATA drive)
 
Line 10: Line 10:
 
== Installing firmware on a SATA drive ==
 
== Installing firmware on a SATA drive ==
 
The firmware can be installed on a SATA drive using a Linux workstation with a SATA adaptor
 
The firmware can be installed on a SATA drive using a Linux workstation with a SATA adaptor
* Copy {{filename|bin-header-sata-cm-a510-2.bin}} and {{filename|u-boot-2009.08-cm-a510-2.bin}} from the [http://compulab.co.il/products/computer-on-modules/cm-a510/#devres U-Boot package for CM-A510] into the current directory
+
* Copy {{filename|bin-header-sata-cm-a510-3.bin}} and {{filename|u-boot-2009.08-cm-a510-3.bin}} from the [http://compulab.co.il/products/computer-on-modules/cm-a510/#devres U-Boot package for CM-A510] into the current directory
 
* Connect a SATA drive to the workstation
 
* Connect a SATA drive to the workstation
 
* The SATA drive will be identified as {{filename|/dev/sdX}}, where X is the SATA drive letter
 
* The SATA drive will be identified as {{filename|/dev/sdX}}, where X is the SATA drive letter
 
* Run the following command:
 
* Run the following command:
 
<pre>
 
<pre>
dd if=bin-header-sata-cm-a510-2.bin of=/dev/sdX bs=512 seek=1 oflag=dsync
+
dd if=bin-header-sata-cm-a510-3.bin of=/dev/sdX bs=512 seek=1 oflag=dsync
dd if=u-boot-2009.08-cm-a510-2.bin of=/dev/sdX bs=512 seek=63 oflag=dsync
+
dd if=u-boot-2009.08-cm-a510-3.bin of=/dev/sdX bs=512 seek=63 oflag=dsync
 
</pre>
 
</pre>
  

Latest revision as of 08:17, 11 August 2015

Introduction

CM-A510 system-on-module uses on-board SPI flash as its main boot storage. CM-A510 can also boot from a SATA drive. This article describes the creating of bootable SATA drive.

SATA drive requirements

Prior to installing the CM-A510 firmware on a SATA drive, make sure that the SATA drive partitions do not start in the first 1MB of the SATA drive. Otherwise, the partitions may be overwritten by this procedure.

Installing firmware on a SATA drive

The firmware can be installed on a SATA drive using a Linux workstation with a SATA adaptor

  • Copy bin-header-sata-cm-a510-3.bin and u-boot-2009.08-cm-a510-3.bin from the U-Boot package for CM-A510 into the current directory
  • Connect a SATA drive to the workstation
  • The SATA drive will be identified as /dev/sdX, where X is the SATA drive letter
  • Run the following command:
dd if=bin-header-sata-cm-a510-3.bin of=/dev/sdX bs=512 seek=1 oflag=dsync
dd if=u-boot-2009.08-cm-a510-3.bin of=/dev/sdX bs=512 seek=63 oflag=dsync

Booting from a SATA drive

  • Plug a SATA drive into the P18 SATA connector of the SB-A510
  • Hold the BOOT SELECT (SW1) button while resetting/powering on the CM-A510 evaluation system
  • The CM-A510 will boot from a SATA drive

See also