现在nandflash是256MB的,一个分区时binfs,一个是exfat,要把hive注册表保存在exfat中,该如何做啊?
binfs可能会重新烧制nk.bin.
现在注册表如下:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NANDFLASH]
"Prefix"="DSK"
"Dll"="nandflash.dll"
"Index"=dword:1
"Order"=dword:0
"Profile"="NANDFLASH"
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
IF IMGHIVEREG
"Flags"=dword:1000
ENDIF IMGHIVEREG
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\NANDFLASH]
"DriverPath"="Drivers\\BuiltIn\\NANDFLASH"
"LoadFlags"=dword:1 ; load synchronously
"BootPhase"=dword:0
IF IMGHIVEREG
"MountAsBootable"=dword:1 ; for Hive-based registry
ENDIF IMGHIVEREG
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NANDFLASH]
"Name"="NANDFLASH"
"Folder"="NandDisk"
"DefaultFileSystem"="FATFS"
"AutoMount"=dword:1
"PartitionDriver"="mspart.dll"
"BootPhase"=dword:0
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NANDFLASH\BINFS]
"MountHidden"=dword:1
"MountAsROM"=dword:1
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NANDFLASH\FATFS]
"FormatExfat"=dword:1
"Flags"=dword:14
"DisableAutoScan"=dword:1
"CheckForFormat"=dword:1
"EnableWriteBack"=dword:1
"Folder"="NandFlash"
"TfatMarkAlways"=dword:1
"NonatomicSector"=dword:1
IF IMGHIVEREG
"MountAsBootable"=dword:1 ; for Hive-based registry,这里要打开并且修改为1,表示可以存储HIVE文件
ENDIF IMGHIVEREG
现在重新烧制nk.bin后,发现原先注册表丢失,需要重新校正屏幕和其他一些设置
重新烧录的话肯定会要重新校准的,只是说不重新烧录NK的情况下可以保存注册表。
建议校准后把这个数据读出来改到你的platform.reg里边,这样下次再更新NK基本上也是准的
也就是说你的注册表不能保存.
现在先要判断是软件(是否支持Hive注册表保存)还是硬件(因为nandflash坏块)的问题.
是nandflash坏块问题的话,最快速的方法就是格了nandflash,重新烧录 bootloader和os,看是否能保存注册表.