Power & Source of Big Ideas

Neo Air does not boot from eMMC if non-bootable sdcard in

Moderators: chensy, FATechsupport

Hi,

My Neo Air booted due memory leak of wifi-driver. That happened because scp-filetransfer was running.

output of dmesg:

Code: Select all

[10489.852463] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[10492.372500] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[10492.381044] brcmfmac: brcmf_cfg80211_get_station: GET STA INFO failed, -110


I had sdcard on card reader, card was not bootable by purpose. There is eflasher-image on eMMC and Neo Air boots from there IF there are no sdcard inserted. This is no good approach, system should check sdcard and then eMMC, then print "no /boot found" etc, instead of refusing to boot from eMMC if non-bootable sdcard is inserted.

So, 1) Check sdcard and boot from there if possible. 2) If sdcard is not bootable, check eMMC and boot there if possible. 3) If sdcard and eMMC does not contain bootable media, print error.

How to configure Neo Air to behave like I described above? Thank you :)
nanomiha wrote:
Hi,

My Neo Air booted due memory leak of wifi-driver. That happened because scp-filetransfer was running.

output of dmesg:

Code: Select all

[10489.852463] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[10492.372500] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[10492.381044] brcmfmac: brcmf_cfg80211_get_station: GET STA INFO failed, -110


I had sdcard on card reader, card was not bootable by purpose. There is eflasher-image on eMMC and Neo Air boots from there IF there are no sdcard inserted. This is no good approach, system should check sdcard and then eMMC, then print "no /boot found" etc, instead of refusing to boot from eMMC if non-bootable sdcard is inserted.

So, 1) Check sdcard and boot from there if possible. 2) If sdcard is not bootable, check eMMC and boot there if possible. 3) If sdcard and eMMC does not contain bootable media, print error.

How to configure Neo Air to behave like I described above? Thank you :)


Such is default (Armbian) behavior, eMMC - when installing a system (from SD card or with our flasher) it is the exact content of SD media. SD card has boot priority, then eMMC if SD not inserted/detected/bootable else error.

I am not sure about this wifi issue but it might be fixed.
https://dl.armbian.com/nanopiair/archive/ (get latest 5.38)
Such is default (Armbian) behavior, eMMC - when installing a system (from SD card or with our flasher) it is the exact content of SD media. SD card has boot priority, then eMMC if SD not inserted/detected/bootable else error.


This is the problem; my Nanopi Neo Air boots from eMMC ONLY if there are NO sdcard on reader. if there is non-bootable sdcard on reader, Neo Air fails to boot from eMMC. This means in practise that I cannot keep sdcard on reader for backup purposes, if there is a card, I cannot restart OS because Neo Air wont start again. If there is bootable sdcard on reader, Neo Air boots from sdcard, naturally.

Code: Select all

root@nano1:~# armbianmonitor -u
Reading package lists... Done
Building dependency tree
Reading state information... Done
fping is already the newest version.
The following package was automatically installed and is no longer required:
  python-pyinotify
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
/var/log/armhwinfo.log has been uploaded to cat: /var/log/armhwinfo.log: No such file or directory
http://sprunge.us/DQHK
Please post the URL in the Armbian forum where you've been asked for.
root@nano1:~# uname -a
Linux nano14.14.0 #2 SMP Wed Dec 13 15:15:38 CST 2017 armv7l GNU/Linux
root@nano1:~# cat /etc/*ele*
BOARD=nanopiair
BOARD_NAME="NanoPi Air"
VERSION=5.34.171121
LINUXFAMILY=nanopiair
BRANCH=next
ARCH=arm
IMAGE_TYPE=nightly
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=zImage
r
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@nano1:~#
nanomiha wrote:
Such is default (Armbian) behavior, eMMC - when installing a system (from SD card or with our flasher) it is the exact content of SD media. SD card has boot priority, then eMMC if SD not inserted/detected/bootable else error.


This is the problem; my Nanopi Neo Air boots from eMMC ONLY if there are NO sdcard on reader. if there is non-bootable sdcard on reader, Neo Air fails to boot from eMMC. This means in practise that I cannot keep sdcard on reader for backup purposes, if there is a card, I cannot restart OS because Neo Air wont start again. If there is bootable sdcard on reader, Neo Air boots from sdcard, naturally.

Code: Select all

root@nano1:~# armbianmonitor -u
Reading package lists... Done
Building dependency tree
Reading state information... Done
fping is already the newest version.
The following package was automatically installed and is no longer required:
  python-pyinotify
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
/var/log/armhwinfo.log has been uploaded to cat: /var/log/armhwinfo.log: No such file or directory
http://sprunge.us/DQHK
Please post the URL in the Armbian forum where you've been asked for.
root@nano1:~# uname -a
Linux nano14.14.0 #2 SMP Wed Dec 13 15:15:38 CST 2017 armv7l GNU/Linux
root@nano1:~# cat /etc/*ele*
BOARD=nanopiair
BOARD_NAME="NanoPi Air"
VERSION=5.34.171121
LINUXFAMILY=nanopiair
BRANCH=next
ARCH=arm
IMAGE_TYPE=nightly
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=zImage
r
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@nano1:~#


I am not 100% sure if this works here, but you can try to blank SD card boot area with:
dd if=/dev/zero of=/dev/mmcblk1 bs=1M This way it should skip and boot from eMMC.

Make sure /dev/mmcblk1 is your SD card and not eMMC

And get the more recent image: https://dl.armbian.com/nanopiair/archiv ... 4.14.15.7z - the one you are using is very old and a nightly build.

Who is online

In total there are 22 users online :: 0 registered, 0 hidden and 22 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 22 guests