From: Tom Rini Date: Sun, 20 Dec 2015 08:22:29 -0500 Subject: [U-Boot] u-boot 2016.01-rc2 detects BeagleBone Black incorrectly In-Reply-To: References: Message-ID: <20151220132229.GI11783@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Dec 20, 2015 at 12:57:33PM +0300, Matwey V. Kornilov wrote: > 2015-12-20 1:29 GMT+03:00 Robert Nelson : > >>> 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: