Hello, I tried to test the linux-2.6.28-davinci1 (download from the http://source.mvista.com/git/) on my platform board. (my nand flash is NAND01GR3B2B: Manufacturer ID= 0x20,Device ID= 0xA1,Pages Per Block= 0x40.Number of Blocks= 0x400,Bytes Per Page= 0x800) and I found that the kernel scan nand flash rightly: ========= *davinci_nand davinci_nand.0: Warning: MUX config for NAND: Set PINMUX0 reg to 0x8000c01f, was 0x8000001f, should be done by bootloader. NAND device: Manufacturer ID: 0x20, Chip ID: 0xa1 (ST Micro NAND 128MiB 1,8V 8-bit) davinci_nand davinci_nand.0: Bad block scan: 0 out of 1024 blocks are bad. Creating 1 MTD partitions on "davinci_nand.0": 0x00a00000-0x08000000 : "NAND filesystem"* ========= but when I test the MVL Pro V4.0(linux-2.6.10) on my board, the kernel treat all the blocks of my nand flash as bad: ========= *NAND device: Manufacturer ID: 0x20, Chip ID: 0xa1 (ST Micro NAND 128MiB 1,8V 8-bit) Scanning device for bad blocks Bad eraseblock 0 at 0x00000000 Bad eraseblock 1 at 0x00020000 Bad eraseblock 2 at 0x00040000 Bad eraseblock 3 at 0x00060000 Bad eraseblock 4 at 0x00080000 Bad eraseblock 5 at 0x000a0000 Bad eraseblock 6 at 0x000c0000 Bad eraseblock 7 at 0x000e0000 Bad eraseblock 8 at 0x00100000 Bad eraseblock 9 at 0x00120000 Bad eraseblock 10 at 0x00140000 ……………………………………* *Bad eraseblock 1016 at 0x07f00000 Bad eraseblock 1017 at 0x07f20000 Bad eraseblock 1018 at 0x07f40000 Bad eraseblock 1019 at 0x07f60000 Bad eraseblock 1020 at 0x07f80000 Bad eraseblock 1021 at 0x07fa0000 Bad eraseblock 1022 at 0x07fc0000 Bad eraseblock 1023 at 0x07fe0000* ========= So could you tell me how to update the nand driver from linux-2.6.10 (MVL Pro4.0) to linux-2.6.28-davinci1? Maybe I could use the linux-2.6.28-davinci1 directly, but the linux2.6.28-davinci1 net driver is not suit for my MAC chip(Broadcom BCM5221): ========== *.......... davinci_init_emac: using random MAC addr: 2e:c0:34:3e:26:73 emac-mii: probed eth0: no PHY found IP-Config: Failed to open eth0 IP-Config: No network devices available. ...........* ===========
and I set the phy driver for my emac chip(Broadcom BCM5221)(use *make* * menuconfig* command): Device Drivers -> Network Device Support -> PHY Device support and infrastructure->Drivers for Broadcom PHYs and could you give me some suggestions to modified the source code of the net dirver of the linux-2.6.28-davinci1 for my MAC chip? Thank you! Zhang 2009/4/13 Philby John <[email protected]> > Hello Zhang, > > I think you need to change the option in struct > nand_davinci_platform_data nand_data, > .ecc_mode = NAND_ECC_SOFT, to use s/w ECC. > > Regards, > Philby > > > On Thu, 2009-04-09 at 10:33 +0800, shaofeng zhang wrote: > > Hi Johns, > > > > I had read your message from the email list, and I want to ask you > > some questions. > > > > Which version is your linux kernel? my linux kernel is MVL Pro > > V4.0(linux 2.6.10), and is yours same with me? > > How can I ensure my driver use the Software ECC? Should I set some > > tags or make some changes in the source code? > > > > Thank you! > > > > Zhang > > > > _______________________________________________ > > Davinci-linux-open-source mailing list > > [email protected] > > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > >
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
