Thank you rugbybloke, I appreciate your response.
I am still suffering the problem.
I am calling:
alt_flash_open_dev("/dev/ext_flash");
system.h has:# define EXT_FLASH_NAME "/dev/ext_flash"
So, I think I have the name right.
I toggled few break points in alt_find_dev().
There seems to be no device registered in the alt_llist* list.
For this reason, I tried calling alt_sys_init() right before alt_flash_open_dev().
when I did this, the devices then seem to be registered in the list.
Using memory dump, I found below devices in the list:
/dev/ext_flash,
/dev/epcs_controller,
/dev/jtag_uart,
/dev/uart1,
/dev/null
but still, alt_flash_open_dev() fails, & returns 0x0
(I am still checking why this happen).
Am I getting any closer? or totally going the wrong way...?