Orange pi: Difference between revisions

From 太極
Jump to navigation Jump to search
No edit summary
No edit summary
Line 46: Line 46:
** [https://github.com/Joshua-Riek/ubuntu-rockchip/wiki/Orange-Pi-5-Plus Booting directly from a USB or NVMe requires flashing U-Boot to the SPI].
** [https://github.com/Joshua-Riek/ubuntu-rockchip/wiki/Orange-Pi-5-Plus Booting directly from a USB or NVMe requires flashing U-Boot to the SPI].
** [https://forum.armbian.com/topic/26136-guide-how-to-boot-orange-pi-5-from-sata-m2-ssd-for-orange-pi-os-and-armbian/ How to boot Orange pi 5 from SATA m.2 SSD (for Orange pi OS and Armbian)]
** [https://forum.armbian.com/topic/26136-guide-how-to-boot-orange-pi-5-from-sata-m2-ssd-for-orange-pi-os-and-armbian/ How to boot Orange pi 5 from SATA m.2 SSD (for Orange pi OS and Armbian)]
= Tips =
* [http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=144646 How to disable automatic login on latest Debian OPI 5]

Revision as of 17:41, 9 December 2023

Orange pi 5 plus

Booting from eMMC

  • Enable to boot from eMMC is more convenient since it asks to clear SPIflash. Therefore, we can easily to switch to boot from eMMC or SD card.
    • By default SD card has a higher priority to boot than eMMC.
    • I can use eMMC as the main OS storage and use SD card to play with different OSs.
    • Even I follow the instruction to use RKDevTool to put a Linux image onto eMMC, I still cannot boot from eMMC until I clear SPIflash.
    • eMMC is /dev/mmcblk1, speed is 271 MB/s (sudo hdparm -t --direct /dev/mmcblk1p2 )
    • SD is /dev/mmcblk0, speed is 62 MB/s (sudo hdparm -t --direct /dev/mmcblk0p2 )
  • From Linux
$ ls -l /dev/mtdblock0
brw-rw---- 1 root disk 31, 0 Dec 10 06:00 /dev/mtdblock0
  • If you want to boot from eMMC on the Orange Pi 5 Plus, you would need to clear the /dev/mtdblock0 partition. This is because the /dev/mtdblock0 partition typically contains the bootloader, and clearing it allows you to install a new bootloader that can boot from the eMMC.
    • Here is a general guide on how you can do this: Boot Armbian from an SD card.
    • Clear the SPI flash memory by running the following command in the terminal: sudo dd if=/dev/zero of=/dev/mtdblock0 bs=1M count=1

Booting from NVME

Tips