sparc: unify piggyback - and fix tftpboot.img on
v3 cover sparc: unify piggyback - and fix tftpboot.img on
The following set of 10 patches unify piggyback for sparc32 and sparc64.
This has the side effect that we fix a longstanding bug in sparc64 so we can now generate tftpboot.img on a x86 box.
The patch is test on a sparc32 system where I got a ext2 image mounted and working.
On sparc64 I managed to boot a kernel on my Sun Blade 100 but the kernel stopped with a message:
"console [tty0] enabled, bootconsole disabled"
So I did not reach the point where it try to mount
the appended image.
Any hints what is wrong is appreciated!
[I guess I have the wrong framebuffer driver - but I do not know which is the right one]
This was anyway enough that I have concluded that it works better than before.
I have only tested this using my x86 build host.
Changes since v1:
- Updated copyrights (from from Josip Rodin)
- Fixed algorithm to locate "HdrS" (from Josip Rodin)
- Verified the endian fixes (based on code received from Julian Calaby)
Please apply.
Sam
Sam Ravnborg (10):
sparc: refactor piggy_32.c
sparc: use trapbase in setup_arch
sparc: use _start for the start entry (like 64 bit does)
sparc: additional comments to piggyback_32.c
sparc: remove obsolete ELF support in piggyback_32.c
sparc: add $BITS to piggyback arguments
sparc: fix tfptboot.img for sparc64 on little-endian host
sparc: rename piggyback_32 to piggyback
sparc: unify strip command in boot/Makefile
sparc: update copyright in piggyback.c
arch/sparc/boot/Makefile | 28 ++--- arch/sparc/boot/piggyback.c | 272 ++++++++++++++++++++++++++++++++++++++++ arch/sparc/boot/piggyback_32.c | 137 -------------------- arch/sparc/boot/piggyback_64.c | 110 ---------------- arch/sparc/kernel/head_32.S | 3 +- arch/sparc/kernel/setup_32.c | 3 +- arch/sparc/mm/sun4c.c | 8 +- 7 files changed, 286 insertions(+), 275 deletions(-)
Re: [PATCH v3 00/10] sparc: unify piggyback - and fix tftpboot.img
Quoted 1 line
sparc: rename
piggyback_32to piggyback
I forgot the "-M" flag to "git format-patch". So the diff is not review-able.
This is a pure rename with no additional edits.
I can resend path (or full serie) if you prefer.
Sam
Re: [PATCH v3 00/10] sparc: unify piggyback - and fix tftpboot.img
In reply to Sam RavnborgQuoted 7 lines · Sam Ravnborg
"console [tty0] enabled, bootconsole disabled"
So I did not reach the point where it try to mount
the appended image.
Any hints what is wrong is appreciated!
[I guess I have the wrong framebuffer driver - but I do not know which is the right one]
You might need the PGX64 framebuffer driver for the 'Blade 100.
Signature · 1 line
Tactical Nuclear Kittens
Re: [PATCH v3 00/10] sparc: unify piggyback - and fix tftpboot.img
In reply to Sam RavnborgQuoted 10 lines · Alex Buell
Quoted 7 lines · Sam Ravnborg
"console [tty0] enabled, bootconsole disabled"
So I did not reach the point where it try to mount
the appended image.
Any hints what is wrong is appreciated!
[I guess I have the wrong framebuffer driver - but I do not know which is the right one]You might need the PGX64 framebuffer driver for the 'Blade 100.
Just tried it - stuck at the same place :-(
Thanks for the input anyway.
EARLYFB is enabled and works - so I have something working.. It may also be a different issue - the kernel may hang after the call to register_console().
I will try to debug tomorrow.
Sam
Re: [PATCH v3 00/10] sparc: unify piggyback - and fix tftpboot.img
In reply to Sam RavnborgFrom: Alex Buell <[email protected]>
Date: Tue, 04 Jan 2011 22:16:56 +0000
Quoted 10 lines · Sam Ravnborg
Quoted 7 lines
"console [tty0] enabled, bootconsole disabled"
So I did not reach the point where it try to mount
the appended image.
Any hints what is wrong is appreciated!
[I guess I have the wrong framebuffer driver - but I do not know which is the right one]You might need the PGX64 framebuffer driver for the 'Blade 100.
The onboard graphics chip is ATI mach64, not PGX64.
David Miller
AppliedRe: [PATCH v3 00/10] sparc: unify piggyback - and fix tftpboot.img
In reply to Sam RavnborgFrom: Sam Ravnborg <[email protected]>
Date: Tue, 4 Jan 2011 22:43:56 +0100
Quoted 8 lines
Quoted 1 line
sparc: rename
piggyback_32to piggybackI forgot the "-M" flag to "git format-patch". So the diff is not review-able.
This is a pure rename with no additional edits.
I can resend path (or full serie) if you prefer.
It's not necessary.
I've applied these patches, thanks a lot Sam.
Re: [PATCH v3 00/10] sparc: unify piggyback - and fix tftpboot.img
In reply to Sam RavnborgQuoted 12 lines · David Miller
From: Alex Buell <[email protected]>
Date: Tue, 04 Jan 2011 22:16:56 +0000Quoted 9 lines · Sam Ravnborg
Quoted 7 lines
"console [tty0] enabled, bootconsole disabled"
So I did not reach the point where it try to mount
the appended image.
Any hints what is wrong is appreciated!
[I guess I have the wrong framebuffer driver - but I do not know which is the right one]
Quoted 3 lines
Quoted 1 line
You might need the PGX64 framebuffer driver for the 'Blade 100.
The onboard graphics chip is ATI mach64, not PGX64.
Isn't the PGX64 the same graphics chipset? Can confirm the issue.
Thanks,
Frans van Berckel