CN108959130A - storage system based on embedded system - Google Patents

storage system based on embedded system Download PDF

Info

Publication number
CN108959130A
CN108959130A CN201810405490.1A CN201810405490A CN108959130A CN 108959130 A CN108959130 A CN 108959130A CN 201810405490 A CN201810405490 A CN 201810405490A CN 108959130 A CN108959130 A CN 108959130A
Authority
CN
China
Prior art keywords
hard disk
storage system
embedded system
function
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810405490.1A
Other languages
Chinese (zh)
Inventor
奚谷枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Industrial Regulation Technology Co Ltd
Original Assignee
Zhejiang Industrial Regulation Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Industrial Regulation Technology Co Ltd filed Critical Zhejiang Industrial Regulation Technology Co Ltd
Priority to CN201810405490.1A priority Critical patent/CN108959130A/en
Publication of CN108959130A publication Critical patent/CN108959130A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus

Abstract

The invention discloses the storage systems based on embedded system, the calling of initialization and disk read-write driving including hard disk, development board based on ARM926E chip, according to the ATA hard-disk interface specification interface circuit of IDE hard disk, the present invention realizes the read-write to IDE hard disk, has reached the requirement of high-speed and high reliability.

Description

Storage system based on embedded system
Technical field
What it is the present invention relates to embedded system storage system more particularly to a kind of memory based on embedded system is System.
Background technique
Currently, embedded system applies day in fields such as long-range Supervisory control and data acquisition, Industry Control and E-consumers Super extensive, people are easy the storage of embedded system to also proposed higher requirement therewith.The appearance of common FLASH memory Not nearly enough use is measured, therefore is developed in the great Rong for being suitable for embedded system, the data-storage system change of high speed and high reliability It must become more and more important.Hard disk is connect in embedded system general ide interface, the storage that can not only greatly expand embedded system is held Amount, also easily can exchange data with general PC.
Summary of the invention
The present invention realizes the reading to IDE hard disk in view of the above problems, devise the storage system based on embedded system It writes, has reached the requirement of high-speed and high reliability.
The present invention adopts the following technical scheme that realization:
Storage system based on embedded system, which is characterized in that initialization and disk read-write driving including hard disk It calls;The wherein initialization operation of the hard disk has got through the channel of driving Yu topmost paper system, the initialization operation of hard disk Steps are as follows:
1) hard disc apparatus driving registration;
2) hard disc request queue is initialized;
3) SSMC plot maps and configures the reading and writing period;
4) hard disk plot and interruption GPIO plot mapping;
5) it is interrupted to kernel log-in vector;
It 6) is hard disk distribution structure space;
7) the hard disc structure space is added in registration;
8) terminate.
Request queue in step 2 is associated with the respective queue association in kernel by function blk-init-queue.
Step 4, the ioremap function of kernel offer is driven through to complete plot mapping.
Step 5, it is hard disk application interrupt requests by request-irq function, and registers interrupt handling routine.
Step 6, the distribution structure space of hard disk needs that alloc-disk function is called to distribute.
The calling of disk read-write driving, since request handles function do-hd-request.
Technical solution of the present invention realize the utility model has the advantages that
The present invention realizes embedded system to IDE hard disk by the calling of the initialization of hard disk and disk read-write driving Read-write, reached the requirement of high-speed and reliability.
Detailed description of the invention
Fig. 1 is hard disk initialization flow chart in the storage system the present invention is based on embedded system.
Specific embodiment
Technical solution of the present invention described in detail below.
Embodiment
Storage system based on embedded system, the calling of initialization and disk read-write driving including hard disk.It is entire to drive Dynamic be from module-init is Driver Entry, has invoked the initialization function hd-init of hard disk, the initialization to hard disk is got through With the channel of topmost paper system, the step of hard disk initialization is as follows:
1) hard disc apparatus driving registration;
2) hard disc request queue is initialized;
3) SSMC plot maps and configures the reading and writing period;
4) hard disk plot and interruption GPIO plot mapping;
5) it is interrupted to kernel log-in vector;
It 6) is hard disk distribution structure space;
7) the hard disc structure space is added in registration;
8) terminate.
IDE device driver must complete registration of the equipment in kernel during initialization, be driven through Register-blkdev function completes major device number from this registered task to kernel hard disc apparatus and main equipment name.In IDE During hard disk initialization, operating system provides a kernel calls function blk-init-queue, asks to complete block device Ask the initialization of queue and the association with respective queue in kernel.According to the SSMC of ide interface, hard disk and select interruption GPIO's Physical address is driven through the ioremap function of kernel offer to complete plot mapping.In hard disk initialization, also to pass through Request-irq function is hard disk application interrupt requests, and registers interrupt handling routine.In linux kernel, use Gendisk structural body carrys out table and seeks an independent fdisk, which is the structural body of a dynamic allocation, and driving cannot This structural body oneself is distributed, needs that aloc-disk function is called to distribute, is assigned and then add-disk function is called Registration, the initialization of hard disk is fully completed, entire to adjust when topmost paper system is written and read hard disk after initialization Be since request handle function do-he-request.

Claims (6)

1. the storage system based on embedded system, which is characterized in that the tune of initialization and disk read-write driving including hard disk With;The wherein initialization operation of the hard disk has got through the channel of driving Yu topmost paper system, the initialization operation step of hard disk It is rapid as follows:
1) hard disc apparatus driving registration;
2) hard disc request queue is initialized;
3) SSMC plot maps and configures the reading and writing period;
4) hard disk plot and interruption GPIO plot mapping;
5) it is interrupted to kernel log-in vector;
It 6) is hard disk distribution structure space;
7) the hard disc structure space is added in registration;
8) terminate.
2. the storage system according to claim 1 based on embedded system, it is characterized in that: the request in the step 2 Queue is associated with the respective queue association in kernel by function blk-init-queue.
3. the storage system according to claim 1 based on embedded system, it is characterized in that: the step 4, is driven through The ioremap function that kernel provides maps to complete plot.
4. the storage system according to claim 1 based on embedded system, it is characterized in that: the step 5, passes through Request-irq function is hard disk application interrupt requests, and registers interrupt handling routine.
5. the storage system according to claim 1 based on embedded system, it is characterized in that: the step 6, point of hard disk Distribution structure space needs that alloc-disk function is called to distribute.
6. the storage system according to claim 1 based on embedded system, it is characterized in that: disk read-write driving It calls, since request handles function do-hd-request.
CN201810405490.1A 2018-04-29 2018-04-29 storage system based on embedded system Pending CN108959130A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810405490.1A CN108959130A (en) 2018-04-29 2018-04-29 storage system based on embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810405490.1A CN108959130A (en) 2018-04-29 2018-04-29 storage system based on embedded system

Publications (1)

Publication Number Publication Date
CN108959130A true CN108959130A (en) 2018-12-07

Family

ID=64498950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810405490.1A Pending CN108959130A (en) 2018-04-29 2018-04-29 storage system based on embedded system

Country Status (1)

Country Link
CN (1) CN108959130A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632769A (en) * 2003-12-22 2005-06-29 英业达股份有限公司 IDE equipment hot plug system and implementing method under Linux operating system
CN1632745A (en) * 2003-12-22 2005-06-29 中国电子科技集团公司第三十研究所 Operating method for filing system using multi-equipment with IDE interface
CN105700826A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Virtualization method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632769A (en) * 2003-12-22 2005-06-29 英业达股份有限公司 IDE equipment hot plug system and implementing method under Linux operating system
CN1632745A (en) * 2003-12-22 2005-06-29 中国电子科技集团公司第三十研究所 Operating method for filing system using multi-equipment with IDE interface
CN105700826A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Virtualization method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任晓丹孙俊杰: "IDE硬盘在准在线故障诊断系统中的应用研究", 《机床与液压》 *

Similar Documents

Publication Publication Date Title
US8380922B1 (en) Data storage device comprising host interface state machine blocking on target logical block address
US20180004559A1 (en) Controlling access to namespaces of a storage device
US9164895B2 (en) Virtualization of solid state drive and mass storage drive devices with hot and cold application monitoring
US9898341B2 (en) Adjustable priority ratios for multiple task queues
US20160253093A1 (en) A new USB protocol based computer acceleration device using multi I/O channel SLC NAND and DRAM cache
CN117687568A (en) Sequential write stream management
US20090138627A1 (en) Apparatus and method for high performance volatile disk drive memory access using an integrated dma engine
JP2012508428A (en) Method and system for queuing transfers of multiple non-contiguous address ranges with a single command
US9164703B2 (en) Solid state drive interface controller and method selectively activating and deactivating interfaces and allocating storage capacity to the interfaces
US20160092361A1 (en) Caching technologies employing data compression
US20190114257A1 (en) Namespace planning of non-volatile memory of data storage device
JP2006294022A (en) Universal storage bus adaptor
KR20120132820A (en) Storage device, storage system and method of virtualizing a storage device
US8041849B2 (en) Method for handling small computer system interface (SCSI) commands via a redundant array of inexpensive disks (RAID) device driver
US20130054840A1 (en) Tag allocation for queued commands across multiple devices
EP3769227A1 (en) Hybrid memory system
WO2019183155A1 (en) Hybrid memory system
WO2020135504A1 (en) Virtualization method and apparatus
CN103226448B (en) The driving method of solid state hard disc and device
US5996045A (en) IDE disk drive arrangement that combines the capacity of a master drive and slave drive while hiding the presence of slave drive to a host computer
US8930968B2 (en) Method and driver for processing data in a virtualized environment
CN109799959A (en) A method of it improving open channel solid-state disk and writes concurrency
EP3769202B1 (en) Hybrid memory system
US20070118835A1 (en) Task context direct indexing in a protocol engine
CN108959130A (en) storage system based on embedded system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207