Re: spi-nand: how to store environment with badblock handling in qspi nand

2022-06-27 Thread Kegl Rohit
On Sun, Jun 26, 2022 at 2:02 AM Daniel Golle wrote: > > On Sat, Jun 25, 2022 at 10:10:08AM +0200, Kegl Rohit wrote: > > Hello! > > > > Is it possible to store the environment inside a mtd partition when > > using a single qspi nand chip as storage? > > CONFIG_M

spi-nand: how to store environment with badblock handling in qspi nand

2022-06-25 Thread Kegl Rohit
Hello! Is it possible to store the environment inside a mtd partition when using a single qspi nand chip as storage? CONFIG_MTD_SPI_NAND=y The idea is to separate the NAND into two system A/B. 1.Solution: mtdparts_nand0=2m(uboot),16m(system) system will be an ubifs containing env+env_redundant

How to use TPM in u-boot for Secure Boot?

2020-05-14 Thread ROHIT YADAV
How can I use TPM in u-boot for secure boot ? U-Boot has TPM support and it provide some driver support and commands. I have enabled TPM support in u-boot. But I don't know how to use it ? Have anybody used TPM in uboot ? -- Sent from: http://u-boot.10912.n7.nabble.com/

[U-Boot] How to find latest stable uboot version currently.

2014-07-21 Thread Rohit Jindal
Is it Apr,2014 Thanks , Rohit ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 1/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-09 Thread Rohit Hagargundgi
Currently OneNAND initial program loader (ipl) reads only block 0 ie 128KB. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read CONFIG_SYS_MONITOR_LEN. CONFIG_SYS_MONITOR_LEN macro holds the U-Boot image size. Signed-off-by: Rohit

[U-Boot] [PATCH 2/2] Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN

2009-03-09 Thread Rohit Hagargundgi
Add CONFIG_SYS_MONITOR_LEN macro to apollon board config. CONFIG_SYS_MONITOR_LEN defines the U-Boot image size. and is used by OneNAND ipl when reading U-Boot image. Signed-off-by: Rohit Hagargundgi --- include/configs/apollon.h |1 + 1 file changed, 1 insertion(+) diff --git a/include

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-03-09 Thread Rohit Hagargundgi
Currently OneNAND initial program loader (ipl) reads only block 0. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read 256KB. Signed-off-by: Rohit Hagargundgi --- include/configs/apollon.h |1 + onenand_ipl/onenand_read.c | 27

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-03-07 Thread Rohit Hagargundgi
page = 0; >>} >> >>return 0; > > NAK, please use previous one as I sent. > In Flex-OneNAND block 0 has 256KiB. need to handle at here how many > blocks are needed. this is taken care above. > I also want to use CONFIG_ONENAND_END_BLOCK since we don't know which > OneNAND or Flex-OneNAND are attached to apollon board. okay. but why not use a variable instead. Thanks, Rohit ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 4/4] Flex-OneNAND boundary setting command

2009-03-07 Thread Rohit Hagargundgi
On Thursday 11 December 2008 19:57:53 Rohit Hagargundgi wrote: > Add command for changing Flex-OneNAND SLC / MLC boundary. > Also onenand commands work for Flex-OneNAND. Signed-off-by: Rohit Hagargundgi --- common/cmd_onenand.c

Re: [U-Boot] [PATCH v2 3/4] JFFS2 commands support for Flex-OneNAND

2009-03-07 Thread Rohit Hagargundgi
On Thursday 11 December 2008 19:57:42 Rohit Hagargundgi wrote: > Add sanity check for the partitions. > Some special cases handled by the check are: > - A partition can span across erase regions. > - A region can have odd number of blocks. Signed-off-by: Rohit Hagargund

Re: [U-Boot] [PATCH v2 2/4] Environment support for Flex-OneNAND

2009-03-07 Thread Rohit Hagargundgi
On Thursday 11 December 2008 19:57:34 Rohit Hagargundgi wrote: > Define and use CONFIG_ENV_ADDR_FLEX and CONFIG_ENV_SIZE_FLEX > for storing environment variables. > Signed-off-by: Rohit Hagargundgi --- common/env_onenand.c | 10 ++ include/configs/apollon.h |2 ++

Re: [U-Boot] [PATCH v2 1/4] Flex-OneNAND driver

2009-03-07 Thread Rohit Hagargundgi
Hi, Sorries for the delay On Tuesday 16 December 2008 03:14:22 Scott Wood wrote: > On Thu, Dec 11, 2008 at 07:57:18PM +0530, Rohit Hagargundgi wrote: > > This patch adds support for MLC OneNAND and Flex-OneNAND devices. > > Patch does not apply to u-boot-nand-flash/next (the m

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-03-04 Thread Rohit Hagargundgi
Hi, Here is the updated patch. Thanks, Rohit Signed-off-by: Rohit Hagargundgi --- include/configs/apollon.h |1 + onenand_ipl/onenand_read.c | 27 --- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/include/configs/apollon.h b/include/configs

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-02-26 Thread Rohit Hagargundgi
onment block is affected by larger ipl size. I will repost as per comments. Thanks and regards, Rohit ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-02-26 Thread Rohit Hagargundgi
offset += pagesize; >> -} >> +for (page = ONENAND_START_PAGE; block < nblocks; page = 0, block++) > please add the {} and move the page = 0 to the second 'for' it will be easier > to read and understand okay. Thanks, Rohit ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] Fix OneNAND ipl to read 256KB

2009-02-25 Thread Rohit Hagargundgi
Currently OneNAND initial program loader (ipl) reads only block 0. However, u-boot image for apollon board is 195KB making the board unbootable with OneNAND. Fix ipl to read 256KB. Signed-off-by: Rohit Hagargundgi --- onenand_ipl/onenand_ipl.h |1 + onenand_ipl/onenand_read.c | 29

[U-Boot] [PATCH 3/3] Create bad block aware partition table

2008-12-11 Thread Rohit Hagargundgi
. The new partition table is stored in environment variable 'newmtdparts'. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_onenand.c | 151 ++ 1 files changed, 151 insertions(+), 0 deletions(-) diff --git a/com

[U-Boot] [PATCH 2/3] Add partition based OneNAND commands

2008-12-11 Thread Rohit Hagargundgi
make 'partition' as last SLC partition. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_onenand.c | 259 ++ 1 files changed, 259 insertions(+), 0 deletions(-) diff --git a/common/cmd_onenand.c b/common/cmd

[U-Boot] [PATCH 1/3] Bad block support for environment variables partition in OneNAND

2008-12-11 Thread Rohit Hagargundgi
partition. If this block goes bad, the successive block is used to store environment variables. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- env_onenand.c | 112 +- 1 file changed, 87 insertions(+), 25 deletions(-) diff -

[U-Boot] [PATCH 0/3] Bad blocks and Partition support for OneNAND / Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Hi, The following patches improve partitioning and bad block support for OneNAND / Flex-OneNAND devices. The idea is to be able to use U-Boot as a utility to write images to flash. Any comments are much appreciated. Thanks, Rohit ___ U-Boot mailing

[U-Boot] [PATCH v2 4/4] Flex-OneNAND boundary setting command

2008-12-11 Thread Rohit Hagargundgi
Add command for changing Flex-OneNAND SLC / MLC boundary. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_onenand.c | 65 +++--- 1 files changed, 56 insertions(+), 9 deletions(-) diff --git a/common/cmd_onenand.c b/

[U-Boot] [PATCH v2 3/4] JFFS2 commands support for Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Add sanity check for the partitions. Some special cases handled by the check are: - A partition can span across erase regions. - A region can have odd number of blocks. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_jffs2.c

[U-Boot] [PATCH v2 2/4] Environment support for Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Define and use CONFIG_ENV_ADDR_FLEX and CONFIG_ENV_SIZE_FLEX for storing environment variables. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/env_onenand.c | 10 ++ include/configs/apollon.h |2 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH v2 1/4] Flex-OneNAND driver

2008-12-11 Thread Rohit Hagargundgi
). 3. A single device is registered for Flex-OneNAND. This device has erase regions. Each erase region has different block size (either SLC or MLC). 4. 4 ECC registers. 5. LSB page recovery feature. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTEC

[U-Boot] [PATCH v2 0/4] Flex-OneNAND support

2008-12-11 Thread Rohit Hagargundgi
more readable. patch 1 : Flex-OneNAND driver patch 2 : Environment support for Flex-OneNAND patch 3 : JFFS2 commands support for Flex-OneNAND patch 4 : Flex-OneNAND boundary setting command Any comments are appreciated. Thanks, Rohit ___ U-Boot mailing

Re: [U-Boot] [PATCH] Flex-OneNAND driver

2008-11-02 Thread Rohit
rt the result? > > It's almost done and wait to merge into MTD tree. > As I mentioned. First merge MTD tree and then U-Boot tree. > >> At least, I'd like Kyungmin Park's ack for OneNAND stuff. > > Basically I acked this patch. I'll repost aft

Re: [U-Boot] [PATCH] Flex-OneNAND driver

2008-10-24 Thread Rohit
hrough 'onenand setboundary' command. >> >> Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> > > Sorry for the late reply... > >> extern struct mtd_info onenand_mtd; >> extern struct onenand_chip onenand_chip; >> +loff_t flexonenand_get_a

Re: [U-Boot] [PATCH] Flex-OneNAND driver

2008-10-16 Thread Rohit
instr.len <<= onenand_mtd.eraseregions[0].numblocks == 1 ? >> + 1 : 0; >> + } >> > > Ditto. > I don't get alternative than to use CONFIG_ENV_SIZE_FLEX to store size of environment variables partition. Can you please elaborate. Regards, Rohit ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot