移植u-boot-2013.04的yaffs2到u-boot-2010.06

u-boot下載路徑
ftp://ftp.denx.de/pub/u-boot/

在u-boot-2010.06的總配置文件確保有 CONFIG_YAFFS2 的定義,這個是使能yaffs2功能
如 u-boot-2010.06/include/configs/pm9263.h
    最後增加1行:#define CONFIG_YAFFS2

替換
cp -rf u-boot-2013.04/common/cmd_yaffs2.c  u-boot-2010.06/common/cmd_yaffs2.c
rm -rf u-boot-2010.06/fs/yaffs2/
cp -rf u-boot-2013.04/fs/yaffs2/  u-boot-2010.06/fs/

fs/yaffs2/ydirectenv.h
    25行:<linux/compat.h>  ==>  <linux/mtd/compat.h>

fs/yaffs2/Makefile
    21行:libyaffs2.o  ==>  libyaffs2.a

 

編譯u-boot

 

接着參考這篇文章訪問文件系統的文件
《uboot中yaffs2命令使用》
https://blog.csdn.net/boysic/article/details/82153454

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章