public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  Nios II 10m50 is not working
@ 2017-07-06 10:32 Gan, Yau Wai
  2017-07-06 12:26 ` Lothar Waßmann
  0 siblings, 1 reply; 5+ messages in thread
From: Gan, Yau Wai @ 2017-07-06 10:32 UTC (permalink / raw)
  To: u-boot

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".

However, changing the 10m50_devboard.dts still does not solve the problem. Any idea? Sorry if missing out any info and I will glad to supply.
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Nios II 10m50 is not working
  2017-07-06 10:32 [U-Boot] Nios II 10m50 is not working Gan, Yau Wai
@ 2017-07-06 12:26 ` Lothar Waßmann
  2017-07-06 14:30   ` Gan, Yau Wai
  0 siblings, 1 reply; 5+ messages in thread
From: Lothar Waßmann @ 2017-07-06 12:26 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Nios II 10m50 is not working
  2017-07-06 12:26 ` Lothar Waßmann
@ 2017-07-06 14:30   ` Gan, Yau Wai
  0 siblings, 0 replies; 5+ messages in thread
From: Gan, Yau Wai @ 2017-07-06 14:30 UTC (permalink / raw)
  To: u-boot

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@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot]  Nios II 10m50 is not working
@ 2017-07-26  9:59 Kirill Smirnov
  2017-07-28 12:21 ` Gan, Yau Wai
  0 siblings, 1 reply; 5+ messages in thread
From: Kirill Smirnov @ 2017-07-26  9:59 UTC (permalink / raw)
  To: u-boot

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 at 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@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] Nios II 10m50 is not working
  2017-07-26  9:59 Kirill Smirnov
@ 2017-07-28 12:21 ` Gan, Yau Wai
  0 siblings, 0 replies; 5+ messages in thread
From: Gan, Yau Wai @ 2017-07-28 12:21 UTC (permalink / raw)
  To: u-boot

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 at gmail.com] 
Sent: Wednesday, July 26, 2017 6:00 PM
To: Gan, Yau Wai <yau.wai.gan@intel.com>; u-boot at 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 at 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@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-28 12:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-06 10:32 [U-Boot] Nios II 10m50 is not working Gan, Yau Wai
2017-07-06 12:26 ` Lothar Waßmann
2017-07-06 14:30   ` Gan, Yau Wai
  -- strict thread matches above, loose matches on Subject: below --
2017-07-26  9:59 Kirill Smirnov
2017-07-28 12:21 ` Gan, Yau Wai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox