rtl-sdr: gba64a74 breaks _my_ FC0012-based dongle

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Marcus Müller marcus.mueller at ettus.com
Wed Oct 25 07:00:23 UTC 2017


Hi folks,

something wasn't quite right with current git master of rtl-sdr, since
it wouldn't detect the Fitipower FC0012 tuner on a couple (dozen) of my
dongles.

So, I had a quick git-bisect session that basically went:

git checkout master
git bisect start
[build]
[connect dongle]
build/src/rtl_eeprom | grep "Found Fitipower"
       then git bisect good
       else git bisect bad
[disconnect dongle]
jump back to build, rinse, repeat

turns out, when you _initialize_ the dongle with an older version, it
works, even with the newer revisions (hence my un- and replugging
exercises).

The (reproducibly) offending commit is the GPO/GPD register swap in
ba64a74 : librtlsdr.c, l. 570,

-       rtlsdr_write_reg(dev, SYSB, GPO, r & ~gpio, 1);
+       rtlsdr_write_reg(dev, SYSB, GPD, r & ~gpio, 1);


Now, that commit's msg mentions
http://lea.hamradio.si/~s57uuu/mischam/rtlsdr/ports.html
and I don't want to break their application, but I can't get my dongles
to run :(

How to proceed from here? I'm not quite sure what I'd break if I just
reverted that commit; _my_ R820T dongle continues to work if I revert,
but I'm sure this commit didn't come out of thin air.

Best regards,
Marcus

-------------- next part --------------
git bisect start
# good: [af1e2d29e80ce31e54cad771b47d31bdb846b695] bump version to 0.5.0
git bisect good af1e2d29e80ce31e54cad771b47d31bdb846b695
# good: [af1e2d29e80ce31e54cad771b47d31bdb846b695] bump version to 0.5.0
git bisect good af1e2d29e80ce31e54cad771b47d31bdb846b695
# bad: [b04c2f9f035c5aede43d731e5d58e4725d2f8bb4] fix for msvc14
git bisect bad b04c2f9f035c5aede43d731e5d58e4725d2f8bb4
# good: [7855c7c8768c91fd47425136bb4c151d0abdc224] rtl_tcp: clean up error handling
git bisect good 7855c7c8768c91fd47425136bb4c151d0abdc224
# good: [0a90c7d4177a61b2272098e7c89553726401f836] rtl_test: update copyright header
git bisect good 0a90c7d4177a61b2272098e7c89553726401f836
# good: [c5dc459fc51d4b6721a7c0457ac0cddbb3213b2c] Correct return code of e4k_reg_write().
git bisect good c5dc459fc51d4b6721a7c0457ac0cddbb3213b2c
# good: [e3c03f738f5aef4dc51e2b741fbdb542b9cc1bb1] lib: check for libusb init failure
git bisect good e3c03f738f5aef4dc51e2b741fbdb542b9cc1bb1
# bad: [2be1612e604f950ba21ef6ff12488eab62e66ad5] lib: Use GPIO P0 to toggle an (optional) bias-t
git bisect bad 2be1612e604f950ba21ef6ff12488eab62e66ad5
# bad: [ba64a7459a43652354990855176a7d8dad5b9d54] lib: fix direction bit in GPIO code
git bisect bad ba64a7459a43652354990855176a7d8dad5b9d54
# good: [e3e6ee23b7f052327bf64c6908f5c09b75029edc] lib: add new HanfTek dongle
git bisect good e3e6ee23b7f052327bf64c6908f5c09b75029edc
# first bad commit: [ba64a7459a43652354990855176a7d8dad5b9d54] lib: fix direction bit in GPIO code
-------------- next part --------------
#!/usr/bin/zsh

pushd build
rm -r *
cmake -DCMAKE_INSTALL_PREFIX=~/.usrlocal -DCMAKE_C_COMPILER=clang -GNinja ..
ninja
./src/rtl_eeprom |& grep "Found Fitipower"
return_code=$rc
[[ $rc -ne 0 ]] && echo "$(git describe): Nope" && exit -1


More information about the osmocom-sdr mailing list