From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 15 Apr 2011 18:27:50 +0200 (CEST) Received: from mail3.caviumnetworks.com ([12.108.191.235]:4558 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1491877Ab1DOQ1o (ORCPT ); Fri, 15 Apr 2011 18:27:44 +0200 Received: from caexch01.caveonetworks.com (Not Verified[192.168.16.9]) by mail3.caviumnetworks.com with MailMarshal (v6,7,2,8378) id ; Fri, 15 Apr 2011 09:28:38 -0700 Received: from caexch01.caveonetworks.com ([192.168.16.9]) by caexch01.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 15 Apr 2011 09:27:39 -0700 Received: from dd1.caveonetworks.com ([12.108.191.236]) by caexch01.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 15 Apr 2011 09:27:39 -0700 Message-ID: <4DA871F5.40809@caviumnetworks.com> Date: Fri, 15 Apr 2011 09:27:33 -0700 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 MIME-Version: 1.0 To: Philby John CC: Florian Fainelli , linux-mips@linux-mips.org Subject: Re: [PATCH] MIPS: Octeon: add option to ignore PT_NOTE section References: <1302710833.14458.1.camel@localhost.localdomain> <4DA5DF7A.1030207@caviumnetworks.com> <201104151024.07859.florian@openwrt.org> <4DA8081D.9050608@mvista.com> In-Reply-To: <4DA8081D.9050608@mvista.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Apr 2011 16:27:39.0440 (UTC) FILETIME=[098BB300:01CBFB8A] Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 29762 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ddaney@caviumnetworks.com Precedence: bulk X-list: linux-mips On 04/15/2011 01:55 AM, Philby John wrote: > On 04/15/2011 01:54 PM, Florian Fainelli wrote: >> Hello, >> >> On Wednesday 13 April 2011 19:38:02 David Daney wrote: >>> On 04/13/2011 09:07 AM, philby john wrote: >>>> From: Philby John >>> >>> ^^^^^^^^ I believe that statement to be not entirely correct. >>> >>> Perhaps you should change it to something like: >>> From: David Daney >>> >>>> Date: Wed, 13 Apr 2011 20:46:32 +0530 >>>> Subject: [PATCH] MIPS: Octeon: add option to ignore PT_NOTE section >>>> >>>> Some early Octeon bootloaders cannot process PT_NOTE program >>>> headers as reported in numerous sections of the web, here is >>>> an example http://www.spinics.net/lists/mips/msg37799.html >>>> Loading usually fails with such an error ... >>>> Error allocating memory for elf image! >>>> >>>> The work around usually is to strip the .notes section by using >>>> such a command $mips-gnu-strip -R .notes vmlinux -o fixed-vmlinux >>>> It is expected that the vmlinux image got after compilation be >>>> bootable. Add a Kconfig option to ignore the PT_NOTE section. >> >> Do we really want this to be in the kernel? In my opinion, this is a fixup >> which distributions should be aware of, but not necessarily take place here in >> the kernel Makefiles. > > You are right in one way. But as an OS vendor company we will definitely > include this patch in our distribution. This incident has been reported > many a times and its a pain to see the image not boot up, throw up an > error, with the user having to search the work around on the web. What > we are trying to do is save all that trouble. If it can be fixed why not > fix it. > I don't care one way or another. We too (perhaps one and the same...) provide kernels to our SDK customers with the patch applied. An alternative approach would be to put the $(CROSS_COMPILE)strip command into the arch/mips/Makefile. David Daney