RFS on NVRAM (RTEMS 4.10.1)

Chris Johns chrisj at rtems.org
Wed Feb 1 00:42:31 UTC 2012

On 31/01/12 7:13 PM, VIRAL SHAH wrote:
> Hi All,
> When we try to mount the RFS on a NVRAM having non 0xFF data it crashes. We cannot see any error on MMI but the CPU gives bus exception indicating the software is trying to write to a write protected location.
> We use the below configuration and have 256KB of NVRAM(actually SRAM).
> const rtems_nvdisk_config rtems_nvdisk_configuration[] =
> {
>    {
>      block_size:         NVRAMDISK_BLOCK_SIZE, //512
>      device_count:       1,
>      devices:&rtems_nv_heap_device_descriptor[0],
>      flags:              0,
>      info_level:         0
>    }
> };
> If we manually intialize the NVRAM first with 0XFF and then mount RFS it works without any problem. Can anyone please guide us how to fix this problem?

What commands do you use to set up the NVRAM disk ?

The RFS defaults to 0xff so if you are erasing and formatting the disk 
correctly this would point to an initialisation type bug.


More information about the users mailing list