Page 1 of 2

Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Fri Jun 05, 2020 9:38 am
by tutatis7
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

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Mon Jun 08, 2020 4:13 am
by anthony-ql
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.

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Thu Jun 11, 2020 12:40 am
by phil_quik
Any update on this?

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Thu Jun 11, 2020 4:08 am
by anthony-ql
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.

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Thu Jun 11, 2020 5:22 am
by tutatis7
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

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Thu Jun 11, 2020 4:53 pm
by anthony-ql
Good to know with regard to Virtual Box.

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Fri Jun 12, 2020 8:06 am
by phil_quik
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.

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Mon Jun 15, 2020 3:36 am
by anthony-ql
Please confirm that the system is reboot and cmd "apio drivers --serial-enable" is entered before connecting the QuickFeather board to the USB port.

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Mon Jun 15, 2020 8:17 am
by phil_quik
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

Re: Running preloaded program from flash on Ubuntu 20.04 via VirtualBox

Posted: Fri Jun 19, 2020 2:59 am
by gmartin
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?