From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WfAOp-0001kX-IF for ptxdist@pengutronix.de; Tue, 29 Apr 2014 17:56:52 +0200 Received: by mail-ee0-f44.google.com with SMTP id c41so468450eek.17 for ; Tue, 29 Apr 2014 08:56:48 -0700 (PDT) Received: from omega (p20030064A92A8B35E2CB4EFFFE1BB546.dip0.t-ipconnect.de. [2003:64:a92a:8b35:e2cb:4eff:fe1b:b546]) by mx.google.com with ESMTPSA id s46sm60233693ees.3.2014.04.29.08.56.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Apr 2014 08:56:47 -0700 (PDT) Date: Tue, 29 Apr 2014 17:56:42 +0200 From: Alexander Aring Message-ID: <20140429155639.GA30590@omega> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] 'uImage-mini2440' -> '/dev/nand0.kernel.bb' No space left on device 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 Stella, On Tue, Apr 29, 2014 at 03:43:15PM +0000, Stella GZ wrote: > Hello, > > I'm working with the following configuration: > OSELAS.Toolchain-2013.12.1 > ptxdist-2014.04.0 > OSELAS.BSP-Pengutronix-Mini2440-HEAD-ada838e > > I can create the kernel and filesystem images correctly, but when I try to > update my mini2440 (update -t kernel -d nand), I get the following error: > > erasing partition /dev/nand0.kernel.bb > > flashing uImage-mini2440 to /dev/nand0.kernel.bb > > TFTP from server 192.168.0.136 ('uImage-mini2440' -> '/dev/nand0.kernel.bb') > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ###################write: No space left on device > > I would say it seems that your /dev/nand0.kernel.bb is not big enough for the kernel image, so the kernel doesn't fit in. You have two choices: 1) Make the kernel smaller. This is more complicated and you should know what you doing there. In ptxdist kernelconfig disable some feature or compile with -Os. 2) Make the /dev/nand0.kernel partition bigger, which should much easier to be done. I suppose you have a barebox with a defaultenv in version one (You use the update script there). In the barebox shell type 'edit /env/config' and search for the part: nand_parts="256k(barebox)ro,128k(bareboxenv),3M(kernel),-(root)" In this example the kernel partition is 3M which stands for megabyte big. Try to increase your partition and reflash kernel and rootfs. You need to that afterwards because the kernel partition fill be overlapped with the root partition, so be sure you saved everything from the rootfs before you do that. One notice about the edit command, you can save it with "Ctrl-D" and type "saveenv" afterwards. Then reset the board. - Alex -- ptxdist mailing list ptxdist@pengutronix.de