XIP: Unsupported blocksize

Submitted by KarlisRepsons
on November 10, 2008 - 7:10am

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

Verified or (not verified)
on
November 10, 2008 - 8:15am


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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.