[PATCH 09/10] LINUX16: Add selection of the VESA video mode

Juergen Beisert jbe at pengutronix.de
Thu Jan 13 10:22:20 EST 2011


Jean-Christophe PLAGNIOL-VILLARD wrote:
> >  		}
> >  	}
> >
> > @@ -227,6 +243,14 @@ static int do_linux16(struct command *cmdtp, int
> > argc, char *argv[]) goto on_error;
> >  	}
> >
> > +	/*
> > +	 * The kernel does not check for the "vga=<val>" kernel command line
> > +	 * parameter anymore. It expects this kind of information in the
> > +	 * boot parameters instead.
> > +	 */
> > +	if (vid_mode != NORMAL_VGA)
> > +		lh->vid_mode = vid_mode;
> > +
> >  	/* If SETUP_SECTS is not set, set it to the default.  */
> >  	if (setup_sects == 0) {
> >  		printf("Fixing setup sector count\n");
> > @@ -297,8 +321,9 @@ on_error:
> >  }
> >
> >  BAREBOX_CMD_HELP_START(linux16)
> > -BAREBOX_CMD_HELP_USAGE("linux16 <file>\n")
> > -BAREBOX_CMD_HELP_SHORT("Boot a kernel on x86 via real mode code.\n")
> > +BAREBOX_CMD_HELP_USAGE("linux16 <file> [-v <mode>]\n")
> > +BAREBOX_CMD_HELP_SHORT("Boot a kernel <file> on x86 via real mode
> > code.\n") +BAREBOX_CMD_HELP_OPT  ("-v <mode>",   "VESA video mode number
> > or 'ask'\n") BAREBOX_CMD_HELP_END
> >
> >  /**
> > @@ -307,6 +332,10 @@ BAREBOX_CMD_HELP_END
> >  <p> Only kernel images in bzImage format are supported by now. See \ref
> >  x86_boot_preparation for more info about how to use this command.</p>
> >
> > +<p> For the video mode refer the Linux kernel documentation
> > +'Documentation/fb/vesafb.txt' for correct VESA mode numbers. If the
> > keyword +'ask' instead of a number is given, the starting kernel will ask
> > for a number.
>
> missing </p>?

Hmm, do we really need the "</p>"?

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |



More information about the barebox mailing list