在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使得应用以及应 ...
随机推荐
- Spark技术内幕:Shuffle Read的整体流程
回忆一下,每个Stage的上边界,要么需要从外部存储读取数据,要么需要读取上一个Stage的输出:而下边界,要么是需要写入本地文件系统(需要Shuffle),以供childStage读取,要么是最后一 ...
- JBOSS EAP 6 系列五 Managed domains 管理域最主要的功能是“统一部署,统一配置”
摘要 本文首先介绍Managed Domain的概念,管理域最主要的功能是"统一部署,统一配置".接下来通过一个实例在"统一配置"部分实现一个双机配置起来的域, ...
- 自定义gradview
http://blog.csdn.net/jdsjlzx/article/details/7525724 虽然Android已自带了GridView,但是,却不够灵活,同时也不能自由添加控件,因此,本 ...
- Android 实现图片加水印
加水印代码 public Bitmap addWaterMark(Bitmap src, String water, Context context){ Bitmap tarBitmap = src. ...
- linux常用的内核镜像格式
linux常用的内核镜像格式 Linux内核有多种格式的镜像,包括vmlinux.Image.zImage等. 1. Linux内核镜像格式 1.1 vmlinux vmlinuz是可引导的. ...
- window.open 打开子窗口,关闭所有的子窗口
需求:通过window.open方法打开了子窗口,当关闭主窗口时,子窗口应当也关闭. 实现思路: 1.打开子窗口函数window.open(url,winName)的第二个参数winName可以唯一标 ...
- 【一天一道LeetCode】#232. Implement Queue using Stacks
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder's Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处 (一)题目 Impleme ...
- Hessian探究(一)Hessian入门示例
一.hessian的maven信息: [html] view plain copy print? <dependency> <groupId>com.caucho</gr ...
- 中国电信中兴F460光猫破解及路由级联设置
http://blog.csdn.net/pipisorry/article/details/50636541 中国电信中兴F460光猫破解,获取超级密码,修改配置. 之前家里的宽带升级了,换成了光纤 ...
- XStream
1.引入需要的jar包,在pom.xml中配置依赖 <dependency> <groupId>com.thoughtworks.xstream</groupId& ...