X-Original-To: alpine-devel@lists.alpinelinux.org Received: from SNT004-OMC1S11.hotmail.com (snt004-omc1s11.hotmail.com [65.55.90.22]) by lists.alpinelinux.org (Postfix) with ESMTP id 54D205C433D for ; Fri, 14 Oct 2016 03:26:31 +0000 (GMT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com ([65.55.90.9]) by SNT004-OMC1S11.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 13 Oct 2016 20:26:31 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Uw/QFet6bBkhN9bMYc/EWKrxwekzHDClrqBI4Oss5z0=; b=iakZcD3dcFq1YwKaJDkcYpw4ShWI9xBhrHEYgUfMXnnsiZcdCsn4KbwQFYAXyS99+Out4WROry0xdbc66rHIW3O9ZvatywvWx4VOFDQFmq3PEjA0QTj4kxFIgad7Ln5VU/H4OTf3YByloGbBUG2318FILu0h9qhdVbveR4N6zwv9ME2KAc9EWlcVbLysEvUClixxlzAkj3m+JI3/NuwKuXPGuTuo+rarxEFsjZ7qP6/SxFaWjTtELfRLA5lZk6Si0g8bdyUMN3EWSjBQh4EHLkeEX5j7w5vLKEiecN1AxfAdMjoaHCmZFQCZ6se4Q0DLCvSndamCyYrV577nten+Kg== Received: from BN3NAM01FT044.eop-nam01.prod.protection.outlook.com (10.152.66.56) by BN3NAM01HT191.eop-nam01.prod.protection.outlook.com (10.152.67.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5; Fri, 14 Oct 2016 03:26:30 +0000 Received: from CY1PR04MB2201.namprd04.prod.outlook.com (10.152.66.59) by BN3NAM01FT044.mail.protection.outlook.com (10.152.66.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5 via Frontend Transport; Fri, 14 Oct 2016 03:26:30 +0000 Received: from CY1PR04MB2201.namprd04.prod.outlook.com ([10.167.8.137]) by CY1PR04MB2201.namprd04.prod.outlook.com ([10.167.8.137]) with mapi id 15.01.0659.020; Fri, 14 Oct 2016 03:26:30 +0000 From: John Henderson To: "alpine-devel@lists.alpinelinux.org" Subject: [alpine-devel] Unable to access serial console during initial installation Thread-Topic: Unable to access serial console during initial installation Thread-Index: AQHSJconQKygLQvCZU+jBX9VlhVGNQ== Date: Fri, 14 Oct 2016 03:26:30 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=hotmail.com; x-tmn: [WlP3e4tVLt2hqYq5TgLfpnNDWs9r6pjH] x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1;BN3NAM01HT191;6:yapsTqmbd8Zq/t4/kvXPqLJcZxJCnmsviroIgdszFbrF/jBIiCRXhqs9Pafw3zfNOIS+cFqrMulG3sZYJAu+YIU8hXk/LbY3Os9NajSrR7xK+28elADGg0Er8G9pnj2YSMMp/eOOtT4Jtn9SNbmK5zpGqTpM5Bc5ZKs/fQMxE79ixh8U7Sy+j9h5wwShMcjZKTzwrAstvW1xLp19E9r37u58GGLZPu5V82LRhOaIQnbU4HoFegyJ48Guza4Bbcb5Pt3uSI8MRT+1WIRwu/o+liEkhRNIAyUx3ng5Y4vxeS0=;5:HFEFUiqpjf01h5sKYdy9LrhpIMOUANNtGVRg1LYrVBSD0hYbPDd0vS/bVtfw71iS0hG0zop7pe17oAiqjGJ8wIWYI8X13U5OEKh6j0aUfSBwTc7K4Fdgjo+jvKDDNmhcKQ68z2Oc3M4dNSZTgZ1ngA==;24:+bu0DAXDwuT+oV45onSGTqK3JDl1DmIwaSJByLc0efmij7KGCHAAEAh7bRV99UotLPEhKHv1Yk/jPwg7j7ONRKxy69oeZzJAVzU//lHs9uQ=;7:9PyOZ8vO3PO+9A3vO7MPH8OtRpcB8pyC6yB9/vCisM+39/BPys6KoClgXJVBQtrlg0zqz4tWd0bCPo79hfIu6upxipgFKOcPR17PlUZVgO2WHo0ER0UQwnizXPKxgVOhA6BZ6so8rGhaZcZQh8bb/sgNe54uAVmmkAHzww50vkSB9F+yo980vXlmFoAHGDyp/rR+Rv5Uh8LuSTQrH+bXf87CkBI3tkU4NG9bXQD4W6mVKWdWLDEB5+DiO6tusOZorL+XuA/O4uY7QqPRl+R+mRaq/SiM+ZzNUHisxEkK6GyQCC7NgjY77erFTkfO0xM52Tgw+wx4AKY5OOPkWR/G3g== x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900003);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3NAM01HT191;H:CY1PR04MB2201.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 8b54faf9-93e6-41de-eb43-08d3f3e1e3b3 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(1601124038)(1603103081)(1601125047);SRVR:BN3NAM01HT191; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:BN3NAM01HT191;BCL:0;PCL:0;RULEID:;SRVR:BN3NAM01HT191; x-forefront-prvs: 0095BCF226 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2016 03:26:30.0760 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM01HT191 X-OriginalArrivalTime: 14 Oct 2016 03:26:31.0576 (UTC) FILETIME=[C202F180:01D225CA] [Please note that I posted this at the beginning of the week on alpine-user= (no responses as of now), but it seems like this report might better be cl= assified as a dev issue, so I'm re-posting here. Thanks!] Hi,=20 I'm trying to install Alpine Linux 3.4.4 (via extended 64-bit ISO) on a Net= gate RCC-VE 2440 system (specialized Intel Rangeley-based SOHO router-type = hardware; if interested, see: http://store.netgate.com/ADI/RCC-VE-2440.aspx= ).=20 I'm unable to proceed since I can't get the installation to come up on the = serial console. This particular hardware has no video access, and no expans= ion capabilities to (even temporarily) enable it. I can't even swap HDDs/SS= Ds or the like (if I wanted to go down that road), since I'm actually insta= lling Alpine to the eMMC flash soldered on-board the Netgate...=20 For context, I followed the instructions at:=20 http://wiki.alpinelinux.org/wiki/Enable_Serial_Console_on_Boot=20 Namely, I modified the syslinux configuration file ('/boot/syslinux/syslinu= x.cfg') on the default install media, as follows:=20 *** syslinux.cfg.orig 2016-09-28 11:43:51.000000000 -0500=20 --- syslinux.cfg 2016-10-08 15:44:03.581309751 -0500=20 ***************=20 *** 1,7 ****=20 =20 timeout 20=20 prompt 1=20 default grsec=20 label grsec=20 kernel /boot/vmlinuz-grsec=20 ! append initrd=3D/boot/initramfs-grsec modloop=3D/boot/modloop-grsec mod= ules=3Dloop,squashfs,sd-mod,usb-storage quiet=20 --- 1,8 ----=20 =20 + serial 0 115200=20 timeout 20=20 prompt 1=20 default grsec=20 label grsec=20 kernel /boot/vmlinuz-grsec=20 ! append initrd=3D/boot/initramfs-grsec modloop=3D/boot/modloop-grsec mod= ules=3Dloop,squashfs,sd-mod,usb-storage console=3DttyS0,115200=20 With this modification, I'm able to boot the install DVD over serial consol= e, get past the BIOS, choose my boot device, and view two kernel messages a= fter Alpine Linux starts to boot --- right up to the point where the initra= mfs takes over. After that, I can't get anything on the console, try as I m= ight (I don't get gibberish, which might reflect mismatched tty parameters = --- I just don't get anything at all). Now, my understanding is that the in= itramfs is supposed to "inherit" the proper kernel boot command-line parame= ters (and therefore continue with a properly configured serial console). Ho= wever, that doesn't seem to be happening in this case.=20 Looking around the Alpine Linux code, I thought I might have found a releva= nt bug in the '/init' script within the initramfs on the install media, as = the optional getty invocation (tied to serial console access) actually reve= rses the order of its arguments. Here's my patch for that (note the exchang= e of the '$speed' and '$tty' environmental variables):=20 *** init.orig 2016-10-08 17:25:30.853250350 -0500=20 --- init 2016-10-10 10:02:58.629366556 -0500=20 ***************=20 *** 130,136 ****=20 if ! grep -q "^$tty:" $sysroot/etc/inittab; then=20 echo "# enable login on alternative console" \= =20 >> $sysroot/etc/inittab=20 ! echo "$tty::respawn:/sbin/getty $line $speed $tty $term" \=20 >> $sysroot/etc/inittab=20 fi=20 if [ -e "$sysroot"/etc/securetty ] && ! grep -q -w "$tt= y" "$sysroot"/etc/securetty; then=20 --- 130,136 ----=20 if ! grep -q "^$tty:" $sysroot/etc/inittab; then=20 echo "# enable login on alternative console" \= =20 >> $sysroot/etc/inittab=20 ! echo "$tty::respawn:/sbin/getty $line $tty $speed $term" \=20 >> $sysroot/etc/inittab=20 fi=20 if [ -e "$sysroot"/etc/securetty ] && ! grep -q -w "$tt= y" "$sysroot"/etc/securetty; then=20 Unfortunately, even after fixing this (presumptive?) bug, I still can't get= any serial communication after initramfs on boot.=20 Any ideas, please?=20 Thanks,=20 John = --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---