
31 Oct
2008
31 Oct
'08
12:23 a.m.
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@denx.de
A little suffering is good for the soul.
-- Kirk, "The Corbomite Maneuver", stardate 1514.0