Re: A question on kernel clock:

4 messages, 3 authors, 2003-12-31 · open the first message on its own page

Re: A question on kernel clock:

From: Wolfgang Denk <hidden>
Date: 2003-12-30 18:49:46

Dear John,

in message <000501c3cec2$130dbab0$b702a8c0@newrock2> you wrote:
The processor I mentioned is MPC82xx. Now, I have kernel from kernel.org
[I guessed that from the ...BRG8 part.]
run on the board. But, my "nsleep()" is not exactly. So, I want to
realize the timer mechanism of Linux used.
(1) which timer is used for nsleep?
I have not the slightest idea. I don't know of any  standard  funtion
with that name - neither in user space nor in kernel code.
(2) can udelay() be changed to be preempted by other process?
That makes little sense. If you allow to run other prcesses inbetween
you will have  looong  delays  -  udelay()  was  not  made  for  such
purposes,  but  for  very  short delays (as the name suggests: in the
range of a few microseconds).
(3) which is good choice for Kernel timeslice?
What's wrong with the standard 10 ms ?
Additional, could we develop a bootloader like vxworks' bootloader? (
vxworks bootloader is a little vxworks, I think.)
Of course you can. But what for? If you like the VxWorks boot loader,
then use it. If you like something more powerful, use U-Boot.


Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
This all sounds complicated, but it mostly does excatly what you  ex-
pect. It's just difficult for us to explain what you expect...
                       - L. Wall & R. L. Schwartz, _Programming Perl_

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

Re: A question on kernel clock:

From: Dale Harris <hidden>
Date: 2003-12-30 21:07:13

On Tue, Dec 30, 2003 at 07:49:46PM +0100, Wolfgang Denk elucidated:
Dear John,

in message <000501c3cec2$130dbab0$b702a8c0@newrock2> you wrote:
quoted
(1) which timer is used for nsleep?
I have not the slightest idea. I don't know of any  standard  funtion
with that name - neither in user space nor in kernel code.
Perhaps he means nanosleep().


--
Dale Harris
rodmur@maybe.org
/.-)

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

RE: A question on kernel clock:

From: John Zhou <hidden>
Date: 2003-12-31 02:44:46

Thanks a lot!

I means nanosleep() function.

Best Regards,
John
(1) which timer is used for nsleep?
I have not the slightest idea. I don't know of any  standard  funtion
with that name - neither in user space nor in kernel code.

-----Original Message-----
From: owner-linuxppc-dev@lists.linuxppc.org
[mailto:owner-linuxppc-dev@lists.linuxppc.org]On Behalf Of Wolfgang Denk
Sent: Wednesday, December 31, 2003 2:50 AM
To: zjzhou@newrocktech.com
Cc: 'Mailing List: linuxppc-dev'
Subject: Re: A question on kernel clock:



Dear John,

in message <000501c3cec2$130dbab0$b702a8c0@newrock2> you wrote:
The processor I mentioned is MPC82xx. Now, I have kernel from kernel.org
[I guessed that from the ...BRG8 part.]
run on the board. But, my "nsleep()" is not exactly. So, I want to
realize the timer mechanism of Linux used.
(1) which timer is used for nsleep?
I have not the slightest idea. I don't know of any  standard  funtion
with that name - neither in user space nor in kernel code.
(2) can udelay() be changed to be preempted by other process?
That makes little sense. If you allow to run other prcesses inbetween
you will have  looong  delays  -  udelay()  was  not  made  for  such
purposes,  but  for  very  short delays (as the name suggests: in the
range of a few microseconds).
(3) which is good choice for Kernel timeslice?
What's wrong with the standard 10 ms ?
Additional, could we develop a bootloader like vxworks' bootloader? (
vxworks bootloader is a little vxworks, I think.)
Of course you can. But what for? If you like the VxWorks boot loader,
then use it. If you like something more powerful, use U-Boot.


Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
This all sounds complicated, but it mostly does excatly what you  ex-
pect. It's just difficult for us to explain what you expect...
                       - L. Wall & R. L. Schwartz, _Programming Perl_


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

about small dhcp client/server and http client/server

From: John Zhou <hidden>
Date: 2003-12-31 02:44:50

Hi All,

I searched small dhcp client/server and http client/server on www.google.com. so many information to be chose. udhcp,dhcpcd-1.3.22-pl4, .... boa, wget,....

But, does anybody give me some suggestion which is good for choice? My system is run Linux kernel 2.4 based on MPC8260.

I think udhcp and boa may be good for embedded system. How do you think?

Best Regards,
John

** Sent via the linuxppc-dev 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