[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Install on Orange Pi Plus eMMC work but no reboot

Le 06. 10. 16 à 02:16, Karsten Merker a écrit :
On Wed, Oct 05, 2016 at 10:59:06PM +0200, Jean-Christian de Rivaz wrote:

First I wish to congratulate the Debian Installer team for
there fantastic work on armhf.  I tested both the hd-media and
netinst on a Allwinner H3 Orange Pi Plus and the installer
worked without any glitch up to the reboot.  But unfortunately
the installed system on eMMC don't boot.  There is no message
at all on the console while powering up the board with the eMMC
alone, but there is clearly something installed on the eMMC
when I inspect it from an other image booted from the SD card.
I suspect that the eMMC boot is not supported.  Anyone can
confirm or not that fact ?
Do you have a u-boot on the eMMC or is the u-boot from which
you load the installer started from an SD card?

The U-Boot and the installer was on a SD card that was only created by decompressing and concatenating this two files:
At some point this installer make some partitions and format on the eMMC with an offset to make place before them for the boot0 and boot1 files that certainly correspond to first stages bootloader of the H3.

The debian-installer doesn't itself install u-boot as a part of
the installation process but instead assumes that there already
is a u-boot available on the system, because otherwise the
installer couldn't have been booted :-).
I think this is a wrong assumption. The firmware.orangepi_plus.img contain the first stages bootloaders and U-Boot to boot the installer. Evidence are on that log file: https://d-i.debian.org/daily-images/armhf/daily/build_u-boot.log and the very basic fact that the installer simply boot. Without the SD card inserted there is no message at all on the console.

  If your u-boot is on
the SD card, you install to the eMMC and then remove the SD card,
this assumption isn't true anymore.

Yes, I think U-Boot is on the SD card to boot the installer. And yes, I expect that the installer install U-Boot on the eMMC, otherwise there is no point in having a such installer. The goal is to install a working system, no ? By the way it look like the installer have installed something that look like the two first stages bootloader on the /dev/mmcblk1boot0 and /dev/mmcblk1boot1 blocks on the eMMC, but for some reason this don't work as expected.
So one attempt at a solution
could be to manually install u-boot to the eMMC.
How ?
Does your u-boot build support two MMC devices - i.e. SD card and
eMMC - at the same time (IIRC that is a build time config option
in u-boot)? If yes, you could start u-boot from the SD card
and then boot the rest of the system from the eMMC.
I don't know, the U-Boot is not build by me but by the Debian Installer team. This is precisely why I ask the question here.
How to configure the U-Boot of the SD card to boot the system on the eMMC ?


Reply to: