On Saturday 08 January 2005 14:49, Marco Genise wrote: > Hi, > > i played around with user-mode-linux a while and set up an slackware > 10.0 guest on slackware 10.0 host with kernel 2.6.9-skas3-v7. > As guest kernel I used 2.4.28 first, but I've got the problem (which is > already mentioned here) that guest os doesn't shut down or reboot > clearly, with an process with status "T" left. So I tried kernel 2.6.9 > with bb4-patch as guest, and it works well with shutdown and reboot, but > now I've got another problem: > When I try to use sysrq commands via uml_mconsole, I get the following > error: "sysrq not compiled in". Yeah, I know, sysrq seems not be > compiled in ... ;) But search around a while in mailing-list archives > and with google didn't help me to solve this problem. I already tried to > insert "CONFIG_MAGIC_SYSRQ=y" in kernel .config manually, but that also > didn't work. > Does anyone know how to enable sysrq in guest kernel 2.6.9 with > bb4-patch? What did I do wrong? > > Thank you in advance. > > Marco. Well, good question... you are right, and I'm wondering too about this... until now, what I understood is that this doesn't come from the -bb4 patch, but from an error in a mainline cleanup.
... let me dig a bit... ...Oh, what is this?... ... Found! Try the attached patch. It WorksForMe(tm). The option appears under Kernel Debugging, as for the other archs... do you want it back in the UML config submenu? -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- vanilla-linux-2.6.9-paolo/lib/Kconfig.debug | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN lib/Kconfig.debug~uml-readd-config-magic-sysrq lib/Kconfig.debug --- vanilla-linux-2.6.9/lib/Kconfig.debug~uml-readd-config-magic-sysrq 2005-01-10 16:12:36.694328560 +0100 +++ vanilla-linux-2.6.9-paolo/lib/Kconfig.debug 2005-01-10 16:25:09.627865264 +0100 @@ -8,7 +8,7 @@ config DEBUG_KERNEL config MAGIC_SYSRQ bool "Magic SysRq key" - depends on DEBUG_KERNEL && (ALPHA || ARM || X86 || IA64 || M68K || MIPS || PARISC || PPC32 || PPC64 || ARCH_S390 || SUPERH || SUPERH64 || SPARC32 || SPARC64 || X86_64) + depends on DEBUG_KERNEL && (ALPHA || ARM || X86 || IA64 || M68K || MIPS || PARISC || PPC32 || PPC64 || ARCH_S390 || SUPERH || SUPERH64 || SPARC32 || SPARC64 || X86_64 || (USERMODE && MCONSOLE)) help If you say Y here, you will have some control over the system even if the system crashes for example during kernel debugging (e.g., you @@ -23,7 +23,6 @@ config MAGIC_SYSRQ config MAGIC_SYSRQ bool "Magic SysRq key" depends on DEBUG_KERNEL && (H8300 || M68KNOMMU || V850) - depends (USERMODE && MCONSOLE) help Enables console device to interpret special characters as commands to dump state information. _