linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Missing of "Uncompressing Linux... " message at boot sequence
@ 2010-05-04  7:38 Hitoshi Mitake
  2010-05-06  4:49 ` Paul Mundt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hitoshi Mitake @ 2010-05-04  7:38 UTC (permalink / raw)
  To: linux-sh


Hi SuperH folks,

In arch/sh/boot/compressed/misc.c the function puts() is defined like this:

int puts(const char *s)
{
	/* This should be updated to use the sh-sci routines */
	return 0;
}

Of course this makes no output.
So I cannot see the message "Uncompressing Linux... Ok, booting the 
kernel." now.
# The change was made at abec86a80247ab3a40d2afc9c8e8c26efcab2391

So I have a question:
Do you have any plan to revive the "Uncompressing" message?

The comment says that puts() should use the routines of sh-sci.
But sh-sci is the thing built in vmlinux, so I think using it from 
misc.c is hard.
To revive it, big change will be required.

If you have a plan to revive the message, I'd like to co-operate.
Because I'm working on new board support, serial output is a big problem 
for me.

Thanks,
	Hitoshi

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

* Re: Missing of "Uncompressing Linux... " message at boot sequence
  2010-05-04  7:38 Missing of "Uncompressing Linux... " message at boot sequence Hitoshi Mitake
@ 2010-05-06  4:49 ` Paul Mundt
  2010-05-06  5:05 ` Paul Mundt
  2010-05-09 14:37 ` Hitoshi Mitake
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2010-05-06  4:49 UTC (permalink / raw)
  To: linux-sh

On Tue, May 04, 2010 at 04:38:28PM +0900, Hitoshi Mitake wrote:
> In arch/sh/boot/compressed/misc.c the function puts() is defined like this:
> 
> int puts(const char *s)
> {
> 	/* This should be updated to use the sh-sci routines */
> 	return 0;
> }
> 
> Of course this makes no output.
> So I cannot see the message "Uncompressing Linux... Ok, booting the 
> kernel." now.
> # The change was made at abec86a80247ab3a40d2afc9c8e8c26efcab2391
> 
> So I have a question:
> Do you have any plan to revive the "Uncompressing" message?
> 
I suppose you ran in to this because you are one of the few people still
using sh-bios. The current sh-bios code has been generalized a fair bit,
but we could restore this functionality if it ends up being useful for
you.

In my experience the sh-bios implementation has been unreliable at the
best of times, so this early puts stuff was never really useful in the
first place. I suspect there are also outstanding issues with trapping in
to the bios after the system has booted, as this code doesn't see much
use in general.

> The comment says that puts() should use the routines of sh-sci.
> But sh-sci is the thing built in vmlinux, so I think using it from 
> misc.c is hard.
> To revive it, big change will be required.
> 
Correct. The idea was to reuse parts of the sh-sci code, rather than
linking it in directly. If it were just a simple case we could have
easily accomodated this through the header alone and simply inlined it,
but unfortunately there is not enough consistency between CPUs to make
this terribly realistic. This is largely why things like the sh-bios
abstraction exists in the first place.

> If you have a plan to revive the message, I'd like to co-operate.
> Because I'm working on new board support, serial output is a big problem 
> for me.
> 
I'll have a look at restoring it, but be forewarned that there will
likely be outstanding sh-bios issues. If you're able to assist with
debugging this then of course I have no problem with reinstanting this
sort of support.

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

* Re: Missing of "Uncompressing Linux... " message at boot sequence
  2010-05-04  7:38 Missing of "Uncompressing Linux... " message at boot sequence Hitoshi Mitake
  2010-05-06  4:49 ` Paul Mundt
@ 2010-05-06  5:05 ` Paul Mundt
  2010-05-09 14:37 ` Hitoshi Mitake
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2010-05-06  5:05 UTC (permalink / raw)
  To: linux-sh

On Wed, May 05, 2010 at 09:49:57PM -0700, Paul Mundt wrote:
> On Tue, May 04, 2010 at 04:38:28PM +0900, Hitoshi Mitake wrote:
> > If you have a plan to revive the message, I'd like to co-operate.
> > Because I'm working on new board support, serial output is a big problem 
> > for me.
> > 
> I'll have a look at restoring it, but be forewarned that there will
> likely be outstanding sh-bios issues. If you're able to assist with
> debugging this then of course I have no problem with reinstanting this
> sort of support.

Also note that the earlyprintk stuff should largely make this irrelevant
for most people. The cases where the earlyprintk code ends up being
useless is primarily with memory initialization or getting the serial
port up on a new CPU (although the latter case is not so exceptional
anymore), so it's quite possible that simply turning off the sh-bios
stuff and using the earlyprintk code as-is will be sufficient for you to
get early messages.

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

* Re: Missing of "Uncompressing Linux... " message at boot sequence
  2010-05-04  7:38 Missing of "Uncompressing Linux... " message at boot sequence Hitoshi Mitake
  2010-05-06  4:49 ` Paul Mundt
  2010-05-06  5:05 ` Paul Mundt
@ 2010-05-09 14:37 ` Hitoshi Mitake
  2 siblings, 0 replies; 4+ messages in thread
From: Hitoshi Mitake @ 2010-05-09 14:37 UTC (permalink / raw)
  To: linux-sh


Thanks for your reply, Paul!

On 05/06/10 13:49, Paul Mundt wrote:
 > On Tue, May 04, 2010 at 04:38:28PM +0900, Hitoshi Mitake wrote:
 >> In arch/sh/boot/compressed/misc.c the function puts() is defined 
like this:
 >>
 >> int puts(const char *s)
 >> {
 >> 	/* This should be updated to use the sh-sci routines */
 >> 	return 0;
 >> }
 >>
 >> Of course this makes no output.
 >> So I cannot see the message "Uncompressing Linux... Ok, booting the
 >> kernel." now.
 >> # The change was made at abec86a80247ab3a40d2afc9c8e8c26efcab2391
 >>
 >> So I have a question:
 >> Do you have any plan to revive the "Uncompressing" message?
 >>
 > I suppose you ran in to this because you are one of the few people still
 > using sh-bios. The current sh-bios code has been generalized a fair bit,
 > but we could restore this functionality if it ends up being useful for
 > you.
 >
 > In my experience the sh-bios implementation has been unreliable at the
 > best of times, so this early puts stuff was never really useful in the
 > first place. I suspect there are also outstanding issues with trapping in
 > to the bios after the system has booted, as this code doesn't see much
 > use in general.
 >

I didn't care about quality of sh-bios,
because I don't have serious SuperH development experience
like working on several boards.
Your opinion is really helpful for me, thanks :)

 >> The comment says that puts() should use the routines of sh-sci.
 >> But sh-sci is the thing built in vmlinux, so I think using it from
 >> misc.c is hard.
 >> To revive it, big change will be required.
 >>
 > Correct. The idea was to reuse parts of the sh-sci code, rather than
 > linking it in directly. If it were just a simple case we could have
 > easily accomodated this through the header alone and simply inlined it,
 > but unfortunately there is not enough consistency between CPUs to make
 > this terribly realistic. This is largely why things like the sh-bios
 > abstraction exists in the first place.

Ah, I didn't understand the relation between CPUs and serial.

 >
 >> If you have a plan to revive the message, I'd like to co-operate.
 >> Because I'm working on new board support, serial output is a big problem
 >> for me.
 >>
 > I'll have a look at restoring it, but be forewarned that there will
 > likely be outstanding sh-bios issues. If you're able to assist with
 > debugging this then of course I have no problem with reinstanting this
 > sort of support.
 >

Thanks! If you make changes on this problem,
could you tell me? I'll test on some boards.

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

end of thread, other threads:[~2010-05-09 14:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04  7:38 Missing of "Uncompressing Linux... " message at boot sequence Hitoshi Mitake
2010-05-06  4:49 ` Paul Mundt
2010-05-06  5:05 ` Paul Mundt
2010-05-09 14:37 ` Hitoshi Mitake

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).