SATA Test Spartan 6 LX45T/OMAP L138

From RidgeRun Developer Connection
Revision as of 09:19, 18 March 2014 by Spalli (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Format your SATA Hard Disk

You could use the application gparted. The GParted application is a graphical partition editor for creating, reorganizing, and deleting disk partitions.


Verify you have the kernel modules enabled

Enable the SATA modules on the SDK kernel configuration

       -> Kernel configuration                                              
         -> Device Drivers                                                         
           -> Serial ATA and Parallel ATA drivers (ATA [=y])    


Check the options:

 --- Serial ATA and Parallel ATA drivers                                 
      [*]   Verbose ATA error reporting                                
      [*]   SATA Port Multiplier support                                       
      <*>   AHCI SATA support                                                  
      [*]   ATA SFF support                                                     
      <*>     Marvell SATA support                                              
      < >     Generic platform device PATA support              

Enable the EXT3 support for the kernel

       -> Kernel configuration                                                    
         -> File systems                                                         
           -> Ext3 journalling file system support (EXT3_FS [=y])                 
             -> Ext3 extended attributes (EXT3_FS_XATTR [=y])   


Reinstall the kernel image on the board

Reinstalling the kernel

rra@rr-desktop:~/DEVDIR$ make install                            
  Ridgerun Linux SDK                                                                  
  Board configuration: AVNET OMAP-L138 EVM                                            
  Installation system of uboot images over TFTP for host SERVER                 
  Be sure u-boot is running on IP:PORT and no process (like termnet) is using it                                                                                 
  Press return to continue...

Reboot the board

You would had the same result if you power on the board with the SATA HD plugged or if you connect it after the boot

In case you connect the SATA HD after the board boot you would have a log as the one shown below:

BusyBox v1.14.2 (2010-07-20 10:36:36 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # 
/ # 
/ # [   19.750000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   19.780000] ata1.00: ATA-7: WDC WD2500AAJS-22RYA0, 12.01B01, max UDMA/133
[   19.780000] ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[   19.790000] ata1.00: configured for UDMA/133
[   19.800000] ata1: EH complete
[   21.040000] scsi 0:0:0:0: Direct-Access     ATA      WDC WD2500AAJS-2 12.0 PQ: 0 A5
[   21.070000] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[   21.090000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   21.110000] sd 0:0:0:0: [sda] Write Protect is off
[   21.150000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't sA
[   21.160000]  sda: sda1
[   21.200000] sd 0:0:0:0: [sda] Attached SCSI disk

/ # 

Check if the device is correctly recognized

/ # ls /dev/sda
/dev/sda   /dev/sda1

Mount the device

/ # mkdir disc
/ # mount -t ext3 /dev/sda1 disc
[  283.890000] kjournald starting.  Commit interval 5 seconds
[  283.890000] EXT3-fs (sda1): using internal journal
[  283.900000] EXT3-fs (sda1): recovery complete
[  283.900000] EXT3-fs (sda1): mounted filesystem with writeback data mode
/ # 

Now you're able to modify the files on the hard disc

/ # cd disc/
/disc # ls
file1  file2  file3    

Actions Tested

Create files
Read files
Write files