Forum Discussion
Altera_Forum
Honored Contributor
20 years agoAM29LV065D FLASH read, erase, program?
Hi All, Does anyone know how to read erase and program the AMD flash memory in ucLinux using C programs? (AM29LV065D or AM29LV128MH) I use this memory for store uClinux FPGA SOF and user’s...
Altera_Forum
Honored Contributor
20 years agoHi ,
> Can Flash(mtdblock1;kernel) be accessed directly by "open, read,write" routines If I want to > update the kernel in runtime, then reboot. Yes, but use the character mode device (major 90 I think) -- which needs to be enabled in your kernel configuration. Then you can open, read, write, ioctl. To erase, use the MEMERASE ioctl. See the following: include/mtd/mtd-abi.h drivers/mtd/mtdchar.c You might want to review the mtd-utils code as well. Regards, --Scott