Hello,
could someone tell me, how to avoid getting this kernel error message when I try this:
CONFIG_BLK_DEV_XIP=y, XIP support for ext2,
set ramdisk size to 500000,
mkfs -t ext2 /dev/ram0
mount -t ext2 -o xip /dev/ram0 /mnt/ram0
What should be the blocksize?
Ask your C compiler
echo -e '#include <stdio.h>\n#include <unistd.h>\nmain(){printf("%ld\\n", sysconf(_SC_PAGESIZE));}' | gcc -o x -x c - && ./x
The bad news is that ramdiscs have a form of XIP built in, so unless you are doing something strange, ext*'s XIP will not make a huge difference.