Followed the blog post to install Fedora: PBP not booting anymore - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112) +--- Thread: Followed the blog post to install Fedora: PBP not booting anymore (/showthread.php?tid=18277) |
Followed the blog post to install Fedora: PBP not booting anymore - koenigs - 05-29-2023 Hi guys, So I had Manjaro installed on my eMMC for a while now and I wanted to switch to Fedora. I went to the official Wiki which redirects us to a blog post from 2021 which I followed. I flashed the firmware to the micro SD Card Code: $ sudo spi-flashing-disk --target=pinebook-pro-rk3399 --media=/dev/sdc1 I didn't really pay attention to the error messages at the beginning nor at the end, I just saw that some data was copied to the micro SD card so I thought it was fine. Then I opened the case of my Pinebook Pro, disabled the eMMC using the switch 24 (I should have just removed the eMMC actually). Then I tried to boot with the micro SD card inserted and... absolutely nothing happened even after pluging in the DC barrel. Now even with the micro SD card removed and the switch 24 enabled my PBP won't boot. I tried to check the content of the micro SD card with my other laptop (I'm on Fedora) but I'm not able to mount it. Code: $ sudo mount /dev/sdc1 /run/media/koenigs/sdcard I don't even understand what went wrong actually, I didn't enter any command to flash the SPI with the firmware from the micro SD card, it just didn't do anything so I didn't even get the opportunity to try it... Is there any way I can recover from the situation? I'm a bit worried I screwed my SPI, it seems a bit tricky and risky to follow this procedure so I'd like to avoid it if possible. Thanks for your answers EDIT: I understand what I did wrong, I flashed the firmware to the partition sdc1 Code: $ sudo spi-flashing-disk --target=pinebook-pro-rk3399 --media=/dev/sdc1 I should have done it to the card card's disk scd instead Code: $ sudo spi-flashing-disk --target=pinebook-pro-rk3399 --media=/dev/sdc But my PBP is still not booting after fixing the micro SD card. Did I screw my SPI??? RE: Followed the blog post to install Fedora: PBP not booting anymore - koenigs - 05-29-2023 Well, at the end I was able to access the boot prompt after disconnecting the NVMe SSD and pressing the "reset" button next to the CPU. I typed the commands like in the blog post Quote:Hit any key to stop autoboot: 0 I flashed my eMMC with Fedora-KDE-38-1.6.aarch64.raw.xz, put the eMMC back and tried to boot MANY times but nothing happens even when re-inserting the micro SD card and removing/disabling the eMMC. I think I didn't do any mistake while flashing the SPI but I can't be sure because I forgot to take a photo of what I actually did... I think I'm good to order a pry tool on Amazon to I can access the SPI and follow the procedure I didn't want to do... RE: Followed the blog post to install Fedora: PBP not booting anymore - wdt - 05-30-2023 where you may have gone wrong is using u-boot.itb on the spi Just a guess It migth be simpler to compile rkdeveloptool to blank the spi You do have to find miniloader.bin suitable for the hardware (this is what initializes mem and usb ports),,, ie rkdeveloptool ld (it will say loader or maskrom, maskrom is what you want, remove ALL media) rkdeveloptool rd 3 (only if needed, changes it to maskrom), check with ld rkdeveloptool db miniloader.bin..... and now rkdeveloptool will do every command --- mkimage comes with uboot (for boot.cmd/boot.scr),, the command is mkimage -C none -A arm -T script -d boot.cmd boot.scr -------------------- or maybe simpler, short spi clock pin to ground the first 5 sec of boot, then it can't interfere Assumes you have a bootable sd or emmc RE: Followed the blog post to install Fedora: PBP not booting anymore - koenigs - 05-31-2023 (05-30-2023, 08:22 PM)wdt Wrote: where you may have gone wrong is using u-boot.itb on the spi Thanks for your answer but after searching on the internet about this "miniloader.bin" I could find literally nothing about it... But anyway, I actually just found out WHAT I DID WRONG: I didn't read correctly the blog post and I wrote the u-boot.itb at offset 6000 instead of 60000 The day after I screwed up my SPI, someone posted a new blog post on Reddit on how to install Fedora on the RockPro64 so I'm 99% sure it will work the same way on my Pinebook Pro if at least I can correctly write u-boot to the SPI without doing any mistake... The way to enter in Maskrom with the recover and reset buttons doesn't work for me so I'm still waiting for the pry tools I ordered to arrive. RE: Followed the blog post to install Fedora: PBP not booting anymore - wdt - 06-01-2023 RK3399MiniLoaderAll_V1.09.bin RK3399MiniLoaderAll_V1.12.bin RK3399MiniLoaderAll_V1.15.bin RK3399MiniLoaderAll_V1.19.bin RE: Followed the blog post to install Fedora: PBP not booting anymore - koenigs - 06-01-2023 I managed to enter in Maskrom this morning by short-circuiting the SPI pins. I erased the SPI with all zeros then I flashed the SPI again but this time at offset 60000 for u-boot.itb. At last I copied Fedora ARM on the eMMC using an USB-eMMC adapter and put it back in the PBP! Everything is working now, I don't know what is this miniloader thing but I didn't need it RE: Followed the blog post to install Fedora: PBP not booting anymore - wdt - 06-01-2023 Shorting the SPI clock does NOT get you into maskrom, it just disables the SPI while shorted rkdeveloptool is a utility from Rockchip, mostly for soldered emmc's It is to manage a device that is in maskrom If you don't use rkdeveloptool then miniloader is of no use If you ever "do" TV boxes, then you will use rkdeveloptool or something simlar or some windows tool miniloader does something like idbloader, and for rkdeveloptool it is necessary |