Jump to content

MartijnB

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I recently purchased a Libre Compter AML-S905 SBC and installed Armbian- 5.60 stable (stretch) with 4.18.8-meson64 kernel on both the SD card and a eMMC disk. I used armbian-config to copy the OS to the eMMC. After modification of armbianEnv.txt on the SD card, I can boot into the eMMC, but only with the SDcard installed. After reading several threads on u-boot and eMMC I am still somewhat confused. To investigate whether I have a bootloader on the eMMC disk, I dd-ed the first sectors of the eMMC to a file an compared it to /usr/lib/linux-u-boot-next-lepotato_5.6_arm64/u-boot.bin, and they look similar. Then I tried to copy /usr/lib/linux-u-boot-next-lepotato_5.6_arm64/u-boot.bin to the eMMC disk, as shown in https://github.com/BayLibre/u-boot/tree/readme dd if=u-boot.bin of=/dev/mmcblk0 bs=512 seek=1 But then the system did not boot either and my eMMC partition table was gone. Using testdisk, I could restore my partition table. Now I am wondering how to get u-boot on my eMMC, and I have number of questions. Can the u-boot provided with the last armbian images boot from a eMMC? (no) Do I need the latest u-boot from github (https://github.com/BayLibre/u-boot/tree/readme) to get eMMC booting? I am not looking forward to setup cross compilation on my desktop... Do I need multiboot or Balbes Debian image to proceed from where I am? I assume that I only need step 6 from the guide above, since I copied the official image using armbian-config. Does step 5 also include the bootloader? If so, why doesn't armbian-config not does something similar to get a proper bootloader on the eMMC disk? I don't understand 6 above. While running from SD card, the eMMC is mounted but armbinaEnv.txt from the SD card is modified. Is there a working u-boot.bin that can be dd-ed to my eMMC? Are there more steps required, e.g. compiling zimages or something to make sure u-boot can find the kernel? Help is appreciated. I have been running linux for years at home and have done quite some playing with partitions and bootloaders, but this u-boot thing confuses me.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines