Hi, I am a newbie with u-boot, Armbian and Orange Pi. This is my first post in this forum. I want to thank everyone involved in the development of Armbian!
I am running Armbian on a Orange pi plus 2 from SD card. That works fine, but I would like to install the OS on the internal 16GB eMMC memory.
I tried to perform the instructions that were posted on http://forum.armbian.com/index.php/topic/1070-install-to-emmc/?p=8433:
- Update Armbian (using apt-get update / upgrade). - Download the U-boot file provided by lonix for the orangePi Plus version from https://mega.nz/#!nEhzARbL!b4GCocqV_DlikufwdB_ajrSFwIjF1QS5BA57K0MCbm4 - Flash the u-boot file:
root@orangepiplus2:# sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk1 bs=1024 seek=8- Immediately after I performed:
root@orangepiplus2:# sudo nand-sata-install
- After the nand-sata-install I performed a reboot. But I am pretty sure that I did not carry out the instructions in the correct way, because I am still running the OS from the 8GB SD card :-(
root@orangepiplus2:# mount | grep mmc
/dev/mmcblk0p1 on / type ext4 (rw,noatime,nodiratime,errors=remount-ro,commit=600) <= 8GB SD card
root@orangepiplus2:# fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00007b95
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 4096 15523839 15519744 7.4G 83 Linux
Do I run the correct OS version?
root@orangepiplus2:# uname -a
Linux orangepiplus2 3.4.112-sun8i #30 SMP PREEMPT Sat Apr 30 19:49:10 CEST 2016 armv7l GNU/Linux
Do I use the correct U-boot package version?
root@orangepiplus2:# apt-cache show linux-u-boot-orangepiplus-default
Package: linux-u-boot-orangepiplus-default
Priority: optional
Section: kernel
Installed-Size: 1
Maintainer: Igor Pecovnik <igor.pecovnik@****l.com>
Architecture: armhf
Version: 5.10
Filename: pool/main/l/linux-u-boot-orangepiplus-default/linux-u-boot-orangepiplus_5.10_armhf.deb
Size: 148442
MD5sum: bf318d539042f35719b424905f84e684
SHA1: 25170bda821a25c622de78d21639431b8363f6d7
SHA256: de598174315ab52a7d45047fbaf7fdf1a2f6eab41dbd5530be9f4c0721005e50
SHA512: 5cd0c275384ac26b8888a180fbf41c60ea9f3ead559f2e840e8bc1db59b8a68037083d70a26545259cb2328d73710161f1d55e9fa7117af5b619b6c55c16e955
Description: Uboot loader 3.4.112
Description-md5: d63394bdd198156c5cbd3a84467017ea
Is my assumption correct: Can I use the U-boot file that was build from source by lonix for the orangePi Plus for my orange Pi Plus 2? Or should I build my own version from source? How?
Is my partition layout correct?
root@orangepiplus2:# ls -l /dev/mmc*
brw-rw---- 1 root disk 179, 0 May 6 17:50 /dev/mmcblk0 (8GB SD card)
brw-rw---- 1 root disk 179, 1 May 6 17:50 /dev/mmcblk0p1
brw-rw---- 1 root disk 179, 16 May 6 20:34 /dev/mmcblk1 (16GB eMMC internal memory)
brw-rw---- 1 root disk 179, 32 May 6 17:50 /dev/mmcblk1boot0
brw-rw---- 1 root disk 179, 48 May 6 18:22 /dev/mmcblk1boot1
brw-rw---- 1 root disk 179, 17 May 6 20:34 /dev/mmcblk1p1
My /boot/boot.cmd is still pointing to my 8GB SD card instead of my 16GB eMMC internal memory:
root@orangepiplus2:/boot# cat boot.cmd | grep setenv
setenv bootargs "console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 panic=10 consoleblank=0 enforcing=0 loglevel=${verbosity}"
Where did I went wrong? I hope someone can help me out.