From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tuomas Tynkkynen Date: Sat, 1 Apr 2017 17:49:44 +0300 Subject: [U-Boot] regression: setting the rpi mac address stopped working In-Reply-To: References: <1490603089.31035.24.camel@redhat.com> Message-ID: <20170401174944.36f2783e@duuni> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, Gerd On Fri, 31 Mar 2017 22:22:52 -0600 Simon Glass wrote: > Hi, > > On 27 March 2017 at 02:24, Gerd Hoffmann wrote: > > Hi, > > > > u-boot 2016.11 & newer doesn't set the mac address on my raspberry pi > > any more, so the linux kernel picks a random mac address. Bisected to > > this commit: > > > > commit b91c6a1209e7da1a7f989d9ac35d0d8be0b7b710 > > Author: Simon Glass > > Date: Wed Oct 5 20:42:11 2016 -0600 > > > > Fix return value in trailing_strtoln() > > > > This function should return -1 if there is no trailing integer > > in the string. Instead it returns 0. Fix it by checking for this > > condition at the start. > > > > Signed-off-by: Simon Glass > > Reviewed-by: Bin Meng > > > > Appearently this change broke fdt_fixup_ethernet(). > > I'm sorry to hear that. Any change you have a patch? It looks like the > latter code was relying on the bad behaviour? > https://www.mail-archive.com/u-boot at lists.denx.de/msg241949.html fixes this problem.