CN105653330A - SD card based NorFlash programming system and method - Google Patents

SD card based NorFlash programming system and method Download PDF

Info

Publication number
CN105653330A
CN105653330A CN201511023354.9A CN201511023354A CN105653330A CN 105653330 A CN105653330 A CN 105653330A CN 201511023354 A CN201511023354 A CN 201511023354A CN 105653330 A CN105653330 A CN 105653330A
Authority
CN
China
Prior art keywords
storage card
norflash
programming
card
processor module
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
CN201511023354.9A
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.)
State Grid Corp of China SGCC
Nanjing NARI Group Corp
China EPRI Science and Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Nanjing NARI Group Corp
China EPRI Science and 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 State Grid Corp of China SGCC, Nanjing NARI Group Corp, China EPRI Science and Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201511023354.9A priority Critical patent/CN105653330A/en
Publication of CN105653330A publication Critical patent/CN105653330A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Abstract

The present invention provides an SD card based NorFlash programming system and method. The system comprises a processor module, a NorFlash chip and an SD storage card that are communicated with one another. The NorFlash chip is connected with the processor module through a Local Bus. The processor module is used for externally hanging the NorFlash chip and the SD storage card, and selecting a startup mode by means of a jumper manner. The NorFlash chip is used for storing a BootLoader guide program, and is used as a normal startup medium of the processor module. The SD storage card is used for programming and storing the BootLoader guide program in the NorFlash chip when the processor module chooses to start up by means of the SD storage card. The system and method provide a low-cost, simple and reliable technical means for development of NorFlash programming of an embedded system.

Description

A kind of NorFlash programming system and method based on SD card
Technical field
The present invention relates to a kind of NorFlash programming system and method, be specifically related to a kind of NorFlash programming system and method based on SD card.
Background technology
Nor Flash chip address wire and data wire are separately, it is available for CPU direct addressin, startup program can be directly performed, it is not necessary to starting program copy in internal memory, therefore Nor Flash chip is widely used as the system start-up chip of the flush bonding processor chips such as ARM, PowerPC in flash chip. At present, in embedded system board is developed, generally first by burned for bootloader bootstrap NorFlash, tftp mode programming kernel kernel, rootfs root file system can be passed through afterwards under bootloader. Current bootloader programming method mainly has following several:
1) use dedicated emulated device, such as Jlink, Trace32 etc., utilize board JTAG mouth programming in NorFlash;
2) use specialized CDRW, after Nor Flash chip programming is completed, then be welded on board or be inserted on enclosed seat.
Wherein, programming method 1) is relatively conventional, it is adaptable to Nor Flash chip is already welded on board, but needs dedicated emulated device, and emulator price is higher. Second method is suitable for producing in enormous quantities, but needs extra cd-rom recorder, and specialized CDRW price is also higher. It is both needed to want artificial operational simulation device or cd-rom recorder and operating process relative complex during both the above method programming NorFlash.
Summary of the invention
In order to overcome above-mentioned existing methodical deficiency, the present invention provides a kind of NorFlash programming system and method based on SD card, and the method provides a kind of low cost, simple and reliable means for embedded system development NorFlash programming.
It is an object of the invention to adopt following technical proposals to realize:
A kind of NorFlash programming system based on SD card, described system includes the processor module, Nor Flash chip and the SD storage card that intercom mutually, and described Nor Flash chip is connected with processor module by LocalBus bus; Wherein,
Described processor module, for plug-in Nor Flash chip and SD storage card, adopts jumper to select Starting mode;
Described Nor Flash chip, is used for storing BootLoader bootstrap, and starts medium as processor module routine;
Described SD storage card, for when processor module selects to be started by SD storage card, by BootLoader bootstrap programming and store to Nor Flash chip.
Preferably, described Starting mode includes NorFlash startup and the startup of SD storage card.
Preferably, described processor module adopts Power PC Processor, arm processor or MIPS processor.
Further, described Power PC Processor adopts Freescale FreescaleP1020 chip; Described Nor Flash chip is SpansionS29GL01GP chip; Described SD storage card adopts SandiskSD storage card, and capacity is 8GB.
Preferably, if described SD storage card comprises kernel kernel and rootfs root file programming mirror image, it may be achieved kernel and file system programming.
A kind of NorFlash programming method based on SD card, described method includes:
(1) definition SD storage card is boot disk, loads bootloader1 bootstrap by this SD storage card, will copy in described SD storage card to the bootloader2 bootstrap of NorFlash programming simultaneously;
(2) selecting one piece of embedded board, SD storage card is inserted embedded device SD draw-in groove, select SD storage card Starting mode, wherein, described embedded board selects powerpc board card, ARM board or MIPS board;
(3) board starts from SD storage card after powering on, and performs the bootloader1 bootstrap in SD storage card, and this bootloader1 bootstrap is automatically by the bootloader2 bootstrap programming in SD storage card to NorFlash, until programming completes;
(4) embedded board card-based mode changing into NorFlash start, after re-powering, processor module loads the bootloader2 bootstrap of programming in SD storage card automatically by Nor Flash chip.
Preferably, the concrete steps of described SD card programming NorFlash include:
A) under ubuntu12.04, format SD storage card, and create FAT32 subregion;
B) Freescaleboot_format instrument is used to write in SD storage card by the uboot1.bin binary file started by SD storage card under ubuntu12.04;
C) will copy in described FAT32 subregion to the uboot2.bin binary file of programming in NorFlash under ubuntu12.04;
D) jumper is adopted to select SD storage card to start;
E) board powers on, and processor module is started by SD storage card, performs uboot1.bin;
F) perform under environment at uboot1.bin, the environmental variable uboot_nor to NorFlash programming uboot2.bin is set, and to arrange self-starting environmental variable bootcmd be runuboot_nor, perform the code command of bootcmd program; Environmental variable is stored in SD storage card; Wherein, described environmental variable only need to be arranged once;
G) re-powering, after uboot1.bin execution terminates, the bootcmd according to arranging performs uboot_nor automatically, to realize burned for uboot2.bin Norflash automatically, until programming terminates;
H) Starting mode changes into and starting from NorFlash, and after re-powering, processor module loads the uboot2.bin of programming in SD storage card automatically by NorFlash.
Further, described processor module adopts Power PC Processor, arm processor or MIPS processor;
Described Power PC Processor adopts Freescale FreescaleP1020 chip.
Compared with prior art, the present invention reaches to provide the benefit that:
1) present invention makes full use of SD memory card device common in embedded system, realize the automatic programming of Nor Flash chip when SD storage card starts, eliminate the complicated processes of scheduling and planning human users's emulator or cd-rom recorder, greatly reduce cost of labor, improve production efficiency;
2) present invention is except programming bootloader, can be applicable to NorFlash programming kernel kernel, rootfs root file system etc., have only to copy in SD storage card kernel kernel, rootfs root file system, and adjust respective environment variable; Simple to operate and practical.
Accompanying drawing explanation
Fig. 1 is the NorFlash programming system structure schematic diagram based on SD card;
Fig. 2 is the NorFlash programming method flow diagram based on SD card;
Detailed description of the invention
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
As it is shown in figure 1, a kind of NorFlash programming system based on SD card, this system includes the processor module, Nor Flash chip and the SD storage card that intercom mutually, and described Nor Flash chip is connected with processor module by LocalBus bus; Wherein,
Processor module, for plug-in Nor Flash chip and SD storage card, adopts jumper to select Starting mode; It includes NorFlash and starts and the startup of SD storage card.
Described processor module adopts Power PC Processor, arm processor or MIPS processor. Wherein Power PC Processor adopts Freescale FreescaleP1020 chip; Nor Flash chip is SpansionS29GL01GP chip; SD storage card adopts SandiskSD storage card, and capacity is 8GB.
Nor Flash chip, is used for storing BootLoader bootstrap, and starts medium as processor module routine;
SD storage card, for when processor module selects to be started by SD storage card, by BootLoader bootstrap programming and store to Nor Flash chip. If described SD storage card comprises kernel kernel and rootfs root file, can programming mirror image; Realize kernel and file system programming.
As in figure 2 it is shown, a kind of NorFlash programming method based on SD card, described method includes:
(1) definition SD storage card is boot disk, loads bootloader1 bootstrap by this SD storage card, will copy in described SD storage card to the bootloader2 bootstrap of NorFlash programming simultaneously;
(2) selecting one piece of embedded board, SD storage card is inserted embedded device SD draw-in groove, select SD storage card Starting mode, wherein, described embedded board selects powerpc board card, ARM board or MIPS board;
(3) board starts from SD storage card after powering on, and performs the bootloader1 bootstrap in SD storage card, and this bootloader1 bootstrap is automatically by the bootloader2 bootstrap programming in SD storage card to NorFlash, until programming completes;
(4) embedded board card-based mode changing into NorFlash start, after re-powering, processor module loads the bootloader2 bootstrap of programming in SD storage card automatically by Nor Flash chip; Wherein, processor module adopts Power PC Processor, arm processor or MIPS processor.
Described Power PC Processor adopts Freescale FreescaleP1020 chip.
The concrete steps of SD card programming NorFlash include:
A) under ubuntu12.04, format SD storage card, and create FAT32 subregion;
B) Freescaleboot_format instrument is used to write in SD storage card by the uboot1.bin binary file started by SD storage card under ubuntu12.04;
C) will copy in described FAT32 subregion to the uboot2.bin binary file of programming in NorFlash under ubuntu12.04;
D) jumper is adopted to select SD storage card to start;
E) board powers on, and processor module is started by SD storage card, performs uboot1.bin;
F) perform, under environment, to arrange the environmental variable uboot_nor to NorFlash programming uboot2.bin, as shown in table 1 at uboot1.bin. And to arrange self-starting environmental variable bootcmd be runuboot_nor, perform the code command of bootcmd program; Environmental variable is stored in SD storage card; Wherein, described environmental variable only need to be arranged once;
G) re-powering, after uboot1.bin execution terminates, the bootcmd according to arranging performs uboot_nor automatically, to realize burned for uboot2.bin Norflash automatically, until programming terminates;
H) Starting mode changes into and starting from NorFlash, and after re-powering, processor module loads the uboot2.bin of programming in SD storage card automatically by NorFlash.
Table 1
Finally should be noted that: above example is only in order to illustrate the technical scheme of the application but not restriction to its protection domain; although with reference to above-described embodiment to present application has been detailed description; those of ordinary skill in the field are it is understood that the detailed description of the invention of application still can be carried out all changes, amendment or equivalent replacement by those skilled in the art after reading the application; these change, revise or equivalent replacement, and it is all within the right that its application is awaited the reply.

Claims (8)

1. the NorFlash programming system based on SD card, it is characterised in that described system includes the processor module, Nor Flash chip and the SD storage card that intercom mutually, described Nor Flash chip is connected with processor module by LocalBus bus; Wherein,
Described processor module, for plug-in Nor Flash chip and SD storage card, adopts jumper to select Starting mode;
Described Nor Flash chip, is used for storing BootLoader bootstrap, and starts medium as processor module routine;
Described SD storage card, for when processor module selects to be started by SD storage card, by BootLoader bootstrap programming and store to Nor Flash chip.
2. the system as claimed in claim 1, it is characterised in that described Starting mode includes NorFlash and starts and the startup of SD storage card.
3. the NorFlash programming method based on SD storage card as claimed in claim 1, it is characterised in that described processor module adopts Power PC Processor, arm processor or MIPS processor.
4. system as claimed in claim 3, it is characterised in that described Power PC Processor adopts Freescale FreescaleP1020 chip; Described Nor Flash chip is SpansionS29GL01GP chip; Described SD storage card adopts SandiskSD storage card, and capacity is 8GB.
5. the NorFlash programming system based on SD storage card as claimed in claim 1, it is characterised in that: if described SD storage card comprises kernel kernel and rootfs root file programming mirror image, it may be achieved kernel and file system programming.
6. the NorFlash programming method based on SD card, it is characterised in that: described method includes:
(1) definition SD storage card is boot disk, loads bootloader1 bootstrap by this SD storage card, will copy in described SD storage card to the bootloader2 bootstrap of NorFlash programming simultaneously;
(2) selecting one piece of embedded board, SD storage card is inserted embedded device SD draw-in groove, select SD storage card Starting mode, wherein, described embedded board selects powerpc board card, ARM board or MIPS board;
(3) board starts from SD storage card after powering on, and performs the bootloader1 bootstrap in SD storage card, and this bootloader1 bootstrap is automatically by the bootloader2 bootstrap programming in SD storage card to NorFlash, until programming completes;
(4) embedded board card-based mode changing into NorFlash start, after re-powering, processor module loads the bootloader2 bootstrap of programming in SD storage card automatically by Nor Flash chip.
7. the NorFlash programming method based on SD card as claimed in claim 6, it is characterised in that the concrete steps of described SD card programming NorFlash include:
A) under ubuntu12.04, format SD storage card, and create FAT32 subregion;
B) Freescaleboot_format instrument is used to write in SD storage card by the uboot1.bin binary file started by SD storage card under ubuntu12.04;
C) will copy to the uboot2.bin binary file of programming in NorFlash under ubuntu12.04
In described FAT32 subregion;
D) jumper is adopted to select SD storage card to start;
E) board powers on, and processor module is started by SD storage card, performs uboot1.bin;
F) perform under environment at uboot1.bin, the environmental variable uboot_nor to NorFlash programming uboot2.bin is set, and to arrange self-starting environmental variable bootcmd be runuboot_nor, perform the code command of bootcmd program; Environmental variable is stored in SD storage card; Wherein, described environmental variable only need to be arranged once;
G) re-powering, after uboot1.bin execution terminates, the bootcmd according to arranging performs uboot_nor automatically, to realize burned for uboot2.bin Norflash automatically, until programming terminates;
H) Starting mode changes into and starting from NorFlash, and after re-powering, processor module loads the uboot2.bin of programming in SD storage card automatically by NorFlash.
8. the NorFlash programming method based on SD card as described in claim 6-7, it is characterised in that described processor module adopts Power PC Processor, arm processor or MIPS processor;
Described Power PC Processor adopts Freescale FreescaleP1020 chip.
CN201511023354.9A 2015-12-30 2015-12-30 SD card based NorFlash programming system and method Pending CN105653330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511023354.9A CN105653330A (en) 2015-12-30 2015-12-30 SD card based NorFlash programming system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511023354.9A CN105653330A (en) 2015-12-30 2015-12-30 SD card based NorFlash programming system and method

Publications (1)

Publication Number Publication Date
CN105653330A true CN105653330A (en) 2016-06-08

Family

ID=56490000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511023354.9A Pending CN105653330A (en) 2015-12-30 2015-12-30 SD card based NorFlash programming system and method

Country Status (1)

Country Link
CN (1) CN105653330A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040802A1 (en) * 2016-08-30 2018-03-08 深圳市中兴微电子技术有限公司 Full-image file generation method and apparatus, and computer storage medium
CN107832182A (en) * 2017-11-28 2018-03-23 北斗航天汽车(北京)有限公司 Detection means and system under vehicle-mounted chips wire
CN109254799A (en) * 2018-08-29 2019-01-22 新华三技术有限公司 The starting method, apparatus and communication equipment of bootstrap
CN109388412A (en) * 2018-12-05 2019-02-26 安徽省航嘉智源科技有限公司 A kind of portable bootload device
CN109634674A (en) * 2018-12-06 2019-04-16 深圳忆联信息系统有限公司 Chip BOOT starts method, apparatus, computer equipment and storage medium
CN113687866A (en) * 2021-07-01 2021-11-23 深圳市昇伟电子科技有限公司 STM32 dual-core processor-based start mode implementation device, method, equipment, medium and product
CN114385255A (en) * 2022-01-13 2022-04-22 深圳市捷诚技术服务有限公司 POS machine control method, system, device and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819442A (en) * 2012-07-31 2012-12-12 深圳市赛格导航科技股份有限公司 Method and system for programming programs into embedded equipment program
CN103838585A (en) * 2012-11-20 2014-06-04 广州市暨华医疗器械有限公司 Method for achieving automatic recording of ARM9 embedded system based on SD card
CN104965725A (en) * 2015-01-16 2015-10-07 北京中电兴发科技有限公司 SD-card based full-automatic firmware programming method for embedded equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819442A (en) * 2012-07-31 2012-12-12 深圳市赛格导航科技股份有限公司 Method and system for programming programs into embedded equipment program
CN103838585A (en) * 2012-11-20 2014-06-04 广州市暨华医疗器械有限公司 Method for achieving automatic recording of ARM9 embedded system based on SD card
CN104965725A (en) * 2015-01-16 2015-10-07 北京中电兴发科技有限公司 SD-card based full-automatic firmware programming method for embedded equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040802A1 (en) * 2016-08-30 2018-03-08 深圳市中兴微电子技术有限公司 Full-image file generation method and apparatus, and computer storage medium
CN107832182A (en) * 2017-11-28 2018-03-23 北斗航天汽车(北京)有限公司 Detection means and system under vehicle-mounted chips wire
CN109254799A (en) * 2018-08-29 2019-01-22 新华三技术有限公司 The starting method, apparatus and communication equipment of bootstrap
CN109388412A (en) * 2018-12-05 2019-02-26 安徽省航嘉智源科技有限公司 A kind of portable bootload device
CN109634674A (en) * 2018-12-06 2019-04-16 深圳忆联信息系统有限公司 Chip BOOT starts method, apparatus, computer equipment and storage medium
CN109634674B (en) * 2018-12-06 2022-03-29 深圳忆联信息系统有限公司 Chip BOOT starting method and device, computer equipment and storage medium
CN113687866A (en) * 2021-07-01 2021-11-23 深圳市昇伟电子科技有限公司 STM32 dual-core processor-based start mode implementation device, method, equipment, medium and product
CN114385255A (en) * 2022-01-13 2022-04-22 深圳市捷诚技术服务有限公司 POS machine control method, system, device and computer readable medium
CN114385255B (en) * 2022-01-13 2023-11-21 深圳市捷诚技术服务有限公司 POS machine control method, POS machine control system, POS machine control device and computer readable medium

Similar Documents

Publication Publication Date Title
CN105653330A (en) SD card based NorFlash programming system and method
CN103593216B (en) The system file of ubi forms is fabricated to factory's burning image file method
CN103777972B (en) System, configuration method based on field programmable gate array and upgrade method
CN109669729B (en) Starting guide method of processor
CN103744713A (en) Autonomous configuration method for FPGA (field programmable gate array)-based embedded dual-core system
CN102306127B (en) Novel method for identifying and initializing DDRIII (double-data-rate III) memory
CN100458697C (en) User program guiding method and system
CN105760191A (en) Embedded system equipment programming mass production method
CN109213531A (en) A kind of multi-core DSP based on EMIF16 powers on the simplification implementation method of self-starting
CN101894028B (en) Realization method and device for Linux kernel mirror image data supporting various CPUs
CN103677885A (en) ARM FLASH simple program programming method
WO2010000101A1 (en) Device and method for extending memory space of embedded system
CN102841802A (en) Software upgrading method for mobile terminal
CN106843918A (en) The method for entering line program renewal to the embedded system including ARM chips, dsp chip and fpga chip
CN108108191A (en) A kind of collocation method of SOC chip and SOC chip cpu instruction collection
CN104461977B (en) memory card access device, control method thereof and memory card access system
CN101118494A (en) System and method for starting up and operating system from external connected electronic card with built-in equipment
US20100153622A1 (en) Data Access Controller and Data Accessing Method
CN109426511B (en) Soft core updating method and system
CN104866388A (en) Data processing method and device
CN105677429A (en) Program burning method, processor and electronic circuit
CN110825421B (en) Firmware upgrading method, system and readable storage medium
US9223697B2 (en) Computer reprogramming method, data storage medium and motor vehicle computer
CN107885536A (en) Startup method, embeded processor and the storage device of a kind of embeded processor
CN106681755A (en) Product ID configuration method and program loading method of embedded equipment

Legal Events

Date Code Title Description
C06 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

Application publication date: 20160608

RJ01 Rejection of invention patent application after publication