在ccs中打开项目属性builds--->steps---->post-build steps输入下面内容,可以将生成bin文件
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd6x" "${CG_TOOL_ROOT}/bin/hex6x" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"
BSP目录:
E:\Loongson\LambdaPRO_LS2K\deltaos6.0\target\board\mips\ls2k_ky
2. 龙芯记录
ifaddr syn0 169.254.174.123 //配置板子IP地址 和电脑ip在同一网段
ifaddr syn0 192.168.1.112
打开tftp软件,设置好下载路径
ifaddr rte0 169.254.174.123 //龙芯3a 网卡设备名rte0
load tftp://192.168.1.112/ls2k_proj.elf //此为电脑ip,下载tftp设置路径下的文件
ifaddr syn0 169.254.174.123 load tftp://169.254.174.142/LS2K_test.elf ifaddr syn1 192.168.1.123 load tftp://192.168.1.104/ls2k_proj.elf g > g
pmon下载:
load -r -f 0xbfc00000 tftp://192.168.1.104/gzrom.bin
workbench打开路径
E:\WindRiver683MipsLS2K1000\workbench-3.2\wrwb\platform\x86-win32\eclipse
用vx反汇编:
进入到winder目录下操作下面命令设置环境
D:\>cd WindRiver683MipsLS2K1000
D:\WindRiver683MipsLS2K1000> wrenv.exe -p vxworks-6.8
进到目标文件目录下
D:\WindRiver683MipsLS2K1000>cd D:\Loongson\workspace\LS2k_test\default\make
反汇编命令
>nmmips -A LS2k_test.elf | grep mmuMipsConfig
可以看到变量地址
LS2k_test.elf:c06d70f0 B mmuMipsConfig
{ 2, "pcieDma", 0,0}, 这个挂中断会tlb异常
pciConfigTopoShow pciHeaderShow 3, 0, 0 //busno devid funid pciHeaderShow 1, 0, 0 vxBusShow memEdrBlockShow adrSpaceShow xp3 ifconfig syn1 192.168.1.10 load tftp://192.168.1.56/DeltaOS_1y.elf; g cd "/ahci00:1" ld<pcieProtocol.out sp main xp2 ifconfig syn0 192.168.16.105 load tftp://192.168.16.56/DeltaOS_1y.elf;g
在我的电脑上的菜单栏输入 ftp://192.168.1.10, 将道系统文件放到ahci00文件中去
串口: cd "/ahci00:1"
ld<****.out
pciscan
PMON> devls Device name Type syn0 IFNET syn1 IFNET wd0 DISK PMON> load /dev/fs/fat@wd0/ bspls2kpcm2k01.elf <FILE> 5704648 pcieProtocol.out <FILE> 104561 DeltaOS_1y.elf <FILE> 19605595 /dev/fs/fat@wd0/: Is a directory PMON>
vxworks小工具使用:
D:\>cd WindRiver683MipsLS2K1000 D:\WindRiver683MipsLS2K1000>wrenv.exe -p vxworks-6.8 D:\WindRiver683MipsLS2K1000>cd D:\Loongson\workspace\ls2k_proj\default\make D:\Loongson\workspace\ls2k_proj\default\make>objdumpmips.exe -d ls2k_proj.elf > ls2k_proj.disa D:\Loongson\workspace\ls2k_proj\default\make>nmmips.exe -A ls2k_proj.elf > ls2k_proj.nm
3飞腾
系统序列号:
D:\LambdaPRO_FT\host\ide\platform\eclipse\configuration
printenv 检查环境变量 serverip , 把你的电脑改成 serverip的地址
-> moduleShow
MODULE NAME MODULE ID GROUP # TEXT START DATA START BSS START
mwv206drvgnu.pl 0x807d4a10 1 0x84573010 0x846e1c20 0x848faf70 egl2fbgnu.pl 0x8082038c 2 0x84902d5c 0x84913f64 0x8491405c emfbtest1.pl 0x8082435c 3 0x807a22d4 0x807a24e4 NO SEGMENT browser 0x80840220 4 0x84937d20 0x86dbe9fc 0x86dcdc50 value = 0 = 0x0 -> 0x8536ecc8-0x84937d20 value = 10710952 = 0xa36fa8 tftp 0x80100000 DeltaOScc1.bin tftp 0x80100000 Deltaos1500Smp.bin tftp 0x80100000 DeltaOScc3.bin tftp 0x80100000 DeltaosWindSmp.bin tftp 0x80100000 vxWorks.bin tftp 0x80100000 Deltaos1500.bin go 80100000 uglDisplayOpenByNumber usb2MSEDebug = 0
"D:\14s_Deltaos_Ft\LambdaProArm\host\gnu\4.3.3\include\c++\4.3"
"D:\vxarm694\workspace\qt486allSmp\armsmpdkmqt486\include\QtCore"
//"D:\14s_Deltaos_Ft\20191105__14s\LambdaProArm\deltaos6.2\target\include\usr\h\c++"
"D:\vxarm694\workspace\qt486allSmp\armsmpdkmqt486\include"
"D:\vxarm694\workspace\qt486allSmp\armsmpdkmqt486\include\QtGui"
boot32 80100000 pgPoolVirtFree kernelVirtPgPoolId ,0,0x10000 pgPoolVirtAddToPool kernelVirtPgPoolId,0x00000000,0x18000,2 pgPoolVirtAlloc kernelVirtPgPoolId,0x20000 mmap 0,0x1000,3,6,-1,0 ping "202.197.66.156", 4
// usb 启动
\host\ide\platform\eclipse\configuration 下的文件夹全部删掉
usb xhci reset fatload usb 0 80100000 deltaos.bin fatload usb 0 80100000 dellll.bin go 80100000 ptpdStop "gdd0" fatload usb 0 80100000 deltaosup.bin fatload usb 0 80100000 deltaosudp.bin tftp 80100000 deltaoscc.bin cd "/bd0/tolzj" sp myudptest