WO2019196315A1 - 一种具有boot功能的SD卡及其制卡方法 - Google Patents

一种具有boot功能的SD卡及其制卡方法 Download PDF

Info

Publication number
WO2019196315A1
WO2019196315A1 PCT/CN2018/103042 CN2018103042W WO2019196315A1 WO 2019196315 A1 WO2019196315 A1 WO 2019196315A1 CN 2018103042 W CN2018103042 W CN 2018103042W WO 2019196315 A1 WO2019196315 A1 WO 2019196315A1
Authority
WO
WIPO (PCT)
Prior art keywords
boot
card
command
module
controller
Prior art date
Application number
PCT/CN2018/103042
Other languages
English (en)
French (fr)
Inventor
万波
后嘉伟
廖炳隆
Original Assignee
南京扬贺扬微电子科技有限公司
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 南京扬贺扬微电子科技有限公司 filed Critical 南京扬贺扬微电子科技有限公司
Publication of WO2019196315A1 publication Critical patent/WO2019196315A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Definitions

  • the invention belongs to the field of integrated circuit chip design, in particular to an SD card with a boot function and a card making method thereof.
  • the program code that controls the CPU can support the updateable function.
  • the mainstream scheme is that the program code of the main control CPU is divided into two parts: a startup code and a main code.
  • the startup code is relatively small and placed in the built-in ROM of the chip and cannot be changed.
  • the main code is placed on NAND flash or eMMC with boot function and can be rewritten or updated multiple times.
  • NAND Flash pins complicated circuits, and large PCB area.
  • the control method of NAND Flash for reading and writing access is complicated and difficult to develop.
  • the eMMC solution solves these problems but at a higher cost.
  • the object of the present invention is to provide an SD card with a boot function and a card-making method thereof, which can analyze some hardware components through an SD card controller command without affecting the normal function of the SD card without significantly increasing the area of the control chip.
  • the function fine-tuning realizes the combination of the boot function and the normal function, and increases the added value of the SD card.
  • the present invention provides an SD card having a boot function, including an SD card controller, a flash, a boot command parsing module, a boot control module, a DMA transfer control module, and an SD transfer module;
  • the boot command parsing module is configured to receive the SD CMD0 command delivered by the master control, and perform parsing, and confirm whether to enter the boot mode command according to the parameter it carries;
  • the boot control module performs parameter setting and starts the DMA transfer control module to automatically read the boot data from the flash area and upload it through the SD transfer module.
  • the boot control module parameter settings of the present invention include a start address and a data block size of the boot area.
  • the present invention further includes a boot stop instruction module. If the SD command receiving module receives the Stop command issued by the master, the upload is stopped and the mode is switched to the normal mode.
  • the invention also discloses a card making method for an SD card with a boot function, comprising the following steps:
  • Step 1 Power on the SD card controller and read the flash model from the flash management control module.
  • Step 2 Download the boot data to a specific area of the flash through the flash management control module;
  • Step 3 Write for each type of chip.
  • the present invention has a greatly reduced circuit interface, a simple circuit, and no software for reading and writing management of flash, and the circuit interface is basically the same as that of the eMMC solution.
  • the boot control method is simple and low in cost.
  • FIG. 1 is a schematic diagram of a boot mode entry in the present invention
  • FIG. 2 is a schematic diagram of a normal working mode in the present invention
  • FIG. 3 is a functional structural diagram of an SD controller chip Boot of the present invention.
  • FIG. 5 is a flow chart of the power-on software operation of the chip of the present invention.
  • the invention provides an SD card with a boot function, which is implemented on the SD card controller chip, and includes a scheme of entering a boot mode, a boot mode exit scheme, a boot mode, and a normal working mode.
  • the invention transmits the CMD0 instruction with specific parameters to the SD card controller chip by the master control, and the controller parses the command, and if it is determined to be the boot mode request, the controller internal software is notified, and the data in the main program area is automatically Upload to the master. During the transmission process, the controller will monitor the commands transmitted by the master. If there is a stop command, the data upload will stop and switch to the normal working mode.
  • the present invention is implemented by modifying an SD controller chip, including adding a boot command parsing module, a boot data automatic upload module, a boot stop command parsing module, and a boot data download module.
  • the boot instruction parsing module of the present invention is responsible for receiving the SD CMD0 command with a specific parameter delivered by the main control, and parsing, and confirming whether to enter the boot mode instruction according to the parameter (such as E0E0E0Ex), if receiving the instruction to enter the boot mode
  • the CPU will be notified to set the start address of the boot control module boot area, the data block size and other parameters, and then the boot control module will start the DMA transfer control module, automatically read the boot data from the flash area and upload it through the SD transfer module.
  • the SD command receiving module receives the Stop command delivered by the master, the upload is stopped and the mode is switched to the normal mode.
  • the invention also provides a corresponding card-making method for the SD card with the boot function, the controller is powered on, the flash model is read from the flash management control module; and then the boot data is downloaded to the flash specific through the flash management control module.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种具有boot功能的SD卡及其制卡方法,由主控下传带特定参数的CMD0指令到SD卡控制器芯片,控制器会对命令进行解析,判断为boot模式请求的话,会通知控制器内部软件,将主程序区域内的数据自动上传给主控。在传输过程中,控制器会监控主控下传的命令,如果有停止命令就会停止数据上传,切换到正常工作模式,将boot功能集成到SD控制器上,扩展了SD卡的应用场景,实现了产品功能的升级。

Description

一种具有boot功能的SD卡及其制卡方法 技术领域
本发明属于集成电路芯片设计领域,具体说是一种具有boot功能的SD卡及其制卡方法。
背景技术
目前日常广泛使用的SD卡,内部包括SD卡控制器和flash两部分,被广泛应用在日常存储领域,在各种嵌入式应用中,程序是经常需要更新的,就要求这些应用中所用的主控CPU的程序代码能够支持可更新功能。目前主流方案是主控CPU的程序代码分成启动代码和主代码两部分。其中启动代码比较小放在芯片内置ROM中,不可更改。主代码放到NAND flash或者带boot功能的eMMC上,可以被多次重写或更新。NAND Flash引脚很多,电路复杂,占用PCB板面积大,同时读写访问的NAND Flash的控制方法复杂,开发难度高。eMMC方案解决了这些问题,但成本较高。
发明内容
本发明的目的是提供一种具有boot功能的SD卡及其制卡方法,在不明显增加控制芯片面积的前提下,不影响SD卡正常功能的同时,通过SD卡控制器命令解析部分硬件的功能微调实现boot功能和正常功能的合二为一,提高了SD卡的附加值。
为解决上述技术问题,本发明提供了一种具有boot功能的SD卡,包括SD卡控制器、flash、boot指令解析模块、boot控制模块、DMA传输控制模块和SD传输模块;
所述boot指令解析模块,负责接收主控下发的SD CMD0命令,并进行解析,根据其所带参数确认是否进入boot模式指令;
若接收到进入boot模式指令,boot控制模块进行参数设置,并启动DMA传输控制模块自动从flash区读取boot数据并通过SD传输模块上传。
作为本发明的进一步优化,本发明的boot控制模块参数设置包括boot区的起始地址和数据块大小。
作为本发明的进一步优化,本发明还包括boot停止指令模块,若SD指令接收模块接收到主控下发的Stop指令,则停止上传,切换至正常模式。
本发明还公开了一种具有boot功能的SD卡的制卡方法,包括以下步骤:
步骤1、对SD卡控制器上电,从闪存管理控制模块读取flash型号;
步骤2、通过闪存管理控制模块将boot数据下载到flash特定区域;
步骤3、针对各型号芯片进行写入。
有益效果:本发明与现有技术相比,本发明相对NAND Flash boot方案,电路接口 大大减少,电路简单,同时无需软件对flash进行读写管理等控制,与eMMC方案相比电路接口基本相同,boot控制方法简单,成本低。
附图说明
图1为本发明中boot模式进入示意图;
图2为本发明中正常工作模式示意图;
图3为本发明SD控制器芯片Boot功能结构图;
图4为本发明的Boot数据烧录流程图;
图5为本发明的芯片上电软件工作流程图。
具体实施方式
下面结合附图对本发明作更进一步的说明。
本发明提供的一种具有boot功能的SD卡,在SD卡控制器芯片上实现的,包括进入boot模式的方案、boot模式退出方案、boot模式和正常工作模式之间的切换方案。
本发明由主控下传带特定参数的CMD0指令到SD卡控制器芯片,控制器会对命令进行解析,判断为boot模式请求的话,会通知控制器内部软件,将主程序区域内的数据自动上传给主控。在传输过程中,控制器会监控主控下传的命令,如果有停止命令就会停止数据上传,切换到正常工作模式。
如图1、图2、图3所示,本发明由修改SD控制器芯片来实现,包括增加boot指令解析模块,boot数据自动上传模块,boot停止指令解析模块,boot数据下载模块。
本发明的boot指令解析模块,负责接收主控下发的带特定参数的SD CMD0命令,并进行解析,根据其所带参数(如E0E0E0Ex)确认是否进入boot模式指令,若接收到进入boot模式指令,会通知CPU,设置boot控制模块boot区的起始地址,数据块大小等参数,然后boot控制模块会启动DMA传输控制模块,自动从flash区读取boot数据并通过SD传输模块上传。在上传期间,如果SD指令接收模块接收到主控下发的Stop指令,则停止上传,切换至正常模式。
本发明还提供一种相对应的具有boot功能的SD卡的制卡方法,对控制器上电,从闪存管理控制模块读取flash型号;然后从通过闪存管理控制模块将boot数据下载到flash特定区域;在制卡过程首先通过控制器引导程序启动到某一型号芯片模式,读取闪存管理控制模块中闪存的ID,确认闪存型号;再将boot数据下传到闪存中;分别针对各型号芯片进行写入。

Claims (4)

  1. 一种具有boot功能的SD卡,包括SD卡控制器和flash,其特征在于:还包括boot指令解析模块、boot控制模块、DMA传输控制模块和SD传输模块;
    所述boot指令解析模块,负责接收主控下发的SD CMD0命令,并进行解析,判断是否进入boot模式指令;
    若接收到进入boot模式指令,boot控制模块进行参数设置,并启动DMA传输控制模块自动从flash区读取boot数据并通过SD传输模块上传。
  2. 根据权利要求1所述的一种具有boot功能的SD卡,其特征在于:所述boot控制模块参数设置包括boot区的起始地址和数据块大小。
  3. 根据权利要求1所述的一种具有boot功能的SD卡,其特征在于:还包括boot停止指令模块,若SD指令接收模块接收到主控下发的Stop指令,则停止上传,切换至正常模式。
  4. 基于权利要求1-3任意一项所述的一种具有boot功能的SD卡的制卡方法,其特征在于:包括以下步骤:
    步骤1、对SD卡控制器上电,从闪存管理控制模块读取flash型号;
    步骤2、通过闪存管理控制模块将boot数据下载到flash特定区域;
    步骤3、针对各型号芯片进行写入。
PCT/CN2018/103042 2018-04-10 2018-08-29 一种具有boot功能的SD卡及其制卡方法 WO2019196315A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810315078.0A CN108287671B (zh) 2018-04-10 2018-04-10 一种具有boot功能的SD卡及其制卡方法
CN201810315078.0 2018-04-10

Publications (1)

Publication Number Publication Date
WO2019196315A1 true WO2019196315A1 (zh) 2019-10-17

Family

ID=62834345

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103042 WO2019196315A1 (zh) 2018-04-10 2018-08-29 一种具有boot功能的SD卡及其制卡方法

Country Status (2)

Country Link
CN (1) CN108287671B (zh)
WO (1) WO2019196315A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287671B (zh) * 2018-04-10 2024-06-14 江苏扬贺扬微电子科技有限公司 一种具有boot功能的SD卡及其制卡方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200923A (zh) * 2006-01-17 2011-09-28 诺基亚公司 从mmc/sd设备引导主机设备的方法及相关设备
CN102246143A (zh) * 2008-12-11 2011-11-16 株式会社东芝 电子设备和电子设备系统
CN103069384A (zh) * 2010-08-10 2013-04-24 桑迪士克以色列有限公司 用从储存设备加载的操作系统代码安全地引导主机设备的主机设备和方法
CN103116801A (zh) * 2013-01-22 2013-05-22 无锡中科龙泽信息科技有限公司 一种无线sd卡及其工作模式切换的实现方法
CN108287671A (zh) * 2018-04-10 2018-07-17 南京扬贺扬微电子科技有限公司 一种具有boot功能的SD卡及其制卡方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004928A (zh) * 2009-08-28 2011-04-06 上海岭通电子科技有限公司 模块化多协议rfid手持读写设备
CN102800015A (zh) * 2012-06-15 2012-11-28 武汉天喻信息产业股份有限公司 一种金融ic卡远程个人化方法及系统
JP2016524771A (ja) * 2014-06-27 2016-08-18 華為技術有限公司Huawei Technologies Co.,Ltd. プログラムデータを更新する方法及びデバイス
CN107622027A (zh) * 2017-09-20 2018-01-23 南京扬贺扬微电子科技有限公司 一种多合一Flash控制器及制卡方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200923A (zh) * 2006-01-17 2011-09-28 诺基亚公司 从mmc/sd设备引导主机设备的方法及相关设备
CN102246143A (zh) * 2008-12-11 2011-11-16 株式会社东芝 电子设备和电子设备系统
CN103069384A (zh) * 2010-08-10 2013-04-24 桑迪士克以色列有限公司 用从储存设备加载的操作系统代码安全地引导主机设备的主机设备和方法
CN103116801A (zh) * 2013-01-22 2013-05-22 无锡中科龙泽信息科技有限公司 一种无线sd卡及其工作模式切换的实现方法
CN108287671A (zh) * 2018-04-10 2018-07-17 南京扬贺扬微电子科技有限公司 一种具有boot功能的SD卡及其制卡方法

Also Published As

Publication number Publication date
CN108287671A (zh) 2018-07-17
CN108287671B (zh) 2024-06-14

Similar Documents

Publication Publication Date Title
CN105354070B (zh) 一种通过i2c升级设备固件的方法
CN101431441B (zh) 一种内部植入cpu的fpga系统在线升级的方法
CN102945173B (zh) 用户程序在线升级系统和升级方法
WO2016173537A1 (en) Setting startup parameter and controlling startup of mainboard
US20150154092A1 (en) Bios maintenance method
CN102609274B (zh) 一种系统快速启动运行方法及电视机
CN113434202B (zh) 一种设备的启动方法、装置、电子设备及计算机存储介质
CN103207797A (zh) 基于通用可扩展固件接口固件系统的胶囊式定制更新方法
CN107273170A (zh) 一种SoPC程序远程更新系统及方法
JP2007206885A (ja) コンピュータシステム及びシステム起動方法
US10564707B2 (en) System management controller
CN102053850A (zh) 一种在线升级fpga逻辑的方法
WO2016033941A1 (zh) Boot在线升级装置及方法
CN116009921A (zh) 一种嵌入式操作系统升级方法、装置及其介质
WO2019196315A1 (zh) 一种具有boot功能的SD卡及其制卡方法
CN101667133B (zh) 固件更新方法和使用该方法更新固件的芯片
CN102446101A (zh) 固件强制升级的系统及其固件的强制升级方法
CN105677429A (zh) 程序烧写方法、处理器和电子电路
CN105677416A (zh) 一种Uboot的升级控制系统及方法
TWI482090B (zh) 可經由通用序列匯流排裝置開機的系統及其方法
CN114442765A (zh) 计算机设备的风扇控制方法、基板管理控制器及存储介质
CN112040162B (zh) 存储摄像视频数据的控制方法及控制装置、视频采集设备
CN103699467B (zh) Soc芯片烧录调试方法
CN113778474A (zh) 升级方法、装置、设备及存储介质
TWI659295B (zh) 伺服器及伺服器開機初始化方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18914766

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18914766

Country of ref document: EP

Kind code of ref document: A1