Efe Çetin Posted December 28, 2022 Author Posted December 28, 2022 I'm now able to boot from nvme. I think there was a problem with bootfs partition. It wasn't working when it was ext4. Then i converted it to fat and it works 💫 0 Quote
Reneco Posted December 29, 2022 Posted December 29, 2022 21 hours ago, Efe Çetin said: I'm now able to boot from nvme. I think there was a problem with bootfs partition. It wasn't working when it was ext4. Then i converted it to fat and it works 💫 Is there anything else you did to make the NVMe work? My new Orange Pi 5 does not seem to recognize mine. It doesn't show up with "lsblk" or "df -h". 0 Quote
Efe Çetin Posted December 31, 2022 Author Posted December 31, 2022 @Reneco which ssd and power supply are you using? 0 Quote
Nodon Posted January 1, 2023 Posted January 1, 2023 @Reneco Are you sure it's NVME M2 SSD? I accidentaly bought SATA M2 SSD and it was not recognized same as yours. 0 Quote
berin Posted January 1, 2023 Posted January 1, 2023 (edited) I have created a Cad drawing of the OPI5 motherboard and a micro desktop case design that can be 3d printed and cnc/laser milled. https://github.com/berin-aquaquad/orange-pi-5 The Motherboard cad drawing is or should be 99% accurate. I use Designspark Cad software (free) This is a work in progress, and I have not built it yet. I'm still looking at options I want to add before I build it. As well as any last min. adjustments. The only special aspect I'll point out, is that the main body is designed as a split shell. That is to allow smaller 3d printers to be able to print the main body. I have ordered the GeeekPi Raspberry Pi 4 PWM Fan, Raspberry Pi Low-Profile CPU Cooler with RGB Cooling Fan. When I receive that in the mail, I'll ensure all measurements in my cad file are good and start building. I know there are missing vents and I/O port openings. AGAIN this is a BETA cad file post with a 99% accurate OPI5 SBC board cad file. Anyone who checks it out please give me some feedback. Though I work on luxury yachts I went to school for graphic design. Edited January 1, 2023 by berin 1 Quote
Nodon Posted January 1, 2023 Posted January 1, 2023 (edited) Did anyone have guide how make it boot from NVME? I was able to install it using `armbian-install` but when I use `SPI/MTD Flash boot` it doesn't boot at all and I use first option with bootloader on SD card it will throw error during start `failed to mount /media/mcboot` and boot to SD card system in emergency mode. Edited January 1, 2023 by Nodon 0 Quote
berin Posted January 2, 2023 Posted January 2, 2023 (edited) I just got my 128gb m.2 drive. I've installed it but I have not even powered the board yet. I have no plans to power it until I get the main cpu heatsync. Yes, I know it can throttle itself. Sorry I don't like to run chips hot. @Nodonif I'm not mistaken, I believe there was a how-to on the orange pi web site. http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5.html see to the orange-colored download link at the top left. it was on the web site or in the PDF files in the downloads I forget. who knows there could be something under the https://www.armbian.com/orangepi-5/ site. I will be interested to know. Currently I have downloaded the the ubuntu build from the orangepi website. Edited January 2, 2023 by berin 0 Quote
Efe Çetin Posted January 2, 2023 Author Posted January 2, 2023 (edited) @berin you don't really need a heatsink (i use but it's not much important) Orange Pi 5 is probably cooler than Orange Pi 4. Edited January 2, 2023 by Efe Çetin 0 Quote
Nodon Posted January 2, 2023 Posted January 2, 2023 (edited) @berin Thanks I will try to follow original manual today or tomorrow to boot from SPI, but I think I did something very similar and it did not worked. Btw. under normal load my OragePi keeps temperature between 40 - 50 C which is very nice. Edited January 2, 2023 by Nodon 0 Quote
terranx Posted January 2, 2023 Posted January 2, 2023 @berin Even without a heatsink, this thing runs cooler than pretty much any other SBC I've tried. Highest I've seen was like 45C 0 Quote
berin Posted January 2, 2023 Posted January 2, 2023 @Nodon check this out https://jamesachambers.com/orange-pi-5-ssd-boot-guide/ 0 Quote
royalroot Posted January 3, 2023 Posted January 3, 2023 Hello, thanx for supporting orangepi5 that fast. For me almost everything is working, but I have an advanced setup where I wan't to use zfs and a bridged network interface. Both for lxd. Unfortunately both is not working. zfs-dkms will not compile and the bridge does not come up. I already supplied more information at github. https://github.com/armbian/build/pull/4582#issuecomment-1368831712 Maybe you can point me into the right direction. Thank you, Nico 0 Quote
Avatar Ng Posted January 3, 2023 Posted January 3, 2023 First of all kudos on the work of supporting Orange Pi 5, 1st timer Armbian user, really neat OS, loving it straight away. I downloaded Jammy_legacy_xfce image, boot up no problem with SD Card. Tried GPU acceleration, also good. I'm trying to install into my newly bought NVMe SSD, that doesn't work, it not even detecting the device (model is KingSpec M.2 NGFF SSD 2242 1TB). Official Orange Pi Debian was able to detect the device with "overlays=ssd-sata" in "/boot/orangepiEnv.txt", but also no luck with SPI+SSD boot. here's the output of my "sudo armbianmonitor -u": https://paste.armbian.com/nosuqetece Any help or share experience is appreciated. 0 Quote
wizetek Posted January 3, 2023 Posted January 3, 2023 @Avatar Ng The interface on the board is PCIe – not SATA, so this may explain why it's not detected. 0 Quote
Efe Çetin Posted January 3, 2023 Author Posted January 3, 2023 @Avatar Ng can you try the image from https://github.com/armbian/build/releases/tag/23.02.0-trunk.0127 1 Quote
Avatar Ng Posted January 3, 2023 Posted January 3, 2023 tested the latest (0127 jammy xfce) build with another 32GB sdcard, got stuck after setup account and entering desktop, top left cursor keep blinking in a black screen; checked with shell in other cli sessions, nvme ssd drive still missing. here’s the stats: https://paste.armbian.com/xuloridaha 0 Quote
Nodon Posted January 3, 2023 Posted January 3, 2023 (edited) I finally managed to boot from SPI + NVME (without SD card) but only with original image. I basically followed guide in manual and instead of flashing original I tried to flash Armbian image, but it won't boot at all and hangs on red diod only. Summary of what I did (may help someone): Create bootable SD card with original OrangePi image downloaded from here Copy image file to SD card you created, ideally to your home folder. Boot it on your OrangePi Install gdisk `sudo apt install gdisk` USe it to delete whole NVME storage `sudo gdisk /dev/nvme0n1` then delete all partitions using `d` command and write changes by `w`. (should no be necessary) Clear nvme storage just to be sure `sudo dd bs=1M if=/dev/zero of=/dev/nvme0n1 count=2000 status=progress` Flash image to NVME storage using command `sudo dd bs=1M if=Orangepi5_x.x.x_debian_bullseye_desktop_xfce_linux5.10.110.img of=/dev/nvme0n1 status=progress` Install bootloader to SPI flash `sudo nand-sata-install` and select option 7 Turn off and remove SD card Turn on and it should boot from SPI + NVME I tried to replace image in step 7. with Armbian image `Armbian_23.02.0-trunk.0112_Orangepi5_jammy_legacy_5.10.110_minimal.img` but it did not booted then. Edited January 3, 2023 by Nodon 2 Quote
Nodon Posted January 3, 2023 Posted January 3, 2023 (edited) 3 hours ago, Avatar Ng said: I'm trying to install into my newly bought NVMe SSD, that doesn't work, it not even detecting the device (model is KingSpec M.2 NGFF SSD 2242 1TB). You drive is SATA but you need PCIE NVME. Did exactly same mistake you need to buy correct one. Edited January 3, 2023 by Nodon 0 Quote
zjd Posted January 3, 2023 Posted January 3, 2023 (edited) Here is what I did to use NVMe SSD with Armbian image: 0) Prepare NVMe SSD You need at least 2 partitions: boot partition: /dev/nvme0n1p1, formatted as vfat rootfs: /dev/nvme0n1p2. as ext4. It actually can be other partition, not necessary the 2nd one. You can use fdisk/parted/... to create these partitions when booting from SD 0.1) (Optional) if you played with official image, SPI might have incomparable bootloader for Armbian, try erase it before using Armbian SD image sudo dd if=/dev/zero of=/dev/mtdblock0 bs=1M count=1 (1MiB looks good enough to disable previous bootloader) 1) Boot from Armbian image. I was using jammy-xfce image. Remember to finish up the setup. For some reason, it didn't detect my monitor properly, when screen is full, it doesn't scroll up, Had to press enter a lot to scroll screen and input correctly. Hope it can be fixed. (FYI. I am using 2K monitor) 2) In a terminal, run "armbian-install" Select "4) "boot from SPI, system on SATA, USB or NVMe" Select the partition for rootfs, format as EXT4 (didn't try btrfs) It will copy rootfs to that partition. Then it installs bootloader to SPI (mtdblock0) It will ask to reboot in the end, don't do it for now. 3) The script updates armbianEnv.txt with new rootfs config in current /boot, which is 1st partition in SD. Apparently boot partition in NVMe needs update. sudo mount /dev/nvme0n1p1 /mnt sudo cp -r /boot/* /mnt # You can also update armbianEnv.txt manually with "rootdev=/dev/nvme0n1p2" to point to correct NVMe rootfs partition. # FAT doesn't support symbol link cd /mnt sudo cp -r dtb-5.10.110-rockchip-rk3588 dtb sudo cp uInitrd-5.10.110-rockchip-rk3588 uInitrd sudo cp vmlinuz-5.10.110-rockchip-rk3588 Image 4) Now we can shutdown OPi5. Take out SD and boot to NVMe I haven't spent time to look into armbian-install, even though it is better than the script in official instruction, it needs improvements -- Need automatically update boot partition in NVMe, and armbianEnv.txt as well -- Maybe it is bootrom limitation, boot partition of NVMe can't be EXT4, therefore, symbol link is not available. It will require manual steps if future apt upgrade changes kernel/dtb/initramfs. Note that SD image does have EXT4 boot partition and it works fine. -- After running on NVMe, /boot partition is not automatically mounted as /boot, instead, /boot dir of rootfs will be updated if kernel/dtb/initramfs is updated. Manual update of boot partition is required. PS. I can only get 1080p GUI for now. Edited January 3, 2023 by zjd 1 Quote
royk Posted January 3, 2023 Posted January 3, 2023 What I did to make it boot from NVME Boot from sd-card with the NVME inserted Install the bootloader to mtdblock Write the downloaded Armbian image to the NVME with BalenaEtcher Mount the boot partition of the nvme Edit boot.cmd and replace bold words in these lines: setenv rootdev "/dev/nvme0n1p1" # get PARTUUID of first partition on SD/eMMC the boot script was loaded from if test "${devtype}" = "nvme"; then part uuid nvme ${devnum}:1 partuuid; fi Then save and compile: sudo mkimage -C none -A arm64 -T script -d boot.cmd boot.scr Shutdown and remove the sd-card 2 Quote
berin Posted January 4, 2023 Posted January 4, 2023 Has anyone looked at https://jamesachambers.com/orange-pi-5-ssd-boot-guide/ 1 Quote
haajee Posted January 4, 2023 Posted January 4, 2023 (edited) @Avatar Ng@Efe Çetin Got exactly the same problem with the daily builds. Only a blinking cursor after startup. When i press the power button display comes back with the armbian shutdown logo. Got the beta beta build working on ssd but this daily builds looks like broken... Edit: tried build 124 also broken... Edited January 4, 2023 by haajee 0 Quote
Efe Çetin Posted January 4, 2023 Author Posted January 4, 2023 @haajee can you try https://github.com/armbian/build/releases/tag/23.02.0-trunk.0128 1 Quote
haajee Posted January 4, 2023 Posted January 4, 2023 @Efe Çetinalso tried same problem. What i see in difference with the builds before is that the working builds switch back to a lower resolution before starting the desktop. I have also tried with another low resolution monitor but the problem still exist. 0 Quote
Avatar Ng Posted January 4, 2023 Posted January 4, 2023 (edited) First of all thanks for all the tips you all generous people are sharing, at least now mine official bullseye Debian image is able to get up and running on SPI Flash+SATA SSD, a bit tricky though. Special thanks to @wizetek @Nodon and others helpful folks. It seems like NVMe SSD is default supported (bootloader "/usr/lib/linux-u-boot-legacy-orangepi5_1.0.8_arm64/rkspi_loader.img" ), however SATA SSD need a special bootloader (#1 /usr/share/orangepi5/rkspi_loader_sata.img ), #2 and also to enable following in /dev/sda1 (boot partition "/boot/orangepiEnv.txt"), overlays=sata-ssd which I believe is corresponded to "/usr/lib/linux-image-legacy-rockchip-rk3588/rockchip/overlay/rk3588-ssd-sata.dtbo". Speaking which I had a stupid idea, is it possible to some how patch this device into Armbian to make our life easier? including all the GPIO ones also? I tried armbian-add-overlay the whole "/usr/lib/linux-image-legacy-rockchip-rk3588/rockchip/rk3588s-orangepi-5.dtb" but I'm too dumb to get anything work as expected on Armbian (e.g. sata-ssd). Correct me if I'm wrong. Edited January 4, 2023 by Avatar Ng format so it's better to read 1 Quote
haajee Posted January 4, 2023 Posted January 4, 2023 Got the official image cinnamon focal running from SD card but now don´t want to run from NVME. Used the same commands as for the testbuild i got running. Updated spi with armbian-install and yes i have a real pcie ssd... 0 Quote
Avatar Ng Posted January 4, 2023 Posted January 4, 2023 (edited) I’ve gave armbian opi5 Jammy xfce 0128 build a spin, it’s as haajee said, worse than 0127 build, previously at least I can get my setup done and stuck on desktop loading, however I’m getting weird scaling when I’m doing initial setup (account setup). And something I forgot to mention is on build 0127, I did manage to “fix” the desktop issue by using other CLI session to login and install Gnome, and then when I do startx it complains about missing initx, so after I install that seems I can boot into wayland gnome desktop session, I’m glad that the usbc to display is working now. will try to supplement the stats tomorrow. Edited January 4, 2023 by Avatar Ng typo 1 Quote
haajee Posted January 4, 2023 Posted January 4, 2023 (edited) --- cant delete message but makes a stupid mistake Edited January 4, 2023 by haajee 0 Quote
Efe Çetin Posted January 4, 2023 Author Posted January 4, 2023 Can you try https://github.com/armbian/build/releases/tag/23.02.0-trunk.0130? This release should contains gui and nvme fixes. I'm not able to try it now 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.