[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: partial success making 2.2.0 boot disks



Louis-David Mitterrand wrote:
> In the process of trying to make my own boot disks based on the 2.2.0
> kernel I've almost succeeded. The boot-floppies package works nicely and
> produces resc1440.bin et al. When I boot with that disk all goes well
> until the last moment when the "Next - Color - Monochrome" screen comes
> up. It displays all right but refuses to respond to my key presses. I
> can't select "Color" for example (however I can scroll up and down and
> see kernel messages with SHIFT-PgUp or SHIFT-PgDn). Has anyone
> encountered that kind of difficulty or might know the cause?
> 
> Thanks in advance.

Same problem on sparc :-(
The workaround is to disable the stderr redirection to a tty
(stderrToTTY in boxes.c).
It seems something has changed in i/o handling :(

int stderrToTTY(int tty) {
        static int fd=-1;
        char dev[10];

        if (fd > 0)
                close(fd);
        snprintf(dev,10,"/dev/tty%d",tty);
        if ((fd = open(dev, O_WRONLY|O_NOCTTY)) < 0)
                return 1;
        if (-1 == dup2(fd,2))
                return 1;
        return 0;
}

I'd appreciate any/all help related to this problem.

Regards.

-- 
 Eric Delaunay                 | "La guerre justifie l'existence des militaires.
 delaunay@lix.polytechnique.fr | En les supprimant." Henri Jeanson (1900-1970)


Reply to: