AnsweredAssumed Answered

"devregs tool" problem on BD-SL-i.MX6

Question asked by randy Chen on Dec 17, 2014
Latest reply on Dec 17, 2014 by Eric Nelson


I'm not able to use devregs tool on BD-SL-i.MX6 without changing the devregs.cpp source code since my cpu is I.MX6Q and cpu type shows 0x63012.

/*part of devregs .cpp*/

static char const *getDataPath(unsigned cpu) {

     switch (cpu & 0xff000) {

          case 0x63000:

               return "/etc/devregs_imx6q.dat" ;

          case 0x61000:

               return "/etc/devregs_imx6dls.dat" ;

          case 0x53000:

               return "/etc/devregs_imx53.dat" ;


               printf("unsupported CPU type: %x \n ", cpu);

               return "/etc/devregs_imx6q.dat" ; // when cpu type is 0x63012 it return devregs_imx6q.dat


  printf("using /etc/devregs_imx6q.dat\n");

  return "/etc/devregs_imx6q.dat" ;


/* makefile*/


  arm-none-linux-gnueabi-g++ -static devregs.cpp -o devregs


After I recompile the devregs.cpp and copy the executable file into /bin/ and command like

$ devregs 0x02600000

The system just hold forever and need to reset. can anyone give some little advice?

Thank you for any help you can provide, I really need devregs to show the register status.