Results 1 to 1 of 1

Thread: most likely problem with devicetree, but why?

  1. #1
    Join Date
    Apr 2017
    Posts
    3
    Rep Power
    1

    Default most likely problem with devicetree, but why?

    Hello all,

    I have a project wherein the FPGA communicates directly with SDRAM. To enable this i need to run a few commands during boot. namely:
    >setenv fpga2sdram_handoff 0x111
    >run bridge_enable_handoff
    >saveenv
    >boot

    I need to get these commands automated in the process, program the right rbf file and boot the linux kernel. I can always get 1 to work, but never everything at the same time.
    I normally follow the steps in the following guides:
    https://rocketboards.org/foswiki/Doc...sLab1Preloader
    Short example of the steps i'd take
    1) compile the entire project
    2) using bsp-editor create a preloader
    3) make a u-boot (i have done this in several ways, i have also tried using the u-boot supplied in the GSRD)
    4) make a bootscript, in this bootscript i point to the right .rbf file and reserve some memory for the software running on the hps. I do this by adding "mem=800M" to the line "setenv mmcboot 'setenv bootargs console=ttyS0,115200 root=${mmcroot} rw rootwait; bootz ${loadaddr} - ${fdtaddr}';"
    5) run the mkimage command on the boot.script to make it readable for the bootproces
    6) make the kernel, again I have used different methods and i have also tried using the version supplied with the GSRD.
    7) generate the device tree. mostly i use the sopc2dts command, followed by the dtc command to turn the dts into a dtb. as illustrated here: https://rocketboards.org/foswiki/vie...eTreeGenerator
    8) place everything on the sd-card, using the dd command or something similar.

    After I have done all this, the bridges are correctly set, memory is allocated, the rbf is programmed but the whole process is stuck at "starting kernel"
    I have gotten the kernel to work once, but then all other features like ethernet, usb, fpga, ...were disabled and obviously that is not supposed to happen.
    I already took a look at this thread (https://alteraforum.com/forum/showth...tarting+kernel) but it didn't offer much help.

    The major problem here is: there are just so many guides on each individual step, taking very different approaches. I have tried many and most of them fail because of dead links or because i'm not using exactly the right linux distro (using centOS7 and ubuntu 16.04 LTS, or just SoCEDS on windows 10) or because some repositories are not available anymore, or ... or ...
    But my case is so simple! compared to the GSRD i have just added 1 custom IP component and enabled the FPGA-SDRAM bridges. Why am I having so much trouble with this?



    Thanks for the time and help!
    Last edited by RobinK; October 11th, 2017 at 05:20 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •