2440 6.0BSP 移植过程之OAL

从DMD芯片到3D视觉革命:揭秘DLP工业投影光机的核心技术 本文深入解析了DMD芯片在DLP工业投影光机中的核心技术应用,揭示了其如何通过3D结构光技术实现微米级精度。从DMD芯片的机械设计到工业级光机的特殊优化,再到光固化3D打印和系统集成,展现了DLP技术在工业自动化和智能制造中的革命性作用。 阅读详情

2440 6.0BSP 移植过程之OAL

 

//-----------------------------------------------------------------------------------------------------------

// 作者:wogoyixikexie@gliet 

//论坛账号:gooogleman (经常在CSDN出没)

// 版权:桂林电子科技大学一系科协wogoyixikexie@gliet

// 平台:wince5.0 2440 5.0 BSP

// 发布日期:2009年6月18日 9:49:38

// 最后修改:

// 注意事项:未经作者同意,不得在转载的时候擅自修改、删除文章的任何部分

//-----------------------------------------------------------------------------------------------------------

 

作者:wogoyixikexie@gliet(注意转载请标明原创作者)
参照http://www.cnblogs.com/we-hjb/archive/2008/10/29/1322509.html帖子进行移植。

一、先编译后模拟器的精简版本,然后把模拟器的OAL相关的代码进行删除,换成5.0BSP的代码(把KITL相关的代码删除)并修改相应的sources文件。

二、把C:/WINCE500/PLATFORM/SMDK2440A/Src/Common代替H:/WINCE600/PLATFORM/QxCE6BSP/SRC/Common
C:/WINCE500/PLATFORM/SMDK2440A/Src/Inc代替H:/WINCE600/PLATFORM/QxCE6BSP/SRC/Inc

三、编译OAL的时候会调用H:/WINCE600/PLATFORM/QxCE6BSP/SRC/Common下的很多代码生成的lib,所以我现在首先编译H:/WINCE600/PLATFORM/QxCE6BSP/SRC/Common下面的所有代码,在VS2005 上点中Common然后右键选择“rebuild”,有错误了(有错误才是正常的,(*^__^*) 嘻嘻……)
BUILD: [01:0000000039:WARNN ] H:/WINCE600/PLATFORM/QxCE6BSP/src/common/Intr/./intr.c(387) : warning C4013: 'NKCallIntChain' undefined; assuming extern returning int
BUILD: [01:0000000040:PROGC ] Compiling ./fiq.c
BUILD: [00:0000000045:PROGC ] Building COMPILE Pass in H:/WINCE600/PLATFORM/QxCE6BSP/src/common/Intr_dvs/ directory.
BUILD: [01:0000000055:PROGC ] Compiling ./intr.c
BUILD: [01:0000000058:WARNN ] H:/WINCE600/PLATFORM/QxCE6BSP/src/common/Intr_dvs/./intr.c(637) : warning C4013: 'NKCallIntChain' undefined; assuming extern returning int
(这个VS2005 唯一不好的地方就是编译错误不是红色显示的)
出错地方
 // First find if IRQ is claimed by chain
        sysIntr = NKCallIntChain((UCHAR)irq);

晕,上面仅仅是警告,但是估计也有问题。跑到Common下打开build.err看看,有错误。
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000469:ERRORE] fal.lib(falmain.obj) : error LNK2019: unresolved external symbol FMDHOOK_UnhookInterface referenced in function DSK_Deinit
BUILD: [01:0000000470:ERRORE] fal.lib(falmain.obj) : error LNK2019: unresolved external symbol FMDHOOK_HookInterface referenced in function "void __cdecl GetFMDInterface(struct _DEVICE *)" (?GetFMDInterface@@YAXPAU_DEVICE@@@Z)
BUILD: [01:0000000471:ERRORE] H:/WINCE600/platform/QxCE6BSP/target/ARMV4I/debug/smflash.dll : fatal error LNK1120: 2 unresolved externals


怎么回事呢?
Src/Common/Smartmedia/Dll中的sources文件修改
在SOURCELIBS语句段中原有的两个库的基础上增加下面的库
$(_COMMONOAKROOT)/lib/$(_CPUINDPATH)/fmdhooklib.lib /
之后又有新的错误了。

BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000423:ERRORE] H:/WINCE600/PLATFORM/QxCE6BSP/src/common/Smartmedia/Dll/sources(10) :  U1033: syntax error : '$(_COMMONOAKROOT)/lib/$(_CPUINDPATH)/fal.lib' unexpected
BUILD: [01:0000000425:ERRORE] NMAKE.EXE TargetLibFiles  -i -c BUILDMSG=Stop.  BUILDROOT=H:/WINCE600/PLATFORM/QxCE6BSP CLEANBUILD=1 LINKONLY=1 NOPASS0=1 failed - rc = 2

晕倒,把sources换成ztg0021的那个就好了!

继续编译。
BUILD: [01:0000000030:ERRORE] H:/WINCE600/PLATFORM/QxCE6BSP/src/oal/OALLIB/./init.c(55) : error C2065: 'dwNKDrWatsonSize' : undeclared identifier

晕倒我的没有extern DWORD dwNKDrWatsonSize;会提示dwNKDrWatsonSize未定义错误,加上就好了,但是ztg0021的却要屏蔽
extern DWORD dwNKDrWatsonSize 才行的。希望等下不要出乱子。

=================================使用ztg0021的改动OALEXE下面的sources导致好多错误=============================
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000056:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol pQueryPerformanceCounter
BUILD: [01:0000000057:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol pQueryPerformanceFrequency
BUILD: [01:0000000058:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol curridlehigh
BUILD: [01:0000000059:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol idleconv
BUILD: [01:0000000060:ERRORE] oal.lib(intr.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000061:ERRORE] oal_ioctl_s3c2440a.lib(reboot.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000062:ERRORE] oal.lib(args.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000063:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000064:ERRORE] oal_intr_s3c2440a.lib(intr.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000065:ERRORE] oal_rtc_s3c2440a.lib(rtc.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000066:ERRORE] oal.lib(init.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000067:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol dwReschedTime
BUILD: [01:0000000068:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol CurMSec
BUILD: [01:0000000069:ERRORE] oal_power_s3c2440a.lib(off.obj) : error LNK2019: unresolved external symbol OALKitlPowerOn referenced in function OEMPowerOff
BUILD: [01:0000000070:ERRORE] oal_power_s3c2440a.lib(off.obj) : error LNK2019: unresolved external symbol OALKitlPowerOff referenced in function OEMPowerOff
BUILD: [01:0000000071:ERRORE] oal_rtc_s3c2440a.lib(rtc.obj) : error LNK2019: unresolved external symbol SC_SetLastError referenced in function OALIoCtlHalInitRTC
BUILD: [01:0000000072:ERRORE] oal.lib(init.obj) : error LNK2019: unresolved external symbol OALKitlStart referenced in function OEMInit
BUILD: [01:0000000073:ERRORE] oal.lib(init.obj) : error LNK2001: unresolved external symbol dwNKDrWatsonSize
BUILD: [01:0000000074:ERRORE] oal.lib(init.obj) : error LNK2001: unresolved external symbol CEProcessorType
BUILD: [01:0000000075:ERRORE] oal.lib(ioctl.obj) : error LNK2001: unresolved external symbol OALIoCtlVBridge
BUILD: [01:0000000076:ERRORE] H:/WINCE600/platform/QxCE6BSP/target/ARMV4I/debug/oal.exe : fatal error LNK1120: 14 unresolved externals
BUILD: [01:0000000081:ERRORE] EDITBIN : fatal error LNK1104: cannot open file 'H:/WINCE600/platform/QxCE6BSP/target/ARMV4I/debug/oal.exe'

再次编译OALLib,莫名出现错误 3 Error: Found NULL or missing TOC pointer for nk.exe ?记得刚才是没有错误了的,真是郁闷。

重新编译整个OAL

build.err变成
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000127:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol pQueryPerformanceCounter
BUILD: [01:0000000128:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol pQueryPerformanceFrequency
BUILD: [01:0000000129:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol curridlehigh
BUILD: [01:0000000130:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol idleconv
BUILD: [01:0000000131:ERRORE] oal.lib(intr.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000132:ERRORE] oal_ioctl_s3c2440a.lib(reboot.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000133:ERRORE] oal.lib(args.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000134:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000135:ERRORE] oal_intr_s3c2440a.lib(intr.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000136:ERRORE] oal_rtc_s3c2440a.lib(rtc.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000137:ERRORE] oal.lib(init.obj) : error LNK2001: unresolved external symbol g_oalLogMask
BUILD: [01:0000000138:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol dwReschedTime
BUILD: [01:0000000139:ERRORE] oal_timer_s3c2440a.lib(timer.obj) : error LNK2001: unresolved external symbol CurMSec
BUILD: [01:0000000140:ERRORE] oal_power_s3c2440a.lib(off.obj) : error LNK2019: unresolved external symbol OALKitlPowerOn referenced in function OEMPowerOff
BUILD: [01:0000000141:ERRORE] oal_power_s3c2440a.lib(off.obj) : error LNK2019: unresolved external symbol OALKitlPowerOff referenced in function OEMPowerOff
BUILD: [01:0000000142:ERRORE] oal_rtc_s3c2440a.lib(rtc.obj) : error LNK2019: unresolved external symbol SC_SetLastError referenced in function OALIoCtlHalInitRTC
BUILD: [01:0000000143:ERRORE] oal.lib(init.obj) : error LNK2019: unresolved external symbol OALKitlStart referenced in function OEMInit
BUILD: [01:0000000144:ERRORE] oal.lib(init.obj) : error LNK2001: unresolved external symbol dwNKDrWatsonSize
BUILD: [01:0000000145:ERRORE] oal.lib(init.obj) : error LNK2001: unresolved external symbol CEProcessorType
BUILD: [01:0000000146:ERRORE] oal.lib(ioctl.obj) : error LNK2001: unresolved external symbol OALIoCtlVBridge
BUILD: [01:0000000147:ERRORE] H:/WINCE600/platform/QxCE6BSP/target/ARMV4I/debug/oal.exe : fatal error LNK1120: 14 unresolved externals
BUILD: [01:0000000152:ERRORE] EDITBIN : fatal error LNK1104: cannot open file 'H:/WINCE600/platform/QxCE6BSP/target/ARMV4I/debug/oal.exe'

参照ztg0021的帖子修改之后重新编译BSP下的Common,最后导致错Error: Found NULL or missing TOC pointer for nk.exe ?这是怎么回事呢?

现在整个BSP一起编译,还会出现如下错误,原因是KITL相关东西我现在还没有加上去。
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000557:ERRORE] oal_power_s3c2440a.lib(off.obj) : error LNK2019: unresolved external symbol OALKitlPowerOn referenced in function OEMPowerOff
BUILD: [01:0000000558:ERRORE] oal_power_s3c2440a.lib(off.obj) : error LNK2019: unresolved external symbol OALKitlPowerOff referenced in function OEMPowerOff
BUILD: [01:0000000559:ERRORE] oal.lib(init.obj) : error LNK2019: unresolved external symbol OALKitlStart referenced in function OEMInit
BUILD: [01:0000000560:ERRORE] H:/WINCE600/platform/QxCE6BSP/target/ARMV4I/debug/oal.exe : fatal error LNK1120: 3 unresolved externals
BUILD: [01:0000000565:ERRORE] EDITBIN : fatal error LNK1104: cannot open file 'H:/WINCE600/platform/QxCE6BSP/target/ARMV4I/debug/oal.exe'

 

屏蔽上述代码后,编译整个BSP,天啊,居然成功了,NK.bin和NK.nb0生成了。
下载到我的产品。晕!,LCD可以看见画面了!
串口信息如下。

Windows CE Kernel for ARM (Thumb Enabled) Built on Nov 24 2008 at 14:58:23
ProcessorType=0920  Revision=0
OEMAddressTable = 8022a8d0
DCache: 8 sets, 64 ways, 32 line size, 16384 size
ICache: 8 sets, 64 ways, 32 line size, 16384 size
Error Reporting Memory Reserved, dump size = 00020000
Setting up softlog at 0x836cc000 for 0x800 entries
Booting Windows CE version 6.00 for (ARM)
&pTOC = 805a1c1c, pTOC = 80247b04, pTOC->ulRamFree = 805a6000, MemForPT = 00001000

Old or invalid version stamp in kernel structures - starting clean!
Configuring: Primary pages: 12573, Secondary pages: 0, Filesystem pages = 6286

Booting kernel with clean memory configuration:
Memory Sections:
[0] : start: 805a8000, extension: 00007000, length: 0311d000
NKStartup done, starting up kernel.
Windows CE KernelInit
Reserve VM for kernel XIP DLls, first = c0010000, last = c02b0000
g_pprcNK == 0x8059faa0
Updated eptr->e32_vsize to = 00036000
Initializing Memory Mapped File Support
Scheduling the first thread.
Detecting VFP... VFP Not Found!
LoaderInit: Initialing loader
Updated eptr->e32_vsize to = 00036000
Updated eptr->e32_vsize to = 000a2000
Updated eptr->e32_vsize to = 00010000
PGPOOL: Reserved 768 pages for Loader pool
PGPOOL: Reserved 256 pages for File pool
OSAXST0: Platform Name = PLATFORM_TYPE
OSAXST1: >>> Loading Module 'kd.dll' (0x836B087C) at address 0xC0010000-0xC0045000 in Process 'NK.EXE' (0x8059FAA0)
KD: Starting kernel debugger software probe (KdStub) - KD API version 22
OSAXST1: >>> Loading Module 'NK.EXE' (0x8059FAA0) at address 0x80200000-0x80236000 in Process 'NK.EXE' (0x8059FAA0)
Message Queue support initialized, g_hMsgQHeap = d0080010
OSAXST1: >>> Loading Module 'filesys.dll' (0x8368B648) at address 0xC0180000-0xC0216000 in Process 'NK.EXE' (0x8059FAA0)
OSAXST1: >>> Loading Module 'k.fpcrt.dll' (0x8368B780) at address 0xC0160000-0xC0178000 in Process 'NK.EXE' (0x8059FAA0)
OSAXST1: >>> Loading Module 'fsdmgr.dll' (0x8368B8C8) at address 0xC0260000-0xC02A6000 in Process 'NK.EXE' (0x8059FAA0)
FSDMGR!DllMain: DLL_PROCESS_ATTACH
CertMod.dll not found, using old OEM Trust Model
FileSystem Starting - starting with clean file system
FSDMGR!STOREMGR_Initialize
FSDMGR!InitializeStoreAPI
FSDMGR!MountTable_t::RegisterVolumeName: Registered "StoreMgr" at index 2FSDMGR!MountTable_t::RegisterVolume: Registered volume at index 2 (Name="StoreMgr", MountFlags=0x1)FSDMGR!InitializeROMFileSystem: File System=ROM
OSAXST1: >>> Loading Module 'romfsd.dll' (0x83674B70) at address 0xC0220000-0xC0227000 in Process 'NK.EXE' (0x8059FAA0)
FSDMGR!MountTable_t::RegisterVolumeName: Registered "ROM" at index 3FSDMGR!MountTable_t::RegisterVolume: Registered volume at index 3 (Name="ROM", MountFlags=0x71)FSVOL: Opening existing volume
FSVOL: Volume heap already initialized
FSREG: Mounted ROM portion of boot registry
FSVOL: Creating clean virtual volume
FSVOL: Initializing volume heap
FSREG: Mounted RAM portion of boot registry
FS: Creating signal event ReleaseFSD
FSREG: Unable to read value "Start DevMgr" under HKEY_LOCAL_MACHINE/init/BootVars
FILESYS: Starting boot phase 0.
FSDMGR!STOREMGR_StartBootPhase BootPhase=0 (PrevBootPhase=-1)
FSDMGR: File security disabled.
FSDMGR!AutoLoadFileSystems: CurrentBootPhase=0, LoadFlags=1
FSDMGR!AutoLoadFileSystem: CurrentBootPhase=0, RootKey=System/StorageManager/AutoLoad, FileSystem_t=ObjectStore
FSDMGR!PNPThread: Using PNPUnloadDelay of 4096
FSDMGR!PNPThread: PNPThread starting!
FILESYS: RAM File System FSD_MountDisk registering folder "Object Store"
FSDMGR!MountTable_t::RegisterVolumeName: Registered "Object Store" at index 4FSDMGR!MountTable_t::RegisterVolume: Registered volume at index 4 (Name="", MountFlags=0x46)FILESYS: Starting boot phase 1.
FSDMGR!STOREMGR_StartBootPhase BootPhase=1 (PrevBootPhase=0)
FSDMGR!AutoLoadFileSystems: CurrentBootPhase=1, LoadFlags=1
FSDMGR!AutoLoadFileSystem: CurrentBootPhase=1, RootKey=System/StorageManager/AutoLoad, FileSystem_t=Relfsd
OSAXST1: >>> Loading Module 'relfsd.dll' (0x8364D9AC) at address 0xC0230000-0xC023F000 in Process 'NK.EXE' (0x8059FAA0)
FILESYS: Waiting for bootable file system to be mounted.
FILESYS: Device started.  Boot file system ready.
FSREG: Unable to read value "SystemHiveInitialSize" under HKEY_LOCAL_MACHINE/init/BootVars
FSVOL: Opening existing volume
FSVOL: Volume heap already initialized
FSREG: Mounted ROM portion of system hive
FILESYS: Loading system hive from /Documents and Settings/system.hv.
FSREG: Mounting clean system hive
BuildPath: Documents and Settings
FSVOL: Creating new volume (size=28672 bytes)
FSVOL: Initializing volume heap
FSREG: Taking down boot registry.  Any open keys will be invalid.
FILESYS: Registry in place.
FSREG: Unable to read value "RegistryFlags" under HKEY_LOCAL_MACHINE/init/BootVars
FSVOL: Using system database volume "/Documents and Settings/default.vol"
BuildPath: Documents and Settings
FSVOL: Creating new volume (size=28672 bytes)
FSVOL: Initializing volume heap
FSREG: Unable to read value "RequireCertMod" under HKEY_LOCAL_MACHINE/init/BootVars
FSREG: Unable to read value "NoDefaultUser" under HKEY_LOCAL_MACHINE/init/BootVars
FSREG: Logging in default user.
FSREG: Unable to read value "DefaultUser" under HKEY_LOCAL_MACHINE/init/BootVars
SetCurrentUser: Logging out (nobody), logging in default
BuildPath: Documents and Settings
BuildPath: Documents and Settings/default
FSREG: Mounting ROM portion of user hive
FSVOL: Opening existing volume
FSVOL: Volume heap already initialized
Mounting user hive from /Documents and Settings/default/user.hv
FSREG: Mounting clean user hive
FSVOL: Creating new volume (size=28672 bytes)
FSVOL: Initializing volume heap
FSREG: Unable to read value "RegistryFlags" under HKEY_LOCAL_MACHINE/init/BootVars
FSDMGR!STOREMGR_StartBootPhase BootPhase=2 (PrevBootPhase=1)
FSDMGR!AutoLoadFileSystems: CurrentBootPhase=2, LoadFlags=1
FSDMGR!AutoLoadFileSystems: CurrentBootPhase=2, LoadFlags=2

Initializing Database
DB:Validation: Name already exists DB_notify_events
DB:CeCreateDatabase failed
Filesystem initialized!
FILESYS: Waiting for kernel to be ready to launch apps
InitMUI: Langs=409 0 0 0 0 0
FS: Creating signal event ReleaseFSD
FILESYS: Launching apps
FILESYS: Launching shell.exe
OSAXST1: >>> Loading Module 'coredll.dll' (0x836CA6CC) at address 0x40010000-0x400A1000 in Process 'shell.exe' (0x83645BDC)
OSAXST1: >>> Loading Module 'shell.exe' (0x83645BDC) at address 0x00010000-0x00026000 in Process 'shell.exe' (0x83645BDC)
OSAXST1: >>> Loading Module 'toolhelp.dll' (0x8361D81C) at address 0x400E0000-0x400E6000 in Process 'NK.EXE' (0x8059FAA0)
OSAXST1: >>> Loading Module 'toolhelp.dll' (0x8361D81C) at address 0x400E0000-0x400E6000 in Process 'shell.exe' (0x83645BDC)
FILESYS: Done launching apps
This device has booted 1 times !!!
看来明天要开始搞LCD等显示了。开始驱动,各个击破!


 

 

转载请标明:作者wogoyixikexie@gliet.桂林电子科技大学一系科协,原文地址:http://www.cnblogs.com/wogoyixikexie/(或者我在CSDN的博客:http://blog.csdn.net/gooogleman)——如有错误,希望能够留言指出;如果你有更加好的方法,也请在博客后面留言,我会感激你的批评和分享。
STM32L476低功耗实战:LPTIM精准定时唤醒STOP2模式与系统级功耗优化 本文深入探讨了STM32L476低功耗实战技巧,重点解析了LPTIM精准定时唤醒STOP2模式的配置与优化。通过详细的步骤指南和实战经验分享,帮助开发者实现系统级功耗优化,特别适合电池供电设备开发。文章涵盖LPTIM1定时器配置、STOP2模式进入流程及常见问题排查,助力将整机功耗降至8.2uA级别。 阅读详情

相关推荐

文档多模态识别工具对比:MinerU、PaddleOCR、Marker

本文对比了三款文档多模态识别工具:MinerU、PaddleOCR和Marker。MinerU专注于中文文档的端到端解析,支持复杂元素提取和结构化输出,适合中文论文和教材解析。PaddleOCR是通用OCR工具包,支持多语言和全流程任务,适用于发票、车牌等图像OCR。Marker则注重多语言支持和轻量化部署,适合英文论文和技术文档的快速转换。三者在核心技术、中文优化、表格处理、输出格式、部署复杂度和适用语言等方面各有优劣。选型建议根据具体需求:MinerU适合高精度中文解析,PaddleOCR适合定制化OC

朴拙科技的博客 4761

Linux 内核入门(内核传递参数,内核符号symbol)

1,我们现在用最简单的hello_word.c来引出内核: hello.c和Makefile实现: #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> //指定license版本 MODULE_LICEN...

陌上花开缓缓归以的博客 655

团结引擎+OpenHarmony 记录 (持续更新中)

获取不到的原因是因为二者不在同一个线程中,所以数据没有同步。而 globalThis.context 数据进行了同步。(TuanjieMainWorkerHandler.ts中可以看到)在进行绘制 UI 的时候 ,如果组件有 Native API 就可能不会显示出来,例如 web 控件就不能展示出来,刚加上权限的时候 会报错 因为缺少 reason ,添加上就不会报错了。只有纯 UI 控件是可以展示出来的,注释掉 web控件后就可以。

m_cainiaokuaifei的博客 1500

内核符号表详解——如何在module中利用内核符号

前言:在内核开发中,有时候我们必须检查某些内核状态,或者我们想冲用某些内核功能,我们需要得到(read,write,exe)内核符号。本文主要为你介绍内核如何保存这些符号表,我们怎样应用这些内核符号表。本文仅仅是阅读内核源码的一个guide,通过阅读内核源码,我们将有更深入的理解。

河西无名式 1万+

Claude Skills 深度讲解

阶段 1:Function Call(2023)├─ 大模型可以调用外部工具├─ 问题:缺乏对任务的深度理解└─ 局限:工具调用简单线性阶段 2:MCP 上下文工程(2024)├─ 大模型有了更丰富的上下文和工具├─ 问题:仍然需要手动编写复杂的 Prompt└─ 局限:每次对话都需要重新加载上下文阶段 3:Claude Skills(2025)├─ 大模型有了「能力模块」的概念├─ 可以动态加载、组合、执行专门的工作流├─ 真正实现了「知识的模块化和复用」

u013134676的博客 1476

5090D显卡安装LLaMA-Factory避坑指南:PyTorch与CUDA版本兼容性问题解决

本文是针对5090D显卡安装LLaMA-Factory时遇到的PyTorch与CUDA版本兼容性问题的详细解决指南。文章深入剖析了因GPU架构代际差异导致的“no kernel image”报错根源,并提供了从环境诊断、安装匹配的PyTorch Nightly版本,到最终集成验证的完整路径,帮助用户确保LLaMA-Factory在5090D上稳定运行。

Apple的专栏 879

内核模块

10.2.1数据结构 1.模块符号 如前所述,Linux内核是一个整体结构,而模块是插入到内核中的插件。尽管内核不是一个可安装模块,但为了方便起见,Linux把内核也看作一个模块。那么模块与模块之间如何进行交互呢,一种常用的方法就是共享变量和函数。但并不是模块中的每个变量和函数都能被共享,内核只把各个模块中主要的变量和函数放在一个特定的区段,这些变量和函数就统称为符号。到低哪些符号可以被共享?

mrdingjie的专栏 536

uniapp 开发微信小程序请求问题 , 真机调试正常,开发工具正常,但是使用扫码预览接口都是不通的,发布到体验版也是请求失败

uniapp开发小程序体验版接口请求失败(真机可以)

weixin_60408555的博客 3969

模块API之lookup_module_symbol_attrs

static inline int lookup_module_symbol_attrs(unsigned long addr, unsigned long *size, unsigned long *offset, char *modname, char *name) 的作用是返回addr所在模块的size和offset,并返回模块的name和addr代表symbol的name 使用的例子如下:

jason的笔记 574

编写一个期货跨期套利的程序,谈谈思路及案例

🏆本文收录于《CSDN问答解惑-专业版》专栏,主要记录项目实战过程中的Bug之前因后果及提供真实有效的解决方案,希望能够助你一臂之力,帮你早日登顶实现财富自由🚀;同时,欢迎大家关注&&收藏&&订阅!持续更新中,up!up!up!!

**My Coding Family** 1730

第1章:认识OpenClaw

OpenClaw是一个开源的 AI 智能体 Gateway 网关项目名称演变:OpenClaw 原名 Clawdbot,因 Anthropic 商标顾虑在 2026年1月27日更名为 Moltbot(过渡名),最终在1月30日确定为 OpenClaw。三个名字本质是同一个项目,功能完全一致。🏠在你的电脑上运行:完全本地部署,数据隐私有保障📁访问本地文件:可以搜索、读取、编辑你电脑上的文件🔌扩展能力:通过Skills(技能)系统无限扩展功能💬多平台使用。

Maynor的博客 2847

【下载】关于Samsung2440原厂WINCE500/600 BSP下载

昨天晚上收集了一下最新的SAMSUNG的BSP。这里共享给大家,也算是给原厂和友善做个分流了。主要是原厂的2440 wince5.0的BSP最新版本以及友善2440 wince6.0的BSP。友善的6.0 BSP是最近才relesase出来,值得移植下看看。这里建议大家可以用500的BSP来移植到600上。参考文档如下:2440 wince6.0移植文档 by Goooglem

这个世界乱纷纷,先把自己锻炼成器 1669

PCL:读写pcd点云的两种方式

本文介绍了PCL读写点云的两种方式:PCDReader,PCDWriter;loadPCDFile,savePCDFile.

孙悟空 1万+

关于2440从5.0到6.0的移植之OAL篇

这几天一直忙着移植,说实话,这个想法已经有一个月了,只是半个月前才开始行动而已。一开始以为很简单的事情,首先,我已经看了好几本 书了,当然也是大概看了一遍,比如李大为,周健设,何宗健老师,张冬泉老师的书我都有看过,七剑还看了很多论坛,可是结果依然令人失望 ,往往事情和想象的不一样! 开始我从网上先搜了一下关于移植有没有现成的,我好直接拿过来用,然后再进行一定程度的修改,当然希望越少越好,可惜行不通。原因很明

menuconfig的专栏 1243

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

2440 6.0BSP 移植过程之KITL篇

2440 6.0BSP 移植过程之KITL篇 //----------------------------------------------------------------------------------------------------------- // 作者:wogoyixikexie@gliet //论坛账号:gooogleman (经常在CSDN出没)//

gooogleman#foxmail.com 2159

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

wince6.0移植之OAL

[克隆BSP]Clone一个BSP. WinCE6.0安装armv4i架构后,里面提供了一个名字为DeviceEmulator的BSP. 这个BSP是s3c2410的BSP.我的是s3c2440a,就克隆这个吧. [移植OAL]WinCE5.0的OAL是编译成为一个静态库oal.lib,然后与内核nk.lib静态编译成kernel.exe,也就是nk.exe. 而

chenyqzyf的专栏 520

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

WinCE6.0移植之OAL

[克隆BSP] Clone一个BSP. WinCE6.0安装armv4i架构后,里面提供了一个名字为DeviceEmulator的BSP. 这个BSP是s3c2410的BSP.我的是s3c2440a,就克隆这个吧. [移植OAL] WinCE5.0 的OAL是编译成为一个静态库oal.lib,然后与内核nk.lib静态编译成kernel.exe,也就是nk.exe. 而WinCE6

DriverMonkey的专栏 1000

5.0移植到6.0

参考:http://topic.csdn.net/u/20090202/16/D6E58288-E056-408F-B162-89CD9586C27B.htmlhttp://topic.csdn.net/u/20090417/13/e021bf63-a070-4c65-bedd-18b39a73aefc.html首先向大家问声新年好! 最近老板让我把2410上的winc

xilidecai的专栏 1994

2440bsp wince启动分析

Clone一个BSP. WinCE6.0安装armv4i架构后,里面提供了一个名字为DeviceEmulator的BSP. 这个BSP是s3c2410的BSP.我的是s3c2440a,就克隆这个吧. 下面是WinCE6.0的内核启动过程: OAL不能调用内核的KernelStart()函数了, 所以自己要实现一个KernelStart() (nkldr.lib

lin415804的专栏 634
上一篇: WinCE6.0双雄 酷派N900/魅族M8对比评测
下一篇: 2440 6.0BSP 移植过程之KITL篇
gooogleman
博客等级 码龄19年 2855粉丝 463原创
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值