
Hi Kirill,
Yes I did manage to debug using GDB and found the issue is with the device tree dm-pre-reloc for CPU. Thanks for confirming this. I sent the patch so we can have fix for the 10m50 board. I am using the golden hardware reference design which has MMU enabled.
Best regards, Yau Wai
-----Original Message----- From: Kirill Smirnov [mailto:kirill.k.smirnov@gmail.com] Sent: Wednesday, July 26, 2017 6:00 PM To: Gan, Yau Wai yau.wai.gan@intel.com; u-boot@lists.denx.de Subject: [U-Boot] Nios II 10m50 is not working
Hi, Yau
I had a very similar problem with my project. It was sufficient for me to add "u-boot,dm-pre-reloc" stanza to cpu node only. This is necessary to properly setup mmu/nommu-related memory mappings. Other nodes remain unchanged.
The resulting cpu node (omitting details) is as follows:
cpu: cpu@0x0 { device_type = "cpu"; compatible = "altr,nios2-16.0", "altr,nios2-1.1"; reg = <0x00000000>; u-boot,dm-pre-reloc; .... }
This works for my custom no-mmu project. Unfortunately, I cannot test this solution on other boards.
-----------
On Thu Jul 6 14:30:54 UTC 2017 Gan, Yau Wai wrote:
I tried adding the dm-pre-reloc line to every node and sub-node, but it doesn’t help.
On 06/07/2017, 8:26 PM, "Lothar Waßmann" <LW at KARO-electronics.de> wrote:
Hi,
On Thu, 6 Jul 2017 10:32:57 +0000 Gan, Yau Wai wrote:
U-boot for Nios II on the 10m50 dev board is not functioning. The serial terminal prints nothing upon booting up. The u-boot image is loaded via GDB/JTAG to the FPGA on-chip RAM.
Bisect activities were carried and discovered that the change from using dm_scan_fdt_node to dm_scan_fdt_dev in the simple_bus.c. This leads to suspecting the 10m50_devboard.dts need update to include "u-boot,dm-pre-reloc".
u-boot,dm-pre-reloc has to be present in each item of the DT path leading to the node where you need it.
Lothar Waßmann