도와주세요!!
4G짜리 SDHC카드를 샀습니다.
그래서 리더기에 넣고,
#!/bin/sh
if [ -d /sys/bus/mmc/devices/mmc0:0260 ]; then
mknod /dev/mmcblk0 b 179 0
mknod /dev/mmcblk0p1 b 179 1
mount -t vfat /dev/mmcblk0p1 /mnt/mmc
fi
이런식으로 스크립트를 짜서 인식 시킨면,
FAT: Invalid FSINFO signature: 0xffffffff, 0xffffffff (sector = 1)
이런식의 에러를 발생하고
/mnt/mmc 에 아무 파일이나 디렉토리를 생성 하고 나면
mmcblk0: error -84 transferring data
mmc0: Unexpected interrupt 0x02000000.
mmcblk0: error -84 transferring data
라는 메시지를 발생시키고.. 수시로 발생시킵니다.
또한, umount를 시키면 맨 아래와 같은 에러 메시지를 발생 시킵니다..
다시 mount시키면 생성했던것들은 다 사라져있습니다..ㅠㅠ
왜 그런건가요..?
그리고,위에 mknod로 디바이스생성한이윤 메이저번호에맞는디바이스가 없어서 생성을 하였는데..
그것때문에 그런건가요..?ㅠㅠ
답변좀 꼭좀 부탁드립니다..
아참 그리고 df -k 해서 보면
/dev/mmcblk0p1 3947200 160 3947040 0% /mnt/mmc
이런식으로 인식은 되어있고,
fdisk -l /dev/mDisk /dev/mmcblk0: 4051 MB, 4051697664 bytes
mcblk0 로 보면 이렇습니다.
128 heads, 63 sectors/track, 981 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2 981 3951296 b Win95 FAT32
---------------umount 에러 발생 내용--------------
mmcblk0: error -84 transferring data
mmc0: Unexpected interrupt 0x02000000.
end_request: I/O error, dev mmcblk0, sector 16448
__ratelimit: 53 callbacks suppressed
Buffer I/O error on device mmcblk0p1, logical block 8256
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16449
Buffer I/O error on device mmcblk0p1, logical block 8257
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16450
Buffer I/O error on device mmcblk0p1, logical block 8258
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16451
Buffer I/O error on device mmcblk0p1, logical block 8259
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16452
Buffer I/O error on device mmcblk0p1, logical block 8260
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16453
Buffer I/O error on device mmcblk0p1, logical block 8261
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16454
Buffer I/O error on device mmcblk0p1, logical block 8262
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16455
Buffer I/O error on device mmcblk0p1, logical block 8263
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16456
Buffer I/O error on device mmcblk0p1, logical block 8264
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16457
Buffer I/O error on device mmcblk0p1, logical block 8265
lost page write due to I/O error on mmcblk0p1
end_request: I/O error, dev mmcblk0, sector 16458
end_request: I/O error, dev mmcblk0, sector 16459
end_request: I/O error, dev mmcblk0, sector 16460
end_request: I/O error, dev mmcblk0, sector 16461
end_request: I/O error, dev mmcblk0, sector 16462
end_request: I/O error, dev mmcblk0, sector 16463
end_request: I/O error, dev mmcblk0, sector 16464
end_request: I/O error, dev mmcblk0, sector 16465
end_request: I/O error, dev mmcblk0, sector 16466
end_request: I/O error, dev mmcblk0, sector 16467
end_request: I/O error, dev mmcblk0, sector 16468
end_request: I/O error, dev mmcblk0, sector 16469
end_request: I/O error, dev mmcblk0, sector 16470
end_request: I/O error, dev mmcblk0, sector 16471
end_request: I/O error, dev mmcblk0, sector 16472
end_request: I/O error, dev mmcblk0, sector 16473
end_request: I/O error, dev mmcblk0, sector 16474
end_request: I/O error, dev mmcblk0, sector 16475
end_request: I/O error, dev mmcblk0, sector 16476
end_request: I/O error, dev mmcblk0, sector 16477
end_request: I/O error, dev mmcblk0, sector 16478
end_request: I/O error, dev mmcblk0, sector 16479
end_request: I/O error, dev mmcblk0, sector 16480
end_request: I/O error, dev mmcblk0, sector 16481
end_request: I/O error, dev mmcblk0, sector 16482
end_request: I/O error, dev mmcblk0, sector 16483
end_request: I/O error, dev mmcblk0, sector 16484
end_request: I/O error, dev mmcblk0, sector 16485
end_request: I/O error, dev mmcblk0, sector 16486
end_request: I/O error, dev mmcblk0, sector 16487
end_request: I/O error, dev mmcblk0, sector 16488
end_request: I/O error, dev mmcblk0, sector 16489
end_request: I/O error, dev mmcblk0, sector 16490
end_request: I/O error, dev mmcblk0, sector 16491
end_request: I/O error, dev mmcblk0, sector 16492
end_request: I/O error, dev mmcblk0, sector 16493
end_request: I/O error, dev mmcblk0, sector 16494
end_request: I/O error, dev mmcblk0, sector 16495
end_request: I/O error, dev mmcblk0, sector 16496
end_request: I/O error, dev mmcblk0, sector 16497
end_request: I/O error, dev mmcblk0, sector 16498
end_request: I/O error, dev mmcblk0, sector 16499
end_request: I/O error, dev mmcblk0, sector 16500
end_request: I/O error, dev mmcblk0, sector 16501
end_request: I/O error, dev mmcblk0, sector 16502
end_request: I/O error, dev mmcblk0, sector 16503
end_request: I/O error, dev mmcblk0, sector 16504
end_request: I/O error, dev mmcblk0, sector 16505
디바이스가 거기에도 있었군요..;; 전 제가 생성해야되는지 알았어요.ㅎㅎ;
근데 리더기에 SD를 넣고 다음 과 같이 명령어를 치니깐 인식이 안되는것 같아요..ㅠㅠ;
[root@falinux mnt]$ fdisk -l /dev/block/mmcblk0p1
Disk /dev/block/mmcblk0p1: 4046 MB, 4046127104 bytes
4 heads, 16 sectors/track, 123478 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device Boot Start End Blocks Id System
디바이스 부트 부터 하나도 안나와요.ㅠㅠ;
혹시 제가 쓰고있는 SDHC 형식은 지원하지 않는건가요..?
먼저, EZ-S3C6410은 이미 SD카드 드라이버가 포함되어 있습니다.
꼽는 순간 디텍팅 메시지를 보실수 있는 것은 이미 그 드라이버가 돌아가면서 카드를 디텍팅 했기 때문인데요, 지금 보니 직접 디바이스를 등록하셨네요.
충돌이 날수 있겠죠?
그냥 SD카드를 꼽고 나서
$ mount -t vfat /dev/block/mmcblk0p1 /mnt/mmc
이라고 명령을 넣으시면 SD 카드가 마운트가 됩니다.
/mnt/mmc 디렉토리 가시면 보실 수 있겠죠?
작업을 다 마친 뒤에는 umount 를 해주셔야 합니다.
$ umount /mnt/mmc
언마운트를 해주지 않으면 카드를 꼽았을 때 end_request: I/O error, dev mmcblk0, sector 16505 이런 메시지를 만나게 되는 것이지요.
이 메시지가 뜬것도 EZ-S3C6410의 SD카드 드라이버가 디바이스를 인식했는데 알수없게 제거되어서 나는 겁니다.