From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from moutng.kundenserver.de ([212.227.126.187]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1U07xs-0003HJ-Ct for ptxdist@pengutronix.de; Tue, 29 Jan 2013 10:58:56 +0100 Message-ID: <51079D56.7040301@corscience.de> Date: Tue, 29 Jan 2013 10:58:46 +0100 From: =?ISO-8859-1?Q?Andreas_Bie=DFmann?= MIME-Version: 1.0 References: In-Reply-To: Subject: Re: [ptxdist] Binary patches Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de, Matthias Klein Hi Matthias, On 29.01.2013 09:39, Matthias Klein wrote: > Hi Andreas, > = >> Well, as I thought, so please try my step by step guide. >> > Sorry, at the first reading I have your step guide. > = > = > I have followed your step guide, and git creates a now patch file in the > format you described (GIT binary patch) and added it to the series file. > Very nice. Is the "extract --git" and "git ptx-patches" somewhere > documented? I do not know if this made it into the 'How to become a PTXdist Guru' document. I got this hint by Michael last year: http://article.gmane.org/gmane.comp.embedded.ptxdist.devel/8544 > But then at the normal "extract" I get a error from patch: > = > applying '0050-SDMA-firmware.patch' > patch: **** Only garbage was found in the patch input. > make: *** [.../platform-tx53/state/kernel.extract] Error 2 > = > Do I make something wrong, or do I need a speacial "patch" version for > GIT binary patches? Not that I know of, patch 2.6.1 works for me here as expected (Debian Wheezy): ---8<--- 0078-add-binary-blob.patch patchin: git: done finished target kernel.extract ./p_normal extract kernel 29,22s user 7,69s system 74% cpu 49,745 total abiessmann@azuregos % git --version git version 1.7.10.4 abiessmann@azuregos % patch --version patch 2.6.1 abiessmann@azuregos % ls -la platform-test/build-target/linux-3.4/firmware/CKFA.bin -rwxr-xr-x 1 abiessmann abiessmann 6668 Jan 29 10:25 platform-test/build-target/linux-3.4/firmware/CKFA.bin* abiessmann@azuregos % head -20 patches/linux-3.4/0078-add-binary-blob.patch From: =3D?UTF-8?q?Andreas=3D20Bie=3DC3=3D9Fmann?=3D Date: Tue, 29 Jan 2013 10:24:15 +0100 Subject: [PATCH] add binary blob MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Bie=DFmann --- firmware/CKFA.bin | Bin 0 -> 6668 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100755 firmware/CKFA.bin diff --git a/firmware/CKFA.bin b/firmware/CKFA.bin new file mode 100755 index 0000000000000000000000000000000000000000..9befbf415a9fd8bcc19655ca1dc50966d= 248ebba GIT binary patch literal 6668 zcmbtZ3w)DBwx91y`ZfLfFOhYH~CG@ --->8--- Beside that, have you thought about Roberts comment? You can not distribute binary BLOB in a GPLv2 software and refuse disclosure of that blob. To load binary closed source firmware blobs the linux kernel provides a userspace interface. You should use that if you intend to sell this device. Best regards Andreas Bie=DFmann -- = ptxdist mailing list ptxdist@pengutronix.de