J275030 九、發明說明: 【發明所屬之技術領域】 本發明涉及一種嵌入式系統出廠預設值的更新 ^ 、 系統之快閃記憶體出廠預設值的更新方法。 去’尤指一種嵌入式 【先前技術】 心早5針’龍存獻乡是透舰賴、I/Q m者鮮機方式工 作的。隨糊路觀的發展,存_健單機向 資,,與傳遞也逐漸從依賴主機系統向依賴網路系統過渡。因J275030 IX. Description of the Invention: [Technical Field] The present invention relates to an update of a factory preset value of an embedded system, and a method for updating a factory default value of a flash memory of a system. Going, especially one kind of embedded [previous technology] Heart early 5 needles 'Long Cun Xian Township is the work of the ship and the I / Q m fresh machine. With the development of the road, the _jian single machine capitalization, and delivery also gradually transition from relying on the host system to relying on the network system. because
在於企業多_以舰||財心的存儲體系,當業務資料增長到—定程产 時,固有的-些缺欠(如無自己的主機處理系統、無法 ς 易擴容等)凸顯,形成資料傳輸瓶頸,降低了存館系統的可靠性。/、 tetwGfk Attaehed stGrage ’NAS)作爲專用資料存儲服 私技何克服了傳統存儲體系中的諸多問題,正逐漸應用於獅、電子商 務、企業倾發展、服務和域共科方面,_是企針的關継 系統和業務,更是網路附加存儲的主要應用物件。In the storage system of enterprises, the company's storage system, when the business data grows to the fixed-time production, the inherent shortcomings (such as no own host processing system, easy expansion, etc.) are highlighted, forming data transmission. The bottleneck reduces the reliability of the depository system. /, tetwGfk Attaehed stGrage 'NAS) as a dedicated data storage service private technology has overcome many problems in the traditional storage system, is gradually applied to Lions, e-commerce, corporate development, services and domain common areas, _ is the needle The system and business are the main application objects of network attached storage.
所述網路附加存儲也稱爲“網路記憶體,,或者“網路磁碟陣列,,,是一種特 殊,專用資料存儲伺服器,_專爲存儲優化的獨立系統軟體,可提供跨 平堂文檔共用功能。網路附加存儲設備完全以資料爲中心,將存儲設備與 伺服器徹底分離,集巾管理將,從而有效釋放帶寬,提高網路整體 性旎,也可有效降低總成本,保護用戶投資。 在網路附加存儲電路板上的快閃記憶體(J^ash)是預先燒錄好的,其 ,如下的區段(見第一圖):分區控制臺前端編輯器啟動載入程式;分 區2-—工廠預設的非揮發性記憶體(N〇n_v〇latileRand〇m沉乂, NVRAM)參數,分區3…内核(Kemel);分區4…根槽案系統和分區5— ,忒祂案系統。其中,分區5只在製造測試階段被用到,一旦測試完畢及 系,準備包裝出貨時,該部分就會被_分區5__·非揮發性記憶體運行參數 備伤和为區6—非揮發性記憶體運行參數兩個部分替換掉,分區$和分區6 合併為同一分區,如第二圖所示。 該快閃記憶體原先的測試方法是由産測模式到出貨模式,其測試流程 1275030 如下:將上述的快閃記憶體在前加工站先燒錄好;在表面黏著技術(滅⑶ M_ting Tedmobgy,SMT)加工站放在網路附加存儲電路板上,在該產 測模式下,每-塊網路附加存儲電路板的序號與每—塊網卡的位址都是一 樣的預設值,且分區2㈣NVRAM雜是麵模式獨;在做完連接、 整合驅動電子界面(IntegratedDriveEleetK)nies,IDE)、、_ 串列匯 流排架構(Universal Serial Bus,USB)等功能性測試後,再由用戶端電腦 的測試程式修改NVRAM的值,最後再將分區2及分區5中的資料即 i^VRAM雜修改成出貨模式τ_料。所叙前加玉站是指寶加工站 前面的一個進行燒錄的加工站。 但是,在原先的作業流程中,是由産測模式轉爲出貨模式,在産測模 式中,NVRAM的值如下: cfe—configuration—state=initialized manufacturing—state=not_tested etOmacaddr=固定的 MAC address boardnum=固定的 serial number ; 當經過功能性測試之後,由測試程式修改NVRAM的值,最後再將 NVRAM中manufacturing—state變成出貨模式,在出貨模式下,NVRAM的 值如下: cfe_configuration_state=initialized manufacturing_state=tested_ok etOmacaddr=獨立的 MAC address boardnum=獨立的 serial number ; 經過實踐發現,上述測試技術存在下述缺陷:測試程式必須針對每一 個細項的設定做修改,容易漏掉某一專案;客戶在版本變更時常更換啟動 载入程式(Boot Loader)及非揮發性記憶體的設定值,不易維護。所述細 項是指其他的非揮發性記憶體參數的設定,該非揮發性記憶體參數包括機 器名稱,例如機器名稱是動態主機組態協定伺服器(Dynamic Host Configuration Protocol Server,DHCP Server)或是動態主機組態協定用戶端 (DHCPclient)等,會依客戶的需求而定。 l275〇3〇 【發明内容】 鑒於以上缺陷,有必要提供一種更新嵌入式系統出廠預設值的方法。 在此以較佳實施例說明-種更新嵌入式系統出廠預設值的方法。該 新方法是從預設值模式到出貨模式,其包括如下步驟:(a)在前加工=先 將快閃記憶體麟成職讎式的資料;⑻在表面黏著技術加工站將快 閃纪fe體黏著在序號和網卡位址完全一樣的網路附加存儲電路板上,以方 便測試;(C)對各個網路附加存儲電路板進行功能性測試;再由上述 安裝在用戶端電腦的測試程式産生新的啟動載入程式,並且修改 efc—configumtion-stattnot一initialized ; (e)再將整個新的啟動載入程式放進 網路附加存儲電路板的快閃記憶體裏面,其中該新的啟動載入程式就是出 _ 貨模式的NVRAM的值。 相較習知技術,本發明更新嵌入式系統出廠預設值的方法,可根據客 戶更改後的啟動載入程式的設定值文檔,産生新的啟動載入程式而將原有 的啟動載入程式替換掉,方便維護且不易出錯,適合生產線量産。 【實施方式】The network attached storage, also known as "network memory," or "network disk array," is a special, dedicated data storage server, _ independent storage system optimized for storage, providing cross-leveling Church document sharing function. The network attached storage device is completely data-centric, completely separates the storage device from the server, and manages the towel collection, thereby effectively releasing bandwidth and improving the overall integrity of the network. It can also effectively reduce the total cost and protect the user's investment. The flash memory (J^ash) on the network attached storage circuit board is pre-programmed, and the following section (see the first figure): partition console front-end editor starts the loader; partition 2-—Factory preset non-volatile memory (N〇n_v〇latileRand〇m sinking, NVRAM) parameters, partition 3...Kemel; partition 4...root slot system and partition 5—, 忒Hi case system. Among them, the partition 5 is only used in the manufacturing test phase. Once the test is completed and the system is ready for packaging and shipment, the part will be wounded by the _ partition 5__· non-volatile memory operating parameters and zone 6 - non-volatile The memory memory operation parameters are replaced by two parts, and the partition $ and partition 6 are merged into the same partition, as shown in the second figure. The original test method of the flash memory is from the production test mode to the shipment mode. The test flow 1275030 is as follows: the above flash memory is burned first in the pre-processing station; the surface adhesion technology (3) M_ting Tedmobgy , SMT) processing station is placed on the network additional storage circuit board, in the production mode, the serial number of each additional network storage circuit board and the address of each network card are the same preset value, and Partition 2 (four) NVRAM is a face mode unique; after completing the functional test of the connection, integrated drive electronic interface (IntegratedDriveEleetK) nies, IDE), _ serial bus (USB), and then the user computer The test program modifies the value of NVRAM, and finally modifies the data in partition 2 and partition 5, ie i^VRAM, into the shipping mode τ_material. The former Jade Station refers to a processing station in front of the Bao Processing Station for burning. However, in the original workflow, the production mode was changed to the shipping mode. In the production mode, the value of NVRAM is as follows: cfe—configuration—state=initialized manufacturing—state=not_tested etOmacaddr=fixed MAC address boardnum = fixed serial number; After functional testing, the NVRAM value is modified by the test program, and finally the manufacturing-state in NVRAM is changed to the shipping mode. In the shipping mode, the value of NVRAM is as follows: cfe_configuration_state=initialized manufacturing_state= Tested_ok etOmacaddr=Independent MAC address boardnum=Independent serial number; After practice, the above test technology has the following defects: the test program must be modified for each item's settings, and it is easy to miss a project; the customer is changing the version. Frequently change the boot loader (Boot Loader) and non-volatile memory settings, it is not easy to maintain. The term refers to the setting of other non-volatile memory parameters including the machine name, for example, the machine name is a Dynamic Host Configuration Protocol Server (DHCP Server) or The dynamic host configuration protocol client (DHCPclient), etc., will depend on the needs of the customer. L275〇3〇 [Summary of the Invention] In view of the above drawbacks, it is necessary to provide a method for updating the factory preset value of the embedded system. Herein is a preferred embodiment of a method for updating a factory preset value of an embedded system. The new method is from the preset value mode to the shipping mode, which includes the following steps: (a) pre-processing = first flash memory to become a job-based data; (8) flashing at the surface bonding technology processing station The body of Fe is attached to the network attached storage circuit board with the same serial number and network card address for testing; (C) functional testing of each network additional storage circuit board; and the above installation on the client computer The test program generates a new boot loader and modifies efc-configumtion-stattnot-initialized; (e) puts the entire new boot loader into the flash memory of the network attached storage board, where the new The boot loader is the value of the NVRAM in the _ mode. Compared with the prior art, the method for updating the factory default value of the embedded system can generate a new boot loader and generate the original boot loader according to the set value document of the boot loader program changed by the customer. Replaced, easy to maintain and not easy to make mistakes, suitable for mass production of production lines. [Embodiment]
荼閱第二圖所示’是本發明嵌人式系統進行功能性測試的系統硬體 圖’本較仏貝施例中的肷入式系統是指網路附加存儲電路板(Netw〇rk Attached Storage,NAS)。該圖描述了網路附加存儲電路板進行功能性測試 所舄的硬體配置。该系統包括一主機1〇,其可以是一個測試端電腦,安裝 • 有功能測試程式’透過非遮罩雙絞線電纜(Unshielded Twisted Paired LANReferring to the second figure, 'the system hardware diagram of the embedded system for functional testing of the present invention' is a network attached storage circuit board (Netw〇rk Attached). Storage, NAS). This figure depicts the hardware configuration of a network attached storage board for functional testing. The system includes a host computer, which can be a test-end computer, installed • has a functional test program' through a non-masked twisted pair cable (Unshielded Twisted Paired LAN)
Cable ’ UTPLANCable) 60與現場生產伺服器(SFCServer) 2〇及在測器 件板(Device Under Test board,DUT board) 30 相連。其中,主機 10 從現 場生產伺服器20獲取各個待測網路附加存儲電路板的各種訊息及向其存儲 功能性測試記錄,所述訊息包括:網卡位址及電路板序列號等。在測器件 板30上安裝的是待測的網路附加存儲電路板,該在測器件板3〇的各個管 腳連接測試設備’所述測試設備包括硬碟驅動器4〇和USB50。透過主機 10上的功能測試程式檢測在測器件板30上安裝的網路附加存儲電路板的功 能。所述功能測試包括連接測試、IDE測試、網路測試、USB測試、快閃 記憶體測試等。例如所進行的連接測試是指檢測在測器件板3〇與主機1〇 1275030 的連接情況;IDE測試是指檢測在測器件板3〇所連接硬碟驅動器4〇的個 數、硬碟驅動器40的界面類型(是IDE界面或是SCSI界面)等;網路測 試是指檢測在測器件板30是否能夠獲取到主機1〇的網路位址、資訊包數 量等參數;USB測試是指檢測在測器件板30所連接USB設備的數量及 設備的種類;快閃記憶體測言式是指檢測快閃記憶體的標識號碼和 體的容量。 、β心The Cable ’ UTPLANCable 60 is connected to the on-site production server (SFCServer) 2 and the Device Under Test Board (DUT board) 30. The host 10 obtains various messages of the additional storage circuit boards of the network to be tested from the field production server 20 and stores functional test records thereto, including: network card address and circuit board serial number. Mounted on the test device board 30 is a network attached memory board to be tested, and the respective pins of the device board 3 are connected to the test device. The test device includes a hard disk drive 4 and a USB 50. The function of the network attached storage circuit board mounted on the test device board 30 is detected by a function test program on the host computer 10. The functional tests include connection testing, IDE testing, network testing, USB testing, flash memory testing, and the like. For example, the connection test is performed to detect the connection between the device board 3〇 and the host 1〇1275030; the IDE test refers to detecting the number of the hard disk drive 4〇 connected to the device board 3, and the hard disk drive 40 The type of the interface (either the IDE interface or the SCSI interface); the network test refers to detecting whether the device device board 30 can obtain the network address and the number of information packets of the host 1; the USB test refers to the detection in The number of USB devices connected to the device board 30 and the type of the device are measured; the flash memory test mode refers to detecting the identification number of the flash memory and the capacity of the body. Beta heart
、參閱第四圖所示,是本發明較佳實施例更新嵌入式系統出廠預設值方 法的作業餘®。首先,在前加玉賴預設賴式的龍燒制快閃記憶 體,各分區的内容請參見第一圖所示(步驟S3〇〇)。在步驟S3〇〇中,其 預設值模式下NVRAM的值如下: cfe—configuration—state=initialized manufacturing—state=tested_ok etOmacaddr=固定的 MACaddress boardnum=固定的 serial number ; 燒錄在每個㈣記題分區2巾騎有網路附加存儲電路板断號 應的網卡的位址預設值是完全—樣的,以讀戦。織進行生產 母個燒錄好資制㈣記碰絲_紐術加工站黏麵網路附加存儲 ▲,路板上知再在第三_示_試環境中__加存儲電路板進行功 此性測试,所述功能性測試包括連接、IDE、網路、聰、快閃記 ^ 驟S3〇2)。當網路附加存儲電路板通過功能性測試之後,由 ^上二 程式«客戶纽毅域讀歧紐的讀,産錄的啟^ cfe-config^tion_s^^ , 新啟動載人程式。該新的啟動載人程式含正確的NAS電路板 =$、,NAS電路板所對應的網卡的唯—位址(mac浙⑻及依客 ‘Si ίΐ非揮發性記憶體參數,所述參數包括機器名稱,例如機 Γ3〇4 = 龄伺服器還是動態主機組態協定用戶端(步驟 •路板上毅域碌錢過魏性職程奸__附加存儲 =記題各分时,其情的啟_— NWAM的 值就疋出貝权式下的值,表示如下: 1275030 cfe_configuration_state=initialized manufacturing_state=tested_ok etOmacaddr=獨立的 MACaddress boardnum=獨立的 serial number (步驟 §3〇6)。 本發明雖峰佳實❹m露如上,财麟㈣岐本 悉此項技藝者,在不脫離本發明之精神和範_ 何熟 此本發明之減額當視_之冑_幽所狀動麵韩,因 【圖式簡單說明】Referring to the fourth figure, it is a work balance of the method for updating the factory preset value of the embedded system according to the preferred embodiment of the present invention. First of all, in the front of the Yulai Lai's dragon-fired flash memory, the contents of each partition are shown in the first figure (step S3〇〇). In step S3, the value of the NVRAM in the preset mode is as follows: cfe_configuration_state=initialized manufacturing_state=tested_ok etOmacaddr=fixed MACaddress boardnum=fixed serial number; burn in each (four) record The address preset of the NIC of the partition 2 towel riding network with additional storage circuit board should be completely-like to read 戦. Weaving for the production of a mother burning a good system (four) remember the wire _ New Zealand processing station adhesive surface network additional storage ▲, the road board knows in the third _ show _ test environment __ plus storage circuit board to do this Sex test, the functional test includes connection, IDE, network, Cong, flash flash S3〇2). After the network attached storage board passed the functional test, the second program «Customer New Zealand domain read the reading of the new, the production of the start ^ cfe-config ^tion_s ^ ^, the new launch of the program. The new bootloader contains the correct NAS board = $, the only address of the network card corresponding to the NAS board (mac Zhe (8) and Yike 'Si ΐ ΐ non-volatile memory parameters, including The name of the machine, such as machine 3〇4 = age server or dynamic host configuration agreement client (steps • road domain Yi domain money over Wei sex job __ additional storage = note points, the situation The value of __NWAM is the value under the weighted expression, which is expressed as follows: 1275030 cfe_configuration_state=initialized manufacturing_state=tested_ok etOmacaddr=independent MACaddress boardnum=independent serial number (step §3〇6).实 ❹ 露 露 露 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Description]
圖。第-圖係-網_加存儲在產戦式下的快閃記髓各分區内容示意 圖。第二網_加存儲在„模式下的‘_記憶體各分區内容示意 第三圖係本發曰月的欲入式系統進行功能性測試的系統硬體圖。 流程=四_本發赚佳實_蚊新嵌m统出廠驗值方法的作業 【主要元件符號說明】 10 20 30 40 50 主機Figure. The first-picture system-net_plus is stored in the production mode of the flash memory. The second network _ plus stored in the „ mode of the _ memory partition content indicates the third picture is the system hardware diagram of the functional system of the entrant system of the 曰 。 。. Process = four _ this is good _ _ mosquito new embedded m system test method of the operation [main components symbol description] 10 20 30 40 50 host
現場生產伺服器 在測器件板 硬碟驅動器 USB 非遮罩雙絞線電纜 60Field production server In-device board Hard disk drive USB non-masked twisted pair cable 60