Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
7 years ago

Booting Linux on MAX10 FPGA Development kit (ACDS v17.0)

Hello!

I’m trying to run Linux kernel 4.9.76-ltsi-rt from altera opensources with buildroot 2017.11 on MAX10 FPGA Development kit with NIOS II, but it’s fail.

I use this instruction (https://rocketboards.org/foswiki/documentation/alteramax1010m50revcdevelopmentkitlinuxsetupv170) from rocketboards and it works with prebuild linux image. After recompilation linux, the system does not respond.

I was able to start the kernel after adding .dts file to the configuration. The problem is that the system does not see qspi flash with jffs file system and rootfs. There is a kernel panic. What's wrong?

I'm using:

Altera MAX10 10M50 Rev C development kit.

Quartus Prime Standart Edition 17.0

ACDS version 17.0

Sourcery CodeBench Lite 2017.11-14

kernel 4.9.76-ltsi-rt

rootfs buildroot 2017.11

Log file and dts file in attachment

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    --- Quote Start ---

    Thank you! It works with few changes.

    It's best to use this patch for altera quadspi flash controller v2 (https://patchwork.kernel.org/patch/9810039/) with updates in Quartus project.

    --- Quote End ---

    You are welcome. And also thank you for your feedback.

    Kazu
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Did you get this to work? I too am having essentially the same problem.

    I modified the DTS to include the quadspi and also update the kernel cmdline

    With loglevel 7 set what I see is that the altera_quadspi is very unhappy when probed.

    >altera_quadspi 180014a0.quadspi: bank setup failed

    >altera_quadspi: probe of 180014a0.quadspi failed with error -22

    -dcat
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    --- Quote Start ---

    Did you get this to work? I too am having essentially the same problem.

    I modified the DTS to include the quadspi and also update the kernel cmdline

    With loglevel 7 set what I see is that the altera_quadspi is very unhappy when probed.

    >altera_quadspi 180014a0.quadspi: bank setup failed

    >altera_quadspi: probe of 180014a0.quadspi failed with error -22

    --- Quote End ---

    Would you show me your DTS file?

    Regards,

    Kazu