Messages in this thread Patch in this message | | | Subject | UML woes in 2.6.24-rc6-mm1 | From | Miklos Szeredi <> | Date | Wed, 02 Jan 2008 18:53:00 +0100 |
| |
The below patch was needed to make UML compile in latest -mm.
But sometimes it doesn't boot and does weird things (this is a sample with init=/bin/bash):
[ 0.420000] EXT3-fs: mounted filesystem with ordered data mode. [ 0.420000] VFS: Mounted root (ext3 filesystem) readonly. (none):/# ls (none):/# ls -al total 70 drwxr-xr-x 23 root root 1024 May 4 2007 . drwxr-xr-x 23 root root 1024 May 4 2007 .. drwxr-xr-x 2 root root 2048 Feb 18 2007 bin drwxr-xr-x 2 root root 1024 May 16 2005 boot [...] (none):/# ls Segmentation fault (none):/# ls -l : : No such file or directory
Miklos ----
Index: linux/arch/um/Kconfig =================================================================== --- linux.orig/arch/um/Kconfig 2008-01-02 14:54:04.000000000 +0100 +++ linux/arch/um/Kconfig 2008-01-02 17:01:36.000000000 +0100 @@ -223,6 +223,10 @@ config KERNEL_STACK_ORDER endmenu +config HZ + int + default 100 + source "init/Kconfig" source "drivers/block/Kconfig" Index: linux/include/asm-um/param.h =================================================================== --- linux.orig/include/asm-um/param.h 2007-10-09 22:31:38.000000000 +0200 +++ linux/include/asm-um/param.h 2008-01-02 17:02:31.000000000 +0100 @@ -10,7 +10,7 @@ #define MAXHOSTNAMELEN 64 /* max length of hostname */ #ifdef __KERNEL__ -#define HZ 100 +#define HZ CONFIG_HZ #define USER_HZ 100 /* .. some user interfaces are in "ticks" */ #define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */ #endif
| |