* [U-Boot] Question about dfu flash rootfs image @ 2013-10-12 7:18 Bo Shen 2013-10-14 5:43 ` Heiko Schocher 0 siblings, 1 reply; 4+ messages in thread From: Bo Shen @ 2013-10-12 7:18 UTC (permalink / raw) To: u-boot Hi All, Now I am implementing DFU support on Atmel sama5d3xek board, when try to download rootfs image to NAND flash through DFU, we need to drop ffs from rootfs image. In dfu_nand.c when it call nand_write_skip_bad() with flags as 0. However, I need to call nand_write_skip_bad() with flags at least with WITH_DROP_FFS set. Till now, I don't find any good solution to pass the parameter, except hard code it or through "#ifdef CONFIG_CMD_NAND_TRIMFFS" to set it. Any suggestions for it and any other solution? Best Regards, Bo Shen ^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Question about dfu flash rootfs image 2013-10-12 7:18 [U-Boot] Question about dfu flash rootfs image Bo Shen @ 2013-10-14 5:43 ` Heiko Schocher 2013-10-14 6:46 ` Lukasz Majewski 2013-10-14 7:08 ` Bo Shen 0 siblings, 2 replies; 4+ messages in thread From: Heiko Schocher @ 2013-10-14 5:43 UTC (permalink / raw) To: u-boot Hello Bo, Am 12.10.2013 09:18, schrieb Bo Shen: > Hi All, > Now I am implementing DFU support on Atmel sama5d3xek board, when try to download rootfs image to NAND flash through DFU, we need to drop ffs from rootfs image. Do you use ubi or jffs2? > In dfu_nand.c when it call nand_write_skip_bad() with flags as 0. However, I need to call nand_write_skip_bad() with flags at least with WITH_DROP_FFS set. > > Till now, I don't find any good solution to pass the parameter, except hard code it or through "#ifdef CONFIG_CMD_NAND_TRIMFFS" to set it. > Any suggestions for it and any other solution? There was a discussion, how to reorganize the dfu_alt_info var, see: http://lists.denx.de/pipermail/u-boot/2013-July/158920.html I think, your question fits into this thread ... Currently, I think, you should add in drivers/dfu/dfu_nand.c:dfu_fill_entity_nand() a new "partdropffs" ? string, and set a marker like for "partubi" the dfu->data.nand.ubi var, and use this marker, where you need it ... bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany ^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Question about dfu flash rootfs image 2013-10-14 5:43 ` Heiko Schocher @ 2013-10-14 6:46 ` Lukasz Majewski 2013-10-14 7:08 ` Bo Shen 1 sibling, 0 replies; 4+ messages in thread From: Lukasz Majewski @ 2013-10-14 6:46 UTC (permalink / raw) To: u-boot Hi Heiko, > There was a discussion, how to reorganize the dfu_alt_info var, see: > > http://lists.denx.de/pipermail/u-boot/2013-July/158920.html > > I think, your question fits into this thread ... I plan to present some initial idea for dfu_alt_info at ELCE u-boot mini summit, so any input is welcome :-). -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group ^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Question about dfu flash rootfs image 2013-10-14 5:43 ` Heiko Schocher 2013-10-14 6:46 ` Lukasz Majewski @ 2013-10-14 7:08 ` Bo Shen 1 sibling, 0 replies; 4+ messages in thread From: Bo Shen @ 2013-10-14 7:08 UTC (permalink / raw) To: u-boot Hi Heiko, On 10/14/2013 13:43, Heiko Schocher wrote: > Hello Bo, > > Am 12.10.2013 09:18, schrieb Bo Shen: >> Hi All, >> Now I am implementing DFU support on Atmel sama5d3xek board, when try >> to download rootfs image to NAND flash through DFU, we need to drop >> ffs from rootfs image. > > Do you use ubi or jffs2? I tested with both ubi and jffs2 in raw mode. >> In dfu_nand.c when it call nand_write_skip_bad() with flags as 0. >> However, I need to call nand_write_skip_bad() with flags at least with >> WITH_DROP_FFS set. >> >> Till now, I don't find any good solution to pass the parameter, except >> hard code it or through "#ifdef CONFIG_CMD_NAND_TRIMFFS" to set it. >> Any suggestions for it and any other solution? > > There was a discussion, how to reorganize the dfu_alt_info var, see: > > http://lists.denx.de/pipermail/u-boot/2013-July/158920.html > > I think, your question fits into this thread ... > > Currently, I think, you should add in > drivers/dfu/dfu_nand.c:dfu_fill_entity_nand() > > a new "partdropffs" ? string, and set a marker like for "partubi" > the dfu->data.nand.ubi var, and use this marker, where you need it ... OK, I will wait the final decision. Maybe for raw and ubi both need this option. > bye, > Heiko Best Regards, Bo Shen ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-14 7:08 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-10-12 7:18 [U-Boot] Question about dfu flash rootfs image Bo Shen 2013-10-14 5:43 ` Heiko Schocher 2013-10-14 6:46 ` Lukasz Majewski 2013-10-14 7:08 ` Bo Shen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox