2014-09-22 3 views
0

검은 색 글씨에 mmc 글자가 새겨 져 있습니다.uboot mmc 비글 보드에 검은 색 글자를 쓰십시오.

U-Boot# usb start 
(Re)start USB... 
USB0: scanning bus 0 for devices... 1 USB Device(s) found 
     scanning usb for storage devices... 1 Storage Device(s) found 
U-Boot# fatload usb 0 ${loadaddr} ${rootfs_file} 
reading rootfs.ext4 
18742272 bytes read in 12384 ms (1.4 MiB/s) 
U-Boot# mmc dev 1 
switch to partitions #0, OK 
mmc1(part 0) is current device 
U-Boot# mmc part 

Partition Map for MMC device 1 -- Partition Type: DOS 

Part Start Sector Num Sectors  UUID   Type 
    1  63    1028097   00000000-01  0c Boot 
    2  1028160   1028160   00000000-02  83 
    3  2056320   1686825   00000000-03  83 
U-Boot# mmc dev 1 2 
switch to partitions #2, OK 
mmc1(part 2) is current device 
U-Boot# mmc write $loadaddr 0x0 0x20000 

MMC write: dev # 1, block # 0, count 131072 ... MMC: block number 0xffff exceeds max(0x800) 
0 blocks written: ERROR 

왜 : 여기

문제인가? 파티션 2 64메가바이트

또한

U-Boot# mmc info 
Device: OMAP SD/MMC 
Manufacturer ID: fe 
OEM: 14e 
Name: MMC02 
Tran Speed: 52000000 
Rd Block Len: 512 
MMC version 4.41 
High Capacity: No 
Capacity: 1 MiB <=== ??? WHY ??? 
Bus Width: 4-bit 

주셔서 감사합니다 replys

프레드

답변

1

AFAIK "MMC 쓰기"에 대한 있어야하는데하면 MMC 장치에 원시 쓰기를 수행한다. 파일 시스템을 통한 쓰기는 수행하지 않습니다. 대부분의 파일 시스템 액세스 명령에는 "쓰기"지원이 없습니다. ext4만이 "쓰기"작업을하는 것 같습니다 (그러나 나는 이것을 개인적으로 테스트하지 않았습니다).

수행 한 "mmc 쓰기"가 아마도 MMC 파티션 테이블을 덮어 썼을 것입니다.

+0

안녕하세요. 파티션 테이블이 저장된 위치는 어디입니까? 파티션 테이블에 대한 오프셋이 있습니까? – ransh