还是不行,期间报出了一堆警告。xt2fs.c: In function 'ext2fs_format':
ext2fs.c:1050:2: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'ulong'
ext2fs.c:1050:2: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'ulong'
ext2fs.c:1560:16: warning: assignment from incompatible pointer type
ext2fs.c:1584:16: warning: assignment from incompatible pointer type
ext2fs.c:1597:16: warning: assignment from incompatible pointer type
ext2fs.c:1646:17: warning: assignment from incompatible pointer type
ext2fs.c:1651:17: warning: assignment from incompatible pointer type
ext2fs.c:1699:9: warning: assignment from incompatible pointer type
ext2fs.c:1705:9: warning: assignment from incompatible pointer type
ext2fs.c:1791:9: warning: assignment from incompatible pointer type
ext2fs.c:1834:10: warning: assignment from incompatible pointer type
ext2fs.c:1970:7: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
ext2fs.c:1983:9: warning: assignment from incompatible pointer type
ext2fs.c:1240:12: warning: unused variable 'default_used_blk'
ext2fs.c:1239:12: warning: unused variable 'normal_used_blk'
ext2fs.c:1433:13: warning: 'temp_val' may be used uninitialized in this function
ext2fs.c:1840:13: warning: 'temp_val' may be used uninitialized in this function
ext2fs.c:1059:11: warning: 'uuid[0]' may be used uninitialized in this function
ext2fs.c:1059:11: warning: 'uuid[1]' may be used uninitialized in this function
ext2fs.c:1059:11: warning: 'uuid[2]' may be used uninitialized in this function
ext2fs.c:1059:11: warning: 'uuid[3]' may be used uninitialized in this function
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -I/home/uboot/uboot_tiny4412/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector \
-o dev.o dev.c -c
arm-linux-ld -r -o libext2fs.o ext2fs.o dev.o
make[1]: Leaving directory `/home/uboot/uboot_tiny4412/fs/ext2'
make -C fs/fat/
make[1]: Entering directory `/home/uboot/uboot_tiny4412/fs/fat'
arm-linux-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -I/home/uboot/uboot_tiny4412/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector \
-o fat.o fat.c -c
In file included from fat.c:36:0:
/home/uboot/uboot_tiny4412/include/fat.h:194:1: warning: function declaration isn't a prototype
fat.c: In function 'fat_register_device':
fat.c:142:2: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'ulong'
fat.c:142:2: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'ulong'
fat.c: In function 'write_pbr':
fat.c:168:2: warning: implicit declaration of function 'malloc'
fat.c:168:6: warning: assignment makes pointer from integer without a cast
fat.c:255:2: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
fat.c:164:6: warning: unused variable 'reserved_cnt'
fat.c: In function 'write_reserved':
fat.c:297:6: warning: assignment makes pointer from integer without a cast
fat.c:296:6: warning: unused variable 'i'
fat.c: In function 'write_fat':
fat.c:339:6: warning: assignment makes pointer from integer without a cast
fat.c:347:8: warning: assignment makes pointer from integer without a cast
fat.c:356:6: warning: unused variable 'temp'
fat.c: In function 'mklabel':
fat.c:403:2: warning: implicit declaration of function '__toupper'
fat.c: In function 'fat_format_device':
fat.c:452:2: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'ulong'
fat.c:452:2: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'ulong'
fat.c: At top level:
fat.c:398:1: warning: 'mklabel' defined but not used
fat.c: In function 'read_bootsectandvi':
fat.c:1093:18: warning: array subscript is above array bounds