lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 21 May 2007 13:36:16 -0700
From:	"Yinghai Lu" <yhlu.kernel@...il.com>
To:	"Bjorn Helgaas" <bjorn.helgaas@...com>
Cc:	"Andrew Morton" <akpm@...ux-foundation.org>,
	"Eric W. Biederman" <ebiederm@...ssion.com>,
	"Gerd Hoffmann" <kraxel@...hat.com>, "Andi Kleen" <ak@...e.de>,
	"Linus Torvalds" <torvalds@...ux-foundation.org>,
	"linux kernel mailing list" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH]serial: make early_uart to use early_param instead of console_initcall

On 5/21/07, Bjorn Helgaas <bjorn.helgaas@...com> wrote:
> > with console=uart, you need to call early_serial_console_init
> > explictly in your arch setup_arch to get early console.
>
> Can't we just do:
>
>   early_param("console", setup_early_console);
>

please check following patch. it will take
console=early8250,io,0x3f8,9600n8

You may need to remove early_serial_console_init in your ia64
setup_arch, and some dummy function for set_fixmap_nocache, and
__fix_to_virt in your asm-ia64/fixmap.h

YH

[PATCH]serial: make early_uart to use early_param instead of console_initcall

Make early_uart to use early_param, so uart console can be used earlier.
Make it to be bootconsole with CON_BOOT flag, so can use console handover
feature. and it will switch to corresponding normal serial console
automatically.
new command line will be

      earlycon=early8250,io,0x3f8,9600n8
      earlycon=early8250,mmio,0xff5e0000,115200n8
 or
      console=early8250,io,0x3f8,9600n8
      console=early8250,mmio,0xff5e0000,115200n8

it will print in very early stage
Early serial console at I/O port 0x3f8 (options '9600n8')
later for console it will print
console handover: boot [uart0] -> real [ttyS0]

Signed-off-by: <yinghai.lu@....com>

View attachment "earlycon_05212007.diff" of type "text/x-patch" (16783 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ