On Mon, Apr 28, 2003 at 08:41:19AM +0200, Jens Axboe wrote: > > > - Run bash /usr/gnemul/qemu-i386/bin/qemu-conf.sh > > .. > > > Note the /usr/gnemul path. Hope this helps. > > .. > > > + switch (current->personality) { > > > + case (PER_X86_LINUX & PER_MASK): > > > + return "usr/gnemul/x86-linux/"; > > > > That looks interesting. > > Is your /usr/gnemul/qemu-i386 path equivalent to the > > /usr/local/qemu-i386 we get when following the qemul instructions? > > Yes > > > If yes, what should i put instead of usr/gnemul/x86-linux/ in the kernel > > patch? > > "usr/local/qemu-i386/" ? > > That would like right, yep.
Do I need to apply another patch before this one? First I have to replace dep_tristate by tristate in the config.in part of your patch (No idea if this make sense or not). If I don't do that, xconfig complains about this line. Then when I try to compile the kernel I get errors. Last I tried to compile the x86 emulation in the kernel (not as a module) and got: ... gcc -D__KERNEL__ -I/usr/src/benh_kernel/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/usr/src/benh_kernel/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -nostdinc -iwithprefix include -DKBUILD_BASENAME=btext -mrelocatable-lib -c -o btext.o btext.c rm -f kernel.o ld -r -o kernel.o entry.o traps.o irq.o idle.o time.o misc.o process.o signal.o ptrace.o align.o semaphore.o syscalls.o setup.o cputable.o ppc_htab.o l2cr.o cpu_setup_6xx.o ppc_ksyms.o pci.o pci-dma.o prom_init.o prom.o open_pic.o indirect_pci.o i8259.o prep_nvram.o btext.o x86emu.o ld: cannot open x86emu.o: No such file or directory make[2]: *** [kernel.o] Error 1 make[2]: Leaving directory `/usr/src/benh_kernel/arch/ppc/kernel' make[1]: *** [_dir_arch/ppc/kernel] Error 2 make[1]: Leaving directory `/usr/src/benh_kernel' make: *** [stamp-build] Error 2 Note that it's a 2.4.20-ben10 compiled with a freshly updated gcc and using make-kpkg. Thanks, Christophe -- Christophe Barbé <[EMAIL PROTECTED]> GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8F45 2F1E D72C B41E Thousands of years ago, cats were worshipped as gods. Cats have never forgotten this. --Anonymous