[PATCH] dfu: Fix handling of UBI partitions in MTD backend

2020-09-02 Thread Guillermo Rodriguez
For UBI partitions ("partubi" in dfu_alt_info), dfu_fill_entity_mtd sets the mtd.ubi flag; however other functions incorrectly check for nand.ubi instead. Fix this by checking for the correct flag. Signed-off-by: Guillermo Rodriguez Cc: Lukasz Majewski --- drivers/dfu/dfu_mtd.c |

"Drop ffs" functionality in MTD DFU backend

2020-09-01 Thread Guillermo Rodriguez Garcia
backend. Is there a way to tell the MTD subsystem to do the same (drop trailing all-0xff pages) in order to flash UBI images to raw NAND? Thank you, Guillermo Rodriguez Garcia guille.rodrig...@gmail.com

"Drop ffs" functionality in MTD DFU backend

2020-09-01 Thread Guillermo Rodriguez Garcia
backend. Is there a way to tell the MTD subsystem to do the same (drop trailing all-0xff pages) in order to flash UBI images to raw NAND? Thank you, Guillermo Rodriguez Garcia guille.rodrig...@gmail.com

Re: [GIT] Pull request: u-boot-dfu (26.01.2020)

2020-01-27 Thread Guillermo Rodriguez
El lun., 27 ene. 2020 a las 14:51, Marek Vasut () escribió: > > On 1/27/20 2:35 PM, Guillermo Rodriguez wrote: > > El lunes, 27 de enero de 2020, Marek Vasut escribió: > > > >> On 1/27/20 2:26 PM, Guillermo Rodriguez wrote: > >>> Hi, > >> > >

Re: [GIT] Pull request: u-boot-dfu (26.01.2020)

2020-01-27 Thread Guillermo Rodriguez
El lunes, 27 de enero de 2020, Marek Vasut escribió: > On 1/27/20 2:26 PM, Guillermo Rodriguez wrote: > > Hi, > > Hi, > > > El lunes, 27 de enero de 2020, Marek Vasut escribió: > > > >> On 1/27/20 9:14 AM, Guillermo Rodriguez Garcia wrote: > >>

Re: [GIT] Pull request: u-boot-dfu (26.01.2020)

2020-01-27 Thread Guillermo Rodriguez
Hi, El lunes, 27 de enero de 2020, Marek Vasut escribió: > On 1/27/20 9:14 AM, Guillermo Rodriguez Garcia wrote: > > Hi Marek, > > Hi, > > > El lun., 27 ene. 2020 a las 8:52, Lukasz Majewski () > escribió: > >> > >> Hi Marek, > >> >

Re: [GIT] Pull request: u-boot-dfu (26.01.2020)

2020-01-27 Thread Guillermo Rodriguez Garcia
ver, UBI images built with --space-fixup will still work fine. In other words, enabling this option at buildtime has no countereffects. So there is no point in making it configurable at runtime, if support has been built into U-boot. [1]: http://www.linux-mtd.infradead.org/faq/ubifs.html#L_free_space_fixup Best regards, Guillermo Rodriguez Garcia guille.rodrig...@gmail.com

DFU and UBI

2019-12-14 Thread Guillermo Rodriguez Garcia
in place to handle UBI images (https://github.com/u-boot/u-boot/commit/815c30b2b6f1920cfdb9d6c10eb1359129377c9e). Should this be working without --space-fixup ? TIA, Guillermo Rodriguez Garcia guille.rodrig...@gmail.com