On Sun, Dec 20, 2015 at 12:57:33PM +0300, Matwey V. Kornilov wrote: > 2015-12-20 1:29 GMT+03:00 Robert Nelson <robertcnel...@gmail.com>: > >>> ah, it's tripping on the "." = "0a" character.. > >>> > >>> Do you happen to remember where you purchased it and what it was > >>> called.. (for git commit) > >>> > >>> This patch should work: > >>> > >>> https://gist.github.com/RobertCNelson/21f44591c78daed7c637 > >>> > >> > >> The patch works good. > >> But could you please explain me? I thought the problem was in 'test' > >> operator. > >> Unlikely > >> test '\0x74\0x0a\0x75\0x65' = BBG1 > >> should be true. > > > > I saw this when i first booted the Green with the production eeprom, > > "test" doesn't seem to like non printable characters.. > > Seems, issue is in command parser, not in test itself.
Yeah. You may be able to instead use 'cmp.w' and mw to try and keep all of this inside just the script side of things and outside of C. That also however may end up being even uglier. -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot