From: Philippe Reynes <tremyfr@yahoo.fr>
To: buildroot@busybox.net
Subject: [Buildroot] buildroot and sh4
Date: Thu, 3 Jun 2010 22:08:17 +0000 (GMT) [thread overview]
Message-ID: <618052.82706.qm@web23107.mail.ird.yahoo.com> (raw)
Hi
I've done a little doc about building an image for sh4 with buildroot and run it
with qemu. As you could see, it's quite trivial, except the option for the compiler,
and option for qemu.
1) get builroot source
git clone git://git.buildroot.net/buildroot
2) go in buildroot directory
cd buildroot
3) configure builroot
run : make menuconfig
and set :
Target Architecture => superh
Target Architecure variant => sh4
Target options => nothing to change
Build options => nothing to change
Toolchain =>
??? GCC compiler Version => 4.4.x
??? Additionnal gcc options => --with-multilib-list=m4,m4-nofpu
??? Enable multilib support => yes
Package Section for the target => nothing to change
Target filesystem options => nothing to change
Bootloader => no
Kernel =>
??? Kernel type => linux (advanced configuration)
??? Linux kernel version => The latest stable Linux kernel (2.6.33.4)
??? Patches => nothing to change
??? Linux Kernel Configuration => nothing to change
??? kernel binary format => zImage
??? Destination for linux kernel binaries => nothing to change
4) compile buildroot
make all
as kernel config file, use this one :
config_2_6_33_4_sh.txt
5) run qemu
qemu-system-sh4 -M r2d -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=ide,format=raw -append root=/dev/sda console=tty0 console=ttySC1,115200 noiotrap
the config file can be found here : http://www.zarb.org/~trem/sh/
there are 2 files :
- install_br_sh4.txt : this little doc
- config_2_6_33_4_sh.txt : configuration for a kernel 2.6.33.4 on sh4
I hope this little doc will be usefull, and I'll be pleased to get feedback,
trem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100603/5154f468/attachment.html>
next reply other threads:[~2010-06-03 22:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 22:08 Philippe Reynes [this message]
2010-06-04 7:36 ` [Buildroot] buildroot and sh4 Thomas Petazzoni
2010-06-04 8:39 ` Pierre Ficheux
2010-06-04 9:17 ` Thomas Petazzoni
2010-06-04 10:37 ` Peter Korsgaard
2010-06-04 22:12 ` Philippe Reynes
2010-06-07 9:14 ` Phil Edworthy
2010-07-03 10:52 ` Philippe Reynes
2010-07-27 22:16 ` Philippe Reynes
2010-11-07 18:28 ` Thomas Petazzoni
2010-11-10 14:11 ` Phil Edworthy
2010-11-14 22:09 ` trem
2010-11-15 22:26 ` Thomas Petazzoni
2010-11-28 20:07 ` trem
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=618052.82706.qm@web23107.mail.ird.yahoo.com \
--to=tremyfr@yahoo.fr \
--cc=buildroot@busybox.net \
/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