Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] buildroot and sh4
@ 2010-06-03 22:08 Philippe Reynes
  2010-06-04  7:36 ` Thomas Petazzoni
  0 siblings, 1 reply; 14+ messages in thread
From: Philippe Reynes @ 2010-06-03 22:08 UTC (permalink / raw)
  To: buildroot

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>

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-11-28 20:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03 22:08 [Buildroot] buildroot and sh4 Philippe Reynes
2010-06-04  7:36 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox