Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752270AbdDCVFT (ORCPT ); Mon, 3 Apr 2017 17:05:19 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:35100 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751564AbdDCVFR (ORCPT ); Mon, 3 Apr 2017 17:05:17 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170401222119.25106-1-nicolas.pitre@linaro.org> <87pogur0y9.fsf@firstfloor.org> <92fb1e4a-d6df-f55b-c0a1-9c1eb78e3943@longlandclan.id.au> From: Andy Shevchenko Date: Tue, 4 Apr 2017 00:05:10 +0300 Message-ID: Subject: Re: [PATCH v2 0/5] minitty: a minimal TTY layer alternative for embedded systems To: Geert Uytterhoeven , Tom Zanussi Cc: Stuart Longland , Nicolas Pitre , Andi Kleen , Greg Kroah-Hartman , Jiri Slaby , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 30 +Cc: Tom Summon Tom to the discussion. He tried once hard to shrink a Linux kernel to something working in 1M+ RAM on x86. Tom, sorry, I recall this a bit late, perhaps you might be interested in reading discussion from the beginning. On Mon, Apr 3, 2017 at 9:14 PM, Geert Uytterhoeven wrote: > On Mon, Apr 3, 2017 at 12:44 AM, Stuart Longland > wrote: >> On 03/04/17 07:41, Nicolas Pitre wrote: >>>> No PTYs seems like a big limitation. This means no sshd? >>> Again, my ultimate system target is in the sub-megabyte of RAM. I >>> really doubt you'll be able to fit an SSH server in there even if PTYs >>> were supported, unless sshd (or dropbear) can be made really tiny. >>> Otherwise you most probably have sufficient resources to run the regular >>> TTY code. >> >> Are we talking small microcontrollers here? The smallest machine in >> terms of RAM I ever recall running Linux on was a 386SX/25 MHz with 4MB >> RAM, and that had a MMU. > > Let's halve that. I once tried and ran Linux in 2 MiB, incl. X, twm, and xterm. > Of course with swap enabled. And swapping like hell. -- With Best Regards, Andy Shevchenko