On Monday 19 March 2012 12:09:49 Bud Miljkovic wrote: > Charles > > I looked at where I could set the startBlock and endBlock (btw - > start_block and end_block are used in cmd_onenand.c) and I saw that in > yaffscfg.c (flashDev->startBlock = 0; for yaffsVersion == 2). > > Is this the place do change flashDev->endBlock = nBlocks - 1; to > flashDev->endBlock = N - 1, where N desired number of blocks?
Yes, that's the stuff to modify. It might even make sense to add u-boot commands to set these. > > Also, do you have or can point me to a comprehensive YAFFS2 commands > document? I have never used yaffs in u-boot myself. have a look at the commands for the yaffs code. > > Bud > > > -----Original Message----- > > From: Charles Manning [mailto:mannin...@actrix.gen.nz] > > Sent: Thursday, 15 March 2012 6:24 a.m. > > To: Bud Miljkovic > > Cc: u-boot@lists.denx.de > > Subject: Re: [U-Boot] Enabling nand createbbt command > > > > On Wednesday 14 March 2012 17:00:58 Bud Miljkovic wrote: > > > Charles > > > > > > That is interesting. Any clue how to configure the start and end > > > > blocks > > > > > manually? > > > > Yes I do since I wrote yaffs :-). > > > > Set the statrt_block and end_block (might be startBlock and endBlock) > > values > > as needed BEFORE the mount/init happens. > > > > In a "normal" situation with mtd partitioning these are set to 0 and > > n-blocks-in-partition -1, but they can be set manually too. > > > > -- Charles > > > > > Bud > > > > > > > -----Original Message----- > > > > From: Charles Manning [mailto:mannin...@actrix.gen.nz] > > > > Sent: Monday, 12 March 2012 8:20 a.m. > > > > To: Bud Miljkovic > > > > Cc: u-boot@lists.denx.de > > > > Subject: Re: [U-Boot] Enabling nand createbbt command > > > > > > > > Bud > > > > > > > > Yaffs can work without mtdpart. To do that you just need to > > > > configure > > > > > > the > > > > start and end blocks manually instead of using the partition info > > > > to > > > > > do > > > > > > > this. > > > > > > > > On Friday 09 March 2012 13:58:48 Bud Miljkovic wrote: > > > > > Thank you Scott and Fabio, > > > > > > > > > > You help is much appreciated. > > > > > > > > > > I will try to add the nand support for mx53 mainline. > > > > > > > > > > However, what I am trying to do is to build a u-boot that > > > > supports > > > > > > NAND > > > > > > > > > and have YAFFS2 as well and at moment I use the mx53_ard board > > > > since > > > > > > > this is very close to what my custom board will be. I was able > > > > to > > > > > > build > > > > > > > > > such a version, using Freescale u-boot sources, which included > > > > nand > > > > > > > subsystem, and yaffs commands. Then I needed to create > > > > partitions > > > > > in > > > > > > > > the nand and this is where i "discovered" I needed the support > > of > > > > > > mtdparts command. > > > > > > > > > > So I, guess, I need to configure the u-boot for mtdparts > > support. > > > > > This > > > > > > > > > is where I am at. > > > > > > > > > > -Bud > > > > > > > > > > > -----Original Message----- > > > > > > From: Scott Wood > > > > > > Sent: Friday, 9 March 2012 12:04 p.m. > > > > > > To: Bud Miljkovic > > > > > > Cc: Fabio Estevam; > > > > > > > > > > > > Subject: Re: [U-Boot] Enabling nand createbbt command > > > > > > > > > > > > I do expect mainline is better maintained and supported, > > except > > > > for > > > > > > > > > missing particular features/hardware support that nobody ever > > > > > > > > bothered > > > > > > > > > > to submit to mainline -- which in this case appears to be > > > > hardware > > > > > > > > that you care about, so unless you're prepared to do a fair > > bit > > > of > > > > > > > > work to add support to mainline, I'd try again to find a > > > > support > > > > > > > > channel for your Freescale-provided U-Boot. Or maybe we could > > > > > > help > > > > > > > > > you figure out what it is you want to do, instead of > > scrubbing, > > > if > > > > > > the > > > > > > > > > > answer doesn't depend on details of a non-standard U-Boot. > > > > > > > > > > > > Oh, and if you're curious about my freescale.com e-mail > > > > address, I > > > > > > > > work in a different part of the company and don't have i.MX > > > > > > > > knowledge > > > > > > > > > > or contacts. > > > > > > > > > > > > -Scott > > > > > > > > > > _______________________________________________ > > > > > U-Boot mailing list > > > > > U-Boot@lists.denx.de > > > > > http://lists.denx.de/mailman/listinfo/u-boot _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot