I get the following error when attempting to configure Raspiraw and execute camera_i2c on my Raspberry Pi 3.
Not sure how to fix this.
buf: not found
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory

So that's the error./home/pi/raspiraw/camera_i2c: 112: /home/pi/raspiraw/camera_i2c: ./rpi3-gpiovirt
buf: not found
Code: Select all
pi@raspberrypi2B:~ $ camera_i2c
setting GPIO for board revsion: a02082
Raspberry Pi3
/home/pi/raspiraw/camera_i2c: 112: /home/pi/raspiraw/camera_i2c: ./rpi3-gpiovirtbuf: not found
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi2B:~ $ Code: Select all
pi@raspberrypi2B:~ $ cd raspiraw
pi@raspberrypi2B:~/raspiraw $ camera_i2c
setting GPIO for board revsion: a02082
Raspberry Pi3
Set state of 133 to 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: 10 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi2B:~/raspiraw $

Don't specifiy an output file (ie omit "-o <filename>") and it'll do a crude job at rendering the stream to the screen. You have no AE or AWB, so the pictures will be off.


Code: Select all
pi@raspberrypi:~/raspiraw $ ./raspiraw --help
-?, --help : This help information
-md, --mode : Set sensor mode <mode>
-hf, --hflip : Set horizontal flip
-vf, --vflip : Set vertical flip
-e, --ss : Set the sensor exposure time (not calibrated units)
-g, --gain : Set the sensor gain code (not calibrated units)
-o, --output : Set the output filename
-hd, --header : Write the BRCM header to the output file
-t, --timeout : Time (in ms) before shutting down (if not specified, set to 5s)
-sr, --saverate : Save every Nth frame
-b, --bitdepth : Set output raw bit depth (8, 10, 12 or 16, if not specified, set to sensor native)
-c, --cameranum : Set camera number to use (0=CAM0, 1=CAM1).
-eus, --expus : Set the sensor exposure time in micro seconds.
-y, --i2c : Set the I2C bus to use.
-awbg, --awbgains : Set the AWB gains to use.
-r, --regs : Change (current mode) regs
-hi, --hinc : Set horizontal odd/even inc reg
-vi, --vinc : Set vertical odd/even inc reg
-f, --fps : Set framerate regs
-w, --width : Set current mode width
-h, --height : Set current mode height
-lt, --left : Set current mode left
-tp, --top : Set current mode top
-hd0, --header0 : Sets filename to write the BRCM header to
-hdg, --headerg : Sets filename to write the .pgm header to
-ts, --tstamps : Sets filename to write timestamps to
-emp, --empty : Write empty output files