Compiling NanoVNA Firmware - Page 1
Forum section: electronics / rf-microwave

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 09:45:15 am
content: Has anyone tried it lately?I spend a couple of hours setting up a Ubuntu USB, and following instructions in Github, and a guide that other sites refer to here:https://zs1sci.com/blog/nanovna%20build%20source/many of the command lines simply don't work (such as the command to install DFU-util).I don't know Linux well at all, so others might know why these commands no longer work, but it's clear to me that authors aren't respecting GPL.Just try to get a copy of source dated as late as 2022, as quoted on the version page of my eBayed unit.If compile worked, I'd be reluctant to write it to my unit in case hardware had changed from 2018 enough to break it.I recall none of this issue when I had a Mini600 analyser.... pictured here running a plasma demo that I use to benchmark anything I can write for... I have almost decided to ditch this and get mini1300 which now has a very nice Aluminium case, and has always had capacitive touch screen.

author: Andy Chee
author_rank: Super Contributor
timestamp: December 27, 2023, 10:29:16 am
content: I don't have a nanovna (I should really get one by now!), but I tried all the commands up to 'make' and everything seems to compile fine. A few compilation warnings but no errors.

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 10:55:01 am
content: Interesting. I created the ubuntu USB only today from the latest version, and even the first command to install git doesn't work."E: Package 'git' has no installation candidate."I Google searched how to install git on ubuntu, and got past that, but that was only the first command that didn't work.I created a Github account, but when asked for password in terminal to download from it, it says passwords are not supported!This is all issues that might be resolved if I knew Linux better as i said, but that only half of what my post was about.An open source project is only pretending to be open source if software is unavailable, and hardware containing software is sold without links to the software that is newer than five years old.....So even if someone held my hand through the Linux stuff (which i don't expect), it occurrs to me the NanoVNA project remains a bit of a farce.

author: Andy Chee
author_rank: Super Contributor
timestamp: December 27, 2023, 11:11:11 am
content: Quote from: @rt on December 27, 2023, 10:55:01 amWell the nanovna software is not locked behind a password.... the software source code is freely available here:https://github.com/ttrftech/NanoVNA

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 11:16:53 am
content: I'm not trying to be obtuse, or prefer problems... I can only tell you what the terminal window said.I believe it was Github asking for user name and password, which is why I created an account.Then on take 2, I typed the username, and a password couldn't even be entered.I got a message then saying unable to authenticate user, and that passwords haven't been supported since 20something.I wonder if anything would be different if Ubuntu was installed on HDD rather than a USB stick, but I'm unconvinced.

author: Andy Chee
author_rank: Super Contributor
timestamp: December 27, 2023, 11:34:52 am
content: And to confuse you even further, I'm using Linux Mint which is not Ubuntu, but based on Ubuntu.Incidentally, I do not have a github account and was never asked for a username or password when I executed the 'git' command to download the nanovna source code.I'm only guessing, but are you using your USB Ubuntu in single superuser mode? That's normally how 'live' USB distributions work, but could be the problem.

author: nali
author_rank: Frequent Contributor
timestamp: December 27, 2023, 11:43:55 am
content: Out of interest and as it's a wet & windy day here I tried it on a Debian 12 VM and it compiled fine, just cut & pasting the commands but without bothering with the SSH key.Not tried flashing the target yet, I have a LiteVNA64 on order expected to arrive in a week or so, when that arrives I'll play around with the Nano.

author: RoGeorge
author_rank: Super Contributor
timestamp: December 27, 2023, 11:49:45 am
content: Quote from: @rt on December 27, 2023, 10:55:01 amYou don't have to login anywhere. To install git you open a terminal (press CTRL+ALT+T), you have to have Internet, and type this command:sudo apt install gitYou will be asked to type your password, to prove you have the rights to install. It is normal to see that after "sudo", because "sudo" means you want that line to be executed with root rights (similar with "As administrator" from windows). Your typed password stays in your computer, won't be shown on the internet.And that's it, now you have git installed. You may close the terminal window after it finish installing, if you want. No reboot and no logoff is needed after installing git, it is effective immediately. Don't try to use graphic installers. Use the command line as shown above.

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 12:04:55 pm
content: I wasn't asked for username and password for the first command installing git.I posted what it said then in my second post, but then I looked for some instructions and got past that.it was to do with Github when it came to downloading source. Something earlier also did not work.(dfu-util).It appears help has arrived if I asked or not, so to be fair, I'll try again post a screenshot the first time I get stuck.I noticed already it forgets my wifi password every time I boot, which is worse than Tails!

author: RoGeorge
author_rank: Super Contributor
timestamp: December 27, 2023, 12:15:53 pm
content: Check you have Internet in Ubuntu. Open a Firefox browser and go to any webpage you like, to check you have Internet in Ubuntu. Then open a terminal in Ubuntu, and typesudo apt updateIs that successful? If yes, continue withsudo apt install gitPaste here if any error appears in the terminal after trying the above 2 commands.

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 12:17:27 pm
content: I use a laptop with SATA HDDs in caddys, and have a Windows XP drive for old radio software.Before I come back here, I'll try installing a Ubuntu dual boot on it, which worked a few years ago.I want a working Libreoffice anyway.

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 12:19:29 pm
content: Quote from: RoGeorge on December 27, 2023, 12:15:53 pmI think that's how I got it to work the first time after Googling how to install git which I mentioned earlier... but the USB installation might be forgetting that on next boot.Internet is certainly connected, but I have to enter our wifi key each boot.

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 01:20:49 pm
content: Things went very differently when Ubuntu is installed to HDD.I followed directions on the GitHub readme itself.I’ve yet to figure out how to find source files and edit them,and try writing to the device itself,but it’s nearly midnight here, so enough for today.Thanks for the replies!

author: szoftveres
author_rank: Regular Contributor
timestamp: December 27, 2023, 06:49:44 pm
content: I've downloaded (https://github.com/DiSlord/NanoVNA-D), built and updated the firmware on Debian (ancestor of Ubuntu) using the dfu-tool as described in the link in the OP, on my cheap $50 standard Nano-VNA roughly a year ago.The VNA now has a lot more features and frequency range went up to 2.7GHz (albeit useless above 1.2GHz) and is working fine. Notably the firmware update didn't fix the sudden spikes at 300MHz intervals, which was the only reason I've gone into the trouble of doing all this.

author: wasedadoc
author_rank: Super Contributor
timestamp: December 27, 2023, 06:57:06 pm
content: Dislord's 1.2.20 is available ready to flash athttps://github.com/DiSlord/NanoVNA-D/releases

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 08:42:54 pm
content: Quote from: szoftveres on December 27, 2023, 06:49:44 pmIs this an issue with newer hardware? It's supposed to have internal shielding, and maybe it's for this reason,as it sounds like possibly the harmonics of an internal oscillator.... speaking of which, I hope this FW assumes the same oscillator, as it no longer states it has a 26MHz TCXO.I've only used it to plot a couple of antennas, and plots were smooth. How do I check for this easily?

author: Randy222
author_rank: Frequent Contributor
timestamp: December 27, 2023, 09:45:35 pm
content: I tried to compile just for fun. Needed to massage my OS, but it failed on Rocky 8.9dnf install gitgit clonehttps://github.com/ttrftech/NanoVNA.gitcd NanoVNAgit submodule update --init --recursive #installs Chibios stuffdnf install make#download the gcc arm-none-eabi fromhttps://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads/11-2-2022-02(x86_64 linux hosted cross toolchains)tar -xJf gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz -C /NanoVNA/gcc-arm/PATH=/NanoVNA/gcc-arm/gcc-arm-none-eabi/bin:$PATHmakeA bunch of compiling through Chibios and then err.Compiling chprintf.cchprintf.c: In function 'ftoaS':chprintf.c:188:3: internal compiler error: Illegal instruction188 | if (num > 1000.0){| ^~Please submit a full bug report,with preprocessed source if appropriate.See <https://bugs.linaro.org/> for instructions.make: *** [ChibiOS/os/common/startup/ARMCMx/compilers/GCC/rules.mk:216: build/obj/chprintf.o] Error 1

author: wasedadoc
author_rank: Super Contributor
timestamp: December 27, 2023, 11:06:21 pm
content: 1. IIRC all measurement points above 300 MHz use harmonics of the oscillator.2. Which firmware does not say "26MHz" TCXO?

author: @rt
author_rank: Super Contributor
timestamp: December 27, 2023, 11:42:16 pm
content: The one pertinent to the instructions at the top of this thread… and in my image in last post. I only changed a couple of lines of the version text.The device did display the clock until now.

author: @rt
author_rank: Super Contributor
timestamp: December 29, 2023, 11:07:19 am
content: Well yes and no.Referring to my original post where I mentioned I run a plasma demo to benchmark anything I can write for…The only place it could be done is in the version screen where sweep is not running continuous.Memory of both types are at a premium, and there’s no way this could be double buffered.Plasma is very slow, and a raster is obvious.The Mini600 (now called mini1300) is based on the STM Discovery board, and is MUCH faster.It’s relative to cost I suppose.I found Hugen’s source that belongs on this, but could not compile it.