busybox: backport dd conv=swab from 1.22
authorJohn Crispin <john@openwrt.org>
Sun, 30 Mar 2014 09:16:47 +0000 (09:16 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 30 Mar 2014 09:16:47 +0000 (09:16 +0000)
commit1966d4942c2d91b225ddb820e6be01b9b1dc9652
tree821fa5da67015e0916c3804397c4103a4cbcbe2f
parent5a6268c078425a6c0452202000948251f14fa632
busybox: backport dd conv=swab from 1.22

Some boards have the WLAN EEPROM stored in flash in big-endian format,
whereas the driver requires the EEPROM in little-endian format. The
conv=swab option in dd is particularly useful in this case. This patch
backports this feature from busybox-1.22 based on the following commits:

commit    b941316ae5313be523b64f0a9151ee4decb2b35b dd: support conv=swab
commit    8395bd3f52f8ed46fa3ffc316b2d113afa748bae dd: fix example in a
comment. No code changes.
commit    5b9910f0a4a1b7976c46e6f849aaa263180e5521 dd: fail if swab is
attempted on odd-sized block
commit    0ff0b320a2dbb5e0b5fa245ffd9b2648d7026843 dd: code shrink

v2: include the commit messages from upstream

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 40327
package/utils/busybox/patches/008-backport-dd-conv-swab.patch [new file with mode: 0644]