Skip to contentSkip to conversation

NVRAM/RTC

DISCUSSION Aman 2 participants 4 messages Dec 12, 2002 – Dec 13, 2002

lore
Share & tools
lore

Aman

author
#0 lore raw

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/

#1 lore raw
Quoted 10 lines · Aman

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
[email protected]
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/

author
#2 lore raw

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" <[email protected]>
To: "Aman" <[email protected]>
Cc: "linuxppc embedded" <[email protected]>
Sent: Friday, December 13, 2002 3:22 AM
Subject: Re: NVRAM/RTC

Quoted 10 lines · Aman
Quoted 8 lines

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

Quoted 8 lines
Quoted 2 lines

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.

Quoted 8 lines

Regards,
--
Matt Porter
[email protected]
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/

#3 lore raw
Quoted 1 line · Aman

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.

Quoted 4 lines

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.

Quoted 6 lines

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
[email protected]
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/