在SD/MMC卡上实现hive (Implement WinCE HIVE&ROM system on NAND or SD system )
本是个很简单的topic,但无奈的是很多客户都没有实现。所以只能写一个guide给客户,让他们依葫芦画瓢。
Implement WinCE HIVE&ROM
system on NAND or SD system
1.0 Scope
This document details in how toimplement the WinCE6 HIVE&ROM system. Two types of media are widely used in Au1300 system, the NAND flash and the SD card. The document will describe
the steps implementing HIVE&ROM system for both media type.
2.0 Hardware details
NAND flash is connected with Au1300’s static memory controller. The SD card is connected with SD slot.
3.0 Creating HIVE&ROM system
Section 3.1 will describe how to implement HIVE&ROM system on NAND flash disk while section 3.2 describes the similar system way to create HVIE&ROM system
on SD card.
3.1 HIVE&ROM system on NAND flash
3.1.1 Add catalog components
catalog->CEBASE->File Systems and Data Store->File system->ROM-only File System
catalog->CEBASE->File Systems and Data Store->Registry Storage- >Hive-based Registry

catalog->CEBASE-> File Systems and Data Store->Storage Manager ->FAT File System
catalog->CEBASE-> File Systems and Data Store->Storage Manager ->Partition Driver

catalog->Third Party->AVN13xx:MIPSII->Storage->NAND

3.1.2 Step2: Registry settings
Update nand fmd driver registry with following content. The nand fmd driver registry is located /Drivers/Nandfmd/nandfmd.reg.
; HIVE BOOT SECTION
; This file is to be included in platform.reg if required.
[HKEY_LOCAL_MACHINE\Drivers\Builtin\NAND]
"Profile"="NAND"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Order"=dword:0
"FriendlyName"="NAND FLASH Driver"
"Dll"="NANDFMD.dll"
"Prefix"="DSK"
"Index"=dword:1
"Flags"=dword:1000
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\NAND]
"DriverPath"="Drivers\\Builtin\\NAND"
"LoadFlags"=dword:1
"Order"=dword:0
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NAND]
"Name"="NAND FLASH Storage"
"DefaultFileSystem"="FATFS"
"PartitionDriver"="mspart.dll"
"Folder"="NAND FLASH"
"AutoPart"=dword:1
"AutoMount"=dword:1
"AutoFormat"=dword:1
[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="Documents and Settings\\system.hv"
"ProfileDir"="Documents and Settings"
"Flags"=dword:3
"RegistryFlags"=dword:1
"NoDefaultUser"=dword:0
; END HIVE BOOT SECTION
3.2 HIVE&ROM system on SD card
3.2.1 Add catalog components
catalog->CEBASE->File Systems and Data Store->File system->ROM-only File System
catalog->CEBASE->File Systems and Data Store->Registry Storage- >Hive-based Registry

catalog->CEBASE-> File Systems and Data Store->Storage Manager ->FAT File System
catalog->CEBASE-> File Systems and Data Store->Storage Manager ->Partition Driver

catalog->Third Party->AVN13xx:MIPSII->Storage->Removable->Secure Digital/MMC

3.2.2 Step2: Registry settings
Update SDIO host driver registry with following content. The SDIO driver registry is located /Drivers/SDIO/sdio.reg.
;
;
; Alchemy Au1100 SD Controller registry settings
; HIVE BOOT SECTION
; setting for SD bus driver to load driver
[HKEY_LOCAL_MACHINE\Drivers\Builtin\SDHC_Au1100]
"Dll"="SDIO.dll"
"Order"=dword:1
"Prefix"="SDP"
; force the host controller to run in the PIO mode instead of
; of DMA mode.
"PIOMode"=dword:0
; Disable the MMC 8 bit wide data bus for SD0, the eMMC slot, which is slot 1
; for emmc device, dont disable 8 bits bus
; for sd device, only support 4 bits bus
"Disable8BitBus"=dword:1
"Index"=dword:1
"Flags"=dword:1000
[HKEY_LOCAL_MACHINE\Drivers\Builtin\SDBusDriver]
"Dll"="SDBus.dll"
"Order"=dword:0
"Index"=dword:1
"Prefix"="SDC"
"ThreadPriority"=dword:64 ; default thread priority for dispatch thread
"RequestListDepth"=dword:30 ; pre-allocated requests
"Flags"=dword:11000 ; DEVFLAGS_TRUSTEDCALLERONLY
"IClass"=multi_sz:"{20FA98A8-B298-4b32-8D72-C716AEE2FA84}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class]
"Dll"="SDMemory.dll"
"Order"=dword:1
"Prefix"="DSK"
"BlockTransferSize"=dword:40 ; send no more than 64 blocks of data per bus transfer
;"SingleBlockWrites"=dword:1 ; alternatively force the driver to use single block access
;"IdleTimeout"=dword:7D0 ; 2000 milliseconds
;"IdlePowerState"=dword:2 ; 0 == D0, 1 == D1, etc.
;"DisablePowerManagement"="" ; if value present, then disable (remove value to enable)
"Profile"="SDMemory"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
"{A32942B7-920C-486b-B0E6-92A702A99B35}"
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\MMC_Class]
"Dll"="SDMemory.dll"
"Prefix"="DSK"
"BlockTransferSize"=dword:40 ; send no more than 64 blocks of data per bus transfer
;"SingleBlockWrites"=dword:1 ; alternatively force the driver to use single block access
;"IdleTimeout"=dword:7D0 ; milliseconds
;"IdlePowerState"=dword:2 ; 0 == D0, 1 == D1, etc.
;"DisablePowerManagement"="" ; if value present, then disable (remove value to enable)
"Profile"="MMC"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
"{A32942B7-920C-486b-B0E6-92A702A99B35}"
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MMC]
"Name"="MMC Memory Card"
"Folder"="MMCCard"
"PartitionDriverName"="MSPART"
"DefaultFileSystem"="FATFS"
"BootPhase"=dword:0
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MMC\FATFS]
"MountAsBootable"=dword:1
"MountAsROM"=dword:1
"MountAsRoot"=dword:1
"AutoFormat"=dword:1
"AutoPart" =dword:1
"AutoMount"=dword:1
"BootPhase"=dword:0
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory]
"PartitionDriverName"="MSPART"
"Name"="SD Memory Card"
"Folder"="SDCard"
"DefaultFileSystem"="FATFS"
"BootPhase"=dword:0
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory\FATFS]
; "MountAsBootable"=dword:1
; "MountAsROM"=dword:1
; "MountAsRoot"=dword:1
"AutoFormat"=dword:1
"AutoPart" =dword:1
"AutoMount"=dword:1
"BootPhase"=dword:0
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class\High_Capacity]
"Dll"="SDMemory.dll"
"Prefix"="DSK"
"BlockTransferSize"=dword:40 ; send no more than 64 blocks of data per bus transfer
;"SingleBlockWrites"=dword:1 ; alternatively force the driver to use single block access
;"IdleTimeout"=dword:7D0 ; 2000 milliseconds
;"IdlePowerState"=dword:2 ; 0 == D0, 1 == D1, etc.
;"DisablePowerManagement"="" ; if value present, then disable (remove value to enable)
"Profile"="SDMemory"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
"{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MMC\BINFS]
"MountSystem"=dword:1
"MountAsROM"=dword:1
"BootPhase"=dword:0
; SDHC Memory Storage class driver
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\MMC_Class\High_Capacity]
"Dll"="SDMemory.dll"
"Prefix"="DSK"
"BlockTransferSize"=dword:100 ; send no more than 256 blocks of data per bus transfer
"Index"=dword:1
"BootPhase"=dword:0
;"BlockTransferSize"=dword:40 ; send no more than 64 blocks of data per bus transfer
"SDClockRateOverride"=dword:2625A0 ; 52000000 Hz
;"SingleBlockWrites"=dword:1 ; alternatively force the driver to use single block access
;"IdleTimeout"=dword:7D0 ; 2000 milliseconds
;"IdlePowerState"=dword:2 ; 0 == D0, 1 == D1, etc.
;"DisablePowerManagement"="" ; if value present, then disable (remove value to enable)
"Profile"="MMC"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
"{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"
[HKEY_LOCAL_MACHINE\System\StorageManager\BinFS]
"BootPhase"=dword:0
"Order"=dword:0
"FriendlyName"="BIN Filesystem"
"Dll"="binfs.dll"
"Paging"=dword:1
[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="\\Hive\\system.hv"
"ProfileDir"="Documents and Settings"
"Flags"=dword:3
"RegistryFlags"=dword:1
"NoDefaultUser"=dword:0
; END HIVE BOOT SECTION
在SD/MMC卡上实现hive (Implement WinCE HIVE&ROM system on NAND or SD system )的更多相关文章
- SD/MMC卡初始化及读写流程
二.MMC/SD卡的模型和工作原理 PIN脚.SD卡总线.SD卡结构.SD卡寄存器.上电过程 SD卡寄存器: OCR:操作电压寄存器: 只读,32位 第31位: 表示卡上电的状态位 CID: 卡 ...
- (linux)MMC 卡驱动分析
最近花时间研究了一下 MMC 卡驱动程序,开始在网上找了很多关于 MMC 卡驱动的分析文章,但大都是在描述各个层,这对于初学者来讲帮助并不大,所以我就打算把自己的理解写下来,希望对大家有用.个人觉得理 ...
- MA8621带SD读卡的USB 2.0高速3端口HUB方案芯片|MA8621中文规格书|USB 2.0方案
MA8621说明 MA8621是USB 2.0高速3端口集线器的高性能解决方案,带有SD卡控制器,完全符合通用串行总线规范2.0.控制器继承了先进的串行接口技术,当3个DS(下游)端口同时工作时,功耗 ...
- 带SD读卡的USB HUB方案芯片MA8621|用于带读卡的USB HUB拓展坞方案芯片MA8621
MA8621是一款带SD读卡器控制器的USB 2.0高速3端口集线器方案芯片,主要用在USB TYPEC拓展坞或者USB typec扩展底座上面. 1. MA8621功能概述 MA8621是USB 2 ...
- 【Android】读取sdcard卡上的全部图片而且显示,读取的过程有进度条显示
尽管以下的app还没有做到快图浏览.ES文件浏览器的水平,遇到大sdcard还是会存在读取过久.内存溢出等问题,可是基本思想是这种. 例如以下图.在sdcard卡上有4张图片, 打开app,则会吧sd ...
- 在大于32GB或64GB容量的SD卡上使用NOOB安装树莓派 - Using NOOB on SD cards larger than 32GB or 64GB for Raspberry Pi
在树莓派上玩了一小段时间了,因为装的软件包越来越多,所以越来越感觉16G的SD卡没办法长期使用下去.于是采购了几张64G的SD卡,打算周末装上系统.可是按照一般的流程,在Windows下用SD For ...
- android学习笔记47——读写SD卡上的文件
读写SD卡上的文件 通过Context的openFileInput.openFileOutput来打开文件输入流.输出流时,程序打开的都是应用程序的数据文件夹里的文件,其存储的文件大小可能都比较有限- ...
- Android开发之SD卡上文件操作
1. 得到存储设备的目录:/SDCARD(一般情况下) SDPATH=Environment.getExternalStorageDirectory()+"/"; 2. 判断SD卡 ...
- Android权限安全(12)apk安装在sd卡上时,如何保证数据安全
apk安装在sd卡上时,如果把sd卡拿下安在另一个手机B上,那么apk的数据就可以被B里的恶意应用访问了. 下面是android解决这个问题的方案: 绑定设备 1,绑定perDevice使得应用以及应 ...
随机推荐
- main函数之后的调用
main函数代表进程的主线程.程序开始执行时,系统为程序创建一个进程,main函数其实并不是首先被调用的函数,而是操作系统调用了C/C++运行期启动函数,该函数负责对C/C++ 运行期库进行初始化.它 ...
- [Ubuntu] 14.04 关闭桌面
一直在用Ubuntu的桌面来做调试环境,最近发现桌面会有崩溃的时候,占用资源也比较大,所以想把桌面关闭,只用command界面. 我的系统是Ubuntu14.04 Ctrl+Alt+F1 可以转到命令 ...
- [tornado]websocket 最简单demo
想法 前两天想看看django 长轮询或者是websocket的方案,发现都不太好使. tornado很适合做这个工作,于是找了些资料,参照了做了个最简单demo,以便备用. 具体的概念就不说了,to ...
- EXT JS认识EXTJS,第一个EXTJS例子
大部分内容转载自:http://blog.csdn.net/wanghuan203/article/details/8011112 和http://www.cnblogs.com/willick/p/ ...
- MySQl数据库必会sql语句加强版
这篇承接上一篇<mysql必会sql语句>:http://blog.csdn.net/qq_32059827/article/details/51763950 这一篇属于加强版,问题和sq ...
- Android的ViewFlipper-android学习之旅(三十五)
ViewFlipper的简介 ViewFlipper继承于ViewAnimator,它和AdapterViewFlipper有着许多的相似的地方. 代码示例 package peng.liu.test ...
- 讲究门面的Request
为什么说Request讲究门面?注意这里所说的门面并非我们常理解的外表的意思,其实是说它使用了门面设计模式,门面的使用主要用于数据安全的考虑.一个大的系统体系的多个子系统之间涉及交互通信.一个系统中的 ...
- iOS中发送短信/发送邮件的实现 韩俊强的博客
需要引入框架: MessageUI.framework 布局如下: 短信和邮件: #import "ViewController.h" #import <MessageUI/ ...
- 《java入门第一季》之泛型类引入
首先用一个例子引入泛型类. 我定义一个Object类: package cn.it_03; public class ObjectTool { private Object obj; public O ...
- TCP的ACK确认系列 — 延迟确认
主要内容:TCP的延迟确认.延迟确认定时器的实现. 内核版本:3.15.2 我的博客:http://blog.csdn.net/zhangskd 延迟确认模式 发送方在发送数据包时,如果发送的数据包有 ...