Commit graph

109 commits

Author SHA1 Message Date
Jon Szymaniak
a41fb0fe5e libbladeRF: [WIP] Fixed crash when no devicesa are attached
The libusb backend was not returning BLADERF_ERR_NODEV when it
failed to find any devices, resulting in a status code of 0 with
a NULL device.
2013-08-11 17:33:59 -04:00
Jon Szymaniak
66e5ffa301 libbladeRF: [WIP] Changed BLADERF_ERR_NODEV string 2013-08-11 16:52:53 -04:00
Jon Szymaniak
27415d37a5 libbladeRF: [WIP] Fixed overrun in (linux backend) FPGA programming 2013-08-11 16:32:50 -04:00
Jon Szymaniak
77f8aadb25 libbladeRF: [WIP] Cleanup of backend open and probe 2013-08-11 15:52:08 -04:00
Jon Szymaniak
12c942ab51 libbladeRF: [WIP] Fixed NULL dereference in Linux backend.
Status of 0 + no devices returned was resulting in an attempt to
initialize NULL device.
2013-08-10 18:57:06 -04:00
Jon Szymaniak
2288858aaf libbladeRF: [WIP] Changed bladerf_open() interfaces to return status.
The open routines now return status, allowing the caller to
differentiate between I/O failures and an invalid device specifier.

This commit still contains some in-progress known bugs with
some (avoidable) invalid memory accesses.
2013-08-10 18:19:16 -04:00
Jon Szymaniak
ee919d3aa1 libbladeRF: [WIP] Fixed a bugs in FX3 flashing (libusb backend)
Also included is the addition of a get_device_speed() to the
backend function table. Querying the device speed has been moved out
of the backend open() routines, and up to the top-level in bladerf.c.
2013-08-10 13:52:01 -04:00
Jon Szymaniak
28bfd30de5 libbladeRF: [WIP] *UNTESTED* Added FX3 flashing to libusb backend
Commiting to sync up for a dev sprint today. If you're pulling HEAD
to test out the latest and greatest, you'll likely want to avoid this
changest for the time being.
2013-08-10 10:07:56 -04:00
Jon Szymaniak
0d74b081c0 libbladeRF: [WIP] Finished up linux_open()
It appears that reading back the USB bus and address has some issues.
(Confirmed for the linux backend and libusb backend.)
2013-08-08 03:02:28 -04:00
Jon Szymaniak
46c7e5ae60 libbladeRF: [WIP] Added BLADE_GET_SPEED to linux backend. Misc cleanup.
On the cleanup side of things...just a bit of rearranging things, init
routines, and moving some items from backend code to the top-level to
avoid code duplication.
2013-08-08 00:30:41 -04:00
Jon Szymaniak
dcdf944de2 libbladeRF: [WIP] Finished up backend probe() implementations
Resolved segfaults and memory leaks introduced in last few commits.
2013-08-07 23:32:17 -04:00
Jon Szymaniak
a78d303705 libbladeRF: [WIP] Additional progress on linux backend probe.
This is not functional
2013-08-06 23:21:58 -04:00
Brian Padalino
4a7656adf4 libusb: [WIP] Probe modifications. 2013-08-06 22:58:04 -04:00
Jon Szymaniak
d35f1cadae libbladeRF: [WIP] Moved "old" code down to linux backend 2013-08-06 22:32:56 -04:00
Jon Szymaniak
876566b44d libbladeRF: [WIP] In the process of adding backend probe() routines
This commit is a developer sync up -- it has not been built or tested.
2013-08-06 22:11:33 -04:00
Brian Padalino
61cd4ba3d9 lib: Change the FPGA programmer to always set the appropriate interface before attempting to program. 2013-08-06 21:43:24 -04:00
Jon Szymaniak
4f7092402b libbladeRF: [WIP] Removed extraneous device init from linux backend.
A couple little non-functional macro changes in the libusb backend as
well...
2013-08-06 00:37:11 -04:00
Jon Szymaniak
bba53afe0a libbladeRF: [WIP] Changed return values for libusb backend's fpga prog
By returning the result, notably from end_fpga_programming(), we
wind up returning a non-zero return value where 0=success and <0=error
are expected.

However, I'm not sure we should be checking the result from the vendor
command response in these routines. Would it be a good idea to
ensure the FPGA is reset after issuing BLADE_USB_CMD_BEGIN_PROG?

There is a FPGA status poll loop afterwards, so I'm inclined to say
we can ignore the fpga status in the end programming command.
2013-08-06 00:15:22 -04:00
Jon Szymaniak
91b95f6acb libbladeRF: [WIP] Fixed a few bad pointer dereferences and assertions 2013-08-05 01:35:13 -04:00
Brian Padalino
02cd151115 lib: libusb backend should be able to tx/rx samples now. 2013-08-05 00:08:33 -04:00
Jon Szymaniak
e9d4469af5 libbladeRF: [WIP] Removed debug print 2013-08-04 23:43:55 -04:00
Jon Szymaniak
e959b3d4e6 libbladeRF: [WIP] Added linux-backend firmware flashing 2013-08-04 23:37:30 -04:00
Brian Padalino
14657308d6 cli+lib: TX/RX interface changes. 2013-08-04 22:18:06 -04:00
Jon Szymaniak
79a8bccb60 libbladeRF: [WIP] Fixed use after free in libusb backend error handling 2013-08-04 21:56:57 -04:00
Brian Padalino
460fd4d672 cli+lib: [WIP] libusb and cli changes.
Currently the FPGA loads and register reads/writes work.

Need to get samples sending/receiving.
2013-08-04 21:51:59 -04:00
Jon Szymaniak
12e6a024d9 libbladeRF: [WIP] Added driver workaround in FPGA loading 2013-08-04 21:38:13 -04:00
Brian Padalino
cb7766d1bd backend/libusb: Open and close now works. 2013-08-04 19:44:07 -04:00
Jon Szymaniak
f8b555c733 libbladeRF: [WIP] File read output params now updated. 2013-08-04 17:29:41 -04:00
Jon Szymaniak
c6258c4b6e libbladeRF: [WIP] Moved devinfo match routines to bladerf_priv 2013-08-04 16:36:13 -04:00
Jon Szymaniak
7766af1880 libbladeRF: [WIP] Moved a few snippets from linux backend to top level. 2013-08-04 14:10:52 -04:00
Jon Szymaniak
82a47b2a4a libbladeRF: Implemented & stubbed out part of linux backend open() 2013-08-03 03:02:56 -04:00
Jon Szymaniak
6157f564ac libbladeRF: [WIP] Fixed str2devinfo and test.c bugs 2013-08-03 02:26:06 -04:00
Jon Szymaniak
53b7e3d763 libbladeRF: [WIP] Tweak naming of device identifier routine(s) 2013-08-03 01:50:13 -04:00
Jon Szymaniak
c323fb553d libbladeRF: [WIP] First cut at path from top-level to backend opens
Nightly check-in. This currently fails to run - there's likely
a number of assertion failures and segfaults to address.
2013-08-03 01:23:03 -04:00
Jon Szymaniak
1c13addd1d libbladeRF: [WIP] Planned bladerf_open out, misc interface cleanup. 2013-08-02 21:27:25 -04:00
Jon Szymaniak
103c7214d2 libbladeRF: [WIP] Added file_ops.c/h
Common file operations will be tucked in here to allow them to
be easily dummied out for NIOS build without making a mess of
bladerf.c.
2013-08-02 21:25:54 -04:00
Jon Szymaniak
e12fcbf347 libbladeRF: [WIP] header file cleanup 2013-08-02 19:59:47 -04:00
Jon Szymaniak
f4102152ce libbladeRF: [WIP] Moved liblms.h items to private lms.h
The top-level, public interface is now libbladeRF.h. Depedencies
should now only flow downward, with lms.c/h depending on
libbladeRF.
2013-08-02 19:39:57 -04:00
Jon Szymaniak
d494c61f5b libbladeRF: [WIP] Stubbed out calls that need to be implemented 2013-08-02 01:04:52 -04:00
Jon Szymaniak
e277b9b15e libbladeRF: [WIP] Further file renaming 2013-08-01 23:49:00 -04:00
Jon Szymaniak
c3019016c6 libbladeRF: [WIP] Refactored Linux driver backend now compiles.
A number of XXX's and TODO's need to be addresses, as this is
not yet functional.
2013-08-01 22:04:02 -04:00
Brian Padalino
2a73ceb3ec lib: [WIP] Builds but functionality needs checking.
Major overhaul of driver structure has been changed to support
better library versus platform separation.
2013-08-01 02:15:17 -04:00
Brian Padalino
633ea2dfa7 lib: [WIP] Heavy modification to separate out linux specific code. 2013-08-01 02:15:17 -04:00
Jon Szymaniak
b3f442c01c [BROKEN] Fixed typo in bladerf_libusb.h 2013-08-01 01:57:14 -04:00
Jon Szymaniak
e3566e4249 [BROKEN] Added remaining fns to libusb support. (Untested) 2013-08-01 01:41:30 -04:00
Jon Szymaniak
bcbca049ac [BROKEN] Stubbed out remaining routines in libusb support 2013-08-01 00:38:48 -04:00
Jon Szymaniak
01e9812eb7 lib: [Broken] Added fpga programming routines to libusb support 2013-07-31 23:46:30 -04:00
Jon Szymaniak
70a628fc3d lib: Typo fix in LMS register access
Function call was missing a device handle argument
2013-07-26 00:37:09 -04:00
Brian Padalino
183518d4fb lib: Do not want to enable the modules via pins until we're ready to do something with them. 2013-07-25 23:49:16 -04:00
Brian Padalino
51a3905881 kernel: Remove some breaks which were causing issues.
lib: Add some device initialization after the FPGA is loaded.
2013-07-25 23:39:50 -04:00