디바이스 드라이버
Yaffs2 패치시 아래와 같은 에러가 발생할 경우에는 해결 방법입니다.
LD kernel/built-in.o
CC fs/yaffs2/yaffs_ecc.o
CC fs/yaffs2/yaffs_vfs.o
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_proc_read’:
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c:3253:37: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
"Multi-version YAFFS built:" __DATE__ " " __TIME__
^
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c:3253:50: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
"Multi-version YAFFS built:" __DATE__ " " __TIME__
^
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c: In function ‘init_yaffs_fs’:
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c:3604:54: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
"yaffs built " __DATE__ " " __TIME__ " Installing.");
^
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c:3604:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
"yaffs built " __DATE__ " " __TIME__ " Installing.");
^
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c: In function ‘exit_yaffs_fs’:
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c:3645:52: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
"yaffs built " __DATE__ " " __TIME__ " removing.");
^
/staff/P15-02xx_LG_BDMS/kernel/linux-3.14.26/fs/yaffs2/yaffs_vfs.c:3645:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
"yaffs built " __DATE__ " " __TIME__ " removing.");
^
cc1: some warnings being treated as errors
make[3]: *** [fs/yaffs2/yaffs_vfs.o] 오류 1
make[2]: *** [fs/yaffs2] 오류 2
make[1]: *** [fs] 오류 2
make: *** [sub-make] 오류 2
copy from image ../build_linux_3.14.26/arch/arm/boot/zImage to /tftpboot/zImage.am335x
copy from dtb ../build_linux_3.14.26/arch/arm/boot/dts/am335x-lgbdms.dtb to /tftpboot/am335x-lgbdms.dtb
root@kai-VPCCB17FK:linux-3.14.26# ./make_am335x.sh menuconfig
GEN /staff/P15-02xx_LG_BDMS/kernel/build_linux_3.14.26/Makefile
[해결 방법]
diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c index 894e185aa7b7..13de856f545a 100644 --- a/fs/yaffs2/yaffs_vfs.c +++ b/fs/yaffs2/yaffs_vfs.c @@ -3244,9 +3244,7 @@ static int yaffs_proc_read(char *page, /* Print header first */ if (step == 0) buf += - sprintf(buf, - "Multi-version YAFFS built:" __DATE__ " " __TIME__ - "\n"); + sprintf(buf, "Multi-version YAFFS\n"); else if (step == 1) buf += sprintf(buf, "\n"); else { @@ -3529,8 +3527,7 @@ static int __init init_yaffs_fs(void) int error = 0; struct file_system_to_install *fsinst; - yaffs_trace(YAFFS_TRACE_ALWAYS, - "yaffs built " __DATE__ " " __TIME__ " Installing."); + yaffs_trace(YAFFS_TRACE_ALWAYS, "yaffs Installing."); mutex_init(&yaffs_context_lock); @@ -3580,8 +3577,7 @@ static void __exit exit_yaffs_fs(void) struct file_system_to_install *fsinst; - yaffs_trace(YAFFS_TRACE_ALWAYS, - "yaffs built " __DATE__ " " __TIME__ " removing."); + yaffs_trace(YAFFS_TRACE_ALWAYS, "yaffs removing."); #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)) remove_proc_entry("yaffs", YPROC_ROOT); --