From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OSJqD-0007Jd-Bt for garchives@archives.gentoo.org; Sat, 26 Jun 2010 01:05:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDB16E0B77 for ; Sat, 26 Jun 2010 01:05:52 +0000 (UTC) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by pigeon.gentoo.org (Postfix) with ESMTP id 5F860E0B2A for ; Sat, 26 Jun 2010 00:35:23 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id E77661084A4; Fri, 25 Jun 2010 20:35:20 -0400 (EDT) Received: from web6.messagingengine.com ([10.202.2.215]) by compute2.internal (MEProxy); Fri, 25 Jun 2010 20:35:21 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:from:to:mime-version:content-transfer-encoding:content-type:references:subject:in-reply-to:date; s=smtpout; bh=7bFGeuF0F78adWn7KAG2R1WcNUU=; b=Qu/hs7+5fXhJ/OSH1EFlcL+O7UEOsERj4QRmlbV97F/DQ4ZorCJvNrZg/p35V+M7pRAh9atPzT6D0ZrYduYGeAV1RM83GcbyA5tkO/M60NF7d1DFBXsEoeYIy86ZarYTFGdupTj9l8VDQq8uf+df648BEpNmCtj1eoSKdUjJZnY= Received: by web6.messagingengine.com (Postfix, from userid 99) id D53471E5270; Fri, 25 Jun 2010 20:35:20 -0400 (EDT) Message-Id: <1277512520.32047.1381957257@webmail.messagingengine.com> X-Sasl-Enc: 8ny3YlaHUFrtQz6LiQo9FzPHyAPEeFeNu/w1fgTrDQ9I 1277512520 From: jesse@boldandbusted.com To: "Angelo Arrifano" , gentoo-embedded@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Mailer: MessagingEngine.com Webmail Interface References: <1277506840.20491.1381949663@webmail.messagingengine.com> <4C253D90.4090707@gentoo.org> <1277509364.25407.1381952929@webmail.messagingengine.com> <4C254340.5030704@gentoo.org> Subject: Re: [gentoo-embedded] "Gentoo on the Marvell Sheevaplug" Code Listing 3.6 question In-Reply-To: <4C254340.5030704@gentoo.org> Date: Fri, 25 Jun 2010 17:35:20 -0700 X-Archives-Salt: c2196591-8476-4233-a293-33960353737e X-Archives-Hash: 3e4cd6a38c58853e5cf489566969fbb9 On Sat, 26 Jun 2010 02:01 +0200, "Angelo Arrifano" wrote: > On 26-06-2010 01:42, jesse@boldandbusted.com wrote: > > On Sat, 26 Jun 2010 01:36 +0200, "Angelo Arrifano" > > wrote: > >> On 26-06-2010 01:00, jesse@boldandbusted.com wrote: > >>> Howdy. I'd like to know how Gentoo devs build the files in Code Listing > >>> 3.6 in http://dev.gentoo.org/~armin76/arm/sheevaplug/install.xml ? I'd > >>> like to build those files myself, and would love to see your recipe, > >>> even if it's very rough. I'm especially interested in what tools you > >>> used. Thanks. > >> > >> * uImage_kwplug is just Linux - the kernel. The sources are mainly > >> available on kernel.org. You need a cross compiler to build them for > >> this particular Marvell CPU. Look on Gentoo documentation how to build a > >> cross compiler and how to compile the kernel. > >> > >> * sheevaplug.initramfs - This is just the bootable userspace. Since we > >> are at Gentoo, I guess it was produced using our cross-compiler > >> toolchain which is embedded in the Gentoo's package manager. Look on our > >> documentation how to build a cross compiler and cross compile with > >> emerge. > >> > >> Keywords: crossdev, emerge, cross root compilation, cross compile kernel > >> > >> There are no secrets, everything is widely available > >> Have fun ;) > >>> > >>> Cheers, > >>> Jesse Adelman > >>> San Francisco, CA > >>> > >> > >> > > > > Thanks, Angelo. I should have been more specific, and narrow. :) I'm > > really interested in the initramfs generation. I've got a ARM toolchain > > configured (yay qemu-arm and distcc... takes about 48 hours to > > emptytree-build a stripped-down userspace given my resources), and have > > a chrooted ARM rootfs made, but I'm curious how it was made into an > > "initramfs". > > A initramfs is just a cpio archive of your rootfs. You will have to take > special attention to the init process and what init will spawn. Also > take care of required virtual filesystems like proc, and make available > required devices nodes like console and ttys. > > Again, Google for "make initramfs". I came up with this one: > http://en.gentoo-wiki.com/wiki/Initramfs > > If UBoot supports it, you can also try to create an initrd. You can > produce compressed initrds using several tools like mkcramfs, mksquashfs > etc.. > > > My plan is to have boot into an SD Card on the sheevaplugs > > and guruplugs, but booting the rootfs from tftp like the docs do would > > make for easier testing. > > Just configure your initramfs/initrd to mount the SD card and then > pivot_root into the SD card. There are plenty of examples on the > internet, specially with busybox. > > Regards, > > > > Cheers, > > Jesse Adelman > > San Francisco, CA > > So, you-all don't use dracut or mkinitrd? Just a list of commands used to build the stuff you put up for download would be great. Thanks.