FriendlyArm NanoPi R1 flash image to eMMC

Hi @arne_f

I’ve got to start the IPFire on the R1S hardware by modifying the UBOOT.

But now the problem is different. The following network cards are detected:

imagen

The problem is this card:

GREEN : "of: Unknown Network Interface (eth0)"
GREEN : (02:81:7b:e3:e3:07)

Put this:

[root@ipfire ~]# ethtool eth0
Settings for eth0:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available

[root@ipfire log]# vi bootlog
[   34.406689] vcc3v0: disabling
[   34.406703] vcc5v0: disabling
[   34.406709] usb0-vbus: disabling
[   34.406716] gmac-3v3: disabling
[  168.101183] platform 1c30000.ethernet green0: renamed from eth0
[  168.233124] r8152 3-1:1.0 red0: renamed from eth1
[  168.372777] rtl8189es mmc1:0001:1 blue0: renamed from wlan0

In messages:
Dec 14 11:14:25 ipfire kernel: platform 1c30000.ethernet green0: Could not attach to PHY

Any ideas.

Thanks

@roberto

How recent is your Nano Pi R1 ? My Nano Pi R1 was dispatched 16 December. lsusb shows:

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 18a5:0302 Verbatim, Ltd Flash Drive
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The RTL8152 was detected for GREEN without problem.

Hi @rodneyp

No, I´m trying with NanoPi R1S versión, no R1.

https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=274

It is cheaper than R1 and in some scenarios it may be a cheaper solution.

Thanks for all.

Regards.

My oversight.

It would still be worth running lsusb to see what chip is reported on USB2-Ethernet and then lsmod to see whether a module for it is found.

Thanks @rodneyp

I leave it as impossible, apart from not detecting anything with the lsmod, every time I restart the R1S, the MAC of the other interface changes. For the price that R1 has, it is not worth wasting time.

To all this, how does it work where you have (Nano Pi R1)?. Does the two interfaces and the wifi work?.

Greetings.

Greetings Roberto

The Nano Pi R1 is working well for me. Both wired interfaces work consistently and reliably. As Arne.F has pointed out, the 10/100 LAN interface will be limited in speed, if that is important to you.

I did not succeed in getting WiFi working, but I have neglegible experience with it. Instead, I use the WiFi on my ISP router occasionally. Another thread explains how to make it happen.

Hello Roberto,
I also had problems with the Wlan. The problem was a ‘missing’ file: /lib/firmware/brcm/brcmfmac43430a0-sdio.txt. I add this file to this comment. Perhaps it helps you too … :slight_smile:brcmfmac43430a0-sdio.tar (10 KB)

1 Like

Thanks @komiker I will try it when I get R1 and I tell you.

Greetings.

The needed file for the A0 version of the Ampac AP6212 Wlan is shipped with IPFire but not copied. run

cp -f /lib/firmware/brcm/brcmfmac43430a0-sdio.ONDA-V80_PLUS.txt /lib/firmware/brcm/brcmfmac43430a0-sdio.txt

I have added this for core140…
https://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff;f=src/initscripts/system/partresize;h=e7e3bf40b0f748a624f9ebb2464c65d5bdfce1af;hp=040c6c3690e379c43c4fccfeda144a64e4872cbe;hb=97f4b51474551b9076af00bb9fc69acd0eba9bfc;hpb=7fd560d81fb0041d292445fff194f40dd5dbbd23

The R1S is not supported by the R1 dtb file. (the 2nd serial port doesn’t exist which is used for console in the R1, the entry for the 8153 MAC Address is missing and the Wlan needs a different sdio entry. Maybee also the rtl 8153 driver needs a patch to support getting the MAC from u-boot. It’s makeable but not without hardware to test.

Hello @arne_f .

How can I send you an R1S to do your magic?

Send me a private with the shipping address and I’ll send you one.

Greetings and thanks.

@arne_f, Is the AP6212 WiFi Module on the NanoPi R1 suitable / working for Wireless Client mode?

I have not tested the client mode but it should work. I know only from Intel (iwlwifi) wlan drivers that not work in client (Infrastucture) mode.

I will test this with the next nightly build…

Now I have tested it.
One R1 as AP and the other on as Client…

The connection was established for some hours.

Excellent! Looks like a good choice for travel / hotel wifi access. Do you agree?

Good afternoon everyone

I need help since I must be very clumsy.

I have followed the steps of the WIKI for R1 and I can’t get it to work from the eMMC.

I have created a Microsd with IPFire that has internet and I have followed the steps:

wget https://downloads.ipfire.org/releases/ipfire-2.x/2.23-core139/ipfire-2.23.2gb-ext4.armv5tel-full-core139.img.xz

This is correct.

xzcat ipfire-2.23.2gb-ext4.armv5tel-full-coreXXX.img.xz > /dev/mmcblk2

A bunch of things appear and it takes a while. What appears is something like this:

imagen 100% • 75% • 50%

In the end, after a long time, this appears:

imagen 100% • 75% • 50%

And now, I can’t do more.

How could I go on?

Greetings.

Are you using putty for terminal access? What is your terminal setting? Such as baud speed, data bits, stop bits, parity and flow control. Without such information it is hard to guess what going on. For image flash, I recommend to use balenaetcher.

xzcat ipfire-2.23.2gb-ext4.armv5tel-full-coreXXX.img.xz > /dev/mmcblk2

This command should not produce any output. After a while you simply get the command prompt back.
The output looks like your serial connection is not stable.

Thanks, all done.

Finally, unplug and plug USB Serial TTL and reinstall drivers and works fine.

Thanks again.

Regards.

I have got the R1S and its working (except the LAN LED’s on the Realtek Interface) after i have added a line to uENV.txt to switch the console back to the internal pins.

console=ttyS1,115200n8

The wlanAP will also work. Wlan client i have not tested yet.

Hi @arne_f

In the end you received the R1S?

How have you managed to make all interfaces work?

You will tell me something.

Greetings.