Forum Discussion
Altera_Forum
Honored Contributor
21 years agoKernel panic on custom board
Hi people I am having some problems on my custom board. The DOC is really bad when it comes to custom boards and uClinux 1) I have modified the ../drivers/mtd/maps/altera.c file line 78...
Altera_Forum
Honored Contributor
21 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.