Power & Source of Big Ideas

NEO Plus2 - eMMC not boot with non-bootable SD card

Moderators: chensy, FATechsupport

Hello,

When i start the Neo Plus2 with non-bootable SD card (Only one partition FAT32), it don't want start. (Only green LED ON)

Is it possible to start the Neo Plus2 with non-bootable SD card and it boot on th eMMC ? And when the SD card is bootable the Neo Plus2 start on it ?

Thanks.

@+
After several tests all my cards were bootable. I tested with a new card and it works.

Sorry for this post, Neo Plus 2 can boot on eMMC with non-bootable SD Card.

@+
I have same problem with Nano Pi Neo Air, I flashed nanopi-neo-air_eflasher_4.14.52_20180628 with eflasher to emmc, with empty TF card slot - it boots and works just fine, BUT when non bootable sd card is inserted it does not start.
I connected RX and TX, the output with the non bootable flash is the next:

Code: Select all

U-Boot SPL 2017.11 (Jun 28 2018 - 17:47:00)
DRAM: 512 MiB(408MHz)
CPU Freq: 408MHz
memory test: 1
Pattern 55aa  Writing...Reading...OK
Trying to boot from MMC1
Boot device: sd


U-Boot 2017.11 (Jun 28 2018 - 17:47:00 +0800) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: FriendlyElec NanoPi H3
DRAM:  512 MiB
CPU Freq: 1008MHz
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
BOARD: nanopi-neo-air
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No controllers found
No ethernet found.
No ethernet found.


Where are the settings to disable booting from sd card or some boot priority configuration?

Upd:
seems issue is reported before https://www.olimex.com/forum/index.php?topic=5933.0
the problem seems that if sd card inserted it is assigned as mmcblk0 and boot is set to start from mmcblk0.
In the link above for kernel 3.4 it could be solved by converting /boot/script.bin file to fex and modifying parameter sdc_detmode = 1 , but we do not have such script.bin in boot now. Where to set now this parameter in linux 4.x ???
The issue seems partially solved. The reason was because sd card despite on full formatting had some boot flags at the beginning. So doing

Code: Select all

dd if=/dev/zero of=/dev/mmcblk1 bs=1024 seek=8 count=1
helped, where mmcblk1 - is the name of SD card we want to make truly unbootable, (what is the name of SD card and what is the name of eMMC could be different, and could be checked for example with "df -h" - see what is mounted).
After doing this to SD card system boots from eMMC in both cases with and without SD card inserted.

Of course I would like a way to set boot source definitely, if set boot from eMMC - boot from eMMC, doesn't matter what SD is inserted, but do not know such way.

Who is online

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