> [EMAIL PROTECTED] wrote:
>> Hi All,
>>
>> I am using NOR flash on DVEVM. I m using kernel from tftp by setting
>> bootm
>> and bootfile params.
>> This kernel is configured to use NOR Flash and disable HDA1.
>> Thus, current system does not have any file system.
>> Now, I wish to try rootfs.cramfs (I compiled this in host machine). I
>> have
>> copied "rootfs.cramfs" on tftpboot dir. Can some one point me, what
>> params
>> i should set, so that it uses this rootfs via tftp ?
>>
>
> You should create a u-boot ramdisk image using your rootfs.cramfs file
> system. You can use mkimage tool from u-boot for this task. For example:
>
> $>mkimage -A arm -T ramdisk -C gzip -n 'Ramdisk' -a 0x80500000 -e
> 0x80500000 -d rootfs.cramfs uRamdisk
>
> Then from your board(u-boot console):
>
> #>tftpboot 0x80700000 uImage
> #>tftpboot 0x81700000 uRamdisk
> #>setenv bootargs console=ttyS0,115200n8 ip=192.168.100.33 root=/dev/ram
> mem=120M
> #>bootm 0x80700000 0x81700000
>
> I hope this helps.
>
> Regards,
> Caglar
>
>> Regards,
>>
>> Viral Sachde
>>
>>
>>
>>
>> _______________________________________________
>> Davinci-linux-open-source mailing list
>> [email protected]
>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>>
>
>
Hi all,

Thanks for feedback.
Today morning, after posting on mailing list, I got answer from Bernard
over IRC. Also similar response came from Caglar.

To summaries the process :

Using following steps, one can use kernel and rootfs on NOR for debugging
purpose on dvevm :

1) tftpboot 80700000 uImage
This will copy kernel image to RAM at location 80700000.
2) tftpboot 82000000 root.cramfs
This will copy root file system image to RAM at location 82000000.
3) setenv bootargs $(bootargs) root=/dev/ram initrd=0x82000000,0x$(filesize)
This will set bootargs to use rootfs from RAM (copied in step 2). Please
make sure you have removed root=/dev/hda etc from bootargs.
4) bootm 0x80700000
This will boot kernel just loaded in RAM.

Thanks all,

Viral Sachde

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to