Missing of "Uncompressing Linux... " message at boot sequence
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
Quoted 8 lines · Hitoshi Mitake
In
arch/sh/boot/compressed/misc.cthe functionputs()is defined like this:int
puts(const char *s){ /* This should be updated to use the sh-sci routines */ return 0; }
Quoted 8 lines
Of course this makes no output.
So I cannot see the message "Uncompressing Linux... Ok, booting the kernel." now.
# The change was made atabec86a80247ab3a40d2afc9c8e8c26efcab2391So 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.
Quoted 5 lines
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 frommisc.cis 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.
Quoted 4 lines
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.
Quoted 9 lines · Paul Mundt
Quoted 4 lines · Hitoshi Mitake
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.
Thanks for your reply, Paul!
Quoted 2 lines · Paul Mundt
Quoted 1 line · Hitoshi Mitake
In
arch/sh/boot/compressed/misc.cthe functionputs()is defined
like this:
Quoted 20 lines
Quoted 7 lines
int
puts(const char *s){ /* This should be updated to use the sh-sci routines */ return 0; }Quoted 8 lines
Of course this makes no output.
So I cannot see the message "Uncompressing Linux... Ok, booting the kernel." now.
# The change was made atabec86a80247ab3a40d2afc9c8e8c26efcab2391So 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.
Quoted 6 lines
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 :)
Quoted 11 lines
Quoted 5 lines
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 frommisc.cis 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.
Quoted 10 lines
Quoted 5 lines
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.