From nobody Thu Mar 28 23:24:24 2024 X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id C7EF5DC0092 for ; Thu, 5 Feb 2015 05:06:22 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id x19so7599264ier.10 for ; Wed, 04 Feb 2015 21:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=vBVzxgBbvvx20F81l61ozAST6y4AT29BmTqc12F7/Rg=; b=Q/sVFTE9/caZ4IH/dbtGAIzhZL9icmS01HIom3ZAfqC87dHTXtM60AB+bCw9G6YMSW +Qw1gOW2KGVgBKlnqlGs+yKgMzYBLkNp4AsRb/lMdH0P0fMEh91/yjk3kqBH4NQhxoFS N2m5chBsYjWC5m2wbz1YTiLPZoJZo1htf/9zCd9wNZjCo+TQGyUWW84ZO/UQo15z8dLv xGUfUmyZf1ww1vsJu3eb+h+0COe133286uczj38hnhlGjH9cjJvcdpl3YTIp8OzqDOuJ sYB2TdXgB+1jQGAi/bs0beX1rW4zyh1lCYZiQbI9GRqKo0ETIJVMbn6TND8xxOB1Y8rV J5jQ== X-Received: by 10.43.54.4 with SMTP id vs4mr5275531icb.72.1423112781765; Wed, 04 Feb 2015 21:06:21 -0800 (PST) Received: from localhost ([107.191.50.102]) by mx.google.com with ESMTPSA id k35sm2005602iod.5.2015.02.04.21.06.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 21:06:21 -0800 (PST) Date: Wed, 4 Feb 2015 23:06:20 -0600 From: Peter Bui To: Alpine-devel Subject: [alpine-devel] Installing to RPI SD Card Message-ID: <20150205050620.GY1524@weasel> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Hello: My question is what is the best way to use the whole SD card on a Raspberry PI? I've recently setup Alpine Linux on a Raspberry Pi using the 3.1.2 tarball. I have figured out how to use setup-alpine and lbu to customize the image (or rather create an overlay), but I've run into the issue of not having enough memory to hold all of the software I wish to run. As you may know, the RPI has a low amount of RAM (my B+ has 512MB). Since the rootfs is stored in memory, I am limited to a root filesystem of 218.7M (according to df -h). This makes it impossible to install larger packages such as xorg and firefox, or even just alpine-sdk (I wanted to build some new packages for the RPI). One workaround I've played around is to partition my SD Card so that mmcblk0p1 is the vfat boot partition and then have mmcblk0p2 be an ext4 partition. At the moment, I'm playing around with chrooting into this second partition which is larger (5GB), but this seems messy and clumsy. Ideally, I would prefer to just install Alpine Linux to the SD Card and use the second partition as the root (keeping the first as a boot partition b/c I believe the bootloader on the RPI requires that). That said, I haven't figured out the appropriate settings for cmdline.txt or config.txt to tell the kernel to use /dev/mmcblk0p2 as the root instead of /dev/mmcblk0p1. Note, I did try setting alpine_dev=mmcblk0p2 in cmdline.txt, but on boot I got an error about /sbin/init being missing and was dropped to an emergency shell. Does anyone have any ideas on how to fully utilize all the space on my SD card? Thanks! -- Peter Bui --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org --- From nobody Thu Mar 28 23:24:24 2024 X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 2158ADC0092 for ; Thu, 5 Feb 2015 06:10:15 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id u10so5289205lbd.9 for ; Wed, 04 Feb 2015 22:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=rnwFCR2M1XCVPVIMFWfACovdPhs0gONyMvf5p+uiAu4=; b=xe0njkgZ+zJ/hlVxRm2J1traEyWeuY2+R2SKlMLdURtB7ZCqSZMsbUNczMBM67NFZN ZG+QrZCx6smRZWCBfXCCKuBMSXKKkljYd6b5uO/DL1ADnLqiOCv4okQPtX9grLMf5iI7 aeqDCc8htlsygw0nfBJ6z3FVmNbGwjPlQhp2+hCRjLyT95hvb7orBTTRUTXaxPWCNjLq XHGGzWp/TGYAz+ONU5r3qgDCknAyRFBAlXiLZdjXclaGpD0xz0uvaKcWMs1pDvzmZB/S zOiB4gGgQ8VknWJJK39JwlOjP/CX7kPMhgQK4/+FiwgDmasR6RXwCDe/MMXLWjJSkCN/ 8j+w== X-Received: by 10.112.164.101 with SMTP id yp5mr1689210lbb.82.1423116614033; Wed, 04 Feb 2015 22:10:14 -0800 (PST) Received: from vostro ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by mx.google.com with ESMTPSA id a9sm282033lak.40.2015.02.04.22.10.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 22:10:13 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Thu, 5 Feb 2015 08:09:43 +0200 From: Timo Teras To: Peter Bui Cc: Alpine-devel Subject: Re: [alpine-devel] Installing to RPI SD Card Message-ID: <20150205080943.6f2533a4@vostro> In-Reply-To: <20150205050620.GY1524@weasel> References: <20150205050620.GY1524@weasel> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 4 Feb 2015 23:06:20 -0600 Peter Bui wrote: > I've recently setup Alpine Linux on a Raspberry Pi using the 3.1.2 > tarball. I have figured out how to use setup-alpine and lbu to > customize the image (or rather create an overlay), but I've run into > the issue of not having enough memory to hold all of the software I > wish to run. > > As you may know, the RPI has a low amount of RAM (my B+ has 512MB). > Since the rootfs is stored in memory, I am limited to a root > filesystem of 218.7M (according to df -h). This makes it impossible > to install larger packages such as xorg and firefox, or even just > alpine-sdk (I wanted to build some new packages for the RPI). It's gonna be slow. 512M is not enough to compile big pieces of software. You probably will need to add swap, and be prepared for *slow* compile times. > One workaround I've played around is to partition my SD Card so that > mmcblk0p1 is the vfat boot partition and then have mmcblk0p2 be an > ext4 partition. At the moment, I'm playing around with chrooting > into this second partition which is larger (5GB), but this seems > messy and clumsy. > > Ideally, I would prefer to just install Alpine Linux to the SD Card > and use the second partition as the root (keeping the first as a boot > partition b/c I believe the bootloader on the RPI requires that). > > That said, I haven't figured out the appropriate settings for > cmdline.txt or config.txt to tell the kernel to use /dev/mmcblk0p2 as > the root instead of /dev/mmcblk0p1. add "root=/dev/mmcblk0p2" > Note, I did try setting alpine_dev=mmcblk0p2 in cmdline.txt, but on > boot I got an error about /sbin/init being missing and was dropped to > an emergency shell. alpine_dev specifies the partition with modloop, and it's also the first attempt to look for apkovl overlay. None of these are required if you use 'root=xxx' > Does anyone have any ideas on how to fully utilize all the space on my > SD card? Thanks! Use root=xxx. That's what the hard disk install do also. /Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---