From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 14 Nov 2014 12:58:05 +0100 Subject: [U-Boot] [PATCH v2] dfu: thor: fix: Modify dfu_get_alt() function to support absolute paths In-Reply-To: <20141114113948.195460df@amdc2363> References: <1415118343-26724-1-git-send-email-l.majewski@samsung.com> <1415181256-30569-1-git-send-email-l.majewski@samsung.com> <20141114113948.195460df@amdc2363> Message-ID: <201411141258.05907.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday, November 14, 2014 at 11:39:48 AM, Lukasz Majewski wrote: > Hi Lukasz, > > > Recently the ext4 file system imposed passing absolute path with its > > file name parameter. > > As a result dfu_alt_info env variable has been modified to provide > > absolute path when ext4 file system is accessed (e.g. /uImage ext4 0 > > 2;). > > > > Unfortunately, lthor flashing program provides plain file name (like > > uImage) and hence those two file names do not match anymore. > > > > Presented commit also allows lthor to write files to sub directories > > (like /boot/bin/uImage). > > > > Signed-off-by: Lukasz Majewski > > Reviewed-by: Marek Vasut [...] > > + * dfu->name (uImage) > > + */ > > + if (strlen(dfu->name) == > > + ((str - dfu->name) + strlen(name))) > > + return dfu->alt; > > + } > > > > } > > > > return -ENODEV; > > Applied to u-boot-dfu repository. Thanks It's nice to see that you're taking good care of your clones ;-) Best regards, Marek Vasut