Home > other >  Vx6.8 network boot hanging dead in Starting at 0 x100000, please a recruit
Vx6.8 network boot hanging dead in Starting at 0 x100000, please a recruit

Time:11-21

Hello
I debugging P2020cpu again, when open the SMP, can hang the dead in Starting at 0 x100000, don't open the SMP can normal boot, is there anyone who encountered this problem, have some debugging methods?

CodePudding user response:

Can write their own serial printing function, a direct operation in the process of start the printf () before you can call call this function to add the print information, the location of the KanSi

CodePudding user response:

1, vxWorks image start from sysAlib. S inside sysInit start
2, then invokes the usrInit, the function is located in prjConfig. C, the file is automatically generated, at compile time the file is not automatically generated every time, only in the case of rebuild and changed the kernel configuration was generated automatically, thus can be added inside the usrInit write a serial port initialization, invoke byte to write a serial port print function add print information
3, in usrInit sysHwInit will call, this function is located in the sysLib. C, complete part of the hardware initialization
4, will be called at the end of the sysHwInit hardWareInterFaceInit (); , the function is located in prjConfig. J c, can add print observation in the function start where
5, in hardWareInterFaceInit invokes hardWareInterFaceBusInit (); Function, in hardWareInterFaceBusInit function will be called a lot of hardware register function, such as: plbRegister (), miiBusRegister ()
6, hardWareInterFaceInit function is called after the call hardWareInterFaceBusInit vxbInit () function, in vxbInit () function will call them one by one each register components init1, init2 and connect function
If not to appear, is likely to be in a hardware register corresponding init1, init2 and one of the connect function, can put the register code were drawn from the workbench (can also delete some components, reduce the positioning of the c file), one by one in init1 init2 add print and connect function, observation is hanged in which c file components which function
  • Related