Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

User avatar
tutatis7
Posts: 10
Joined: Mon May 18, 2020 1:20 am

Hi,

I tried to connect QuickFeather to my MAC running Ubuntu 20.04 LTS via VirtualBox.
According to the System info, the USB device is connected to Bus 1.
So I tried to run this command:
sudo putty /dev/ttyUSB1 -serial -sercfg 115200,8,n,1,N

But I get the following fatal error message:
Unable to open connection to /dev/ttyUSB1:
unable to open serial port

Has anyone had this issue?
Thanks
Tutatis7
anthony-ql
Posts: 49
Joined: Thu Jun 04, 2020 1:26 am

We have seen report that Ubuntu 20.04 does not recognized the QuickFeather TinyFPGA IP. May need additional USB driver for Ubuntu. We'll check and report back.
phil_quik
Posts: 36
Joined: Mon May 18, 2020 12:33 am

Any update on this?
anthony-ql
Posts: 49
Joined: Thu Jun 04, 2020 1:26 am

QuickFeather is compatible with Ubuntu 20.04.4. The procedure to get the QuickFeather to work with Ubuntu 20.04.4:
1. download the latest release of TinyFPGA-Programmer from: https://github.com/QuickLogic-Corp/Tiny ... pplication
2. From the location of download (file 71-QuickFeather.rules), execute the following commands:
>sudo cp 71-QuickFeather.rules /etc/udev/rules.d
>sudo udevadm control --reload-rules
>sudo systemctl restart ModemManager.service
3. Install apio package: sudo apt install apio
4. Reboot the system
5. Execute in CMD: apio drivers --serial-enable
6. Connect QuickFeather board via USB
7. Execute: ls /dev/ttyA*; typically, QuickFeather will show up as /dev/ttyACM0
Follow the UserGuide for executing the diagnostic.
User avatar
tutatis7
Posts: 10
Joined: Mon May 18, 2020 1:20 am

I also found that VirtualBox needs to have the Virtuabox Extension Pack installed to recognize USB 2.0 and 3.0 devices.

After that, I was able to find the QuickFeather and run the preloaded program for LEDs, and the device was assigned to ttyACM0, not ttyUSB0
anthony-ql
Posts: 49
Joined: Thu Jun 04, 2020 1:26 am

Good to know with regard to Virtual Box.
phil_quik
Posts: 36
Joined: Mon May 18, 2020 12:33 am

I still have problem to make it work on VM workstation 15 player for Ubuntu20.04.

For apio install, I have to use
pip3 install -U apio
instead of
sudo apt install apio

After the apio driver is enabled, still cannot see device in /dev/ttyACM0.

BTW, the VM can detect Merced board.
anthony-ql
Posts: 49
Joined: Thu Jun 04, 2020 1:26 am

Please confirm that the system is reboot and cmd "apio drivers --serial-enable" is entered before connecting the QuickFeather board to the USB port.
phil_quik
Posts: 36
Joined: Mon May 18, 2020 12:33 am

Yes. System is reboot and before plug in the board, use apio drivers --serial-enable to enable.
The log shows

phil@ubuntu:~$ sudo apio drivers --serial-enable
[sudo] password for phil:
Configure Serial drivers for FPGA
Already enabled

And check the ttyACM again still no good.

ls /dev/ttyA*
ls: cannot access '/dev/ttyA*': No such file or directory
gmartin
Posts: 17
Joined: Thu May 14, 2020 2:50 am

jumping in late in the conversation. I have had Vmware work on a Mac with ubuntu 18.04. I might have run the Apio commands on the MacOS also as I was having issues getting the Mac to properly recognize the USB device.
Could you try the lsusb command on both the Mac and the VM?
Post Reply