Hi!
If changed the altera.c for my on memory partition in this way:
{
.name = "part1",
.size = 0x100000,
.offset = 0x700000,
},{
.name = "romfs/jffs2",
.size = 0x500000,
.offset = 0x200000,
},{
.name = "loader/kernel",
.size = 0x200000,
.offset = 0,
}, {
.name = "User configuration",
.size = 0x400000,
.offset = 0x800000,
}, {
.name = "safe configuration",
.size = 0x400000,
.offset = 0xc00000,
.mask_flags = MTD_WRITEABLE, /* force read-only */
}
Then if have build the kernel again and uploaded it.
But when I try to start Linux it's stopped with kernel panic error:
using altera ndk partition definition
creating 5 mtd partitions on "altera ndk flash (amd)":
0x00700000-0x00800000 : "part1"
0x00200000-0x00700000 : "romfs/jffs2"
0x00000000-0x00200000 : "loader/kernel"
0x00800000-0x00c00000 : "user configuration"
0x00c00000-0x01000000 : "safe configuration"
net: registered protocol family 2
ip: routing cache hash table of 512 buckets, 4kbytes
tcp established hash table entries: 1024 (order: 1, 8192 bytes)
tcp bind hash table entries: 1024 (order: 0, 4096 bytes)
tcp: hash tables configured (established 1024 bind 1024)
net: registered protocol family 1
net: registered protocol family 17
kernel panic - not syncing: vfs: unable to mount root fs on unknown-block(31,0) What's going wrong?
Bye, Lothar.