e2aca35f6c2a413e631c4068153745f2ab74045d
[challenge-bot] / bbb / notes.org
1 * todo
2 * add hostname and user in image type configuration
3 * mdns avahi zeroconf bonjour not work? maybe wrong hostname
4 * confirm that the only real problem was incorrect user and hostname
5 * maybe http://elinux.org/RPi_Advanced_Setup search 'avahi'
6 * also https://stackoverflow.com/questions/10537816/cannot-connect-to-beaglebone-local
7 * set time on beagleboard based on host system time
8 * set timezone on beagleboard based on host system timezone
9 * get network up and running, share network through host system
10 * do this during bbb boot
11 * make a ~/bin dir, add it to path
12 * add full-update.bash to ~/bin
13 * initial setup on beaglebone should do
14 * sudo aptitude install -y v4l-utils # for v4l2-ctl
15 * sudo aptitude install pkg-config # for compiling
16 * for opencv:
17 * sudo aptitude install -y libopencv-dev
18 * check whether libopencv-dev is the only package necessary
19 * add ssh key to bbb image to make sshing easier
20 ** trying to compile grabber.c from derek molloy
21 *** problem
22 **** what i did
23 gcc -O2 -Wall `pkg-config --cflags --libs libv4l2` grabber.c -o grabber
24
25 **** what i expected
26 compilation finishes and i can run grabber
27
28 **** what actually happened
29 Package libv4l2 was not found in the pkg-config search path.
30
31 **** potential solution
32 sudo aptitude install -y libv4l-dev
33
34 ***** did it work?
35 * retrying compile
36 * compile finished, created grabber!
37
38 ** another problem, getting image from camera failed
39 *** problem
40 **** what i did
41 after compiling grabber, tried to run it
42
43 **** what i expected
44 grab images and maybe there would be a picture in the current directory
45
46 **** what actually happened
47 grabber ran for a bit and output the following:
48
49 "Warning: driver is sending image at 1280x720"
50
51 after waiting for a bit, killed grabber with C-c. no picture in the
52 current directory
53
54 **** possible solution
55 * read source of grabber.c and look for anything out of
56 ordinary.
57 * saw that frame size was hard coded to 1920x1080
58 * redid code to 640x480. recompiled the code
59 * ran it, got no terminal output
60 * killed it with C-c after a bit
61 * saw grabber000.ppm
62
63 * TODO test out all cameras
64 ** TODO test out c920 logitech hd pro webcam
65 *** TODO test out c920 on laptop
66 * testing with laptop!
67 * cheese shows video feed from device
68 * when run streamer -c /dev/video1 -o foobar.ppm, next image from
69 opencv-hello-world is messed up
70 * when run multiple times in a row, opencv-hello-world gets correct
71 image second time
72 *** TODO test out c920 on bbb
73 **** TODO test with debian 8.3 image
74 unable to connect via debian@arm.local or ping 192.168.7.2
75 **** TODO test with debian 8.2 image
76 * able to connect with debian@arm.local!
77 * run full-update.bash
78 * got it working by adding usbcore.autosuspend=-1 to cmdline in uEnv.txt
79 * still need to throw away first image
80 * trying kernel linux-{image,headers}-4.4.1-bone5
81 *** TODO test out c920 on bbg
82 **** TODO test with debian 8.3 image
83 unable to connect via debian@arm.local or ping 192.168.7.2
84 **** TODO test with debian 8.2 image
85 ** tested thinkpenguin basic webcam on bbg
86 *** /boot/uEnv.txt cmdline usbcore.autosuspend=-1
87 tried with and without this option. always select timeout
88 *** reloading uvcvideo with options
89 * modprobe -r uvcvideo
90 * modprobe uvcvideo nodrop=1 timeout=5000
91 * did not get 'select timeout' but images were solid green with a
92 thin line at the top of real image
93 ** TODO recompile kernel with CONFIG_MUSB_PIO_ONLY=y
94 might solve usb problems
95 "This happens due to the not well working USB DMA mode in the
96 Beaglebone. I disabled the DMA mode in the kernel (Cameras use
97 USB ISO mode) and it worked well so far."
98 ** test c525 on bbg
99 *** does not work on bbg
100 light turns on, but get select timeout
101 did not do uEnv.txt cmdline or reload uvcvideo mod
102 *** works fine on laptop
103 * TODO make sure license doesn't say "GNU Affero Emacs is distributed ..."
104 * doing
105 * maybe just go with debian 8.2
106 * systematically try all the images on all the boards
107 * debian 8.3 lxde, debian 7.9 lxde, debian 7.9 console,
108 debian 8.2 console 2016-01-14
109 * BBB-eMMC-flasher-debian-7.9-console-armhf-2015-11-03-2gb.img
110 * flashes BBB and BBG
111 * leaves the board accessible via 192.168.7.2
112 * unable to get to board with beaglebone.local
113 * debian 8.2 console 2016-01-14
114 * username:debian
115 * pw:temppwd
116 * BBG
117 * flashes
118 * boots after flash
119 * no beaglebone.local
120 * yes debian@192.168.7.2
121 * BBB
122 * flashes
123 * boots after flash
124 * no beaglebone.local
125 * yes debian@192.168.7.2
126 * debian 8.3 lxde
127 * username:root
128 * pw:
129 * BBG
130 * flashes
131 * boots after flash
132 * yes beaglebone.local
133 * yes 192.168.7.2
134 * BBB
135 * flashes
136 * boots after flash via power button, no need to pull usb cable
137 * no 192.168.7.2
138 * no beaglebone.local
139 * done