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 ---