public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Siong-Ui Te" <siongui@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: [gentoo-embedded] bash script for building toolchain and images using crossdev
Date: Sat, 23 Sep 2006 06:20:54 +0800	[thread overview]
Message-ID: <a7ea0d70609221520i253bc27cl43787865c66cd07e@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1844 bytes --]

Hello,
I really appreciate so much contribution done by Gentoo embedded guys.
Several mouths ago I tried to use Gentoo environment to build single
kernel+rootfs image
successfully and crossdev is really a great utility for building
cross-toolchains.
As a result I wrote this script to automate the whole build procedures.
The single kernel+rootfs image is made using initramfs, so only 2.6 kernel
is usable now.
This script is not quite mature and some implementation is really ugly so
far.
To run this dialog-based script, the following packages are needed:
dev-util/dialog
sys-devel/crossdev
app-portage/mirrorselect

Usage example:
1. Build toolchain i686-gentoo-linux-uclibc.
In Main Menu:
Choose Build->i686->gentoo->linux->uclibc->Choose version[Optional]->Select
build stage
->Select Misc options->Confirm->Start to build-> Follow the steps to
configure toolchain
2. Build rootfs
In Main Menu:
Choose Package->Select toolchain i686-gentoo-linux-uclibc->Select the
packages you want to install
(at least C library, baselayout-lite, and busybox are needed), then the
script start to build packages
and the rootfs is located in /usr/i686-gentoo-linux-uclibc/genroot/rootfs.
3. Build image:
In Main Menu:
Choose Kernel->Select toolchain i686-gentoo-linux-uclibc->Choose
1.InstallKernel->Install gentoo-sources
->Then Choose 2. Configure kernel. remember to enable initramfs and specify
initramfs source as
/usr/i686-gentoo-linux-uclibc/genroot/rootfs ->Choose 5. Build a single
image (Kernel+Rootfs)
Then you can get the image under /usr/src/linux/arch/i386/boot/bzImage

I would like to make it GPL'ed and make it part of the gentoo-embedded
project if Gentoo embedded guys
feel the script really help and fit the goal of the project.
Any suggestions and feedbacks are welcomed.
Sorry for my poor English because I am not a native speaker.

[-- Attachment #1.2: Type: text/html, Size: 2006 bytes --]

[-- Attachment #2: gencross.sh --]
[-- Type: application/x-sh, Size: 36692 bytes --]

             reply	other threads:[~2006-09-22 22:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-22 22:20 Siong-Ui Te [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-09-23 16:28 [gentoo-embedded] bash script for building toolchain and images using crossdev Siong-Ui Te

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a7ea0d70609221520i253bc27cl43787865c66cd07e@mail.gmail.com \
    --to=siongui@gmail.com \
    --cc=gentoo-embedded@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox