I'm working with a Lyrtech SFF SDR board, I have Linux running on the board using root over NFS. I boot the kernel from NAND flash. I have created three partitions in the flash, but when I flash_eraseall I wipe the kernel out of NAND. After I flash_eraseall I can mount a jgffs2 filesystem and create a filesystem as shown in:

http://linux.omap.com/pipermail/davinci-linux-open-source/2008-January/004858.html

Does anyone have any ideas? I've modified the evm board files to suit this board.

Philip


Here is the partition table in the board file:

struct mtd_partition davinci_evm_nandflash_partition[] = {
        {
                .name           = "Bootloader",
                .offset         = 0,
                .size           = 5 * SZ_128K,
                .mask_flags     = MTD_WRITEABLE,
        },

        {
                .name           = "Kernel",
                .offset         = MTDPART_OFS_APPEND,
                .size           = SZ_2M,
                .mask_flags     = MTD_WRITEABLE,
        },
        {
                .name           = "File System",
                .offset         = MTDPART_OFS_APPEND,
                .size           = MTDPART_SIZ_FULL,
                .mask_flags     = 0,
        }
};


Here is cat /proc/mtd:

[EMAIL PROTECTED]:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000a0000 00020000 "Bootloader"
mtd1: 00200000 00020000 "Kernel"
mtd2: 07d60000 00020000 "File System"
[EMAIL PROTECTED]:~#

I set the mtd debug level higher, here are seemingly related messages:

DaVinci NAND Controller rev. 2.1
Warning: NAND config: Set A1CR reg to 0x0432018c, was 0x0432229c, should be done by bootloader. NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 8-bit)
Bad block scan: 0 out of 1024 blocks are bad.
Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x000a0000 : "Bootloader"
mtd: Giving out device 0 to Bootloader
0x000a0000-0x002a0000 : "Kernel"
mtd: Giving out device 1 to Kernel
0x002a0000-0x08000000 : "File System"
mtd: Giving out device 2 to File System
mice: PS/2 mouse device common for all mice


[EMAIL PROTECTED]:~# flash_eraseall -j /dev/mtd2
MTD_open
MTD_ioctl
MTD_ioctl
MTD_ioctl
MTD_ioctl
Erasing 128 Kibyte @ 0 --  0 % MTD_ioctl
complete.MTD_ioctl
MTD_ioctl
ErasiMTD_ioctlritten at 0.
ng 128 Kibyte @ MTD_ioctl
20000 --  0 % coMTD_ioctl
mplete. Cleanmarker written at 2MTD_ioctl
Erasing 12MTD_ioctl
8 Kibyte @ 40000MTD_ioctl
 --  0 % complete. Cleanmarker wMTD_ioctl
ritten at 40000.MTD_ioctl
Erasing 128 KibMTD_ioctl
yte @ 60000 --  0 % complete. ClMTD_ioctl
eanmarker writteMTD_ioctl
ErasMTD_ioctl
ing 128 Kibyte @ 80000 --  0 % cMTD_ioctl
omplete. CleanmaMTD_ioctl
rker written at MTD_ioctl
Erasing 128 Kibyte @ a000MTD_ioctl
0 --  0 % compleMTD_ioctl
te. Cleanmarker MTD_ioctl
Erasing 128 KiMTD_ioctl
byte @ c0000 -- MTD_ioctl
 0 % complete. CMTD_ioctl
EraMTD_ioctlritten at c0000.
sing 128 Kibyte MTD_ioctl
@ e0000 --  0 % MTD_ioctl
complete. Cleanmarker written atMTD_ioctl
Erasing MTD_ioctl
128 Kibyte @ 100MTD_ioctl
000 --  0 % complete. CleanmarkeMTD_ioctl
r written at 100MTD_ioctl
Erasing 128MTD_ioctl
 Kibyte @ 120000 --  0 % completMTD_ioctl
e. Cleanmarker wMTD_ioctl
ritten at 120000MTD_ioctl
Erasing 128 Kibyte @ 140000 --MTD_ioctl
  0 % complete. MTD_ioctl
Cleanmarker writMTD_ioctl
Erasing 128 KibytMTD_ioctl
e @ 160000 --  1MTD_ioctl
 % complete. CleMTD_ioctl
ErasMTD_ioctlten at 160000.
ing 128 Kibyte @MTD_ioctl
 180000 --  1 % MTD_ioctl
complete. Cleanmarker written atMTD_ioctl
ErasingMTD_ioctl
 128 Kibyte @ 1aMTD_ioctl
0000 --  1 % complete. CleanmarkMTD_ioctl
er written at 1aMTD_ioctl
Erasing 12MTD_ioctl
8 Kibyte @ 1c0000 --  1 % compleMTD_ioctl
te. Cleanmarker MTD_ioctl
written at 1c000MTD_ioctl
Erasing 128 Kibyte @ 1e0000 -MTD_ioctl
-  1 % complete.MTD_ioctl
 Cleanmarker wriMTD_ioctl
Erasing 128 KibyMTD_ioctl
te @ 200000 --  MTD_ioctl
1 % complete. ClMTD_ioctl
EraMTD_ioctlitten at 200000.
sing 128 Kibyte MTD_ioctl
@ 220000 --  1 %MTD_ioctl
 complete. Cleanmarker written aMTD_ioctl
ErasinMTD_ioctl
g 128 Kibyte @ 2MTD_ioctl
40000 --  1 % complete. CleanmarMTD_ioctl
ker written at 2MTD_ioctl
Erasing 1MTD_ioctl
28 Kibyte @ 260000 --  1 % complMTD_ioctl
ete. CleanmarkerMTD_ioctl
 written at 2600MTD_ioctl
Erasing 128 Kibyte @ 280000 MTD_ioctl
--  1 % completeMTD_ioctl
. Cleanmarker wrMTD_ioctl
Erasing 128 KibMTD_ioctl
yte @ 2a0000 -- MTD_ioctl
 2 % complete. CMTD_ioctl
ErMTD_ioctlwritten at 2a0000.
asing 128 KibyteMTD_ioctl
 @ 2c0000 --  2 MTD_ioctl
% complete. Cleanmarker written MTD_ioctl
ErasiMTD_ioctl
ng 128 Kibyte @ MTD_ioctl
2e0000 --  2 % complete. CleanmaMTD_ioctl
rker written at MTD_ioctl
Erasing MTD_ioctl
128 Kibyte @ 300000 --  2 % compMTD_ioctl
lete. CleanmarkeMTD_ioctl
r written at 300MTD_ioctl
Erasing 128 Kibyte @ 320000MTD_ioctl
 --  2 % completMTD_ioctl
e. Cleanmarker wMTD_ioctl
Erasing 128 KiMTD_ioctl
byte @ 340000 --MTD_ioctl
  2 % complete. MTD_ioctl
Cleanmarker writMTD_ioctl
MTD_ioctl
MTD_ioctl
MTD_ioctl
MTD_ioctl
MTD_ioctl
MTD_ioctl
MTD_ioctl


.....

Erasing MTD_ioctl
128 Kibyte @ 790MTD_ioctl
0000 -- 96 % complete. CleanmarkMTD_ioctl
er written at 79MTD_ioctl
Erasing 1MTD_ioctl
28 Kibyte @ 7920000 -- 96 % compMTD_ioctl
lete. CleanmarkeMTD_ioctl
r written at 792MTD_ioctl
Erasing 128 Kibyte @ 79400MTD_ioctl
00 -- 96 % complMTD_ioctl
ete. CleanmarkerMTD_ioctl
Erasing 128MTD_ioctl
 Kibyte @ 796000MTD_close
Erasing 128 Kibyte @ 7d40000 -- 99 % complete. Cleanmarker written at 7d40000.
[EMAIL PROTECTED]:~#

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to