惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
NISL@THU
NISL@THU
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
K
Kaspersky official blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
S
Schneier on Security
G
GRAHAM CLULEY
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
爱范儿
爱范儿
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
S
Securelist
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
美团技术团队
F
Fortinet All Blogs
小众软件
小众软件
Recorded Future
Recorded Future
V
Visual Studio Blog
B
Blog RSS Feed
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
Latest news
Latest news
Spread Privacy
Spread Privacy
H
Heimdal Security Blog

博客园 - will not update

汇编----串操作类指令 自己动手写操作系统(三) 自己动手写操作系统(二) 自己动手写操作系统(一) 讲解Linux下汇编语言的几篇文章 cs8900a驱动移植笔记 LCD驱动程序往2.6.11内核的移植总结 基于Linux2.6的YAFFS文件系统移植 Linux操作系统网络驱动程序编写 ramdisk+busybox howto 编译busybox支持嵌入式系统需要注意的几点 用MINICOM的XMODEM来传输文件 2.6.12内核移植到s3c2410需注意的几点 port linux 2.6.11.7 kernel to s3c2410(SMDK2410) 安装FC4的“Less than 4MB of memory”问题解决 fedora core 3 安装 用Cisco router 做内部局域网 支持Netfilter的Linux以太网桥的建立 Linux操作系统下C语言编程入门
add yaffs fs to kernel
will not update · 2005-06-27 · via 博客园 - will not update

add yaffs fs support in kernel and make yaffs rootfs
1 preparation
  a>download yaffs source code and add it in your kernel source code in fs/yaffs
    http://husaberg.toby-churchill.com/balloon/linux-2.6.8.1-tcl1/fs/yaffs
    modify fs/Kconfig , add following option
    config YAFFS_FS
        tristate "YAFFS filesystem support"
        depends on MTD_NAND
       help
        If you want YAFFS support on NAND flash devices you either need to have
        NAND mtd support or customise the NAND interface.
        YAFFS is a journaling filesystem tailored to the idiosyncrasies of
        NAND flash memory. For further details see
        YAFFS is also available as a module ( = code which can be
        i nserted in and removed from the running kernel whenever you want).
        The module is called nfsd. If you want to compile it as a module,
        say M here and read . If unsure,
        say N.

        config CRAMFS
        tristate "Compressed ROM file system support (cramfs)"
        ...

  b>download nandwrite.c , nanddump.c and eraseall.c from
      ftp://166.111.68.183/pub/embed/uclinux/soft/uClinux-dist/user/mtd-utils/
        compile them.
        arm-linux-gcc nandwrite.c -o nandwrite
        arm-linux-gcc nanddump.c -o nanddump
        arm-linux-gcc eraseall.c -o eraseall

  c>modify devs.c to add a new partition in mtd (optional) , the yaffs will be in the"yaffs" partition
    like:
    {
        name: "user",
        size: 0x00c00000,
        offset: 0x00400000,
        mask_flags: MTD_WRITEABLE,
    }, {
        name: "yaffs",
        size: 0x02000000,
        offset: 0x01000000,
        mask_flags: MTD_WRITEABLE,
    }
    ......
    nr_partitions: 6 ,

    note: if you do so, the bootloader(vivi)'s partition table should be changed too.(part del/add)
2 compile your kernel
3 make yaffs partition
    a>make yaffs image
        download mkyaffsimage from http://husaberg.toby-churchill.com/balloon/releases/v0.7/roots/
        put your files in temp directory
        ./mkyaffsimage temp temp.yaffs
    b>write image to flash
        ./eraseall /dev/mtd/5
        ./nandwrite /dev/mtd/5 temp.yaffs 16384
    note:I've read the source code of yaffs, and find that the first block is not scaned when the super block is loaded. So             your image should be write to the second block.
            Each block is 512*32 (BYTESPERCHUNK*CHUNKSPERBLOCK) bytes.
4 Good luck.....

From:http://superlp.blogchina.com/superlp/1528758.html