Forum Discussion
Altera_Forum
Honored Contributor
20 years agoin this case, the following code
ndk_amd_map.virt = (unsigned long *)ioremap_nocache(WINDOW_ADDR, WINDOW_SIZE);
if (!ndk_amd_map.virt)
{
printk("MSE Failed to ioremap\n");
} always prints that message out. This because your flash starts at address 0, and under uClinux ioremap returns the same address being mapped, 0. You can either comment this code out, or as a better solution, avoid using address 0.