QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: jackzheng2002

ARMLinux-S3C2410-YAFFS 开发档案

[复制链接]
 楼主| 发表于 2005-5-5 11:04:08 | 显示全部楼层
[quote:3a1efd1b06="xsnice"]2410升级到内核2.6.11的yaffs只要做很小的改动就可以使用了.[/quote]

具体点呢,你是怎么改的?
谢谢!
回复

使用道具 举报

发表于 2005-5-8 10:53:14 | 显示全部楼层
我已经 把 附件 发到你的邮箱里面了  大家 有没有 详细的 说明资料 或者 流程 给大家共享一下  谢谢 各位
回复

使用道具 举报

发表于 2005-5-9 08:33:06 | 显示全部楼层
我也需要,这方面资料,,
给我一份吧,
或者,用附件贴到这里,我也下一份

我用的实验室以前买的板子,有一个做好YAFFS的根文件系统(不是卖板子提供的)。
不过,实验室的人告诉我,下到板子上,屏幕校正通不过(板子用的触摸屏,QTOPIA+LINUX)。我又不知道,改哪儿?怎么改??

有兄弟指点一下吗,,详细一点,,发到我邮箱最好啦,,谢谢啦

现在,用的根文件系统是CRAMFS的,不能写,很麻烦。因为,我嵌入了数据库,所以需要可写的根文件系统。

谢谢大家帮帮小弟,,毕设时间不多啦!!!急啊

如果你们要看看那个YAFFS的根文件系统,我可以传给你们,有20多M,所以放不上来吧。可以,QQ联系(注明理由)
-----------connect-----------------------
QQ: 31911030
E-MAIL:[email protected]
回复

使用道具 举报

 楼主| 发表于 2005-5-10 08:51:08 | 显示全部楼层
[quote:6af7bb87b0="redfoxlinux"]我已经 把 附件 发到你的邮箱里面了  大家 有没有 详细的 说明资料 或者 流程 给大家共享一下  谢谢 各位[/quote]
没有收到阿,麻烦再发一次看看。。。。
[email protected]

我也在弄!
我的cramfs可以了。
回复

使用道具 举报

发表于 2005-5-11 08:53:54 | 显示全部楼层
我也要
回复

使用道具 举报

 楼主| 发表于 2005-6-3 12:24:24 | 显示全部楼层
下一步需要完成的工作:
video、usb等
回复

使用道具 举报

发表于 2005-6-3 16:15:09 | 显示全部楼层
我也要一份,谢谢
[email protected]
回复

使用道具 举报

发表于 2005-6-4 08:36:52 | 显示全部楼层
why no bady give me software which i want
回复

使用道具 举报

发表于 2005-7-3 14:54:56 | 显示全部楼层
请问在目前2.4.18下的yaffs该怎么做呀?
好像目前目mtd官方网站已经下不了支持2.4.18的mtd了。
我试了很多次,头都搞大了。
能不能给点指导,谢谢。
回复

使用道具 举报

 楼主| 发表于 2005-7-3 14:59:06 | 显示全部楼层
2.4.18的网上真的很多。主要是MTD的Nand的驱动的改动。。。。
其他的关于yaffs的,作为module加载或者作为rootfs都可以。。。
回复

使用道具 举报

发表于 2005-7-5 21:10:27 | 显示全部楼层
Linux version 2.6.11.8 (root@linux) (gcc version 3.4.1) #5 Tue Jul 5 20:46:06 CS
T 2005
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
BUG: mapping for 0x19000000 at 0xd0000000 overlaps vmalloc space
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C2410 Clock control, (c) 2004 Simtec Electronics
Built 1 zonelists
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.168.0.112:/friend
ly-arm/root ip=192.168.0.69:192.168.0.112:192.168.0.112:255.255.255.0:matrix4.ar
m9.net:eth0ff
irq: clearing subpending status 00000007
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 62720KB available (1636K code, 347K data, 76K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410: Initialising architecture
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch ([email protected])
devfs: devfs_debug: 0x0
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 [email protected]).
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
eth0: CS8900A rev D at 0xd0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5B
NFTL driver: nftlcore.c $Revision: 1.97 $, nftlmount.c $Revision: 1.40 $
S3C2410 NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4880000
s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 1432 at 0x01660000
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "loader"
0x00020000-0x00030000 : "param"
0x00030000-0x00230000 : "kernel"
0x00230000-0x02130000 : "root"
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
IP-Config: Complete:
      device=eth0, addr=192.168.0.69, mask=255.255.255.0, gw=192.168.0.112,
     host=matrix4, domain=, nis-domain=arm9.net,
     bootserver=192.168.0.112, rootserver=192.168.0.112, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.112
Looking up port of RPC 100005/1 on 192.168.0.112
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing init memory: 76K
init started:  BusyBox v0.60.5 (2003.09.05-09:25+0000) multi-call binary
[01/Jan/1970:00:00:06 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:06 +0000] boa: server built Feb 28 2004 at 21:47:23.
[01/Jan/1970:00:00:06 +0000] boa: starting server pid=145, port 80

Please press Enter to activate this console.


BusyBox v0.60.5 (2003.09.05-09:25+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

[root@fa /]# ls
NewFolder        fa-yaffs-v5.tgz  root             vivi-yaffs-v5
aaa              home             sbin             www
bin              lib              tmp              zImage-yaffs-v5
dev              mnt              usr
etc              proc             var
[root@fa /]# mount -t yaffs /dev/mtdblock/3 /mnt
mount: Mounting /dev/mtdblock/3 on /mnt failed: Permission denied
[root@fa /]# mount -t yaffs /dev/mtdblock/2 /mnt
yaffs: dev is 32505858 name is "(unavailable)"
Reading data from NAND FLASH without ECC is not recommended
[root@fa /]# ls
NewFolder        fa-yaffs-v5.tgz  root             vivi-yaffs-v5
aaa              home             sbin             www
bin              lib              tmp              zImage-yaffs-v5
dev              mnt              usr
etc              proc             var
[root@fa /]# cd mnt
[root@fa /mnt]# ls
bin         lost+found
[root@fa /mnt]# mkdir aaaa
Writing data without ECC to NAND-FLASH is not recommended
Reading data from NAND FLASH without ECC is not recommended
mkdir: Cannot create directory `aaaa': Cannot allocate memory
[root@fa /mnt]# ls
bin         lost+found
[root@fa /mnt]#
我的yaffs一直不对,不知道是什么原因,上面是用nfs启动的,但是不知道为什么不能创建目录
回复

使用道具 举报

 楼主| 发表于 2005-7-6 12:56:10 | 显示全部楼层
[root@fa /]# mount -t yaffs /dev/mtdblock/3 /mnt
mount: Mounting /dev/mtdblock/3 on /mnt failed: Permission denied

把目录的权限改一下看看。。。

我的把yaffs作为rootfs在上面的帖子中有,可以去看一下:)
回复

使用道具 举报

发表于 2005-7-6 23:34:50 | 显示全部楼层
终于可以了
Linux version 2.6.11.8 (root@linux) (gcc version 3.4.1) #13 Wed Jul 6 23:04:16 C
ST 2005
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
BUG: mapping for 0x19000000 at 0xd0000000 overlaps vmalloc space
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C2410 Clock control, (c) 2004 Simtec Electronics
Built 1 zonelists
Kernel command line: noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySAC0

irq: clearing pending ext status 00000200
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 62720KB available (1636K code, 347K data, 76K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410: Initialising architecture
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch ([email protected])
devfs: devfs_debug: 0x0
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 [email protected]).
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
eth0: CS8900A rev D at 0xd0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5B
NFTL driver: nftlcore.c $Revision: 1.97 $, nftlmount.c $Revision: 1.40 $
S3C2410 NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4880000
s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
Scanning device for bad blocks
Bad eraseblock 487 at 0x0079c000
Bad eraseblock 1432 at 0x01660000
Bad eraseblock 2804 at 0x02bd0000
Bad eraseblock 3171 at 0x0318c000
Bad eraseblock 3172 at 0x03190000
Bad eraseblock 3175 at 0x0319c000
Bad eraseblock 3176 at 0x031a0000
Bad eraseblock 3211 at 0x0322c000
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "loader"
0x00020000-0x00030000 : "param"
0x00030000-0x00230000 : "kernel"
0x00230000-0x03230000 : "root"
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
yaffs: dev is 32505859 name is "(unavailable)"
VFS: Mounted root (yaffs filesystem).
Mounted devfs on /dev
Freeing init memory: 76K
init started:  BusyBox v0.60.5 (2003.09.05-09:25+0000) multi-call binary
[01/Jan/1970:00:00:03 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:03 +0000] boa: server built Feb 28 2004 at 21:47:23.
[01/Jan/1970:00:00:03 +0000] boa: starting server pid=144, port 80
open device leds: No such file or directory

Please press Enter to activate this console.


BusyBox v0.60.5 (2003.09.05-09:25+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

[root@fa /]#
我终于找到了问题,是在arch/arm/mach_s3c2410/devs.c中定义分区表时不能用
MTD_WRITEABLE
另外将driver/mtd/nand/s3c2410.c 中的NAND_ECC_NONE改NANE_ECC_SOFT
回复

使用道具 举报

发表于 2005-7-18 09:30:21 | 显示全部楼层

请给我一份

多谢!mkyaffs,mkyaffsimage 这两个工具一直编译
不过,(按照文档提示修改),请能给点提示,多谢
回复

使用道具 举报

发表于 2005-7-20 00:13:36 | 显示全部楼层
不要用Makefile编译,直接用命令行
arm-linux-gcc mkyaffs.c -o mkyaffs
arm-linux-gcc mkyaffsimage -o mkyaffssimage
我就是这样编过的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-21 16:58 , Processed in 0.114176 second(s), 14 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表