Hi, How can i set java path permanently in imx6q sabresd board?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hi, How can i set java path permanently in imx6q sabresd board?

813 Views
divyardharan
Contributor III

I couldn't find .bashrc file in home directory. I have tried export PATH in init.d/rcs script file. But it was overwritten at some other run level. So i need to export it as permanent.In which file i can add the jre path.

Please help me.

Thanks Divya

Labels (2)
Tags (3)
0 Kudos
4 Replies

626 Views
SergioSolis
NXP Employee
NXP Employee

Hello Divya,

Are you building android?, are you referring to setting up the host to build it?

0 Kudos

626 Views
divyardharan
Contributor III

Hi

I got the solution.I have added java path in etc/profile ,in filesystem.

Thanks for your reply..

Regards

Divya R Dharan

0 Kudos

626 Views
SergioSolis
NXP Employee
NXP Employee

Thank you for posting the solution Divya!

0 Kudos

626 Views
divyardharan
Contributor III

Hello,

I am facing some show stoppers in my project.

We have one chip processor, we need to communicate it through I2C channel 2.

The board is designed like ,that chip is connected to Channel 2.(we have three i2c channels i2c0,i2c1,i2c2)

So When we tried to execute below code, we got write error

fd = open("/dev/i2c-2", O_RDWR);

ioctl(fd, I2C_SLAVE, I2C_ADDR);

char buffer[5];

buffer[0] = 0x0;

printf("Value : %c\n", buffer[0]);

float data;

char channel;

res = write(fd, buffer, 1);

if (res < 0) {

printf("-- ");

printf("Error writing file: %s\n", strerror(res));

} else {

printf("****%02x **", i + j);

data = (float) ((buffer[0] & 0b00001111) << 8) + buffer[1];

printf("%u\n", buffer[0]);

data = data / 4096 * 5;

channel = ((buffer[0] & 0b00110000) >> 4);

printf("Channel %02d Data: %04f\n", channel, data);

}

But when we changed our hardware like the chip connection redirected to channel 0,and tried the above code,(with change in open("/dev/i2c-0", O_RDWR)) write was success.

I have modified include\mach\iomux-mx6q.h , arch\arm\mach-mx6\board-mx6dl_sabresd.h to add the mux and pad register values.

Still no change.

Could anyone please help me to solve this issue??

Regards

Divya R Dharan

0 Kudos