Skip to contentSkip to conversation

ads5121 - remove PSC serial console support

U-Boot Angelo 2 participants 4 messages Oct 30, 2009 – Oct 31, 2009

lore
Share & tools
lore

Angelo

author
#0 lore raw

Hi all,

I'm working on freescale ev. board ads5121ev and I'm trying to remove serial console support.

Do you know the right procedure to remove it?

Thanks in advance.

#1 lore raw

Dear Angelo,

Quoted 3 lines · In message <[email protected]> you wrote:

I'm working on freescale ev. board ads5121ev and I'm trying to remove serial console support.

Which sense would this make?

Quoted 1 line

Do you know the right procedure to remove it?

The right procedure is to keep it! U-Boot is designed around the principle of having a serial console avaialable as early as possible. You don't give up this lightly.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Harrison's Postulate:
	For every action, there is an equal and opposite criticism.
author
#2 lore raw

Ok,

I'm trying to reduce boot time and i don't want to omit anything!

I know that console is fundamental, but i need to disable it. After some modifies it seems like u-boot execute an infinite loop, waiting for unknown something.

Are there some special file (e.g. cpu/mpc512x/serial.c, include/configs/ads5121.h ...) that I have to modify?

I suppose that should be a way to remove it completely.

Thanks

--- Ven 30/10/09, Wolfgang Denk <[email protected]> ha scritto:

Da: Wolfgang Denk <[email protected]>
Oggetto: Re: [U-Boot] ads5121 - remove PSC serial console support
A: "Angelo" <[email protected]>
Cc: u-boot at lists.denx.de
Data: Venerd? 30 ottobre 2009, 22:23

Dear Angelo,

Quoted 3 lines · In message <[email protected]> you wrote:

I'm working on freescale ev. board ads5121ev and I'm trying to remove serial console support.

Which sense would this make?

Quoted 1 line

Do you know the right procedure to remove it?

The right procedure is to keep it! U-Boot is designed around the principle of having a serial console avaialable as early as possible. You don't give up this lightly.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,? ???MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Harrison's Postulate:
??? For every action, there is an equal and opposite criticism.
#3 lore raw

Dear Angelo,

Quoted 2 lines · In message <[email protected]> you wrote:

I'm trying to reduce boot time and i don't want to omit anything!

Hm.. did you do any profiling and are you really sure that the initial console messages really contribute a significant amount to the boot time?

On the MPC5121ADS board, U-Boot prints some 340 characters before you can turn off the conssole using the usual methods. At 115200 bps this takes about 30 milliseconds.

Are you really sure that it makes sense to optimize on thislevel yet? Have you solved / accelerated all the other slow parts yet?

Quoted 3 lines

I know that console is fundamental, but i need to disable it. After some modifies it seems like u-boot execute an infinite loop, waiting for unknown something.

Attach a debugger. It should be trivial to see where U-Boot is spinning.

Quoted 1 line

I suppose that should be a way to remove it completely.

I am pretty sure that what you are trying to do makes little sense.

Quoted 3 lines

--- Ven 30/10/09, Wolfgang Denk <[email protected]> ha scritto:

Da: Wolfgang Denk <[email protected]>

Please also make sure to read
http://www.netmeister.org/news/learn2quote.html

Do not top post / full quote. Thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The ideal situation is to have massive computing power right at home.
Something that dims the streetlights and shrinks the picture  on  the
neighbours' TVs when you boot it up.