powerpc board without RTC

2 messages, 2 authors, 2003-02-03 · open the first message on its own page

powerpc board without RTC

From: Yu Bo-BOYU1 <hidden>
Date: 2003-02-02 21:32:51

Hello,

I had a custom 7410 board without RTC. Therefore, I commented out
time_init() in start_kernel(). Is this acceptable for linux ?
From the startup log of linux, it hang in calibrate_delay() which I think
it is related to RTC.

Any recommendation how I should do to avoid RTC. I really don't care
about time of day stuff except the system tick.



Loading... 618940
Starting at 0x800000...

loaded at:     00800000 008971BC
zimage at:     00805870 00893F33
avail ram:     00400000 00800000

Linux/PPC load:
Uncompressing Linux...done.
Now booting the kernel
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Total memory = 64MB; using 128kB for hash table (at c0180000)
Linux version 2.4.17_mvl21 (root@ibm-t30) (gcc version 2.95.3 20010315
(release/
MontaVista)) #41 Sun Feb 2 15:18:05 CST 2003
Host bridge init okay
Motorola SPS Sandpoint Test Platform
Sandpoint port (C) 2000, 2001 MontaVista Software, Inc. (source@mvista.com)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line:
OpenPIC Version 1.2 (1 CPUs and 26 IRQ sources) at fdfd0000
Calibrating delay loop...



Thanks.

Bo

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

Re: powerpc board without RTC

From: Adrian Cox <hidden>
Date: 2003-02-03 09:32:16

On Sun, 2 Feb 2003 15:32:51 -0600
"Yu Bo-BOYU1" [off-list ref] wrote:
Any recommendation how I should do to avoid RTC. I really don't care
about time of day stuff except the system tick.
I've supported several boards like this. I recommend using the generic
RTC driver, and supplying a dummy initialisation routine.

In your setup_arch routine:

	    ppc_md.set_rtc_time = dummy_set_rtc_time;
	    ppc_md.get_rtc_time = dummy_get_rtc_time;

and the dummy code looks like:
static int dummy_set_rtc_time(unsigned long nowtime)
{
    	return -1;
}

static unsigned long dummy_get_rtc_time(void)
{
	/* Pick a date */
    	return mktime(2001, 1, 1, 12, 0, 0);
}

- Adrian Cox
http://www.humboldt.co.uk/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help