linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* NVRAM/RTC
@ 2002-12-12 18:20 Aman
  2002-12-12 21:52 ` NVRAM/RTC Matt Porter
  0 siblings, 1 reply; 4+ messages in thread
From: Aman @ 2002-12-12 18:20 UTC (permalink / raw)
  To: linuxppc embedded


Hi All

I have customized board , which has PPC 440GP as its processor. In this
board there is no NVRAM/RTC as in the 440GP evalkit. In the Rom monitor,
configuration related to it NVRAM/RTC has been removed. Because of this
changes in the rom monitor code, the linux image is hanging after " Now
Booting the Kernel". If  NVRAM/RTC EBC bank1 is enabled in rom monitor, the
linux image is executing without any problem. Can anyone say , how to
disable the NVRAM/RTC option in the linux kernel.

Thanking you in advance
Regards
Aman

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: NVRAM/RTC
  2002-12-12 18:20 NVRAM/RTC Aman
@ 2002-12-12 21:52 ` Matt Porter
  2002-12-13 16:05   ` NVRAM/RTC Aman
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Porter @ 2002-12-12 21:52 UTC (permalink / raw)
  To: Aman; +Cc: linuxppc embedded


On Thu, Dec 12, 2002 at 11:50:23PM +0530, Aman wrote:
>
> Hi All
>
> I have customized board , which has PPC 440GP as its processor. In this
> board there is no NVRAM/RTC as in the 440GP evalkit. In the Rom monitor,
> configuration related to it NVRAM/RTC has been removed. Because of this
> changes in the rom monitor code, the linux image is hanging after " Now
> Booting the Kernel". If  NVRAM/RTC EBC bank1 is enabled in rom monitor, the
> linux image is executing without any problem. Can anyone say , how to
> disable the NVRAM/RTC option in the linux kernel.

Are you trying to run an ebony image on this board?  Sounds like it,
and that would be the wrong thing to do.  Make a new port, and
in your <board>.c file, don't ioremap the RTC area (since you don't
have one) and delete (or set NULL) all the time/nvram machdeps.

Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: NVRAM/RTC
  2002-12-12 21:52 ` NVRAM/RTC Matt Porter
@ 2002-12-13 16:05   ` Aman
  2002-12-13 17:35     ` NVRAM/RTC Matt Porter
  0 siblings, 1 reply; 4+ messages in thread
From: Aman @ 2002-12-13 16:05 UTC (permalink / raw)
  To: Matt Porter; +Cc: linuxppc embedded


Hi Matt

This might be a very basic question. By porting what do you mean?. As of now
I copied the ebony bsp to different location and did changes to boot on the
custom board. Till now it was booting without any problem. Once I changed
the EBC configuration to configure some other FPGA ,bcos of which  linux
booting hangs at " Now Booting the kernel ".
I commented the ioremap of RTC, and the definitions of
ppc_md.set_rtc_time = todc_set_rtc_time;

ppc_md.get_rtc_time = todc_get_rtc_time;

 still the same problem. Should I hv to do something else also.

Thanking you in advance
regards
Aman


----- Original Message -----
From: "Matt Porter" <porter@cox.net>
To: "Aman" <aman@mistralsoftware.com>
Cc: "linuxppc embedded" <linuxppc-embedded@lists.linuxppc.org>
Sent: Friday, December 13, 2002 3:22 AM
Subject: Re: NVRAM/RTC


>
> On Thu, Dec 12, 2002 at 11:50:23PM +0530, Aman wrote:
> >
> > Hi All
> >
> > I have customized board , which has PPC 440GP as its processor. In this
> > board there is no NVRAM/RTC as in the 440GP evalkit. In the Rom monitor,
> > configuration related to it NVRAM/RTC has been removed. Because of this
> > changes in the rom monitor code, the linux image is hanging after " Now
> > Booting the Kernel". If  NVRAM/RTC EBC bank1 is enabled in rom monitor,
the
> > linux image is executing without any problem. Can anyone say , how to
> > disable the NVRAM/RTC option in the linux kernel.
>
> Are you trying to run an ebony image on this board?  Sounds like it,
> and that would be the wrong thing to do.  Make a new port, and
> in your <board>.c file, don't ioremap the RTC area (since you don't
> have one) and delete (or set NULL) all the time/nvram machdeps.
>
> Regards,
> --
> Matt Porter
> porter@cox.net
> This is Linux Country. On a quiet night, you can hear Windows reboot.
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: NVRAM/RTC
  2002-12-13 16:05   ` NVRAM/RTC Aman
@ 2002-12-13 17:35     ` Matt Porter
  0 siblings, 0 replies; 4+ messages in thread
From: Matt Porter @ 2002-12-13 17:35 UTC (permalink / raw)
  To: Aman; +Cc: Matt Porter, linuxppc embedded


On Fri, Dec 13, 2002 at 09:35:22PM +0530, Aman wrote:
> This might be a very basic question. By porting what do you mean?. As of now

By "porting", I mean adding a set of code that reflect the unique
characteristics of your custom board.

> I copied the ebony bsp to different location and did changes to boot on the
> custom board. Till now it was booting without any problem. Once I changed
> the EBC configuration to configure some other FPGA ,bcos of which  linux
> booting hangs at " Now Booting the kernel ".

Hrm, without knowing your custom board I can't really comment on
the potential source of something that is specific to your board.

You can try enabling early boot text messages.  Hopefully it still
works on 440, I heard a rumor that it might be broken which would
require some changes to head_440.S.  An easier path is, of course,
using a hardware debugger (BDI) to point you to where you are
dying...I usually just dump logbuf before the console is inited
so I can read the buffered oops message.

> I commented the ioremap of RTC, and the definitions of
> ppc_md.set_rtc_time = todc_set_rtc_time;
>
> ppc_md.get_rtc_time = todc_get_rtc_time;
>
>  still the same problem. Should I hv to do something else also.

You need to get rid of time_init, set_rtc_time, get_rtc_time,
nvram_read_val, nvram_write_val too.

You *will* get an oops from a machine check if you even have
todc_time_init enabled...it will be attempting to read from
some bogus location.

Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-12-13 17:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 18:20 NVRAM/RTC Aman
2002-12-12 21:52 ` NVRAM/RTC Matt Porter
2002-12-13 16:05   ` NVRAM/RTC Aman
2002-12-13 17:35     ` NVRAM/RTC Matt Porter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).