Altera_Forum
Honored Contributor
20 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 so it should fit my memory map. Should this be modified here???#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
}; 2) I have created a filesystem and uploaded it to the flash. 3) I have via the NIOSII IDE configured the kernel to have the root=/romfs/jffs2 (same name as in the altera.c is this correct?) I have copied the console output in here below. <div class='quotetop'>QUOTE </div> --- Quote Start --- uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: root=/romfs/jffs2 PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 7004k/8192k RAM, 0k/0k ROM (858k kernel code, 210k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Linux NoNET1.0 for Linux 2.6 Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x804028e0 (irq = 0) is a jtag_uart io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize VFS: Cannot open root device "/romfs/jffs2" or unknown-block(0,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)[/b] --- Quote End --- Hope some of you can help me out with this problem. Best Regards GreatWhite.DK