X-Original-To: alpine-user@lists.alpinelinux.org Received: from BAY004-OMC2S1.hotmail.com (bay004-omc2s1.hotmail.com [65.54.190.76]) by lists.alpinelinux.org (Postfix) with ESMTP id 70AE15C4340 for ; Tue, 11 Oct 2016 05:11:37 +0000 (GMT) Received: from NAM01-BY2-obe.outbound.protection.outlook.com ([65.54.190.124]) by BAY004-OMC2S1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Mon, 10 Oct 2016 22:11:37 -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=uuPbPZ1NmLHGcTK35ieol2oXiGWTDS8ODgl2rLYhFlk=; b=Uvq0FUpeaTGPhFp4uXnv+ZQZYxvpxNZoLkAjfKXUcDQfO6fFYWDnkYqzvLutttcnja1TF5KjZSACUjokGK48aS+fEPhPfs9hlzFBl1piPb8QR0LFf+sJCz/lo4mUNqkPeapNrrXQKrQ6S8DosghJtDN8nbv9HrM4/1rSgpS0cGXBgFH7e0iMGBf+26AUaLRCkmlF1LSAZP6rpBpy6ryq5gLqs9pKl5r0eoOcjFAmLihWAA5Yox6e2N9gw1mDpkkDAjG95N7CVgvKyGXC78/JyYF6MtF/bQsjNGLPMmgcux9PtjuPhZy8skmD00rGJtlpjOzJBrv0FA8sPB4z5E821w== Received: from BY2NAM01FT057.eop-nam01.prod.protection.outlook.com (10.152.68.57) by BY2NAM01HT201.eop-nam01.prod.protection.outlook.com (10.152.68.190) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5; Tue, 11 Oct 2016 05:11:36 +0000 Received: from SN2PR04MB2207.namprd04.prod.outlook.com (10.152.68.54) by BY2NAM01FT057.mail.protection.outlook.com (10.152.68.191) 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; Tue, 11 Oct 2016 05:11:36 +0000 Received: from SN2PR04MB2207.namprd04.prod.outlook.com ([10.166.211.134]) by SN2PR04MB2207.namprd04.prod.outlook.com ([10.166.211.134]) with mapi id 15.01.0649.027; Tue, 11 Oct 2016 05:11:36 +0000 From: John Henderson To: "alpine-user@lists.alpinelinux.org" Subject: [alpine-user] Unable to access serial console during initial installation Thread-Topic: Unable to access serial console during initial installation Thread-Index: AQHSI3qE2sGe9ggd4UWfTNxQLMRoYg== Date: Tue, 11 Oct 2016 05:11:36 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=softfail (sender IP is 10.152.68.54) smtp.mailfrom=hotmail.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=fail action=none header.from=hotmail.com; received-spf: SoftFail (protection.outlook.com: domain of transitioning hotmail.com discourages use of 10.152.68.54 as permitted sender) x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [Kk1RGoZ5I+01IG9emSAp1RGOpT9BiUVq] x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1;BY2NAM01HT201;6:HtYFutp9uvPGdkZQV9McIkbl0gJsNjqa6mmPPkLuJQZRfeqf4hqwv0proFGuC5An5KiJSM+bKnuJVMPECnrYpC8UQLiREcbnd4DbwvJCugr8c0nSyjzlIRY799s/ey0LxI+wO638TeH/L8ft5wN+Z6+kiL+k3BoMNxeoZZ4IrDx5UeeV2pfW49tj1TIiCXnCqsXdOrQJYog9L01pzshgM/jcgPytzjcZjTVAK8j4Dy4kq6X2jIQzitt5qpcnEjci3zP6bXofcFL7cYYSVqqV9rlJh6YLuTQl4WnVJMzi9bM=;5:0t2xS6atrY59pT0UjW75wTZa3kRM/FRpg3uSMy+xm1uSYNSy/qf5cTVoYDVqJ7TYcLwY68B77homtfoW89HC6KpIDvu85ARgC5ztbsWAI5gdtA59Ne8TLiuz86lRXdtxw9VHyNcq8SeQ9dn0NhDxbg==;24:AAH2rFjo2BkUHooU8LbY3mvl+AyGKsLDVR9wFelvcXbtUX1mqpvFufUphJtcp4sEi3mN94HOwR9JwVSSrL1w/KkHefpgyfTlQxf5y1XnlqU=;7:w2jZmM6ASjjHzzt8p3cP5N/7gGlJh//FN7hG8Djaty5r1mzfutPRV1abrH6nfAcGCf0FZ9+qsfRZmneLg8MInlwZG+Awk7/dIobobGE/Y+CMOTN4AOvMNQC3DtZBU571tHrJM0n6CHpLCPRid8usiKcVjk1CcxyrhHblHv2v72Qsyb/hs8dypBNLIQdSunq1GWoJLrpZzBF5Wt5lQU/hFj5mPiaZ5hfiKmIitDJp9S0pNPuUsLrzirIdtfXPHTQnmCnVHadQwFQIKkbwFT2gpB0slOPzV5bsrudSR9UWcBe7iWzZv4XJPqWrWXH8spDElR+styVWXKkIJTp9UByWJQ== x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2NAM01HT201;H:SN2PR04MB2207.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 0c134f48-a283-4e0f-dde2-08d3f1951357 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(1601124038)(1603103081)(1601125047);SRVR:BY2NAM01HT201; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:BY2NAM01HT201;BCL:0;PCL:0;RULEID:;SRVR:BY2NAM01HT201; x-forefront-prvs: 00922518D8 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailinglist: alpine-user 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: 11 Oct 2016 05:11:36.4216 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM01HT201 X-OriginalArrivalTime: 11 Oct 2016 05:11:37.0517 (UTC) FILETIME=[F167EDD0:01D2237D] Hi, 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= ). 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 expan= sion capabilities to (even temporarily) enable it. I can't even swap HDDs/= SSDs or the like (if I wanted to go down that road), since I'm actually ins= talling Alpine to the eMMC flash soldered on-board the Netgate... For context, I followed the instructions at: http://wiki.alpinelinux.org/wiki/Enable_Serial_Console_on_Boot Namely, I modified the syslinux configuration file ('/boot/syslinux/syslinu= x.cfg') on the default install media, as follows: *** syslinux.cfg.orig 2016-09-28 11:43:51.000000000 -0500 --- syslinux.cfg 2016-10-08 15:44:03.581309751 -0500 *************** *** 1,7 **** =20 timeout 20 prompt 1 default grsec label grsec kernel /boot/vmlinuz-grsec ! append initrd=3D/boot/initramfs-grsec modloop=3D/boot/modloop-grsec mo= dules=3Dloop,squashfs,sd-mod,usb-storage quiet=20 --- 1,8 ---- =20 + serial 0 115200 timeout 20 prompt 1 default grsec label grsec kernel /boot/vmlinuz-grsec ! append initrd=3D/boot/initramfs-grsec modloop=3D/boot/modloop-grsec mo= dules=3Dloop,squashfs,sd-mod,usb-storage console=3DttyS0,115200 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 = might (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 = initramfs is supposed to "inherit" the proper kernel boot command-line para= meters (and therefore continue with a properly configured serial console). = However, that doesn't seem to be happening in this case. 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 exchan= ge of the '$speed' and '$tty' environmental variables): *** init.orig 2016-10-08 17:25:30.853250350 -0500 --- init 2016-10-10 10:02:58.629366556 -0500 *************** *** 130,136 **** if ! grep -q "^$tty:" $sysroot/etc/inittab; then echo "# enable login on alternative console" \ >> $sysroot/etc/inittab ! echo "$tty::respawn:/sbin/getty $line $speed $tty $term" \ >> $sysroot/etc/inittab fi if [ -e "$sysroot"/etc/securetty ] && ! grep -q -w "$tty" "$sysroot"/= etc/securetty; then --- 130,136 ---- if ! grep -q "^$tty:" $sysroot/etc/inittab; then echo "# enable login on alternative console" \ >> $sysroot/etc/inittab ! echo "$tty::respawn:/sbin/getty $line $tty $speed $term" \ >> $sysroot/etc/inittab fi if [ -e "$sysroot"/etc/securetty ] && ! grep -q -w "$tty" "$sysroot"/= etc/securetty; then Unfortunately, even after fixing this (presumptive?) bug, I still can't get= any serial communication after initramfs on boot. Any ideas, please? [BTW, I tried to subscribe to the alpine-user mailing-list (prior to submit= ting this), but my secondary confirmation of list subscription kept on bein= g rejected (not sure why).] Thanks, John --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---