On Wednesday 25 August 2010 03:14:07 pm Raghu Ramaraj wrote:
> I have added the following lines in config file
> 
> # MTD device name       Device offset   Env. size       Flash sector size  
>      Number of sectors #/dev/mtd0              0x0000          0x4000      
>     0x4000
> #/dev/mtd1              0x4000          0x4000          0x4000
> #/dev/mtd2              0x0000          0x4000          0x4000
> 
> #/dev/mtd0              0x0000          0x4000          0x4000
> #/dev/mtd1              0x4000          0x4000          0x4000
> 
> # NAND example
> #/dev/mtd0              0x0000          0x4000          0x4000             
>      2 #/dev/mtd1              0x4000          0x4000          0x4000      
>             2
> 
> #/dev/mtd1              0x0000          0x140000        0x4000             
>      50 /dev/mtd0               0x0000          0x20000         0x20000
> 
> Its giving " Segmentation fault"
> 

I remember a bug in fw_printenv but I'm not sure if this is related to that 
bug or not. I reported this issue in a thread in this list. If you search the 
archives maybe that solution can help you as well.

Regards,
Caglar

> 
> Thanks & Regards,
> Raghu Ramaraj
> 
> -----Original Message-----
> From: Caglar Akyuz [mailto:[email protected]]
> Sent: Wednesday, August 25, 2010 5:22 PM
> To: [email protected]
> Cc: Raghu Ramaraj; Jose, Frangline
> Subject: Re: need help- fw_printenv& fw_setenv
> 
> On Wednesday 25 August 2010 10:28:37 am Raghu Ramaraj wrote:
> > Hi,
> >        We facing some issue while using fw_printenv and fw_setenv ( uboot
> >  tools). Pls find the logs/steps below I have used linux 2.6.32 rc5
> > kernel source.
> >
> >
> > 1)       MTD partition in the kernel level
> >
> > Cat /proc/mtd
> > mtd0: 00020000 00004000 "params"
> > mtd1: 00140000 00004000 "bootloader"
> > mtd2: 00400000 00004000 "kernel"
> > mtd3: 03aa0000 00004000 "file system"
> >        param & bootloader  partitions are interchanged ?
> >
> > 2)       Cat /dev/mtd0 ->its displaying param related information
> >
> >
> > 3)       I have used /etc/fw_env.config file
> >
> >
> > /dev/mtd0               0x0000          0x4000          0x4000
> > /dev/mtd1               0x4000          0x4000          0x4000
> 
> This file is completely wrong for DM6467. I guess you copied the exact
>  config from u-boot tree but this is for 2 NAND flashes with small page.
>  Correct version should be:
> 
> /dev/mtd0               0x0000          0x20000         0x20000
> 
> Assuming your page size is 2KiB.
> 
> Regards,
> Caglar
> 
> > 4)       If I do ./fw_printenv , I am getting the all the boot params
> > 5)       If I do ./fw_setenv bootdelay , I am getting the following
> > Permission denied
> >
> >
> > Losg  are..............
> >
> >
> > [email protected]:/home/raghu/env# cat /proc/mtd
> > dev:    size   erasesize  name
> > mtd0: 00020000 00004000 "params"
> > mtd1: 00140000 00004000 "bootloader"
> > mtd2: 00400000 00004000 "kernel"
> > mtd3: 03aa0000 00004000 "filesystem"
> > [email protected]:/home/raghu/env# cat /dev/mtd0
> > uEƈbootdelay=3baudrate=115200bootfile="uImage"addclk=setenv bootargs
> >  ${bootargs} clkref=${clkref}ethact=DaVinci
> >  EMACfilesize=D9CB0Ffileaddr=87000000gatewayip=17
> >  2.22.64.1netmask=255.255.240.0ipaddr=172.22.66.43bootcmd=ping
> >  192.168.1.1;nand r ead 0x84600000 0x4a0000 0x1400000;nboot 0x80700000 0
> >  0xa0000;bootmserverip=172.2
> > 
> > 2.75.253ethaddr=00:0e:99:02:b5:69clkref=33000000stdin=serialstdout=serial
> >s tderr= serialver=U-Boot 2009.08 (Jul 10 2010 -
> >  11:44:06)bootargs=console=ttyS0,115200n8 noinitrd rw root=/dev/nfs
> >  nfsroot=172.22.75.253:/opt/mv_pro_5.0/montavista/pro/
> >  devkit/arm/v5t_le/target/,nolock mem=80M eth=00:0e:99:02:b5:69 ip=dhcp0
> > - 14:34: 54)0700000 0 0xa0000;bootm
> > [email protected]:/home/raghu/env# ./fw_printenv
> > ootdelay=3
> > baudrate=115200
> > bootfile="uImage"
> > addclk=setenv bootargs ${bootargs} clkref=${clkref}
> > ethact=DaVinci EMAC
> > filesize=D9CB0F
> > fileaddr=87000000
> > gatewayip=172.22.64.1
> > netmask=255.255.240.0
> > ipaddr=172.22.66.43
> > bootcmd=ping 192.168.1.1;nand read 0x84600000 0x4a0000 0x1400000;nboot
> >  0x8070000 0 0 0xa0000;bootm
> > serverip=172.22.75.253
> > ethaddr=00:0e:99:02:b5:69
> > clkref=33000000
> > stdin=serial
> > stdout=serial
> > stderr=serial
> > ver=U-Boot 2009.08 (Jul 10 2010 - 11:44:06)
> > bootargs=console=ttyS0,115200n8 noinitrd rw root=/dev/nfs
> >  nfsroot=172.22.75.253:
> >  /opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/,nolock mem=80M
> >  eth=00:0 e:99:02:b5:69 ip=dhcp
> > [email protected]:/home/raghu/env# ./fw_setenv bootdelay 0
> > Can't open /dev/mtd1: Permission denied
> > Error: can't write fw_env to flash
> > [email protected]:/home/raghu/env#
> >
> >
> >
> > Thanks & Regards
> > Raghu Ramaraj
> >
> > ________________________________
> > http://www.mindtree.com/email/disclaimer.html
> 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to