Jump to content

Bitschubser

Members
  • Posts

    5
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Bitschubser reacted to martinayotte in ROC-RK3399-PC (Renegade Elite)   
    I've done a small SPI module attached on my Pine64, and I'm using a user-patch for U-Boot Pine64 DTS, along with an DT overlay for the kernel that provide MTD partition, which I can then push the U-Boot image on the SPI flash.
     
  2. Like
    Bitschubser got a reaction from Fred St-Pierre in ROC-RK3399-PC (Renegade Elite)   
    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.
  3. Like
    Bitschubser got a reaction from gounthar in ROC-RK3399-PC (Renegade Elite)   
    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.
  4. Like
    Bitschubser got a reaction from Fred St-Pierre in ROC-RK3399-PC (Renegade Elite)   
    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.
  5. Like
    Bitschubser got a reaction from Fred St-Pierre in ROC-RK3399-PC (Renegade Elite)   
    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
  6. Like
    Bitschubser got a reaction from a16bitsysop in ROC-RK3399-PC (Renegade Elite)   
    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
  7. Like
    Bitschubser got a reaction from Panzerknacker in ROC-RK3399-PC (Renegade Elite)   
    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
  8. Like
    Bitschubser got a reaction from Fred St-Pierre in ROC-RK3399-PC (Renegade Elite)   
    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.
  9. Like
    Bitschubser got a reaction from Panzerknacker in ROC-RK3399-PC (Renegade Elite)   
    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