Home
Rev1.1
Contents
1. dg sataahciip instruction en doc DG SATA AHCI IP Demo Instruction Rev1 1 16 Jul 15 This document describes the instruction to run SATA AHCI IP and SATA IP on ZC706 platform for SATA III device access by ARM CPU which runs PetaLinux2013 10 OS In the demo FPGA can boot and is configured by SD Card 1 Hardware Requirement As shown in Figure 1 to run AHCI demo please prepare 1 ZC706 board 2 ABO9 FMCRAID board provided by Design Gateway 3 2 5 inch SATA III Device or other size with adapter cable 4 SD CARD with boot loader BOOT BIN and LINUX image image ub downloaded from http www dgway com SATA IP X E html 5 PC with Serial port Fe J See ee psw EE M tA res Configure ies HAR nN ee p pe kii ss Lr i i TIT d EmN E A anman Figure 1 SATA AHCI IP Demo Environment Setup on ZC70 6 16 Jul 15 Page 1 dg sataahciip instruction en doc DG 2 Hardware setup e Copy BOOT BIN and image ub to SD card and insert to ZC706 board SD Card is FAT32 format Removable Disk E i inl x File Edit wiew Favorites Tools Help Back EY Search Folders Falder Sync Q O D m ie Address E BOOT BIN image ub File and Folder Tasks Y BIN File LIB File y 12 2235 KB 0 0 KB Other Places Ax 3 My Computer My Documents cj Shared Documents a My Network Places Details Ax Removable Disk E Removable Disk File System FAT3zZ Figure 2 SD Card Im
2. dg sataahciip instruction en doc DG e On PC serial console please wait PetaLinux boot up until login required as shown in Figure 5 Starting Bootloq daemon bootlogd Creating dev flash device nodes Configuring network interfaces udhcpc v1 20 72 started Sending discover Sending discover Sending discover Ho lease failing Starting Busybox inet Daemon inetd done Starting uWeb server INII Entering runlevel 35 Stopping Bootlog daemon Dbootlogd Linux Boot Message PetaLinux v2013 10 Tocto 1 4 dg ahciDemo ttyP30 16 Jul 15 dg ahciDemo login H Figure 5 Linux Bootup Page 4 dg sataahciip instruction en doc 3 Linux Setup e User login on the demo is follows Login Password root After login system is ready to receive user command root Sending discover Sending discover No lease failing Starting Busybox inet Daemon inetd done Starting uWeb server INII Entering runlevel 5 Stopping Bootlog daemon bootlogd UN y 7 X Figure 6 Linux Login e To run SATA AHCI IP demo two modules are required to insert i e libahci ko common AHCI SATA low level routines and dg ahciDemo ko AHCI SATA platform driver Both are stored in home root driver directory To insert module use following command gt gt insmod home root driver libahci ko skip cpu sync 1 gt gt insmod home root driver dg ahciDemo ko e After insert modules disk in
3. Pattern type none 0 inc 1 dec 2 default 0 9 File number 1 100 default iE File size 0x1 0x00000000 1bd3d480 default Oxi Dx4000000 i mpm SS SS SSS a AAE Ey Xour operation Operation Type Write Pattern Type None FileBaseName TEST fileNum 1 fileSize Ox00000000 04000000 File media hdd TEST 00 bin OX Writing completed Write file performance by Gspeed 363 40 MB s 32 GB dummy data Test on media hdd mounted point Base of Lilename default TEST hit Ctrl4c to exit ii select disk default OG hir Ctrlsc ro exit B Dperation type read O write 1 defauit 0 1 Pattern type none 8O inc l dec 2 default 0 Disk s offset OxG Gx00000000 1dcf32af defauit MIN Ox Operation length Ox1 O200000000 1dcf32b0 default MAX Ox4000000 i ERE Fee FS Fee Fee Fee if Your operation Disk sda Opt Write Patr Increment axo 0000000 000000068 0x00000008 ODGGGGOGO List of disk on system 0 sda Select disk defauit O hit Ctrl c to exit ii Figure 17 Write file performance by 32 bit increment data 16 Jul 15 Page 12 dg sataahciip instruction en doc Hase of filename default TESI hit Ctrlrc to exit TESI Operation type read O0 write l1 default 2 9 Pattern type none O inc 1 dec 2 default o 9 File number 1 100 default i 1 r Boo Gecko deck EEE ERE o Go EF Your operation Operation Type Read Pattern Type Hone
4. FileBaseName TEST fileNum 1 fileSize OxOOOOOOOD OO000000 File media hdd TEST 00 bin CE Reading completed Read file performance without Gspeed 218 76 MB s data verification J SS Shs She she she she Jf Test on media hdd mounted point Base of filename default TEST hit Ctrltc to exit Mi Figure 18 Read file performance without data verification Base of filename default TEST hit Ctrl4c to exit TEST Operation type read O0 write i1 default 0 0 Pattern type none O0 inc i dec 2 default 920 1 File number 1 i100 default 1 1 EF EE Fe FEE xXx FAR of ff ff Your operation Operation Iype Read Pattern Type Increment FileBaseName TEST fileNum 1 fileSize Ox00000000 90000000 File fmedia hdd TEST 00 bin OH Reading verification completed Read file performance with Gspeed 55 42 MB s data verification by increment da 4 2 21 lll lll lll gj Test on media hdd mounted point Base of filename default TEST hit Ctrl c to exit Figure 19 Read file performance and verify by 32 bit increment data Page 13 dg sataahciip instruction en doc DG 5 2 Bonnie Software This topic shows how to test disk performance by using Bonnie software The brief option of Bonnie software is belows bonnie d dir s size MB chunk size b n number to stat 1024 max size min size num directories m machine name r ram size in MB x number
5. age for SATA AHCI IP Demo e Check board power is OFF e Set SW11 1 5 00110 to select configuration option SD mode as shown in Figure 3 Figure 3 SW11 Configuration Option Settin e Connect ABO9 FMCRAID board to FMC HPC connector J37 e Connect power to power connector on ABO9 FMCARID board e Connect 2 5 inch SATA3 Device to CNO on ABO9 FMCRAID board 16 Jul 15 Page 2 dg sataahciip instruction en doc DG e Connect USB Mini B cable on J21 of ZC706 board to USB port on PC for serial console e Connect Power cable to ZC706 and then power up Now FPGA will start up the operation and print the message to serial port e Open Serial monitoring software such as HyperTerminal Terminal settings should be Baud Rate 115 200 Data 8 bit Non Parity Stop 1 If Serial console is opened too late all boot messages will be printed out e Power up supply to FMCRAID board e After disk initialization check GPIO LEDs status on ZC706 board at LEDO and LEDR Both LEDs must be ON as shown in Figure 4 Each LED description is described as follows Fig y up complete on SATA 3 speed OK 150 MHz of SATA clock on FMCRAID board cannot lock Please check 150 MHz clock source on FMCRAID board OK SATA IP cannot detect SATA device Please check SATA device and the connection SATA II Not supported SATA AHCI IP SATA AHCI IP in idle in processing Table 1 LED Status of AHCI reference design 16 Jul 15 Page 3
6. ended value in the tool gt gt W Write table to the disk Now one partition named sda1 has been created in the disk root dg ahciDemo fdisk dev sda Device contains neither a valid DOS partition table nor Sun SGI OSF or GPT disk label Building a new DOS disklabel Changes will remain in memory only until you decide t write them After that the previous content won t be recoverable The number of cylinders for this disk is set to 31130 There is nothing wrong with that but this is larger than 1024 and could in certain Setups cause problems with 1 software that runs at boot time e g old versions of LILO 2 booting and partitioning software from other 08s e g DOS FDISK 05 2 FDISK Command m for help E Command action extended n primary Partition 1 4 Partition number 1 4 First cylinder 1 31130 default 1 E Last cylinder or size or 4sizeM or sizeK 1 31130 default 31130 31130 Command m for help Ihe partition table has been altered Calling ioctl to re read partition table soda sdal root dg ahciDemo ii Figure 8 fdisk command Note User can type m to show all fdisk options 16 Jul 15 Page 6 dg sataahciip instruction en doc DG 4 2 Format Disk To format the disk user needs to select file system type such as FAT EXT4 This example shows only the command to format to EXT4 by typing following command gt gt mkfs ext4 dev sdat root dg ahc
7. ent pattern ff 2 2 22 2 22 fs List of disk on system 0 sda Select disk default 0G Bit Curltc to exit fil Figure 13 Write performance in raw data mode by 32 bit increment data 16 Jul 15 Page 9 dg sataahciip instruction en doc on F fn onl Select disk default 0 hit Crrl4c ro exit 8 Operation type read 0 write i default 0 9 Pattern type none O0 inc l dec 2 default 0 9 Dizk z offset Q20 O200000000 l1dcf32af default MIN x Operation length x1 0x00000000 1dcf32b0 default MAX 0x4000000 y y 222 AAS BAA mE xxx xxx ff Your operation Disk sda Opt Read Patr None Addr O OOOOO000 OOO000000 O0xOG0O000008 OGOO000000 oe Reading completed Read performance by 32 GB without speed 219 28 MB s data verification 17 see ee eee eee eee Y List of disk on system O0 sda Select disk default 0 Bit Ctrl4c to exit ii Figure 14 Read performance in raw data mode without data verification select disk default hir Curl4c ro exit B Operation type read 0 write l default 0 6G Pattern type none 0 incil dec 2 default 0 x Disk s offset OxG Gx00000000 1dcf32af defauit MIN Gx Operation length xi GOxOGOOGOGODO 1dcf32b0 defauir MAX Ox4300000 ya ee FES Fee Fee Fee Fe EF Your operation Disk sda Opt Read Patr Increment Addr Ox00000000 GO0006000 0x600000008 O0000000 Reading and pattern ve
8. formation will be displayed as shown in Figure 7 Now SATA device is ready to use root8dg ahciDemo f insmod home root driver libahci ko skip cpu sync 1 j zootGdg ahciDemo insmod home root driver dg ahciDemo ko Insert Mod le ancl 4U0UUUU 4kINSaLa can L QEL CLOC ahci 44000000 axihsata AHCI 0001 0300 32 slots i ports 6 Gbps Oxi impl platform m 16 Jul 15 ode ahci 44000000 axihsata flags neg only csiz 4 lata3 SATA max UDMA 133 mmio mem Ox44000000 0x4401ffff port 0x100 irq 91 SAIA link up 6 0 Gbps SStatus 133 SControl 300 U0 00 00 U0 i 2 0 iOi iOi 0 0 0 0 ahci platform native sectors 1 is smaller than sectors 500118192 ATA 9 Samsung SSD 840 PRO Series DXHO06BO0Q max UDMA 133 500118192 sectors multi 16 LBA4B NCQ depth 31 32 configured for UDMA 133 0 0 Direct Access ATA Samsung 55D 840 DAMO PO 0 ANSI 5 sda 500118192 512 byte logical blocks 256 GB 238 GiB sda Write Protect is off Attached scsi generic sg type U da Write cache enabled read cache enabled doesn t support DPO oq SATA Device Information Page 5 dg sataahciip instruction en doc DG 4 Example Linux command 4 1 E Create Disk Partition To create new disk partition user can follow the example shown in Figure 8 gt gt fdisk dev sda Call the tool to manage disk partition gt gt Nn Create new partition Select the option following the recomm
9. iDemo l mkfs ext4 dev sdai Format to EXTA mke2fT3 1 42 7 21 Jan 2013 Discarding device blocks done Filesystem label O5 type Linux Block size 4096 loq 2 Fragment size 4096 log 2 stride 0 blocks Stripe width 0 blocks 15630336 inodes 62512923 blocks 3125646 blocks 5 00 reserved for the super user First data block 0 Maximum filesystem blocks 0 1908 block groups 32768 blocks per group 32758 fragments per group 81927 inodes per group superblock backups stored on blocks 32768 988304 163840 229375 294912 819200 88473656 1505532 2654206 40986000 79626274 11239424 20480000 23887872 Allocating group tables done Writing inode tables done Creating journal 32768 blocks done Writing superblocks and filesystem accounting information done root dg ahciDemo li Figure 9 Format disk 4 3 Mount Disk Before running any application to access the disk by file system such as Bonnie disk must be mounted firstly by following command gt gt mount dev sda1 media hdd root dg ahciDemo mount dev adai media hdd ERI4 IS dal mounted filesystem with ordered data mode Opts null root dg ahciDemo HH Figure 10 Mount disk 16 Jul 15 Page 7 dg sataahciip instruction en doc DG 5 Performance test This topic shows the example application to test disk performance Two test applications are used i e diskTestApp and Bonnie disk TestApp is the test applicat
10. ieve better performance because CPU resource is not used to fill or verify the data 16 Jul 15 Page 8 dg sataahciip instruction en doc eS lj EE root dg ahciDemo benchmark diskTestApp r ff List of disk on system D sda Select disk default 0 hit Ctrlsc to exit 9 Operation type read 0 write 1 default 0 1 Pattern type none O0 inc 1 dec 2 default 0 9 Disk s offset 0x0 0x00000000 1dcf32af default MIN 9x0 Operation length Oxi Ox00000000 1idcf32Db0 default MAX Ox4000000 Zr FS o wmm AEE FEA FEA wmm if Your operation Disk sda Opt Write Patr None Addr Ox00000000 00000000 0x00000008 00000000 OZ Writing completed speed 371 59 MB s Write performance by 32 GB dummy data yy mee mee mee aan nmm nen i List of disk on system D sda Select disk default 0 hit Ctrl4c te exit 1i Figure 12 Write performance in raw data mode by dummy data select disk default GO hit Cutrlsc to exit 8 Operation type readi0 writet1 default 0 1 Pattern type none 0 inci l dec 2 default 0 Disk s offset Ox0 Ox00000000 1dcf32af defauir MIN Gx Operation length Oxi OxO0000000 1dcf32b0 defauit MAK Ox4G0080000 fe fee ARE Fee Fee Fee Fee if Your operation sda Opt Write Patr Increment Ox00000000 ODOG00000 0x00000008 G0OOGOOGOO OX Writing patterns completed Write performance by G speed 63 16 MB s 32 GB increm
11. ion developed by Design Gateway to check write read performance in both raw data format and file system 5 1 Performance test by diskTestApp zi x For raw data test For file system test Figure 11 diskTestApp usage As shown in Figure 11 diskTestApp can run in two data formats i e raw data or file system Warning If running raw data test file system in that disk partition will be lost 5 1 1 Raw Data Mode Type command benchmark diskTestApp r to run test application in raw data format Five input parameters are required i e 1 Disk selection to select the disk to test performance 2 Operation type 0 Read disk test 1 Write disk test 3 lest pattern 0 Write by dummy data or read without verification 1 Write or verify by 32 bit increment pattern 2 Write or verify by 32 bit decrement pattern 4 Disk offset Disk start address in sector unit to write read data Ox prefix is added for hex unit input while default value without prefix is decimal unit 5 Operation length Transfer length in sector unit to write read data Ox prefix is added for hex unit input while default value without prefix is decimal unit Figure 12 and Figure 13 show the example of write test in raw data mode by dummy data and increment data Figure 14 and Figure 15 show the example of read test in raw data mode without and with data verification Comparing to increment decrement pattern using dummy mode for both write and read will ach
12. of tests u uid to use gid to use g gid to use q f size for char io b FD p processes y pls z seed num Z random file More details about Bonnie user manual can be found from http linux die net man 8 bonnie The example command to run Bonnie is follows gt gt benchmark bonnie d media hdd s 2g n O m test f u root f lt nchmark bonnie d media hdd s 2g n 0 m test f u root Using uid 0 gid 0 Command to run bonnie Writing intelligently done Rewriting done Reading intelligently done start em done done done Disk performance output from bonnie version i 03e Sequential Output Sequential Input Random Per Ghr Block Rewrite Per Chr Blo ck Seeks Machine Size E sec tCP K sec tCP K sec CP K sec CP K sec CP sec CP teat 2G 119414 90 T2461 77 195085 94 125272 146 test 2t 119414 90 72461 77 195005 94 12521 6 146 o v rr rg gIro ots dg ancibemo JF Figure 20 Test performance from Bonnie benchmark 16 Jul 15 Page 14 dg sataahciip instruction en doc 6 Revision History Description 10 Nov 14 Initial version release 16 Jul 15 Add new test application 16 Jul 15 Page 15
13. rification completed Gspeed 55 45 MB s Read performance by 32 GB with Ey DES miens oe cimi Sais m n FF data verification by increment pattern List of disk on system 0 sda Select disk default G hit Curl4c to exit ii Figure 15 Read performance in raw data mode and verify by 32 bit increment data 16 Jul 15 Page 10 dg sataahciip instruction en doc DG 5 1 2 File System Mode Before run test application in File system mode user needs to create disk partition format disk and mount the disk Type benchmark diskTestApp f media hdd to run the test in file system mode Five input parameters are required i e File name input File name to run the test 2 Operation type 0 Read file test 1 Write file test Test pattern 0 Write by dummy data or read without verification 1 Write or verify by 32 bit increment pattern 2 Write or verify by 32 bit decrement pattern 4 File number Total number of files to run write read file test 5 File size Size of each file in sector unit to run write read file test Similar to raw data mode when write by dummy pattern or read without data verification performance will be better than increment decrement pattern as shown in Figure 16 Figure 19 16 Jul 15 Page 11 dg sataahciip instruction en doc Test on media hdd mounted point Base of filename default TEST hit Ctrl c to exit TEST Operation type read 0 write 1 default 0
Download Pdf Manuals
Related Search
Rev1.1 rev 1.1 re 1.171.152/sc re 1.153.964/sp re 1.165.959 tema 1161 re 1.19 hk re 1.162.672/sp re 1.167.478/rj re 1.140.005/rj re 1.182.189/ba
Related Contents
Un guide User Manual Samsung C550 manual do usuário User manual Manuel de l`utilisateur Manual de usuario StarTech.com 3m Cisco Compatible SFP+ 10-Gigabit Ethernet (10GbE) Passive Twinax Direct Attach Cable Content s 1. Using this manual INSTALLATION MANUAL EN.cdr 施設機械工事完成図書等作成要領(PDF:235KB) Samsung GT-B7610 Manual de Usuario Copyright © All rights reserved.
Failed to retrieve file