Reputation: 75
I have an RTC chip on my board that I want to add it to linux as i2c device. I have an script that runs at startup of my embedded linux and in it I have this line :
echo ds1337 0x68 > /sys/bus/i2c/devices/i2c-3/new_device
sometimes it works, but sometimes it gives an error :
root@t1042d4rdb:~# echo ds1337 0x68 > /sys/bus/i2c/devices/i2c-3/new_device
-sh: echo: write error: Invalid argument
how I can fix this unstablity ?
Upvotes: 1
Views: 630
Reputation: 1
After sending the command after boot for the first time you will see that it throws this error when you try to send it again.
Upvotes: 0