Re: [RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-20 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
---+---
 Reporter:  Eric Tremblay  |   Owner:  Éric Tremblay 
 Type:  defect |  Status:  closed
 Priority:  normal |   Milestone:
Component:  arch/powerpc   | Version:
 Severity:  normal |  Resolution:  fixed
 Keywords:  powerpc boot   |  Blocked By:
 Blocking: |
---+---
Changes (by Éric Tremblay ):

 * owner:  (none) => Éric Tremblay 
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"5cf06565149c8cab4c9437e44f1acfda93bdaa55/rtems"
 5cf0656/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="5cf06565149c8cab4c9437e44f1acfda93bdaa55"
 bsps/powerpc: Support more than 256MiB of RAM

 Close #3322.
 }}}

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Re: [RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-20 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
---+-
 Reporter:  Eric Tremblay  |   Owner:  (none)
 Type:  defect |  Status:  new
 Priority:  normal |   Milestone:
Component:  arch/powerpc   | Version:
 Severity:  normal |  Resolution:
 Keywords:  powerpc boot   |  Blocked By:
 Blocking: |
---+-

Comment (by Sebastian Huber):

 Ticker runs with beatnik BSP on MVME6100:
 {{{
 MVME6100> tftpGet -c141.14.128.53 -s141.14.133.59 -m255.255.240.0
 -a0400 -fticker.ralf
 Network Loading from: /dev/enet0
 Loading File: ticker.ralf
 Load Address: 0400
 Download Buffer Size = User Defined

 Client IP Address  = 141.14.128.53
 Server IP Address  = 141.14.133.59
 Gateway IP Address = 141.14.128.253
 Subnet IP Address Mask = 255.255.240.0

 Network File Load in Progress...

 Bytes Received =&215224, Bytes Loaded =&215224
 Bytes/Second   =&215224, Elapsed Time =1 Second(s)
 MVME6100> go -a0400
 -
 config addr is 0xf1000cf8
 config data is 0xf1000cfc
 Welcome to RTEMS rtems-5.0.0 (PowerPC/Generic (classic FPU)/beatnik)
 CPU: MPC7457
 Board Type: MVME6100-0163 (S/N E173D29)
 Bus Clock Freq:   1 Hz
 CPU Clock Freq:  126654 Hz
 Memory:   536870912 bytes
 -
 Now BSP_mem_size = 0x1fe0
 Configuration.work_space_size = 16110
 Page table setup finished; will activate it NOW...
 Going to start PCI buses scanning and initialization
 Number of PCI buses found is : 3
 MSR 0x2003032
 Exit from bspstart
 unable to find the universe in pci config space
 Tundra Tsi148 PCI-VME bridge detected at 0x8110, IRQ 84
 Tsi148 Outbound Ports:
 Port  VME-Addr   Size   PCI-Adrs   Mode:
 0:0x2000 0x0e00 0x9000 A32, SUP, D32, SCT
 1:0x 0x00ff 0x9f00 A24, SUP, D32, SCT
 2:0x 0x0001 0x9fff A16, SUP, D32, SCT
 7:0x 0x0100 0x9e00 CSR, SUP, D32, SCT
 Tsi148 Inbound Ports:
 Port  VME-Addr   Size   PCI-Adrs   Mode:
 0:0x9000 0x1fe0 0x A32, PGM, DAT, SUP, USR, MBLT, BLT
 vmeTsi148 IRQ manager: looking for registers on VME...
 Trying to find CSR on VME...
 vmeTsi148 - IRQ manager using VME CSR to flush FIFO


 *** BEGIN OF TEST CLOCK TICK ***
 *** TEST VERSION: 5.0.0.5cf06565149c8cab4c9437e44f1acfda93bdaa55
 *** TEST STATE: EXPECTED-PASS
 *** TEST BUILD: RTEMS_NETWORKING RTEMS_POSIX_API
 *** TEST TOOLS: 7.3.0 20180125 (RTEMS 5, RSB
 4b3e0f8e3d6998b84a2503dd2e11578989b1672b, Newlib 3.0.0)
 TA1  - rtems_clock_get_tod - 09:00:00   12/31/1988
 TA2  - rtems_clock_get_tod - 09:00:00   12/31/1988
 TA3  - rtems_clock_get_tod - 09:00:00   12/31/1988
 TA1  - rtems_clock_get_tod - 09:00:05   12/31/1988
 }}}

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Re: [RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-19 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
---+-
 Reporter:  Eric Tremblay  |   Owner:  (none)
 Type:  defect |  Status:  new
 Priority:  normal |   Milestone:
Component:  arch/powerpc   | Version:
 Severity:  normal |  Resolution:
 Keywords:  powerpc boot   |  Blocked By:
 Blocking: |
---+-
Changes (by Eric Tremblay):

 * Attachment "qemu_powerpc_largememory.diff" added.

 Corrected comments and removed unnecessary label in assembly file.

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Re: [RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-17 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
---+-
 Reporter:  Eric Tremblay  |   Owner:  (none)
 Type:  defect |  Status:  new
 Priority:  normal |   Milestone:
Component:  arch/powerpc   | Version:
 Severity:  normal |  Resolution:
 Keywords:  powerpc boot   |  Blocked By:
 Blocking: |
---+-

Comment (by Joel Sherrill):

 The patch touches code used by motorola_shared and beatnik. The patch has
 only been tested on qemu. We need it tested on hardware.

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Re: [RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-17 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
---+-
 Reporter:  Eric Tremblay  |   Owner:  (none)
 Type:  defect |  Status:  new
 Priority:  normal |   Milestone:
Component:  arch/powerpc   | Version:
 Severity:  normal |  Resolution:
 Keywords:  powerpc boot   |  Blocked By:
 Blocking: |
---+-

Comment (by Sebastian Huber):

 We have two Qemu PowerPC BSPs qemuprep and qemuppc. I touched qemuppc.
 This ticket is for qemuprep?

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Re: [RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-16 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
---+-
 Reporter:  Eric Tremblay  |   Owner:  (none)
 Type:  defect |  Status:  new
 Priority:  normal |   Milestone:
Component:  arch/powerpc   | Version:
 Severity:  normal |  Resolution:
 Keywords:  powerpc boot   |  Blocked By:
 Blocking: |
---+-

Comment (by Joel Sherrill):

 I wanted to note two things:

 * Chris is supposed to be given access to real hardware to test this on.

 * Sebastian committed a change to switch qemuppc to use the shared linker
 script. This might impact your patch. Please update the patch if needed
 per the master.

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Re: [RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-06 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
---+-
 Reporter:  Eric Tremblay  |   Owner:  (none)
 Type:  defect |  Status:  new
 Priority:  normal |   Milestone:
Component:  arch/powerpc   | Version:
 Severity:  normal |  Resolution:
 Keywords:  powerpc boot   |  Blocked By:
 Blocking: |
---+-
Changes (by Eric Tremblay):

 * Attachment "qemu_powerpc_largememory.diff" added.

 patch file that fixes the issue

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Re: [RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-06 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
---+-
 Reporter:  Eric Tremblay  |   Owner:  (none)
 Type:  defect |  Status:  new
 Priority:  normal |   Milestone:
Component:  arch/powerpc   | Version:
 Severity:  normal |  Resolution:
 Keywords:  powerpc boot   |  Blocked By:
 Blocking: |
---+-
Changes (by Eric Tremblay):

 * Attachment "qemu_powerpc_largememory.diff" added.

 patch file that fixes the issue

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

[RTEMS Project] #3322: powerPC bsp not booting with memory larger than 256Mb

2018-03-06 Thread RTEMS trac
#3322: powerPC bsp not booting with memory larger than 256Mb
+--
  Reporter:  Eric Tremblay  |  Owner:  (none)
  Type:  defect | Status:  new
  Priority:  normal |  Milestone:
 Component:  arch/powerpc   |Version:
  Severity:  normal |   Keywords:  powerpc boot
Blocked By: |   Blocking:
+--
 Whenever memory available to the bsp is greater than 256Mb the bootloader
 remain stuck after decompressing the kernel.

 My understanding of the problem is that the bootloader only give access to
 the 1st 256Mb of RAM but when more memory is used the kernel and other
 components are stored in the top of the RAM beyond the first 256Mb.

 The provided patch gives top of the RAM access to the system so it can
 correctly boot.

 I am using:
  - source from rtems release 4.11.3
  - Qemu v2.5.0
  - Host system is Ubuntu Linux 16.04.1 in a VM (x86 64bits)


 The problem is easily reproducible with Qemu with the following command
 but could surely affect hardware too:

 qemu-system-ppc  -M prep -kernel ./hello.ralf  -bios
 /home/qemu_fakerom/qemu_fakerom.bin -cpu 750cxe -nographic -no-reboot -m
 384

 Console output:

Model:
Serial:
Processor/Bus frequencies (Hz): 3/1
Time Base Divisor: 1000
Memory Size: 1800
Residual: 102afd4 (length 27148)

PCI: Probing PCI hardware

RTEMS 4.x/PPC load:
Uncompressing the kernel...
Kernel at 0x, size=0x495b0
Initrd at 0x, size=0x0
Residual data at 0x0004a000
Command line at 0x00051000
done
Now booting...   < execution stuck here

--
Ticket URL: 
RTEMS Project 
RTEMS Project
___
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs