Git Product home page Git Product logo

airspyone_firmware's People

Contributors

bvernoux avatar malcolmrobb avatar mm6dos avatar touil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airspyone_firmware's Issues

Not working on Debian 11

Hi,

It fails here with:

$ make GENHDR include/libopencm3/lpc43xx/m0/irq.yaml ./scripts/irq2nvic_h:113: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. data = yaml.load(infile) GENHDR include/libopencm3/lpc43xx/m4/irq.yaml ./scripts/irq2nvic_h:113: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. data = yaml.load(infile) GENHDR include/libopencm3/lpc43xx/m0s/irq.yaml ./scripts/irq2nvic_h:113: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. data = yaml.load(infile) BUILD lib/lpc43xx/m4 CP libopencm3_lpc43xx.ld CC gpio.c make[1]: arm-none-eabi-gcc: No such file or directory make[1]: *** [../../Makefile.include:42: gpio.o] Error 127 make: *** [Makefile:67: lib/lpc43xx/m4] Error 2

VM connection issues

When connecting the AS R2 to a Linux VM (VMware Workstation 14), lsusb produces this output:

root@ubuntu:/home/test# lsusb
Bus 001 Device 008: ID 1d50:60a1 OpenMoko, Inc. Airspy
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

When trying airspy_info, the device is not found:

root@ubuntu:/home/test# airspy_info
airspy_lib_version: 1.0.9
airspy_open() board 1 failed: AIRSPY_ERROR_NOT_FOUND (-5)

Lastly, lsusb -v produces this:

root@ubuntu:/home/test# lsusb -v
Bus 001 Device 008: ID 1d50:60a1 OpenMoko, Inc. Airspy

Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x60a1 Airspy
bcdDevice 1.00
iManufacturer 1 (error)
iProduct 2 (error)
iSerial 3 (error)
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0020
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
cannot read device status, Resource temporarily unavailable (11)

When disconnecting the device from the VM back to Windows, it will also not work in Windows until unplugged and reconnected.

[Ubuntu ] -- Linux kernel 4.10.0-30-generic -- Airspy module crash !

Hello,

Seems something is broken on last Ubuntu :

Linux 4.10.0-30-generic #34-Ubuntu SMP Mon Jul 31 19:38:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Once device is plugged i have a module crash over Airspy.

I do a complete delete of media / staging/media & recompiled all modules, but after a reboot , i have the same error / crash.

I use the kernel installed by default on last ubuntu , but i installed media driver ( DVB ) from luis to get TBS card opensource working.


[ 2.422405] WARNING: You are using an experimental version of the media stack.
As the driver is backported to an older kernel, it doesn't offer
enough quality for its usage in production.
Use it with care.
Latest git patches (needed if you report a bug to [email protected]):
7c2f212f4a7f6d898190e36a7787184c73dddfad add to visit 24cxx on tbs6301

[ 2.426632] SAA716x Budget 0000:07:00.0: enabling device (0000 -> 0002)
[ 2.429281] airspy 1-1:1.0: Board ID: 00
[ 2.429282] airspy 1-1:1.0: Firmware version: AirSpy NOS v1.0.0-rc10-0-g946184a 2016-09-19
[ 2.429292] general protection fault: 0000 [#1] SMP
[ 2.429300] Modules linked in: airspy(OE+) snd_seq input_leds snd_pcm saa716x_tbs_dvb(OE+) snd_seq_device cx24117(OE) videobuf2_vmalloc(OE) saa716x_core(OE) videobuf2_memops(OE) joydev tas2101(OE) videobuf2_v4l2(OE) snd_timer videobuf2_core(OE) dvb_core(OE) aesni_intel(+) i2c_mux videodev(OE) aes_x86_64 media(OE) snd crypto_simd glue_helper cryptd soundcore serio_raw mei_me mei shpchp hci_uart btbcm btqca btintel bluetooth intel_lpss_acpi intel_lpss acpi_als mac_hid kfifo_buf acpi_pad industrialio parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid uas usb_storage nouveau mxm_wmi i2c_algo_bit ttm e1000e drm_kms_helper psmouse syscopyarea ptp sysfillrect pps_core sysimgblt fb_sys_fops ahci drm libahci wmi i2c_hid video pinctrl_sunrisepoint hid pinctrl_intel fjes
[ 2.429330] CPU: 2 PID: 384 Comm: systemd-udevd Tainted: G OE 4.10.0-30-generic #34-Ubuntu
[ 2.429332] Hardware name: System manufacturer System Product Name/STRIX Z270F GAMING, BIOS 0906 03/22/2017
[ 2.429336] task: ffff9997c3ec5c00 task.stack: ffffb406c25d4000
[ 2.429342] RIP: 0010:find_ref+0x49/0xc0 [videodev]
[ 2.429344] RSP: 0000:ffffb406c25d78b0 EFLAGS: 00010202
[ 2.429346] RAX: 00010102464c457f RBX: ffff9997c25c79f8 RCX: ffffb406c1a7d000
[ 2.429349] RDX: 0000000000000000 RSI: 0000000000a20001 RDI: ffff9997c25c79f8
[ 2.429351] RBP: ffffb406c25d78b0 R08: 0000000000000001 R09: 0000000000000002
[ 2.429354] R10: 0000000000a20929 R11: ffffffffc0893f70 R12: 0000000000a20001
[ 2.429356] R13: 0000000000a20001 R14: ffffb406c1a85000 R15: ffffb406c1a85000
[ 2.429359] FS: 00007f1cb3e728c0(0000) GS:ffff9997dec80000(0000) knlGS:0000000000000000
[ 2.429362] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.429365] CR2: 000055ecbf23b078 CR3: 000000044a3ef000 CR4: 00000000003406e0
[ 2.429367] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2.429370] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2.429372] Call Trace:
[ 2.429377] find_ref_lock+0x2b/0x50 [videodev]
[ 2.429381] handler_new_ref+0x4c/0x1c0 [videodev]
[ 2.429385] v4l2_ctrl_new+0x334/0x5c0 [videodev]
[ 2.429389] v4l2_ctrl_new_std+0x11c/0x130 [videodev]
[ 2.429392] airspy_probe+0x2b7/0x4ae [airspy]
[ 2.429396] usb_probe_interface+0x159/0x2d0
[ 2.429399] driver_probe_device+0x2bb/0x460
[ 2.429402] __driver_attach+0xdf/0xf0
[ 2.429405] ? driver_probe_device+0x460/0x460
[ 2.429407] bus_for_each_dev+0x6c/0xc0
[ 2.429410] driver_attach+0x1e/0x20
[ 2.429412] bus_add_driver+0x170/0x270
[ 2.429415] driver_register+0x60/0xe0
[ 2.429417] usb_register_driver+0x81/0x140
[ 2.429419] ? 0xffffffffc0b12000
[ 2.429422] airspy_driver_init+0x1e/0x1000 [airspy]
[ 2.429425] do_one_initcall+0x52/0x1b0
[ 2.429428] ? kmem_cache_alloc_trace+0x142/0x190
[ 2.429431] do_init_module+0x5f/0x200
[ 2.429434] load_module+0x190b/0x1c70
[ 2.429436] ? __symbol_put+0x60/0x60
[ 2.429439] ? ima_post_read_file+0x7e/0xa0
[ 2.429441] ? security_kernel_post_read_file+0x6b/0x80
[ 2.429444] SYSC_finit_module+0xdf/0x110
[ 2.429447] SyS_finit_module+0xe/0x10
[ 2.429449] do_syscall_64+0x5b/0xc0
[ 2.429452] entry_SYSCALL64_slow_path+0x25/0x25
[ 2.429454] RIP: 0033:0x7f1cb2cfa9f9
[ 2.429456] RSP: 002b:00007ffd75260048 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 2.429459] RAX: ffffffffffffffda RBX: 000056090be5f210 RCX: 00007f1cb2cfa9f9
[ 2.429462] RDX: 0000000000000000 RSI: 00007f1cb361de23 RDI: 0000000000000014
[ 2.429470] RBP: 00007f1cb361de23 R08: 0000000000000000 R09: 0000000000000000
[ 2.429472] R10: 0000000000000014 R11: 0000000000000246 R12: 0000000000000000
[ 2.429475] R13: 000056090be981c0 R14: 0000000000020000 R15: 000056090b09ae30
[ 2.429477] Code: 74 09 48 8b 50 18 3b 72 48 74 3f 48 8b 4f 50 48 85 c9 74 4b 44 0f b7 47 68 31 d2 89 f0 41 f7 f0 89 d2 48 8b 04 d1 48 85 c0 74 1f <48> 8b 50 18 39 72 48 74 12 48 8b 40 10 48 85 c0 74 0d 48 8b 50
[ 2.429496] RIP: find_ref+0x49/0xc0 [videodev] RSP: ffffb406c25d78b0
[ 2.429499] ---[ end trace 68b3472e90bcf323 ]---
[ 2.436985] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 2.437252] snd_hda_intel 0000:01:00.1: Disabling MSI
[ 2.437255] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 2.447852] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=3 (0x14/0x15/0x16/0x0/0x0) type:line
[ 2.447855] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 2.447857] snd_hda_codec_generic hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 2.447858] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0
[ 2.447859] snd_hda_codec_generic hdaudioC0D0: dig-out=0x1e/0x0
[ 2.447860] snd_hda_codec_generic hdaudioC0D0: inputs:
[ 2.447861] snd_hda_codec_generic hdaudioC0D0: Front Mic=0x19
[ 2.447862] snd_hda_codec_generic hdaudioC0D0: Rear Mic=0x18
[ 2.447863] snd_hda_codec_generic hdaudioC0D0: Line=0x1a

Any advice ?

After update, airspy_info firmware version didn't change. It showed the same version #.

ubuntu@ubuntu-iMac:~$ airspy_info
airspy_lib_version: 1.0.9

Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy NOS v1.0.0-rc10-3-g7120e77 2018-04-28
Part ID Number: 0x6906002B 0x00000030
Serial Number: 0x260868C82A6A659B
Supported sample rates:
	10.000000 MSPS
	2.500000 MSPS
Close board 1

ubuntu@ubuntu-iMac:~$ wget https://github.com/airspy/airspyone_firmware/releases/download/v1.0.0-rc10-6/airspy_fw_v1.0.0-rc10-6-g4008185.zip
--2020-05-09 19:18:11--  https://github.com/airspy/airspyone_firmware/releases/download/v1.0.0-rc10-6/airspy_fw_v1.0.0-rc10-6-g4008185.zip
Resolving github.com (github.com)... 13.229.188.59
Connecting to github.com (github.com)|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/26932130/4bce9700-9121-11ea-8535-f3a43afbc4a2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200509T111812Z&X-Amz-Expires=300&X-Amz-Signature=ee67437b08e82e6b8d8bfafc0c050e6de1e0ce126e0c8da1c41a8bd500ce1d1b&X-Amz-SignedHeaders=host&actor_id=0&repo_id=26932130&response-content-disposition=attachment%3B%20filename%3Dairspy_fw_v1.0.0-rc10-6-g4008185.zip&response-content-type=application%2Foctet-stream [following]
--2020-05-09 19:18:12--  https://github-production-release-asset-2e65be.s3.amazonaws.com/26932130/4bce9700-9121-11ea-8535-f3a43afbc4a2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200509T111812Z&X-Amz-Expires=300&X-Amz-Signature=ee67437b08e82e6b8d8bfafc0c050e6de1e0ce126e0c8da1c41a8bd500ce1d1b&X-Amz-SignedHeaders=host&actor_id=0&repo_id=26932130&response-content-disposition=attachment%3B%20filename%3Dairspy_fw_v1.0.0-rc10-6-g4008185.zip&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.82.64
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.82.64|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 513217 (501K) [application/octet-stream]
Saving to: ‘airspy_fw_v1.0.0-rc10-6-g4008185.zip’

airspy_fw_v1.0.0-rc10-6 100%[==============================>] 501.19K   162KB/s    in 3.1s    

2020-05-09 19:18:16 (162 KB/s) - ‘airspy_fw_v1.0.0-rc10-6-g4008185.zip’ saved [513217/513217]
ubuntu@ubuntu-iMac:~$ unzip airspy_fw_v1.0.0-rc10-6-g4008185.zip
Archive:  airspy_fw_v1.0.0-rc10-6-g4008185.zip
   creating: airspy_fw_v1.0.0-rc10-6-g4008185/
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/airspy.dll  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/airspy_rom_to_ram.bin  
 extracting: airspy_fw_v1.0.0-rc10-6-g4008185/airspy_spiflash.bat  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/airspy_spiflash.exe  
 extracting: airspy_fw_v1.0.0-rc10-6-g4008185/airspy_spiflash.txt  
   creating: airspy_fw_v1.0.0-rc10-6-g4008185/dfuprog_airspy/
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/dfuprog_airspy/dfu-suffix.exe  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/dfuprog_airspy/dfu-util.exe  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/dfuprog_airspy/dfuprog_airspy.bat  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/dfuprog_airspy/iram_dfu_util_spiflash.bin.hdr  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/dfuprog_airspy/libusb-1.0.dll  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/dfuprog_airspy/lpcdfu.exe  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/libusb-1.0.dll  
  inflating: airspy_fw_v1.0.0-rc10-6-g4008185/pthreadVCE2.dll  
ubuntu@ubuntu-iMac:~$ cd airspy_fw_v1.0.0-rc10-6-g4008185
ubuntu@ubuntu-iMac:~/airspy_fw_v1.0.0-rc10-6-g4008185$ airspy_spiflash -w airspy_rom_to_ram.binFile size 21556 bytes.
Erasing 1st 64KB in SPI flash.
Writing 256 bytes at 0x000000.
Writing 256 bytes at 0x000100.
Writing 256 bytes at 0x000200.
Writing 256 bytes at 0x000300.
Writing 256 bytes at 0x000400.
Writing 256 bytes at 0x000500.
Writing 256 bytes at 0x000600.
Writing 256 bytes at 0x000700.
Writing 256 bytes at 0x000800.
Writing 256 bytes at 0x000900.
Writing 256 bytes at 0x000a00.
Writing 256 bytes at 0x000b00.
Writing 256 bytes at 0x000c00.
Writing 256 bytes at 0x000d00.
Writing 256 bytes at 0x000e00.
Writing 256 bytes at 0x000f00.
Writing 256 bytes at 0x001000.
Writing 256 bytes at 0x001100.
Writing 256 bytes at 0x001200.
Writing 256 bytes at 0x001300.
Writing 256 bytes at 0x001400.
Writing 256 bytes at 0x001500.
Writing 256 bytes at 0x001600.
Writing 256 bytes at 0x001700.
Writing 256 bytes at 0x001800.
Writing 256 bytes at 0x001900.
Writing 256 bytes at 0x001a00.
Writing 256 bytes at 0x001b00.
Writing 256 bytes at 0x001c00.
Writing 256 bytes at 0x001d00.
Writing 256 bytes at 0x001e00.
Writing 256 bytes at 0x001f00.
Writing 256 bytes at 0x002000.
Writing 256 bytes at 0x002100.
Writing 256 bytes at 0x002200.
Writing 256 bytes at 0x002300.
Writing 256 bytes at 0x002400.
Writing 256 bytes at 0x002500.
Writing 256 bytes at 0x002600.
Writing 256 bytes at 0x002700.
Writing 256 bytes at 0x002800.
Writing 256 bytes at 0x002900.
Writing 256 bytes at 0x002a00.
Writing 256 bytes at 0x002b00.
Writing 256 bytes at 0x002c00.
Writing 256 bytes at 0x002d00.
Writing 256 bytes at 0x002e00.
Writing 256 bytes at 0x002f00.
Writing 256 bytes at 0x003000.
Writing 256 bytes at 0x003100.
Writing 256 bytes at 0x003200.
Writing 256 bytes at 0x003300.
Writing 256 bytes at 0x003400.
Writing 256 bytes at 0x003500.
Writing 256 bytes at 0x003600.
Writing 256 bytes at 0x003700.
Writing 256 bytes at 0x003800.
Writing 256 bytes at 0x003900.
Writing 256 bytes at 0x003a00.
Writing 256 bytes at 0x003b00.
Writing 256 bytes at 0x003c00.
Writing 256 bytes at 0x003d00.
Writing 256 bytes at 0x003e00.
Writing 256 bytes at 0x003f00.
Writing 256 bytes at 0x004000.
Writing 256 bytes at 0x004100.
Writing 256 bytes at 0x004200.
Writing 256 bytes at 0x004300.
Writing 256 bytes at 0x004400.
Writing 256 bytes at 0x004500.
Writing 256 bytes at 0x004600.
Writing 256 bytes at 0x004700.
Writing 256 bytes at 0x004800.
Writing 256 bytes at 0x004900.
Writing 256 bytes at 0x004a00.
Writing 256 bytes at 0x004b00.
Writing 256 bytes at 0x004c00.
Writing 256 bytes at 0x004d00.
Writing 256 bytes at 0x004e00.
Writing 256 bytes at 0x004f00.
Writing 256 bytes at 0x005000.
Writing 256 bytes at 0x005100.
Writing 256 bytes at 0x005200.
Writing 256 bytes at 0x005300.
Writing 52 bytes at 0x005400.
ubuntu@ubuntu-iMac:~/airspy_fw_v1.0.0-rc10-6-g4008185$ airspy_info
airspy_lib_version: 1.0.9

Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy NOS v1.0.0-rc10-3-g7120e77 2018-04-28
Part ID Number: 0x6906002B 0x00000030
Serial Number: 0x260868C82A6A659B
Supported sample rates:
	10.000000 MSPS
	2.500000 MSPS
Close board 1




DFU Not in IDLE state before command

Following instructions here: https://github.com/airspy/airspyone_firmware/wiki/Linux-how-to-flash-airspy-firmware

Side-note: It took me much longer than I expected to figure out the way to install 7za and then execute 7za x lpcdfu-1.02_src_linux_win32_airspy_fw_v1.0.0-rc4.7z

When executing (And disabling quiet), I get this:

# ./dfuprog.sh airspy_rom_to_ram.bin
Downloading algo...
dfu-util 0.11-dev

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 1fc9:000c
Device DFU version 0100
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0100
Device returned transfer size 2048
Warning: Overriding device-reported transfer size
Copying data from PC to DFU device
Download	[=========================] 100%        13468 bytes
Download done.
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!
dfu-util: can't detach
Resetting USB to switch back to Run-Time mode
Programming airspy_rom_to_ram.bin
DFU Not in IDLE state before command
main: PREPARE Done. Result = -107
main: EXIT Result=-107

Device is the AirSpy Mini.

Any ideas?

Question about 'set filt_cap' register parameters in function 'r820t_calibrate'

Last night I noticed this line in the function 'r820t_calibrate' in the source file 'common/r820t.c' (https://github.com/airspy/airspyone_firmware/blob/master/common/r820t.c#L634):

rc = r820t_write_reg_mask(priv, 0x0b, 0x08, 0x60);

If my understanding of the arguments for the function 'r820t_write_reg_mask()' is correct, either the value 0x08 or the mask 0x60 are not correct (or both), since the bit set by the value 0x08 is masked by 0x60.

Perhaps I am missing something here, but you may want to double check that that statement does what it is supposed to.

Franco

installing Airspy firmware process

I'm trying to update the firmware foe my AS. Looks like I have to build it first. What does this mean and how do I do it:

Add in environment variable PATH the path to Default Install: C:\Python27\

Thanks,
Demian

ps If this not the right way to flash most recent firmware, please direct me on how to do it.

msvcr100.dll required but not available

airspy_spiflash.exe requires msvcr100.dll, which despite several hours of searching and installing I have not been able to locate. Please provide a link to the required installer or rebuild airspy_spiflash.exe with a more recent redistributable requirement?

Airspy bin not included

Hi,
Would it be possible to include an official "build" of the firmware (.bin) for use with airspy_spiflash.bat in the git repository. This would allow those of us tinkering with the firmware to revert to the official build without having to re-compile the original source.

The other problem is that re-compiling locally will cause the local machines time and date to be included in the new build by the python scripts, so the locally built version won't be identical to the official release.
Cheers
Malcolm

storing the build date inside firmware

This has been at the back of my mind for a while, that two firmwares built by two people in different parts of the world, with the same tools, will get different checksums because the date that the binary was built was different. Included the date that the binary was built in a firmware is less useful than the date of the last commit in git. If 20 years from now, someone built the current firmware, having 2035-MM-DD as the date in the firmware version string would be less useful than seeing 2015-07-14.

Can the following line in firmware/scripts/airspy_fw-version.py
print '#define AIRSPY_FW_BUILD_DATE "' + date.today().isoformat() + '"'
be changed to something along the lines of the following:
print '#define AIRSPY_FW_CHECKIN_DATE "' + git.show(['--pretty=format:%ai']).partition(' ')[0] + '"'
and version_string in firmware/airspy_m0/airspy_m0.c be changed as well, to use AIRSPY_FW_CHECKIN_DATE instead of AIRSPY_FW_BUILD_DATE or whatever you decide.

Feel free to close this, and go "nope, not going to happen", I just watched the below CCC video and it made me think about the different hashes again, and it probably put me in the mood for a mad rant :)
https://media.ccc.de/browse/conferences/camp2015/camp2015-6657-how_to_make_your_software_build_reproducibly.html

yamly not found

Hi,
I'm trying to build the firmware for my airspy mini. I've done it successfully in the past however the process no longer works:
sudo pip3 install yamly Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting yamly Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/yamly/

GitPython installs if I use python3 rather than python2 as their project page says that it now requires => python3.4

Build Error

Hi

I'm currently experiencing an error whilst attempting to build the firmware via the official instructions:
https://github.com/airspy/firmware/wiki/Linux-how-to-build-airspy-firmware

sudo python get-pip.py

Traceback (most recent call last): File "get-pip.py", line 17474, in <module> main() File "get-pip.py", line 17466, in main bootstrap(tmpdir=tmpdir) File "get-pip.py", line 17406, in bootstrap import pip File "/tmp/tmppOvIE5/pip.zip/pip/__init__.py", line 11, in <module> File "/tmp/tmppOvIE5/pip.zip/pip/vcs/mercurial.py", line 9, in <module> File "/tmp/tmppOvIE5/pip.zip/pip/download.py", line 22, in <module> File "/tmp/tmppOvIE5/pip.zip/pip/_vendor/requests/__init__.py", line 53, in <module> File "/tmp/tmppOvIE5/pip.zip/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py", line 70, in <module> AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

Environment:

Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 8.0 (jessie)
Release:        8.0
Codename:       jessie

Is there a simple solution to resolve the above missing attribute error?

A modification to GitPython has apparently broken the build

GitPython made a change on the 12th of January in version 0.3.5 see: gitpython-developers/GitPython#255

To work around this in scripts/airspy_fw-version.py I have changed
"git=Repo().git"
to:
"git=Repo(search_parent_directories=True).git"
And this fixed the problem for me.

Before the change this was the error message I was getting:
root@bananapi ~/src/airspy/firmware (git)-[master] # make
for i in airspy_m0 airspy_m0s airspy_rom_to_ram; do
if [ -d $i ]; then
printf " BUILD $i\n";
make -C $i || exit ;
fi;
done
BUILD airspy_m0
make[1]: Entering directory '/root/src/airspy/firmware/airspy_m0'
echo Creating airspy_m0.hdr
Creating airspy_m0.hdr
python ../scripts/airspy_fw-version.py ./airspy_m0.hdr
Traceback (most recent call last):
File "../scripts/airspy_fw-version.py", line 14, in
git=Repo().git
File "/usr/local/lib/python2.7/dist-packages/git/repo/base.py", line 162, in init
raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: /root/src/airspy/firmware/airspy_m0
../common/Makefile_M0_inc.mk:138: recipe for target 'airspy_m0.hdr' failed
make[1]: *** [airspy_m0.hdr] Error 1
make[1]: Leaving directory '/root/src/airspy/firmware/airspy_m0'
Makefile:38: recipe for target 'airspy_fw' failed
make: *** [airspy_fw] Error 2
2 root@bananapi ~/src/airspy/firmware (git)-[master] #

Need Updated Windows, Debian/Ubuntu Linux Instuctions

During the build of the firmware, I get this error:

sudo python get-pip.py Downloading/unpacking pip
Downloading pip-21.2.4.tar.gz (1.6MB): 1.6MB downloaded
Running setup.py (path:/tmp/pip_build_root/pip/setup.py) egg_info for package pip
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_root/pip/setup.py", line 7
def read(rel_path: str) -> str:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_root/pip/setup.py", line 7

def read(rel_path: str) -> str:

                 ^

SyntaxError: invalid syntax


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pip
Storing debug log for failure in /root/.pip/pip.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.