This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Redboot EB40a problems with flash programming


>> ecosconfig new eb40a
>> ecosconfig import 
>> $ECOS_REPOSITORY/hal/eb40a/current/misc/redboot_ROM.ecm
>> ecosconfig tree
>> make
>
>A Guess: You cannot execute from Flash which you do flash 
>operations like writer/erase. So the flash code copies 
>itself into RAM and then executes from RAM. Maybe this 
>copying is somehow disabled.
>
>Check what is going on with CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM 
>and similar CDL.

Should redboot_ROM.ecm have set this to true?

I suppose I could create an additional .ecm file:


cdl_option CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM {
	user_value 1
}

# While I'm at it I also want... 
cdl_component CYGSEM_REDBOOT_FLASH_CONFIG {
    user_value 1
};


This is from the ecos.ecc that my build instructions above
created:


# Hardware FLASH device drivers are not in RAM
# This option makes the IO driver copy the device
# driver functions to RAM before calling them. Newer
# drivers should make sure that the functions are
# linked to RAM by putting them in .2ram sections.
#
cdl_interface CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM {
    # No options implement this inferface
    # This value cannot be modified here.
    # Flavor: booldata
    # Current value: 0 0
};


Øyvind


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]