Power & Source of Big Ideas

Setup: NanoPi R1 - How to Flash eMMC w/ OpenWRT/FriendlyWRT

Moderators: chensy, FATechsupport

Hello! Linux veteran, but new to this SBC stuff.
I'm having trouble setting up my NanoPi R1.

I followed instructions from http://wiki.friendlyarm.com/wiki/index.php/NanoPi_R1
Stuck at this step: 4.3.1.1 Flash to eMMC
If your board doesn't support HDMI or no monitor is connected you can select an OS by running the following command:
$ su root
$ eflasher


I plugged in my NanoPi to my computer, powered it up.
It gets an IP address but I can't connect to SSH.
I did nmap on it and only port 8200 is open.

I tried:
-to login to ssh many ways: ssh root@[IP address] / ssh root@ [ip address] -p 8200
-tried plugging it into WAN ethernet port, it can't get IP
-tried connecting to FriendlyElec wifi network that appeared.

Is my NanoPi R1 broken? It's weird that it's so hard to connect to it. What is port 8200 for?
arkadi wrote:
Hello! Linux veteran, but new to this SBC stuff.

arkadi wrote:
I tried:


Also try OS made by Linux veterans: https://www.armbian.com/nanopi-r1/
arkadi wrote:
I tried:
-to login to ssh many ways: ssh root@[IP address] / ssh root@ [ip address] -p 8200
-tried plugging it into WAN ethernet port, it can't get IP
-tried connecting to FriendlyElec wifi network that appeared.


I was using the wrong ip address. The Nano was giving my computer address: 192.168.2.176.

The actual address of the Nano is 192.168.2.1

SO...now I CAN login to SSH. When I login i see this screen:

Code: Select all

$ ssh root@192.168.2.1
BusyBox v1.28.3 () built-in shell (ash)
 _____                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.1, r7258-5eb055306f
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@FriendlyWrt:~# eflasher
-ash: eflasher: not found


how do I flash the eMMC with the image file? i type eflasher and nothing happens.

i tried flashing both: friendlywrt_4.14_armhf.tgz and nanopi-r1_eflasher_friendlywrt_4.14_armhf_20191109.img (both take me to that OpenWRT screen)

Do I install it through the web interface? System/Backup-Flash Firmware menu?
igorp wrote:
arkadi wrote:
Hello! Linux veteran, but new to this SBC stuff.

arkadi wrote:
I tried:


Also try OS made by Linux veterans: https://www.armbian.com/nanopi-r1/


thank you! looks cool.

downloading to give it a go. shouldn't be this hard to flash eMMC eh?
arkadi wrote:
shouldn't be this hard to flash eMMC eh?

With Armbian? Trivial.
igorp wrote:
arkadi wrote:
shouldn't be this hard to flash eMMC eh?

With Armbian? Trivial.


awesome! thank you. i'm running armbian now. super easy and documentation is so clear.

friendly elec's english documentation is anything but friendly :/
After not touching this for many months, I did more digging on Google and found the solution to my problem.

From this walkthrough (below) on Github I found the magic information I required:

Use the board headers, not the UART.


https://gist.github.com/pjobson/95b67bc4f17c2f60278ec40bf15ca99d

I was trying to always use the UART but could never get them to work, just like this person. When I connected directly to the board headers (inside the case), I could actually follow the instructions on the wiki.

Hope this post may save another person months of frustration trying to flash the eMMC.
I was able to get all of the answers I needed by following this Github tutorial (linked below):
https://gist.github.com/pjobson/95b67bc ... 0bf15ca99d
word hurdle
Amazing, i was able to do it thanks to this link of yours https://gist.github.com/pjobson/95b67bc ... 0bf15ca99d

subway surfers

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests