From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UPdi5-0002zC-U9 for ptxdist@pengutronix.de; Tue, 09 Apr 2013 20:56:01 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1UPdi3-0007Ot-RH for ptxdist@pengutronix.de; Tue, 09 Apr 2013 20:55:59 +0200 Date: Tue, 9 Apr 2013 20:55:59 +0200 From: Michael Olbrich Message-ID: <20130409185559.GG32214@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Setting custom PTXDIST_TEMPDIR for large image gen? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Tue, Apr 09, 2013 at 05:49:11PM +0200, Dennis.Herbrich@hytera.de wrote: > I configured ptxdist 2013.03.0 to generate a rather large (8GB) hd.img for > me, > but genext2fs fails: > > Creating root.ext2 from working > dir.../home/herbrich/AEOS2/platform-evoc-x86/sysroot-host/bin/genext2fs: > couldn't allocate a block (no free space) > make: *** [/home/herbrich/AEOS2/platform-evoc-x86/images/root.ext2] Error > 1 > > Since I had 30+GB free space in my TOPDIR, I went into the lurking depths > of > ptxdist and discovered what looked like a hardcoded setting of > PTXDIST_TEMPDIR > in the setup_libs_early() function of ptxdist itself: [...] > Unfortunately I don't have 8+GB of RAM+swap handy, and I failed to find a > way to > cleanly set this variable to a location on my HDD. In retrospect I'm glad > that > kernel compilation didn't (yet) die on me with my limited /tmp ramdisk > space! > > So, I guess my questions are: > 1. How can I reliably generate a large-ish hd.img with limited /tmp space? > 2. How can I set a different PTXDIST_TEMPDIR? > > I am not inclined to accept "Dude, ptxdist is for embedded systems, create > a > smaller image already!" as an answer, though, sorry. ;) This has nothing to do with PTXDIST_TEMPDIR. The images are all created in platform-XXX/images/. The error means, that the specified size of the ext2fs (as defined in the platformconfig) is too small. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de