TranslateProject/sources/openSUSE ARM Gets new Raspberry Pi Images.md
2013-09-16 14:39:15 +08:00

3.2 KiB
Raw Blame History

openSUSE ARM Gets new Raspberry Pi Images

Over the weekend, Bernhard Wiedemann has been working on new armv6 based images for the Raspberry Pi. It is built using a set of alternative build scripts aiming to make the building of the image easier. Hes put the scripts as well as an image online, you can get it from oSC or here (image) and here (scripts). If youre playing around with Raspberry Pi and want to create images for your device(s), this is for you!

###The Image and Building It

As Bernhard explains on his blog, the image he created is only 82mb compressed, so it is pretty minimalistic. The image also contains the scripts he created for building under /home/abuild/rpmbuild/SOURCES/.

img Sadly, the sticker doesnt fit…

If youre interested in playing with the building itself, creating custom images, the following commands will get you going:

osc co devel:ARM:Factory:Contrib:RaspberryPi altimagebuild
cd devel:ARM:Factory:Contrib:RaspberryPi/altimagebuild
bash -x main.sh

He notes: _ If you have 6GB RAM, you can speed things up with export OSC_BUILD_ROOT=/dev/shm/arm before you do. _

This package doesnt build in OBS or with just the osc command as it requires root permissions for some steps. That is why you have to run it by hand and let it do its magic. The under-250-lines of script will go through the following steps:

1.First, osc build is used to pull in required packages and setup the armv6 rootfs. 2.Second, mkrootfs.sh modifies a copy of the rootfs under .root to contain all required configs 3.And finally, mkimage.sh takes the .root dir and creates a .img from it that can be booted

Bernhard claims that: “this can build an image from scatch in three minutes. And my Raspberry Pi booted successfully with it within 55 seconds.”

###Todo and Open Issues

He also points out some remaining open issues:

  • the repo key is initially untrusted
  • still uses old 3.1 kernel
  • build scripts have no error handling

Compared to the old image, this one has some advantages:

  • It is easier to resize as the root partition is the last one
  • Compressed image is much smaller
  • Reproducible image build, so easy to customize
  • It is armv6 with floating point support, so could be faster
  • We have 5200 successfully built packages from openSUSE:Factory:ARM

If you wanted to play with building images for the Raspberry Pi, this might well be the easiest way doing so! And as always, merge requests are very much welcome.

via: https://news.opensuse.org/2013/09/09/opensuse-arm-gets-new-raspberry-pi-images/

本文由 LCTT 原创翻译,Linux中国 荣誉推出

译者:译者ID 校对:校对者ID