Forum Discussion
Altera_Forum
Honored Contributor
20 years agoSorry for not getting back to you sooner Keplin, I've been busy with other things at work.
Yes, it looks like you're going to have to modify your MTD maps... Take a look at the following lines in your kernel startup:0x00200000-0x00800000 : "romfs/jffs2"
0x00000000-0x00200000 : "loader/kernel"
0x00800000-0x00c00000 : "User configuration"
0x00c00000-0x01000000 : "safe configuration" That's what Linux expects to see. Considering how different your custom board is, we need Linux to recognize your memory partitions. So, there's a file called "...$KERNEL_PLUGIN/linux-2.6.x/drivers/mtd/maps/altera.c" in the kernel source tree (or something along those lines). Take a look inside the file, you should see a C struct that contains the above info. Try modifying the record for the romfs entry to reflect where your filesystem lives in flash. In this instance, you'll want to use offset information. So, looking at everything from before, that should be 0x500000. Hope this helps... ($KERNEL_PLUGIN is an environment variable in the Nios II SDK Shell... it maps to ...altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_x.x.x)