Jump to content

Bitschubser

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I have to take back my statement that any recent compiler shout be able to build a working u-boot, spl combo. To be self contained I build u-boot, spl on my roc-pc and flashed the result to the spi flash and it doesn't work! Bummer. I had to debrick the board with the version I have cross-compiled on my Arch Linux PC. At the moment on the distribution my board is a Manjaro Arm Linux. I am baffled and have to think how to continue.
  2. Take this as a guess, but as long as you use a (cross-)compiler from an up to date linux distribution you should get a working result. Although I did not mention it explicitly, but you have to provide the BL31! You can check the output of: $ hexdump -C idbloader.img | grep RK33 00001000 52 4b 33 33 09 10 00 14 00 00 00 00 00 00 00 00 |RK33............| 000340d0 52 4f 43 2d 52 4b 33 33 39 39 2d 50 43 20 4d 65 |ROC-RK3399-PC Me| The Magic at 0x1000 is a good sign you build is made for SPI flash.
  3. what you can try - check the debug serial output - remove all sd/mmc card(s) - check if spl is loaded by attaching the bord via usb-c (the same which deliver power) to you pc and check if the 1st stage bootloader is aktive with lsusb. if this doesn't help you can debrick the board with help of this post from Da Xue. Inside of the tar archive is a picture which shows how to force the SOC into usb download mode. Create an all zero file of 4kB and flash it to offset 0x0.
  4. Booting from spi into nvme is now working for me ™. It is a hack but if anybody want to try it be aware that you may brick your device. Most of the needed stuff is already there. But you have to power the pci regulator manually. To build u-boot from scratch you have to checkout u-boot@50be9f0e1ccc0909e65132cff216743a49046f97 and apply the attached patches. After that follow the usual way: $ make roc-pc-rk3399-spi-nvme_defconfig $ make all and flash idbloader.img at offset 0x00 u-boot.itb at offset 0x200 (0x40000) NOTE: 0x40000 is the offset in bytes, use 0x200 for the rockchip flash tool Happy hacking 0004-roc-pc-mezzaine-add-defconfig-to-boot-from-spi-and-n.patch0003-hack-nvme-support-into-bootcmd.patch0002-Rk3399-roc-pc-mezziane-boot-from-nvme.patch0001-roc-pc-boot-from-spi.patch
  5. With help of this patch I have been able to build a mainline U-Boot which can load the kernel from nvme. Now I want to flash this build into the onboard spi flash. But it is not working, no leds lighten up, no output on serial terminal. I did search for spi builds for rk3399 but I could not find anything that was helpful. Does anybody here on the list have experience how to build an U-Boot for spi flash? Any hint is welcome.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines