From: Wolfgang Denk Date: Fri, 31 Oct 2008 00:23:32 +0100 Subject: [U-Boot] [PATCH]v2: Fixed lineendings in tools/img2brec.sh In-Reply-To: <200810231231.15846.niklaus.giger@member.fsf.org> References: <200810231231.15846.niklaus.giger@member.fsf.org> Message-ID: <20081030232332.67EDD8522296@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Niklaus Giger, In message <200810231231.15846.niklaus.giger@member.fsf.org> you wrote: > This time I took a closer look at img2brec.sh. My conclusions are > img2brec.sh was done for development under Windows (probably cygwin), as > it uses a command filesize which is not available as such under Unix. Therefore > I replaced with a functional equivalent (wc --bytes) which should also work under > cygwin (not tested). > I modified the script to git also rid of extra \M (LF) caracters in the output. Now > the outputfile on my Debian system after calling > tools/img2brec.sh u-boot.bin [u-boot.brec] > looks fine. Hm.... but the \r\n sequences are probably intentional because theyu are needed on Win* systems? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A little suffering is good for the soul. -- Kirk, "The Corbomite Maneuver", stardate 1514.0