도와주세요!!
글 수 15,339
2005.09.13 14:08:08 (*.100.236.1)
7004
저는 지금 EZ-X5 보드에 커널 2.6.10을 포팅 중에 있습니다. 그런데 nand flash 쪽이 잘 안되는군요...
일단 파일시스템은 yaffs로 지원하도록 커널을 세팅했구요... /proc에서 보면 아래와 같이 나옵니다.
cat /proc/yaffs
YAFFS built:Sep 13 2005 11:32:33
$Id: yaffs_fs.c,v 1.5 2005/04/29 07:01:18 charles Exp $
$Id: yaffs_guts.c,v 1.6 2005/04/24 09:57:06 charles Exp $
cat /proc/mtd
dev: size erasesize name
mtd0: 00200000 00004000 "EZ-X5 Kernel partition"
mtd1: 00800000 00004000 "EZ-X5 Ramdisk partition"
mtd2: 03600000 00004000 "EZ-X5 Data partition 0"
그리고 아래와 같이 mtdblock의 mtd2를 마운트 해보면 메시지가 주루룩 나오면서 마지막 줄에서 실패 했다고 나옵니다.
mount -t yaffs /dev/mtdblock/2 /mnt/nand
yaffs: dev is 32505858 name is "(unavailable)"
yaffs: Attempting MTD mount on 31.2, "(unavailable)"
yaffs: yaffs_GutsInitialise()
block 4 is bad
block 5 is bad
block 6 is bad
block 7 is bad
block 8 is bad
block 11 is bad
block 12 is bad
block 13 is bad
block 17 is bad
block 18 is bad
block 19 is bad
block 20 is bad
block 23 is bad
block 24 is bad
block 25 is bad
block 27 is bad
block 28 is bad
block 29 is bad
block 30 is bad
block 32 is bad
block 33 is bad
...
...
...
<중략>
...
...
...
block 704 is bad
block 705 is bad
block 706 is bad
block 707 is bad
block 708 is bad
block 709 is bad
block 710 is bad
block 711 is bad
block 712 is bad
block 713 is bad
block 714 is bad
block 715 is bad
block 716 is bad
block 717 is bad
block 718 is bad
block 719 is bad
block 720 is bad
nand_read_ecc: Failed ECC read, page 0x00005021
nand_read_ecc: Failed ECC read, page 0x00005021
**>>ecc error unfixed on chunk 33:0
**>>ecc error unfixed on chunk 33:1
**>>Block 1 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00005023
nand_read_ecc: Failed ECC read, page 0x00005023
**>>ecc error unfixed on chunk 35:0
**>>ecc error unfixed on chunk 35:1
**>>Block 1 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00005025
nand_read_ecc: Failed ECC read, page 0x00005025
**>>ecc error unfixed on chunk 37:0
**>>ecc error unfixed on chunk 37:1
**>>Block 1 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00005027
nand_read_ecc: Failed ECC read, page 0x00005027
**>>ecc error unfixed on chunk 39:0
**>>ecc error unfixed on chunk 39:1
**>>Block 1 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00005029
nand_read_ecc: Failed ECC read, page 0x00005029
**>>ecc error unfixed on chunk 41:0
**>>ecc error unfixed on chunk 41:1
**>>Block 1 marked for retirement
...
...
...
<중략>
...
...
...
nand_read_ecc: Failed ECC read, page 0x00006a01
nand_read_ecc: Failed ECC read, page 0x00006a01
**>>ecc error unfixed on chunk 6657:0
**>>ecc error unfixed on chunk 6657:1
**>>Block 208 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00009696
nand_read_ecc: Failed ECC read, page 0x00009696
**>>ecc error unfixed on chunk 18070:0
**>>ecc error unfixed on chunk 18070:1
**>>Block 564 marked for retirement
nand_read_ecc: Failed ECC read, page 0x0000a434
nand_read_ecc: Failed ECC read, page 0x0000a434
**>>ecc error unfixed on chunk 21556:0
**>>ecc error unfixed on chunk 21556:1
**>>Block 673 marked for retirement
nand_read_ecc: Failed ECC read, page 0x0000a43d
nand_read_ecc: Failed ECC read, page 0x0000a43d
**>>ecc error unfixed on chunk 21565:0
**>>ecc error unfixed on chunk 21565:1
**>>Block 673 marked for retirement
yaffs: yaffs_GutsInitialise() done.
mount: Mounting /dev/mtdblock/2 on /mnt failed: Not a directory
이게 어디에서 잘못된건지 알수가 없군요... 혹시 2.6버전에서 yaffs포팅하신 분은 도움좀 주세요....
그리고 강좌란에 사용자 팁에 2.6.9에서 포팅한 패치 파일은 다운이 되질 않는군요....
하여간 제가 방향을 잡을 수 있도록 도움 부탁드립니다...ㅠ.ㅠ
일단 파일시스템은 yaffs로 지원하도록 커널을 세팅했구요... /proc에서 보면 아래와 같이 나옵니다.
cat /proc/yaffs
YAFFS built:Sep 13 2005 11:32:33
$Id: yaffs_fs.c,v 1.5 2005/04/29 07:01:18 charles Exp $
$Id: yaffs_guts.c,v 1.6 2005/04/24 09:57:06 charles Exp $
cat /proc/mtd
dev: size erasesize name
mtd0: 00200000 00004000 "EZ-X5 Kernel partition"
mtd1: 00800000 00004000 "EZ-X5 Ramdisk partition"
mtd2: 03600000 00004000 "EZ-X5 Data partition 0"
그리고 아래와 같이 mtdblock의 mtd2를 마운트 해보면 메시지가 주루룩 나오면서 마지막 줄에서 실패 했다고 나옵니다.
mount -t yaffs /dev/mtdblock/2 /mnt/nand
yaffs: dev is 32505858 name is "(unavailable)"
yaffs: Attempting MTD mount on 31.2, "(unavailable)"
yaffs: yaffs_GutsInitialise()
block 4 is bad
block 5 is bad
block 6 is bad
block 7 is bad
block 8 is bad
block 11 is bad
block 12 is bad
block 13 is bad
block 17 is bad
block 18 is bad
block 19 is bad
block 20 is bad
block 23 is bad
block 24 is bad
block 25 is bad
block 27 is bad
block 28 is bad
block 29 is bad
block 30 is bad
block 32 is bad
block 33 is bad
...
...
...
<중략>
...
...
...
block 704 is bad
block 705 is bad
block 706 is bad
block 707 is bad
block 708 is bad
block 709 is bad
block 710 is bad
block 711 is bad
block 712 is bad
block 713 is bad
block 714 is bad
block 715 is bad
block 716 is bad
block 717 is bad
block 718 is bad
block 719 is bad
block 720 is bad
nand_read_ecc: Failed ECC read, page 0x00005021
nand_read_ecc: Failed ECC read, page 0x00005021
**>>ecc error unfixed on chunk 33:0
**>>ecc error unfixed on chunk 33:1
**>>Block 1 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00005023
nand_read_ecc: Failed ECC read, page 0x00005023
**>>ecc error unfixed on chunk 35:0
**>>ecc error unfixed on chunk 35:1
**>>Block 1 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00005025
nand_read_ecc: Failed ECC read, page 0x00005025
**>>ecc error unfixed on chunk 37:0
**>>ecc error unfixed on chunk 37:1
**>>Block 1 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00005027
nand_read_ecc: Failed ECC read, page 0x00005027
**>>ecc error unfixed on chunk 39:0
**>>ecc error unfixed on chunk 39:1
**>>Block 1 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00005029
nand_read_ecc: Failed ECC read, page 0x00005029
**>>ecc error unfixed on chunk 41:0
**>>ecc error unfixed on chunk 41:1
**>>Block 1 marked for retirement
...
...
...
<중략>
...
...
...
nand_read_ecc: Failed ECC read, page 0x00006a01
nand_read_ecc: Failed ECC read, page 0x00006a01
**>>ecc error unfixed on chunk 6657:0
**>>ecc error unfixed on chunk 6657:1
**>>Block 208 marked for retirement
nand_read_ecc: Failed ECC read, page 0x00009696
nand_read_ecc: Failed ECC read, page 0x00009696
**>>ecc error unfixed on chunk 18070:0
**>>ecc error unfixed on chunk 18070:1
**>>Block 564 marked for retirement
nand_read_ecc: Failed ECC read, page 0x0000a434
nand_read_ecc: Failed ECC read, page 0x0000a434
**>>ecc error unfixed on chunk 21556:0
**>>ecc error unfixed on chunk 21556:1
**>>Block 673 marked for retirement
nand_read_ecc: Failed ECC read, page 0x0000a43d
nand_read_ecc: Failed ECC read, page 0x0000a43d
**>>ecc error unfixed on chunk 21565:0
**>>ecc error unfixed on chunk 21565:1
**>>Block 673 marked for retirement
yaffs: yaffs_GutsInitialise() done.
mount: Mounting /dev/mtdblock/2 on /mnt failed: Not a directory
이게 어디에서 잘못된건지 알수가 없군요... 혹시 2.6버전에서 yaffs포팅하신 분은 도움좀 주세요....
그리고 강좌란에 사용자 팁에 2.6.9에서 포팅한 패치 파일은 다운이 되질 않는군요....
하여간 제가 방향을 잡을 수 있도록 도움 부탁드립니다...ㅠ.ㅠ