hi,
i just got my litekit working with linux.
i'm runnig the kernel and the bootloader from a yaffs partition in the nand-flash.
i am starting the system like this:
add-yaffs boot nand B0 B128
mount yaffs /boot
load raw 0x81000000 1607272 /boot/kernel
load elf /boot/loader
jump
everythings boots up just fine. the root partition is on the nand as well (jffs2).
the trouble starts, when i try to mount the boot-partition within linux.
linux is not showing the files i put in there using losh. it is seeing the used blocks though.
.....
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00200000 : "nand.kernel"
0x00200000-0x01600000 : "nand.rootfs"
0x00000000-0x04000000 : "<NULL>"
0x00000000-0x04000000 : "<NULL>"
.....
mx31# mount -t yaffs2 /dev/mtdblock0 /mnt/floppy/
yaffs: dev is 32505856 name is "mtdblock0"
yaffs: Attempting MTD mount on 31.0, "mtdblock0"
yaffs: auto selecting yaffs1
block 1 is bad
block 2 is bad
...
block 98 is bad
block 99 is bad
block 100 is bad
block 101 is bad
mx31#
df is reporting everything correctly
/dev/mtdblock0 2.0M 1.7M 336.0k 84% /mnt/floppy
but the directory is empty:
mx31# ls -l /mnt/floppy/
drw-rw-rw- 1 root root 512 Jan 1 00:10 lost+found
mx31#
if i create a file here ( using #touch test_file ) it's not visible in the losh either. but the blocks are marked bad there as well:
---------------------------------------------------
Starting YAFFS file system:
Current YAFFS partition table:
0: /dev/nand0 boot B0 - B128 ( 0)
1: <NULL> <NULL>
2: <NULL> <NULL>
3: <NULL> <NULL>
YAFFS initialized.
---------------------------------------------------
**>> yaffs: 102 0 unknown pageStatus 0x05
**>> yaffs: 102 1 unknown pageStatus 0x05
**>> yaffs: 102 2 unknown pageStatus 0x05
**>> yaffs: 102 3 unknown pageStatus 0x05
**>> yaffs: 103 0 unknown pageStatus 0x05
it seems to be a mismatch between the two yaffs versions.
i'm using Logic Loader 2.3.3-IMX31_10 0001 and Linux 2.6.19.2 with YAFFS2 from the aleph1 CVS.
does anybody have this working? which versions are you using?
thanks,
ben