mtd->size overflow

Vinit Agnihotri vinit.agnihotri at gmail.com
Wed Aug 29 03:40:15 EDT 2007


I dont mind giving out patch
but its about making mtd subsytem 64-bit,
so mtd-maintainers must allow that patch. As its kernel patch.

--vinit

On 8/29/07, He Yong <hoffer1127 at gmail.com> wrote:
> hi,Vinit
>   can you give a patch fro that?  Thanks a lot!
>
> -- He Yong
>
> 2007/8/29, Vinit Agnihotri <vinit.agnihotri at gmail.com>:
> > I had same problem,
> > I converted entire mtd sunsytem to work with 64-bit compatibility.
> > You have make fields from mtd_info, erase_info & 2 more structures to 64-bits
> > these fields are size, offset & similar ones...
> >
> > --vinit
> >
> > On 8/29/07, He Yong <hoffer1127 at gmail.com> wrote:
> > > Hi,
> > >   I'm using two 2G Bbyte nand flash chip (totally 4GB) under kernel 2.6.20.4,
> > > the   chip->chipsize=0x80000000, and when decide the mtd->size = 2 *
> > > 0x80000000 = 0x00000000 (overflowed).
> > > is there an official way to solve this problem?
> > >
> > > Thanks!!
> > >
> > > --
> > > Best Regards!
> > >
> > > He Yong
> > >
> > > School of Information Security,
> > > Shanghai Jiaotong University,
> > > Dong chuan Road #800,
> > > Minhang, Shanghai, P.R.China
> > >
> > > ______________________________________________________
> > > Linux MTD discussion mailing list
> > > http://lists.infradead.org/mailman/listinfo/linux-mtd/
> > >
> >
> >
> > --
> > I feel free now
> >
>
>
> --
> Best Regards!
>
> He Yong
>
> School of Information Security,
> Shanghai Jiaotong University,
> Dong chuan Road #800,
> Minhang, Shanghai, P.R.China
>


-- 
I feel free now



More information about the linux-mtd mailing list