Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1CD7DE00A81; Tue, 1 Dec 2015 04:55:43 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% * [score: 0.3715] X-Greylist: delayed 1810 seconds by postgrey-1.32 at yocto-www; Tue, 01 Dec 2015 04:55:40 PST Received: from extendnet.co.uk (extendnet.co.uk [91.109.6.213]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id F1C4CE00A4F for ; Tue, 1 Dec 2015 04:55:40 -0800 (PST) Received: from host86-169-244-46.range86-169.btcentralplus.com ([86.169.244.46]:56689 helo=yellow) by ultra10.extendnet.co.uk with esmtpa (Exim 4.86) (envelope-from ) id 1a3jzi-0001JP-Ki for yocto@yoctoproject.org; Tue, 01 Dec 2015 12:25:18 +0000 From: "Christopher Hossack" To: Date: Tue, 1 Dec 2015 12:25:17 -0000 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AdEsM1ZBxMwE10gXTrWq+dkV48iUkA== X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 X-Antivirus: avast! (VPS 151130-1, 30/11/2015), Outbound message X-Antivirus-Status: Clean X-eXtendnet-MailScanner-Information: Please contact the ISP for more information X-eXtendnet-MailScanner-ID: 1a3jzi-0001JP-Ki X-eXtendnet-MailScanner: Found to be clean X-eXtendnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.901, required 5, ALL_TRUSTED -1.00, BAYES_50 0.80, KAM_COUK 1.10, URIBL_BLOCKED 0.00) X-eXtendnet-MailScanner-From: hossa1c@generictech.co.uk X-eXtendnet-MailScanner-Watermark: 1449577519.10152@tM/B5CnU6TmlDQeowKBcFw X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ultra10.extendnet.co.uk X-AntiAbuse: Original Domain - yoctoproject.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - generictech.co.uk X-Get-Message-Sender-Via: ultra10.extendnet.co.uk: authenticated_id: hossa1c@generictech.co.uk X-Authenticated-Sender: ultra10.extendnet.co.uk: hossa1c@generictech.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Mailman-Approved-At: Tue, 01 Dec 2015 07:58:05 -0800 Subject: creating a ubuntu rootfs X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 12:55:43 -0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I'm trying to create a Yocto kernel with a ubuntu-core rootfs. At the moment I'm creating a core-image-base and then splatting an ubuntu-core-12.04.5-core-armhf.tar.gz over the rootfs on the image. eg Create a core-image-base image $ bitbake core-image-base Insert a sdcard and copy the core image on to it and then mount the rootfs $ sudo dd if=~/core-image-base-imx6qsabresd.sdcard of=/dev/sdb bs=1M && sync sudo mount /dev/sdb2 /mnt/sdcard/ Remove all files on the sdcard rootfs (eg sdb2) and then untar the unbuntu core over the old rootfs, eg $ cd /mnt/sdcard $ sudo tar -xf ~/ubuntu-precise-12.04.3-armhf.com-20131129.tar.xz Then copy the original fsl-image-base lib/modules/* & boot/* over the ubuntu core rootfs $ cd ~ $ sudo mount -o loop -t ext3 core-image-base-imx6qsabresd.ext3 rootfs $ sudo rsync -artv rootfs/lib/modules/ /mnt/sdcard/lib/modules/ $ sudo rsync -artv rootfs/boot/ /mnt/sdcard/boot/ To auto login to the ubuntu user on the serial console. $ sudo vi /mnt/sdcard/etc/init/ttymcx0.conf start on stopped rc RUNLEVEL=[12345] stop on runlevel [!12345] respawn exec /sbin/getty -a ubuntu -L ttymxc0 115200 vt102 This all works, but I would really like to create a recipe that does all of this work for me. But I believe my new recipe can't delete anything already installed on the rootfs. So I need to create a recipe that only installs /lib/modules/* /boot/* and kernel source files (I also want to build kernel drivers on the target so I guess I will also need recipe kernel-devsrc) on the rootfs. I've looked at core-image-base (and others) and this seems to inherit image.bbclass, but this adds a basic rootfs which will stop me from splatting my ubuntu-core over it. Can Yocto be configured to achieve this or should I stick to my current hack? Cheers Chris