public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* UML woes in 2.6.24-rc6-mm1
@ 2008-01-02 17:53 Miklos Szeredi
  2008-01-02 20:06 ` [uml-devel] " Jeff Dike
  0 siblings, 1 reply; 7+ messages in thread
From: Miklos Szeredi @ 2008-01-02 17:53 UTC (permalink / raw)
  To: jdike; +Cc: akpm, user-mode-linux-devel, linux-kernel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-01-04 19:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02 17:53 UML woes in 2.6.24-rc6-mm1 Miklos Szeredi
2008-01-02 20:06 ` [uml-devel] " Jeff Dike
2008-01-02 20:52   ` Miklos Szeredi
2008-01-02 22:05     ` Jeff Dike
2008-01-03 12:55       ` Miklos Szeredi
2008-01-04 18:00         ` Jeff Dike
2008-01-04 19:53           ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox