Hi David,
I added write.yaffs command to u-boot (using provided patch)
my boot arg is
bootargs=mem=120M console=ttyS0,115200n8 root=/dev/mtdblock3 rw
init=/bin/sh noatime rootfstype=yaffs ip=dhcp
(I am using dm6446 so using yaffs instead of yaffs2)
but whiling booting init is failing with following error ..
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 136K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Is this because of yaffs image??? is there any sample yaffs image
which i can try with?
Thanks
deepak
On 11/12/08, David Chan <[EMAIL PROTECTED]> wrote:
> You should extend the uboot to support nand write.yaffs2 command, then you
> can just write like jffs2.
> The other way is do it under linux like below:
> boot to nfs
> # flash_eraseall /dev/mtd3
> # mkdir /mnt/nand
> # mount yaffs2 /dev/mtdblock3 /mnt/nand
> # cp -a your fileroot /mnt/nand
> # sync;sync;sync
> # umount /dev/mtdblock3
> reboot and set to use filesystem under yaffs2
>
> 08 at 10:23 PM, Deepak Mundra <[EMAIL PROTECTED]> wrote:
>
>>
>>
>> 2008/11/11 David Chan <[EMAIL PROTECTED]>
>>
>>>
>>>
>>> for nand flash you'd better to use yaff2. If you really decide to use
>>> jffs2 please modify the uboot to enable ecc check.
>>> That's because ecc is not enabled by uboot. Then kernel give a ecc check.
>>> While you write file.jffs2 to the nand, you will meet bad block and bit
>>> reverse.All leads to ecc error.
>>> My suggestion is to use yaffs2 or write mtd under linux environment.
>>>
>>
>> Thanks for ur reply.. I downloaded yafss2 tool to make yaffs2 image ...
>>
>> Now how can i write this image to nand (AT which memory location ? is it
>> 0x460000?)
>> i have copied yaffs2 image to 0x80700000 location ..
>> and how can i set bootargs for that?
>>
>> is it
>>
>> setenv bootargs mem=120M console=ttyS0,115200n8 root=/dev/mtdblock3 rw
>> init=/bin/sh noatime rootfstype=yaffs2 ip=off
>>
>> Nd finally u told "or write mtd under linux environment." Can u please
>> give
>> some pointer to this
>>
>> Thanks once again
>> Deepak
>>
>>
>>
>>
>>
>>>
>>>
>>> David
>>>
>>>> Message: 3
>>>> Date: Tue, 11 Nov 2008 17:32:41 +0530
>>>> From: "Deepak Mundra" <[EMAIL PROTECTED]>
>>>> Subject: Help in writiing JFFS2 Filesystem into NAND /Uboot
>>>> To: "[email protected]"
>>>> <[email protected]>
>>>> Message-ID:
>>>> <[EMAIL PROTECTED]>
>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>
>>>>
>>>> Hi,
>>>>
>>>> Has any one tried writing jfss2 filesystem on to nand using uboot ???
>>>>
>>>> I am using following stem but MTD->READ is returning error
>>>>
>>>>
>>>> 1]nand erase 0x460000 sizeof_filesystem_image
>>>>
>>>> 2]transfer jffs2 filsystem image to 0x80700000
>>>>
>>>> 3]nand write 0x80700000 0x460000 sizeof_filesystem_image
>>>>
>>>> 4]In kernel i set boot args as follow
>>>>
>>>>
>>>> setenv bootargs mem=120M console=ttyS0,115200n8 root=/dev/mtdblock3 rw
>>>> init=/bin/sh noatime rootfstype=jffs2
>>>> setenv bootcmd 'nboot 0x80700000 0 0x60000;bootm'
>>>>
>>>> ANd while booting i am getting errors like MTD->READ, ECC error etc
>>>>
>>>>
>>>> Thanks
>>>> Deepak
>>>> -------------- next part --------------
>>>> An HTML attachment was scrubbed...
>>>> URL:
>>>> http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20081111/7673cb90/attachment-0001.htm
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 4
>>>> Date: Tue, 11 Nov 2008 18:27:50 +0530
>>>> From: "Prabhaharan R-TLS,Chennai" <[EMAIL PROTECTED]>
>>>> Subject: Davinci DMS355 - Video Encoder
>>>> To: "Stephen Berry" <[EMAIL PROTECTED]>, "Karicheri, Muralidharan"
>>>> <[EMAIL PROTECTED]>
>>>> Cc: davinci-linux-open-source
>>>> <[email protected]>
>>>> Message-ID:
>>>> <
>>>> [EMAIL PROTECTED]>
>>>>
>>>> Content-Type: text/plain; charset="us-ascii"
>>>>
>>>>
>>>> Hello Stephen and Murali,
>>>>
>>>>
>>>>
>>>> Currently I am working on the Video encoder driver for Davinci DMS 355.
>>>> The driver is being implemented using the Montavista TI Linux code. As
>>>> per the existing encoder driver architecture, we can add the customized
>>>> new driver to the drivers/media folder and we have set the encoder
>>>> output name in the driver as well in the boot arguments. I have taken
>>>> the THS8200_encoder.c as reference. Since, the encoder that I am going
>>>> to use is through I2c, I have selected the ths8200_encoder.c as base.
>>>>
>>>>
>>>>
>>>> I have set the encoder output as KCDA210. Also, I have made changes in
>>>> the davinci_platform.c for VPBE module settings. In the boot arguments,
>>>> when I give the encoder manager output name as KCDA210, the system is
>>>> booting and working fine. If, I make any changes in the encoder file
>>>> that I have created, then the system is not booting. The system gets
>>>> hanged during the kernel un-compression. If I revert those changes back,
>>>> then the system is booting properly.
>>>>
>>>>
>>>>
>>>> For example, err |= i2c_write();
>>>>
>>>>
>>>>
>>>> If I make the change as err = i2c_write();, instead of ORing the output,
>>>> then the system gets hanged during the boot.
>>>>
>>>>
>>>>
>>>> I am not sure that the hanging is because of this change. But, if I
>>>> revert these changes back, the system works fine.
>>>>
>>>>
>>>>
>>>> Boot arguments that I am using,
>>>>
>>>> setenv bootargs console=ttyS0,115200n8 noinitrd rw
>>>> ip=10.100.135.51:10.100.135.126:10.100.135.1:255.255.255.0:::off
>>>> root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock mem=116M
>>>> video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576
>>>> x16,2025K davinci_enc_mngr.ch0_output=KCDA210
>>>> davinci_enc_mngr.ch0_mode=$(videostd)
>>>>
>>>>
>>>>
>>>> If you faced the same issue, please provide your valuable comments.
>>>>
>>>>
>>>>
>>>> Thanks a lot in advance.
>>>>
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Prabha.
>>>>
>>>>
>>>>
>>>> DISCLAIMER:
>>>>
>>>> -----------------------------------------------------------------------------------------------------------------------
>>>>
>>>> The contents of this e-mail and any attachment(s) are confidential and
>>>> intended for the named recipient(s) only.
>>>> It shall not attach any liability on the originator or HCL or its
>>>> affiliates. Any views or opinions presented in
>>>> this email are solely those of the author and may not necessarily
>>>> reflect
>>>> the opinions of HCL or its affiliates.
>>>> Any form of reproduction, dissemination, copying, disclosure,
>>>> modification, distribution and / or publication of
>>>> this message without the prior written consent of the author of this
>>>> e-mail is strictly prohibited. If you have
>>>> received this email in error please delete it and notify the sender
>>>> immediately. Before opening any mail and
>>>> attachments please check them for viruses and defect.
>>>>
>>>>
>>>> -----------------------------------------------------------------------------------------------------------------------
>>>> -------------- next part --------------
>>>> An HTML attachment was scrubbed...
>>>> URL:
>>>> http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20081111/f8185f59/attachment.htm
>>>>
>>>> ------------------------------
>>>>
>>>> _______________________________________________
>>>> Davinci-linux-open-source mailing list
>>>> [email protected]
>>>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>>>>
>>>>
>>>> End of Davinci-linux-open-source Digest, Vol 35, Issue 50
>>>> *********************************************************
>>>>
>>>
>>>
>>>
>>> --
>>> David
>>>
>>> Manager, Business Development
>>> Embedio. Inc.
>>> +86 13581953152
>>>
>>> _______________________________________________
>>> Davinci-linux-open-source mailing list
>>> [email protected]
>>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>>>
>>>
>>
>
>
> --
> David
>
> Manager, Business Development
> Embedio. Inc.
> +86 13581953152
>
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source