Error starting user-mode linux

Help
Oleg
2002-01-08
2002-01-14
  • Oleg
    Oleg
    2002-01-08

    Hi,

    When i trying to bootup user-mode linux, this message was appered:

    Initializing stdio console driver
    Failed to fcntl F_SETOWN (or F_SETSIG) fd 1 to pid 487, errno = 22
    Failed to fcntl F_SETOWN (or F_SETSIG) fd 0 to pid 487, errno = 22
    Initializing software serial port version 1
    Failed to fcntl F_SETOWN (or F_SETSIG) fd 22 to pid 487, errno = 22
    Failed to get IRQ for management console
    Failed to fcntl F_SETOWN (or F_SETSIG) fd 26 to pid 487, errno = 22
    um_request_irq failed - errno = -1

    Any idea what this can be?

    Oleg.

     
    • Hi,

      I add the same problem running 2.2.19 on the host and posted the question on uml-user, you can get the solution from there

      http://www.geocrawler.com/archives/3/597/2002/1/0/

      Here is the diff ( from the post ) :
      Here's the small diff to fix the problem:

           **********************************************
           diff -pru linux-2.4.17/arch/um/kernel/irq_user.c linux.my/arch/um/kernel/irq_user.c
           --- linux-2.4.17/arch/um/kernel/irq_user.c      Tue Jan  8 16:35:03 2002
           +++ linux.my/arch/um/kernel/irq_user.c  Tue Jan  8 16:14:32 2002
           @@ -84,7 +84,7 @@ int activate_fd(int irq, int fd, void *d
                           return(-retval);
                   }
                   pid = cpu_tasks[0].pid;
           -       if(((retval = fcntl(fd, F_SETSIG, 0)) < 0) ||
           +       if(((retval = fcntl(fd, F_SETSIG, SIGIO)) < 0) ||
                      ((retval = fcntl(fd, F_SETOWN, pid)) < 0)){
                           printk("Failed to fcntl F_SETOWN (or F_SETSIG) "
                                  "fd %d to pid %d, errno = %d\n", fd, pid, errno);
           ***********************************************

      Cheers