Orange pi: Difference between revisions

From 太極
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
* [https://wiki.radxa.com/Rock5/RK3588_vs_RK3588S RK3588 vs RK3588S]
* [https://wiki.radxa.com/Rock5/RK3588_vs_RK3588S RK3588 vs RK3588S]


== Booting from NVME ==
== Booting from eMMC ==
* The instruction on wiki [http://www.orangepi.org/orangepiwiki/index.php/Orange_Pi_5_Plus#The_method_of_using_the_dd_command_to_burn How to burn Linux image to SPIFlash+NVMe SSD->The method of using the dd command to burn] works when I tested on Debian 11 KDE Plasma installed on a SD card.
* 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.
*# burn the u-boot image into the SPI Flash <syntaxhighlight lang='sh'>
** By default SD card has a higher priority to boot than eMMC.
sudo nand-sata-install
** I can use eMMC as the main OS storage and use SD card to play with different OSs.
# select 7 Install/Update ther bootloader on SPI Flash
** 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
:<syntaxhighlight lang='sh'>
$ ls -l /dev/mtdblock0
brw-rw---- 1 root disk 31, 0 Dec 10 06:00 /dev/mtdblock0
</syntaxhighlight>
</syntaxhighlight>
*# use 'dd' to clear the NVMe SSD & burn the linux image to NVME SSD
* The NVME speed is 2046 MB/s by using the command '''sudo hdparm -t --direct /dev/nvme0n1p2''' . The NVME is inland TN450 (500GB).
* What is '''/dev/mtdblock0'''
** In the context of the Orange Pi 5 Plus, the /dev/mtdblock0 partition is used to store the bootloader.
** [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)]


== Booting from eMMC ==
* 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.
* 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.
** Here is a general guide on how you can do this: Boot Armbian from an SD card.
Line 33: Line 33:
* Using [https://youtu.be/A4dggxf-smU?si=vO2OJdeweO_f9V1n&t=1414 Windows VM on a Linux]
* Using [https://youtu.be/A4dggxf-smU?si=vO2OJdeweO_f9V1n&t=1414 Windows VM on a Linux]
* [https://wiki.radxa.com/Rock3/install/rockchip-flash-tools RKDevTool/rkdeveloptool] by radxa.com.
* [https://wiki.radxa.com/Rock3/install/rockchip-flash-tools RKDevTool/rkdeveloptool] by radxa.com.
== Booting from NVME ==
* The instruction on wiki [http://www.orangepi.org/orangepiwiki/index.php/Orange_Pi_5_Plus#The_method_of_using_the_dd_command_to_burn How to burn Linux image to SPIFlash+NVMe SSD->The method of using the dd command to burn] works when I tested on Debian 11 KDE Plasma installed on a SD card.
*# burn the u-boot image into the SPI Flash <syntaxhighlight lang='sh'>
sudo nand-sata-install
# select 7 Install/Update ther bootloader on SPI Flash
</syntaxhighlight>
*# use 'dd' to clear the NVMe SSD & burn the linux image to NVME SSD
* The NVME speed is 2046 MB/s by using the command '''sudo hdparm -t --direct /dev/nvme0n1p2''' . The NVME is inland TN450 (500GB).
* What is '''/dev/mtdblock0'''
** In the context of the Orange Pi 5 Plus, the /dev/mtdblock0 partition is used to store the bootloader.
** [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)]

Revision as of 18:23, 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