Power & Source of Big Ideas

Problem: In npi-config I set my neo plus2 to boot from USB

Moderators: chensy, FATechsupport

Hi,

Sorry for the newb question. I had my nanopi neo plus2 running the pre-installed Ubuntu core on the emmc. I was playing around with it and I changed the boot options in npi-config to boot from USB. I flashed an OS (Ubuntu core I think) onto a USB and it won't boot. I think what is happening is that nanopi is booting from emmc using bootcode.bin, and then a setting in there (or start.elf I don't know because I'm new at this kind of stuff) is making it boot from the USB. So is there any way that I can either:

1. make the USB boot work
Or preferably:
2.somehow change the info on emmc to boot to emmc

Is there anyway to perhaps do the later by using debug UART0 on the gpio?

Thank you in advance :D
sjcaley3 wrote:
Or preferably:
2.somehow change the info on emmc to boot to emmc
Thank you in advance :D


For the 2nd you should try the "Flash Image to eMMC"
on the Wiki-Page http://wiki.friendlyarm.com/wiki/index. ... _NEO_Plus2

eflasher-image:
https://drive.google.com/open?id=1SEeCU ... xbayfOpgi5

Win32DiskImager:
https://drive.google.com/open?id=1dzpvv ... aPQhOUyHEr

I think that should restore the original state :)
Hi thank you for the reply. I would do that but the problem is that the board will only boot from the USB port and it won't boot from the sd card slot. If I burned the eflasher image to a USB stick, would I also need to burn a new version of Ubuntu core as well in order to flash it onto the emmc?
Thanks :)
sjcaley3 wrote:
I would do that but the problem is that the board will only boot from the USB port and it won't boot from the sd card slot.

Hmm...
I think you should try to connect a USB-TTL-serial adapter to the neo plus2 and to interrupt the uboot countdown (mostly very short).

Mostly there is an option to boot from a named device or you can configure the boot there, so you can boot to sd card and rewrite the emmc or configure sdboot/ then emmc boot
@guidol - I've been trying to do exactly this, interrupting the boot sequence, so I can stop it booting from emmc and set it back to booting from the sd card.

I had an error using the eflasher tool from latest eflasher_4.14.0_20171208.img so now it never manages to successfully boot and gets stuck. It hangs, saying "starting version 229":

Code: Select all

[    2.516915] ALSA device list:
[    2.519888]   #0: H3 Audio Codec
[    2.523661] Freeing unused kernel memory: 448K
Loading, please wait...
[    2.554300] usb 5-1: new high-speed USB device number 2 using ehci-platform
starting version 229


I can interrupt the boot sequence ok, but I need to try and reconfigure the boot so it goes back to booting from my SD card (so I can reflash) rather than emmc, but I can't seem find the correct command using setenv bootcmd.

Any ideas would be greatly appreciated!
Ok... I found out how to force my nano pi to go back to booting from sd instead of emmc. You can change back to the original default U-Boot environment variables by simply doing:

Code: Select all

env default -f -a
saveenv


In case it helps anybody!

Who is online

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