Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi smcutt
I am new at this, and many of the things you mention I have no idea where to find and modify. C:\altera\kits\nios2\bin\eclipse\plugins\com.microtronix.nios2linux.kernel_1.4.0\linux-2.6.x\drivers\mtd\maps in this path I have tried looking in the altera.c, microtronix.c and the nios_romfs.c I have tried modifying the adr used in these files and then rebuild my kernel. altera.c.
.
.# else
{
.name = "romfs/jffs2",
.size = 0x100000,
.offset = 0x100000,
},{
.name = "loader/kernel",
.size = 0xFFFFF,
.offset = 0,
}, {
.name = "User configuration",
.size = 0x100000,
.offset = 0x300000,
}, {
.name = "safe configuration",
.size = 0x10000,
.offset = 0x380000,
.mask_flags = MTD_WRITEABLE, /* force read-only */
}# endif microtronix.c .
.
.
static struct mtd_partition microtronix_partitions = {
{
.name = "romfs",
.size = 0x100000,
.offset = 0x0,
},{
.name = "loader/kernel",
.size = 0x80000, //0x200000
.offset = 0x300000,
}
}; nios_romfs.c (uses +0x0 instead of 0x200000) .
.
.
int __init microtronix_mtd_init(void)
{
struct mtd_info *mtd;
struct map_info *mapp;
unsigned long addr = na_flash_kernel + 0x0;
mapp = µtronix_ram_map;
.
.
. After the rebuild the system.map still say(is that ok?) <div class='quotetop'>QUOTE </div> --- Quote Start --- 0010122c A _kernel_footprint 00200000 ? _romfs 00200000 ? _romfs_end 01000000 T __ram_start . . . 0110c000 S _end 0110c000 S end 01800000 ? __ramend 01800000 ? _ramend[/b] --- Quote End --- Hope you can help me out with this. You have any good DOC on how to build a custom kernel? below I have added some of the info on the device I am using. If you have any suggestions on new configs you are most welcome. SYSTEM INFO RAM : 8MByte (0x1000000 -> 0x1800000) FLASH: 4MByte (0x0 -> 0x400000) USER IMAGE defined at 0x300000 SAFE IMAGE defined at 0x380000 Best regards GreatWhite.DK