From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pali =?utf-8?q?Roh=C3=A1r?= Subject: Re: N900 v3.19-rc5 arm atags_to_fdt.c is broken Date: Sat, 24 Jan 2015 10:04:37 +0100 Message-ID: <201501241004.37391@pali> References: <201501232239.55801@pali> <201501232336.36187@pali> <20150123234855.GB27111@amd> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9180321.85KiyxG8Rs"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150123234855.GB27111@amd> Sender: linux-kernel-owner@vger.kernel.org To: Pavel Machek Cc: linux-omap , Linux Kernel Mailing List , Aaro Koskinen , Tony Lindgren , Sebastian Reichel , Ivaylo Dimitrov , Russell King , linux-arm-kernel@lists.infradead.org, Laura Abbott List-Id: linux-omap@vger.kernel.org --nextPart9180321.85KiyxG8Rs Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Saturday 24 January 2015 00:48:55 Pavel Machek wrote: > On Fri 2015-01-23 23:36:36, Pali Roh=C3=A1r wrote: > > On Friday 23 January 2015 22:39:55 Pali Roh=C3=A1r wrote: > > > Hello, > > >=20 > > > when I boot zImage with appended DT n900 in qemu > > > fdt_open_into() function called from file > > > arch/arm/boot/compressed/atags_to_fdt.c (in function > > > atags_to_fdt) always returns -FDT_ERR_NOSPACE. > > >=20 > > > It means that all ATAGS (including cmdline arguments) > > > passed by bootloader are ignored. > > >=20 > > > On real n900 device I see that booted DT version also > > > ignore cmdline arguments from bootloader. I cannot debug > > > decompress code on real device, but I think it is same > > > problem as in qemu. > >=20 > > Looks like this quick patch is fixing above problem: > So... something overruns stack, and bigger stack fixes it...? >=20 > Pavel >=20 Yes, it looks like that DTB file for n900 is too big and=20 atags_to_fdt.c cannot append anything to it (kernel cmdline)... > > diff --git a/arch/arm/boot/compressed/head.S > > b/arch/arm/boot/compressed/head.S index 68be901..4a7d75b > > 100644 > > --- a/arch/arm/boot/compressed/head.S > > +++ b/arch/arm/boot/compressed/head.S > > @@ -268,7 +268,7 @@ restart: adr r0, LC0 > >=20 > > * area. No GOT fixup has occurred yet, but none of=20 the > > * code we're about to call uses any global variable. > > =09 > > */ > >=20 > > - add sp, sp, #0x10000 > > + add sp, sp, #0x20000 > >=20 > > stmfd sp!, {r0-r3, ip, lr} > > mov r0, r8 > > mov r1, r6 > >=20 > > @@ -289,7 +289,7 @@ restart: adr r0, LC0 > >=20 > > bleq atags_to_fdt > > =09 > > ldmfd sp!, {r0-r3, ip, lr} > >=20 > > - sub sp, sp, #0x10000 > > + sub sp, sp, #0x20000 > >=20 > > #endif > > =20 > > mov r8, r6 @ use the appended device tree =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart9180321.85KiyxG8Rs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlTDYCUACgkQi/DJPQPkQ1JBBACeOPAeqxfpzGp40XeRshhof/AJ EQIAoJaxpX9yo0YF1B+C+PFo5ltCZt0s =YwcT -----END PGP SIGNATURE----- --nextPart9180321.85KiyxG8Rs--