Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage
Hi, On 24.12.2015 20:56, Tony Lindgren wrote: Maybe update the description to say "This fixes a regression with device tree based booting compared to legacy booting for n900 to make the n900 legacy user space to also work with device tree based booting". OK, will do. It would be nice to get these two in as fixes after -rc1 assuming people have no objections to it. So please upload this one also into Russell's patch system after no more comments: Seems there are no more comments (and objections) so I will *try* to upload the patches in Russell's patch system. Will pester you to do it for me if I fail to do so :) Acked-by: Tony LindgrenThanks, Ivo -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage
* Pali Rohár[151224 09:49]: > On Thursday 24 December 2015 17:37:56 Ivaylo Dimitrov wrote: > > Nokia N900 (RX51) legacy userspace needs various ATAGS passed by the > > bootloader (boot reason, device serial, boot mode, various GPIO > > swithes, etc). Save that data early enough in the boot process, so > > it can be exported later in /proc/atags > > > > Signed-off-by: Ivaylo Dimitrov > > Working fine in qemu. > > Tested-by: Pali Rohár Maybe update the description to say "This fixes a regression with device tree based booting compared to legacy booting for n900 to make the n900 legacy user space to also work with device tree based booting". It would be nice to get these two in as fixes after -rc1 assuming people have no objections to it. So please upload this one also into Russell's patch system after no more comments: Acked-by: Tony Lindgren -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage
On Thursday 24 December 2015 17:37:56 Ivaylo Dimitrov wrote: > Nokia N900 (RX51) legacy userspace needs various ATAGS passed by the > bootloader (boot reason, device serial, boot mode, various GPIO > swithes, etc). Save that data early enough in the boot process, so > it can be exported later in /proc/atags > > Signed-off-by: Ivaylo DimitrovWorking fine in qemu. Tested-by: Pali Rohár -- Pali Rohár pali.ro...@gmail.com signature.asc Description: This is a digitally signed message part.
[PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage
Nokia N900 (RX51) legacy userspace needs various ATAGS passed by the bootloader (boot reason, device serial, boot mode, various GPIO swithes, etc). Save that data early enough in the boot process, so it can be exported later in /proc/atags Signed-off-by: Ivaylo Dimitrov--- arch/arm/mach-omap2/board-generic.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 04a56cc..8098272 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c @@ -16,6 +16,7 @@ #include #include +#include #include #include "common.h" @@ -76,8 +77,17 @@ static const char *const n900_boards_compat[] __initconst = { NULL, }; +/* Legacy userspace on Nokia N900 needs ATAGS exported in /proc/atags, + * save them while the data is still not overwritten + */ +static void __init rx51_reserve(void) +{ + save_atags((const struct tag *)(PAGE_OFFSET + 0x100)); + omap_reserve(); +} + DT_MACHINE_START(OMAP3_N900_DT, "Nokia RX-51 board") - .reserve= omap_reserve, + .reserve= rx51_reserve, .map_io = omap3_map_io, .init_early = omap3430_init_early, .init_machine = omap_generic_init, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html