dtheriault / hydra

The Hydra Project
1 stars 1 forks source link

ODroid C1 unexpectedly hangs running cal.sh #2

Closed dtheriault closed 9 years ago

dtheriault commented 9 years ago

New droid, fresh git clone of project. Built librtlsdr fresh using mkdir build cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON make sudo make install

Edited cal.sh script to remove dongle0 fudge factor and mixer offset freq, set freq to 135mhz for my bench test. Was performing freq counter measurement of pin 10 off the R820T tuner.

First iteration of cal.sh threw:

doug@c1d1:~/software/wsp/medusa/software/librtlhpsdr$ ./cal.sh Found a total of 1 dongles. Warming up for 30 seconds. Starting calibration on first 0 dongles, this will take 20 seconds. 20 left 10 left Starting calibration on remaining 1 dongles, this will take 20 seconds. 20 left 10 left Calculating calibration values for dongles 0 - 0 ... freq_offset cat: /dev/shm/rtl_0: No such file or directory ./cal.sh: line 93: offset / loop : division by 0 (error token is "loop ")

Executing cal.sh again, got the hang.

doug@c1d1:~/software/wsp/medusa/software/librtlhpsdr$ ./cal.sh Found a total of 1 dongles. Warming up for 30 seconds. Write failed: Broken pipe

Power cycle the droid, view of the syslog:

Feb 21 15:31:57 c1d1 kernel: [ 246.266929@0] r820t 0-001a: destroying instance Feb 21 15:31:57 c1d1 kernel: [ 246.268204@0] usb 1-1.2: dvb_usb_v2: 'Realtek RTL2832U reference design' successfully deinitialized and disconnected Feb 21 15:31:57 c1d1 kernel: [ 246.355505@0] ------------[ cut here ]------------ Feb 21 15:31:57 c1d1 kernel: [ 246.355528@0] WARNING: at kernel/rcutree.c:2117 rcu_process_callbacks+0x434/0x4c0() Feb 21 15:31:57 c1d1 kernel: [ 246.355534@0] Modules linked in: r820t rtl2832 w1_gpio wire dvb_usb_rtl28xxu rtl2830 dvb_usb_v2 fuse nls_cp437 Feb 21 15:31:57 c1d1 kernel: [ 246.355561@0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.69-69 #1 Feb 21 15:31:57 c1d1 kernel: [ 246.355584@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355600@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355613@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355625@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355639@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355651@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355663@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355674@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355686@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355698@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355704@0] Exception stack(0xc091ff70 to 0xc091ffb8) Feb 21 15:31:57 c1d1 kernel: [ 246.355712@0] ff60: 00000000 00000000 0001435c 00000000 Feb 21 15:31:57 c1d1 kernel: [ 246.355722@0] ff80: c091e000 c0932550 c064676c c091e000 c0994c73 c0994c73 c091e000 00000000 Feb 21 15:31:57 c1d1 kernel: [ 246.355730@0] ffa0: 00000000 c091ffb8 c000f388 c000f38c 60000013 ffffffff Feb 21 15:31:57 c1d1 kernel: [ 246.355742@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355756@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355771@0] from Feb 21 15:31:57 c1d1 kernel: [ 246.355777@0] ---[ end trace 37961095fbac2f84 ]--- Feb 21 15:31:58 c1d1 kernel: [ 246.556926@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.556926@3] Feb 21 15:31:58 c1d1 kernel: [ 246.556959@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.556959@3] Feb 21 15:31:58 c1d1 kernel: [ 246.556982@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.556982@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557174@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557174@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557200@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557200@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557223@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557223@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557421@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557421@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557446@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557446@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557469@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557469@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557544@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557544@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557568@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557568@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557590@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557590@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557796@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557796@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557822@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557822@3] Feb 21 15:31:58 c1d1 kernel: [ 246.557845@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.557845@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558047@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558047@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558072@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558072@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558095@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558095@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558169@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558169@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558193@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558193@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558215@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558215@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558421@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558421@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558446@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558446@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558476@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558476@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558671@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558671@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558697@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558697@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558720@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558720@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558795@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558795@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558819@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558819@3] Feb 21 15:31:58 c1d1 kernel: [ 246.558841@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.558841@3] Feb 21 15:31:58 c1d1 kernel: [ 246.559046@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.559046@3] Feb 21 15:31:58 c1d1 kernel: [ 246.559071@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.559071@3] Feb 21 15:31:58 c1d1 kernel: [ 246.559094@3] DEBUG:handle_hc_chhltd_intr_dma:: XactErr without NYET/NAK/ACK Feb 21 15:31:58 c1d1 kernel: [ 246.559094@3] Feb 21 15:31:58 c1d1 kernel: [ 247.151391@3] usb 1-1.2: dvb_usb_v2: found a 'Realtek RTL2832U reference design' in warm state

dtheriault commented 9 years ago

Ahh, looks like -o is missing from rtl_power.c

doug@c1d1:~$ rtl_power -d 0 -f 134995000:135005000:1 -r 2048000 -o 135000000 -c 80% /dev/shm/rtl_0 -i 10 -e 30 Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM rtl_power: invalid option -- 'o'

dtheriault commented 9 years ago

Hang was due to my addition of a wire to probe clock freq of R820T. I also submitted merged code for adding back the -o option to rtl_power.c. Its working now on C1.

commit 00019981f133e4043e565d16c71c3100c109deba