Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi This is SrikanthPilli, hey sorry about my bad English. i am using pandaboard (ARM9-cortex - A9) board with my own operating system( i was used open source kernel 3.0.4 for making my OS and include i2c-tools to the kernel using buildroot-2011.08).
In the pandaboard,the j3 expansion connector supports I2C4 at 23 & 24 pines for SDA & SCL lines. For writing and Reading data , i was used EEPROM through I2C4 lines.
i wrote the following code with i2c4.c
/* Read input line for args of offset and bytes to read from IIC device.
Do read and dump contents.
Modified to have EEPROM_ADDR as parameter
int main(int argc, char** argv)
int count, bytesToRead;
unsigned char *i2c_buffer;
unsigned char i2c_ptr;
unsigned argRead, bytesRead;
adapter_nr=4;/* i2c4 initialisation*/
printf("device opened at: %d\n",adapter_nr);
if ((dev_i2c = open(i2c_name, O_RDWR)) < 0)
printf("Cannot Open I2C4 Master Device\n");
printf("device open successfull\n");
SlaveAddr=0x50;//Generally this is eeprom address, later mention actual slave address
. so kindly solve this problem and give some input's why it is coming? what ever i followed procedure is correct or not? if it is wrong , please mention the correct path. and please review my code, and tell me is their any mistakes?
if you run "sh programname" then sh will try to interpret the program as a shell script. as compiled c code you should be running it as "./programname" but if for some reason it's not set as executable already run "chmod +x programname" and try again.