Jump to content

NanoPI NEO / AIR


Recommended Posts

Thank you. Armbian (kernel 4.7 or 4.8) works well on my NanoPi NEO.

Now just for fun, I want to try to build kernel + busybox + some network and audio applications. But I have a problem with cpufreq. The /sys/devices/system/cpu/cpu0/cpufreq is empty. If I load cpufreq_dt module, the system crashes. If I disable cpufreq scaling power management in kernel config, what will be the cpu frequency ? minimal or maximal ?

Link to comment
Share on other sites

Hi

I am trying to use a pair of fibre media converters to connect to my NEO. The converters say they support IEEE802.3U/1000Base-Tx protocol, as well as 10/100/1000M auto-negotiation full and half duplex. I get no lan connection.

I have tested the converters by plugging them into my mac mini and they work fine.

Any thoughts?

 

Regards

Carl

Link to comment
Share on other sites

Try sudo ethtool -s eth0 speed 100 duplex full autoneg off

Hi pzw I have just tried that but got the reply ethtool unknown command

I then tried set eth0 speed 100 duplex full autoneg off

which appeared to be accepted but made no difference. Still no connection via fibre media converters

Link to comment
Share on other sites

Try "sudo apt-get install ethtool", and then again "sudo ethtool -s eth0 speed 100 duplex full autoneg off"

Thanks for your help pzw

I have installed ethtool and run the command (ethtool -s eth0 speed 100 duplex full autoneg off) The Neo accepted this command.

No luck still no lan connection using the fibre media converters. 

Running ethtool -i eth0  I get the following

driver: sunxi_geth

version: SUNXI Gbgit driver V1.1

firmware-version: 

expansion-rom-version: 

bus-info: 

supports-statistics: no

supports-test: no

supports-eeprom-access: no

supports-register-dump: no

supports-priv-flags: no

 

I see that NanoPi have a NanoPi 2 fire that has a gigabit ethernet port. Do you think I would have more luck if I got one of those?

 

Thanks 

Carl

Link to comment
Share on other sites

Are you sure your media converter doesn't have dip switches / jumpers you have to setup? If they do, make sure they are set to 100Mbit full duplex, and then try again... It sounds like there is an auto negotiation issue, so you cannot rely on it to work properly. Therefore forcing every device in the chain to 100Mbit (if possible) might solve the issue.

Link to comment
Share on other sites

Are you sure your media converter doesn't have dip switches / jumpers you have to setup? If they do, make sure they are set to 100Mbit full duplex, and then try again... It sounds like there is an auto negotiation issue, so you cannot rely on it to work properly. Therefore forcing every device in the chain to 100Mbit (if possible) might solve the issue.

Unfortunately no dip switches/jumpers visible. I am sure you are correct that it is an auto negotiation issue as the fibre set up works perfectly with my mac mini.

The fibre converter is not getting the information from the Neo that it requires to set speed etc.

I am reluctant to purchase a NanoPi 2 fire with gigabit ethernet port as the same issue may still persist.

Your help and advice is greatly appreciated. I have no expertise in networking or unix.

 

Regards

Carl

Link to comment
Share on other sites

I am reluctant to purchase a NanoPi 2 fire with gigabit ethernet port as the same issue may still persist.

Chip on those boards are not supported by Armbian. You relay on outdated kernel and closed source boot loaders. In case of problems, there won't be much people who could help you. Rather check H3 boards with gigabit LAN and get one. It's safer way.

 

In general this is strange but possible issue. I got one such cheap fiber converter but it's in production use, so can't check if it makes troubles with those boards.

Link to comment
Share on other sites

Chip on those boards are not supported by Armbian. You relay on outdated kernel and closed source boot loaders. In case of problems, there won't be much people who could help you. Rather check H3 boards with gigabit LAN and get one. It's safer way.

 

In general this is strange but possible issue. I got one such cheap fiber converter but it's in production use, so can't check if it makes troubles with those boards.

Do you think the Orange Pi+ 2E would be suitable? It has gigabit ethernet and a couple of other features that would be nice , like power button and dc power socket.

Or would the Odroid C2 be a better choice? Very similar prices when delivered.

The Neo does the job I want it to do but I want to run it through fibre ethernet.

 

Regards

Carl

Link to comment
Share on other sites

I'd be interested to know if anyone has successfully booted a Nano Pi Neo Air with the 4.9/dev kernel. I have tried a few times now, including building my own image from source. I don't have the debug pins soldered so I'm limited to interacting with just the USB OTG serial console which does not show up at all. Makes it challenging to troubleshoot with no debug messages to know why it's failing to boot.

 

After trying to boot a few times I re-attached in FEL mode and mounted the root partition on my Mac using Paragon. I checked /var/log and saw no messages whatsoever, so this is telling me the kernel probably isn't getting past uboot or is hanging somewhere before mounting the filesystem. 

Link to comment
Share on other sites

I'd be interested to know if anyone has successfully booted a Nano Pi Neo Air with the 4.9/dev kernel.

 

Sure, all H3 devices can boot mainline kernel. We had some troubles with megi's branch (the one that includes the thermal stuff and allows for throttling and also comes with USB OTG support) so switched to montjoie's branch without throttling/OTG working a few weeks back (better mount a heatsink). The specific problem with the Air might just be related to getting no way to interact with the board once booted since serial console over USB requires USB OTG support.

 

Theoretically when building an own image it should work to re-use Wi-Fi 'connection settings' made on the same device with legacy kernel before: Simply copy the stuff below /etc/NetworkManager/system-connections/ to your 4.9 image prior to booting. And don't forget to apply restrictive access right since logon credentials are stored there:

chown root:root /mnt/etc/NetworkManager/system-connections/*
chmod 600 /mnt/etc/NetworkManager/system-connections/*

Anyway: Currently without a real serial console dev kernel is of not much use anyway.

 

Update: Just tried it out with latest 4.9 beta image: http://sprunge.us/YdGf-- booting works, resize of partition works, connecting via wlan0 doesn't work for whatever reasons ( brcmfmac errors show up in the log). Anyway as said above: without serial console it's more or less useless to play around with dev kernel / beta images :)

Link to comment
Share on other sites

Thanks @tkaiser, that's helpful feedback. Are there plans for OTG support in the near future in the 4.9 branch? Between that and thermal, I see OTG as the more important of the two to make it usable. 

 

Anything I can help with? If it's merging some code and creating a pull request I might be able to assist as I have a local compile environment in place already. I just need some pointers to the correct source repos and related area of the OTG code.

Link to comment
Share on other sites

Are there plans for OTG support in the near future in the 4.9 branch?

 

There are not that much plans at all. We try to catch a repo somewhere that contains most of the patches flying around that also works. With megi's repo this was the case up to 4.7, with later branches problems occured. So we switched to montjoie's so that at least Ethernet and a few other stuff that hasn't landed in official mainline kernel yet works.

 

We have reports by users that megi's repo works, we have reports that partially applying patches to montjoie's works but it's all WiP and more or less a huge waste of time. In case you want to also waste some time you'll need at least to solder serial console -- without it's useless.

 

BTW: to resolve those problems with mainline branches for H3 it's not necessary to use the Air -- every H3 board will do.

Link to comment
Share on other sites

Seems like FriendlyARM will soon announce an I2S DAC based on TI's PCM5102A for both NanoPI NEO and Air: https://github.com/friendlyarm/h3_lichee/commits/master

 

And FriendlyARM also designed some sort of a 'HAT' for NEO (and most probably Air also): https://github.com/friendlyarm/BakeBit/tree/master/Hardware

 

BakeBit_-_NEO_Hub1.jpg

 

More information (currently in chinese only) here and there.

Link to comment
Share on other sites

Is there anything special about soldering on the 4 pin connector for serial console? I soldered on the 4 pin connector, plugged in my serial cable ground (black), 5v (red), TX (green), RX (white) according to the FriendlyArm web page, and see no signal at all. Tested with both Linux and MacOS hosts using screen. I can see the running agetty process tied to tty1 but can't interact with it. 

 

I did not solder on any of the other connections, just the 4 pin debug UART.

 

Currently trying with the 3.4 kernel to make sure I can see console before testing out any of the 4.x/mainline stuff. The USB OTG/gadget console is still working so I can get in and see what's going on. 

 

My cable is this one.

Link to comment
Share on other sites

@rjbrown99 I just received my NanoPi Neo Air from the post office today and was exhibiting the same exact issues you've described.

tl;dr: My culprit was the Micro SD card. I thought it was good, it fit the bill/specs but as soon as i tried a 'newer' card it booted right up. So to answer one of your previous questions, Yes. I have successfully booted the Neo Air, however I booted from Armbian v5.24 not the 4.9 v you mentioned.

Detail into the issues I was having earlier:

I installed the Armbian image, attached USBtoUART, I got nothing. I tried several other images, baud rates (besides Armbian's default 115200) still nothing. My Electrical Engineer buddy suggested what others also did in this thread. Solder the UART connections. Not doing so, might not be good enough. So I made good solid solder connections, still nothing. As a last ditch effort I tried a newer Micro SD Card and it booted completely without a hitch. I was kinda irritated because I was pretty sure the card was good since I was just using it in a different SBC project yesterday. Anyways, the main thing to watch out for is the LED for diagnosis. Is it dim? Then fore sure, it's hanging or not booting and could technically be anything. But in my experience, it's usually been user error on my part. The SDCard in this case, a crappy MicroUSB cable in the past not supplying enough amperage, etc...

My Question: Anyone have suggestions on getting the wifi working on my NanoPiNeoAir?

I've been trying to connect my Nano Pi Neo Air to my wifi connection, so I can ditch the USB to UART and interface over Putty/SSH (not to mention install some other stuff) but haven't had any luck. I've tried adding my wifi/pswd credentials to the /etc/wpa_supplicant/wpa_supplicant.conf file. Nothing. I've tried creating/editing SSID's using nmtui but it always "fails to connect." when I don't get this error
nmtui_Error.png

 

I also tried FriendlyArm's kernel, followed their instructions on connecting to a WiFi by booting Ubuntu, mounting the MicroSD card (because they don't have nano, vim, etc.. installed) and manually supplying the SSID/Pswd credentials. Any suggestions?

Link to comment
Share on other sites

I can see the running agetty process tied to tty1 but can't interact with it.

 

Well, then something might be wrong on the physical side of things. Connecting the 5V might be not a good idea too.

 

My Question: Anyone have suggestions on getting the wifi working on my NanoPiNeoAir?

 

With legacy kernel sure otherwise we would've never released an OS image since it would be absolutely useless. Simply connect an antenna (there is no internal antenna and FA ships without the most important piece of hardware for reasons unknown to me) and then simply stop editing config files and use 'sudo nmtui'. It just works.

Link to comment
Share on other sites

His link indicates an adafruit product that clearly says :

 

"The power pin provides the 5V @ 500mA direct from the USB port and the RX/TX pins are 3.3V level for interfacing with the most common 3.3V logic level chipsets."

 

Nevertheless, the boards makers never make it clear if they use 3.3V or 5V logic and should one be confident about docs when they call 3.3V logic "TTL" ? And about TX and RX, it is always a "point of view" in a cross cable DTE to DTE.

 

Anyway, be also carefull that pin order is opposite between "neo" and "neo air".

Link to comment
Share on other sites

Simply connect an antenna (there is no internal antenna and FA ships without the most important piece of hardware for reasons unknown to me) and then simply stop editing config files and use 'sudo nmtui'. It just works.

 

Again, user error on my part. I connected a spare U.FL IPX pigtail and voila. I feel really dumb. I assumed (I really should stop doing that with SBC's) that it had some small internal antennae and that 5-10 ft away from the router was close enough to pickup something. I assumed wrong. Also, you're right about nmtui. Until this latest SBC I hadn't known about it, but it will be my go-to going forward. As awesome as nand-sata-install. Thanks!

 

P.s. Again I agree in regards to the hardware. I would much rather prefer a tiny pigtail antennae from FriendlyArm than 1 extra piece of every nut/bolt for the case. Especially if the WiFi is useless without it and OrangePi/Other makers include it by default.

Link to comment
Share on other sites

I would much rather prefer a tiny pigtail antennae from FriendlyArm than 1 extra piece of every nut/bolt for the case.

 

Just leave them some feedback. Those folks are really friendly and quick fixing stuff (see NaniPi NEO overheating problems that were fixed with PCB rev. 1.1)

Link to comment
Share on other sites

I've got another question now that I've got my wifi working. Do we know if the NanoPiNeoAir supports AP Mode? ie: Can I turn it into a WiFi hotspot?

 

I've tried setting up an 'Access Point' in nmtui but the access point I create isn't detected by any of four WiFi enabled devices (phone/laptops/desktop/etc...) This is after restarting the services, rebooting the device, setting up in both 2.4/5Ghz frequencies and following these two tutorials. I noticed on FriendlyArm's website that other NanoPi models specifically mention AP Mode support. However, it doesn't mention it specifically for the NeoAir. Their main site, the specs on the link to buy it from and their Wiki page only say that it's WiFi 802.11b/g/n. One of the many ideas I had for the NeoAir was a $70 cheaper replacement to this.

 

For now, I'll just setup a Samba and have it search for my phones HotSpot credentials if Home/Work SSID's aren't present.

Link to comment
Share on other sites

in win10

after doing the instruction from fel-mass-storage-master

the emmc might be detected in other category

i have to choose update driver and change it to mass storage device

 

and i have to enable unsafe mode in etcher to be able to burn to the emmc

to be safe, open disk manager in administrative tool to confirm which disk you're writing to.

 

finally i got my neo pi air emmc flashed and running 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines