新手请教USB烧录问题

[复制链接]
查看11 | 回复4 | 2021-1-27 06:48:02 | 显示全部楼层 |阅读模式
君正4750的开发板烧录wince,按照提供的手册先后烧入boot.nb0和nk.nb0。
重启后,启动信息如下,一直停在DHCP那里进不了系统,请高手看一下是什么问题,谢谢!

MicrosoftWindowsCEEthernetBootloaderCommonLibraryVersion1.1BuiltJan12
201013:41:00
IngenicBootloaderv2.0forJZ4750(BuildonJan132010,at17:23:39)
DeviceDRACORunat:384MHz
Devicev1=63451222
Devicev2=63451222
SystenPowerA_GPIO_PXPE:0x30218000,UDC_DETECT_PIN:0xf,UDC_DETECT_PIN=0x4f.
+jz_nand_init
NANDFlash:0xECD5isfound
NANDFlash:3th=0x14
NANDFlash:4th=0xb6
NANDFlash:5th=0x74
LCDWidexHeight=480x272
GetLCDRegisters,LCDCFG[0x00000980],LCDCTRL[0x2000000d]
PWM:RequiredPWMfreq=50000Hz,Actualfreq=49180
SkipBatteryCheck
Getbinsourceerrorortoolarge!flag=0xffffffff,size=0xffffffff
Thereisnothissource
Systemready!
Preparingfordownload...
BootConfigureisnotfound,usingdefaults
Preparetosavesettings...
dwSectorAddr=128
Thesettingissavedatthe1thblock,0thsectorsuccessfully
CurrentsettingshavebeensavedNANDFlash
Start...
LowLevelFormat...
FormatBlockFrom257thTo4095th
Complete:100%
FormatBlockFinish
BP_OpenPartition
IsValidMBR:MBRsector=0x0
OpenPartition:InvalidMBR.Formattingflash.
EnterLowLevelFormat[0x0,0xe9a].
WriteMBR:MBRblock=0x0.
Done.
OpenPartition:PartitionExists=0x0forpart0x0.
CreatePartition:EnterCreatePartitionfor0x4.
LastLogSector:Lastlogsectoris:0x74d7f.
CreatePartition:Start=0x80,Num=0x20000.
WriteMBR:MBRblock=0x0.
IsValidMBR:MBRsector=0x0
jz_nand_read_page:UncorrectECCErrorinBlock[257]Sector[0],j=0
OpenPartition:PartitionExists=0x0forpart0x0.
CreatePartition:EnterCreatePartitionfor0xb.
CreatePartition:Start=0x1,Num=0x748ff.
WriteMBR:MBRblock=0x0.
jz_nand_read_page:UncorrectECCErrorinBlock[257]Sector[0],j=0
jz_nand_read_page:UncorrectECCErrorinBlock[257]Sector[4],j=0
OEMPredownload...
SDcardisinserted,pinlevelis0x0
dwSdClk=0.
InitMasterBootRecord
SDcardisinserted,pinlevelis0x0
dwSdClk=0.
InitMasterBootRecord
SDcardisinserted,pinlevelis0x0
dwSdClk=0.
InitMasterBootRecord
CS8900:MACAddress:ac000000
CS8900:MACAddress:0:ff:ff:ff:ff:6
INFO:Probe:CS8900isdetected.
INFO:Init:CS8900_InitOK.
DeviceMACis00:ff:ff:ff:ff:06
DeviceNameisDRACO65286
InitDHCP()::CallingProcessDHCP()
ProcessDHCP()::DHCP_INIT
EbootDHCPRetransmit()::ErrorOnSendUDP()Call
EbootDHCPRetransmit()::ErrorOnSendUDP()Call
InitDHCP()::CallingProcessDHCP()
ProcessDHCP()::DHCP_INIT
EbootDHCPRetransmit()::ErrorOnSendUDP()Call
SendDHCP()::ErrorOnDHCPRetransmit()Call
ProcessDHCP()::DHCP_INIT::SendDHCP(DHCP_DISCOVER)Error
InitDHCP()Error-FirstDHCPOptionisn'tthemessagetype
EbootDHCPRetransmit()::ErrorOnSendUDP()Call
EbootDHCPRetransmit()::ErrorOnSendUDP()Call
……
分 -->
回复

使用道具 举报

千问 | 2021-1-27 06:48:02 | 显示全部楼层
USB烧录跟DHCP有什么关系,是不是配置有问题
回复

使用道具 举报

千问 | 2021-1-27 06:48:02 | 显示全部楼层
友情帮顶下。
MARK.

回复

使用道具 举报

千问 | 2021-1-27 06:48:02 | 显示全部楼层
DHCP与以太网连接有关。
是不是LZ的bootloader启动参数没有设置好?
回复

使用道具 举报

千问 | 2021-1-27 06:48:02 | 显示全部楼层
下面是USBBoot.cfg文件的内容。
;------------------------------------------------
;USBbootconfigurationfileforJz4740andJz4750board
;------------------------------------------------
[PLL]
EXTCLK24;DefinetheexternalcrystalinMHz
CPUSPEED336;DefinethePLLoutputfrequency
PHMDIV3;DefinethefrequencydividerratioofPLL=CCLK:PCLK=HCLK=MCLK
BOUDRATE57600;Definetheuartboudrate
USEUART3;Usewhichuart,0/1forjz4740,0/1/2/3forjz4750
[SDRAM]
BUSWIDTH32;ThebuswidthoftheSDRAMinbits(16|32)
BANKS4;Thebanknumber(2|4)
ROWADDR13;Rowaddresswidthinbits(11-13)
COLADDR9;Columnaddresswidthinbits(8-12)
ISMOBILE0;DefinewhetherSDRAMismobileSDRAM,thisonlyvalidforJz4750,1:yes0:no
ISBUSSHARE1;DefinewhetherSDRAMbussharewithNAND1:shared0:unshared
[NAND]
BUSWIDTH8;ThewidthoftheNANDflashchipinbits(8|16|32)
ROWCYCLES3;Therowaddresscycles(2|3)
PAGESIZE2048;ThepagesizeoftheNANDchipinbytes
PAGEPERBLOCK128;Thepagenumberperblock
FORCEERASE1;Theforcetoeraseflag(0|1)
OOBSIZE64;oobsizeinbyte
ECCPOS9;eccposition
;OOBSIZE64;oobsizeinbyte
;ECCPOS28;eccposition
BADBLACKPOS0;badblackIDposition
BADBLACKPAGE127;badblackIDpage
PLANENUM1;Theplanesnumberoftargetnandflash
BCHBIT4;SpecifythehardwareBCHalgorithmfor4750(4|8)
WPPIN0;Specifythewriteprotectpinnumber
;BLOCKPERCHIP0;Specifytheblocknumberperchip,0meansignore
[END]
;TheprogramwillcalculatethetotalSDRAMsizeby:size=2^(ROWADDR+COLADDR)*BANKNUM*(SDRAMWIDTH/4)
;TheCPUSPEEDhasrestrictionas:(CPUSPEED%EXTCLK==0)&&(CPUSPEED%12==0)
;Forjz4750,theprogramjustinitBANK0(DSC0).
;Bewareallvariablesmustbesetcorrect!
我安装完BSP后,在WINCE500\PLATFORM\Draco\Bin\Usbboot文件夹下面有boot.nb0、fw.bin、usb_boot.bin、USB_Boot.exe、Usb_Boot_Driver.inf、Usb_Boot_Driver.sys、USBBoot.cfg这几个文件,我没有做任何改动。编译好一个nk.nb0后拷到这个文件夹下,执行USB_Boot.exe,执行的命令如下:
boot0
nerase0409600;4096不知道正确不正确
nprog0boot.nb000-n
nprog1024nk.nb000-n;1024是用户指导书上写的值
然后重启就会出上最上面所说的情况。
不知道这样操作对不对阿?请高手看看参数的问题,非常感谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行