* Re: [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM [not found] ` <20140507080650.GA28564@pengutronix.de> @ 2014-05-07 15:29 ` Bjorn Andersson 2014-05-07 21:24 ` Andreas Färber 0 siblings, 1 reply; 3+ messages in thread From: Bjorn Andersson @ 2014-05-07 15:29 UTC (permalink / raw) To: Uwe Kleine-König Cc: Bjorn Andersson, Russell King, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm, Stephen Boyd On Wed, May 7, 2014 at 1:06 AM, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote: > On Tue, May 06, 2014 at 10:16:16PM -0700, Bjorn Andersson wrote: >> Support overriding ATAG_MEM, by specifying non-zero content of the /memory/reg >> property in the appended DTB. This is needed to work around bootloaders passing >> broken tags. > This feels wrong. I think it's quite usual that the device tree > specifies a non-0 /memory/reg property. I checked four more or less > random dts files[1], and three of them have this property set with > actual values. I thought u-boot did something like this, but after checking the code it seems that I was wrong. But if that's not the case then you're right; we have to continue to be bug-compatible with all those dtbs out there. > > So I wouldn't be surprised if this patch results in more damage than > it's worth. The optimal fix would be to make the bootloader do the right > thing. And if you trust your dtb more than your bootloader, disable > ARM_ATAG_DTB_COMPAT. I unfortunately have a boot loader passing information in ATAG_CMDLINE that I need, so I can't disable ARM_ATAG_DTB_COMPAT. My problem is that the boot loader on every shipped Qualcomm MSM8x60, MSM8960 and APQ8064 based device passes ATAG_MEM with the incorrect start address. There is no way to update the boot loader for these. For development I have a .init_meminfo in my board file patching the meminfo; this looks really bad so I'm hoping we can find some alternative solution. The proposed solution from some of the people working on this is to (post build) patch the zImage to inject code that corrects the ATAG_MEM before jumping to the kernel; but I am hoping we can find some sane way instead... Regards, Bjorn ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM 2014-05-07 15:29 ` [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM Bjorn Andersson @ 2014-05-07 21:24 ` Andreas Färber 2014-06-14 20:33 ` Pavel Machek 0 siblings, 1 reply; 3+ messages in thread From: Andreas Färber @ 2014-05-07 21:24 UTC (permalink / raw) To: Bjorn Andersson Cc: Uwe Kleine-König, Bjorn Andersson, Russell King, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm, Stephen Boyd Am 07.05.2014 17:29, schrieb Bjorn Andersson: > My problem is that the boot loader on every shipped Qualcomm MSM8x60, MSM8960 > and APQ8064 based device passes ATAG_MEM with the incorrect start address. There > is no way to update the boot loader for these. Chaining bootloaders comes to mind. This is being done on the Exynos5 based Chromebooks, for instance. Regards, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM 2014-05-07 21:24 ` Andreas Färber @ 2014-06-14 20:33 ` Pavel Machek 0 siblings, 0 replies; 3+ messages in thread From: Pavel Machek @ 2014-06-14 20:33 UTC (permalink / raw) To: Andreas F?rber Cc: Bjorn Andersson, Uwe Kleine-K?nig, Bjorn Andersson, Russell King, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm, Stephen Boyd On Wed 2014-05-07 23:24:18, Andreas F?rber wrote: > Am 07.05.2014 17:29, schrieb Bjorn Andersson: > > My problem is that the boot loader on every shipped Qualcomm MSM8x60, MSM8960 > > and APQ8064 based device passes ATAG_MEM with the incorrect start address. There > > is no way to update the boot loader for these. > > Chaining bootloaders comes to mind. This is being done on the Exynos5 > based Chromebooks, for instance. You can easily start fixed u-boot from broken u-boot... But I'm not sure that's the way to go. Perhaps your localised/ugly hack in board init code is the way to go... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-14 20:33 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1399439776-18535-1-git-send-email-bjorn.andersson@sonymobile.com> [not found] ` <20140507080650.GA28564@pengutronix.de> 2014-05-07 15:29 ` [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM Bjorn Andersson 2014-05-07 21:24 ` Andreas Färber 2014-06-14 20:33 ` Pavel Machek
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).