[opensuse-arm] How-to: ARMv6 Factory on Raspberry Pi (preliminary)
Hello, Here's a quick reconstruction of how I got current openSUSE Factory running on a Raspberry Pi Model B. Unlike Bernhard's image this should be future-proof (armv6) but is targeting experienced Linux users; beginners should better wait to download an official 13.1 image. 1.) Build an ARMv6 JeOS rootfs $ osc co openSUSE:Factory:ARM JeOS.armv6 $ cd openSUSE:Factory:ARM/JeOS.armv6 $ osc build --alternative-project=openSUSE:Factory:ARM images armv6l Grab from the buildroot usr/src/packages/KIWI/openSUSE-Factory-ARM-JeOS-rootfs.armv7l-1.12.1.tbz (version will vary; for some reason it's misnamed armv7l). Note that the reason I am doing this is that Factory is not publishing images ATM. And for the same reason the image will contain packages that have not yet been published, later visible as "(System Package)" in `zypper se -i -s` on the RPi. 2.) Partition an SD card Using gnome-disks, parted, fdisk or any other tool of your liking, format the SD card using MBR partitioning scheme with at least one FAT partition and one Linux (e.g., ext4) partition. You may need to tweak the partition type of the FAT partition from "Linux" to "W95 FAT16" or the like. 3.) Prepare boot partition Mount the FAT partition. Download the following packages from http://download.opensuse.org/repositories/devel:/ARM:/Factory:/Contrib:/Rasp... * raspberrypi-firmware * u-boot-rpib * kernel-raspberrypi Extract the ./boot/ files from raspberrypi-firmware .rpm to the root of the FAT partition. Extract u-boot.bin from u-boot-rpib .rpm as loader.bin to the root of the FAT partition. Extract the ./boot/ files from kernel-raspberrypi .rpm to the root of the FAT partition and copy Image-* file as kernel.img. config.txt or cmdline.txt files were not strictly necessary in my case. Cf. Bernhard's image or Google for examples. 4.) Prepare root partition Mount the ext4 partition. Extract the rootfs using # tar xvjf path/to/openSUSE-Factory-ARM-JeOS-rootfs.armv7l-1.12.1.tbz (I did # rpm2cpio path/to/raspberrypi-gfx-*.rpm | cpio -idvm on top, but better install it later via zypper when needed). 5.) Have a lot of fun Sync, unmount, insert the SD card, etc. Connecting micro USB for power, you should see on HDMI output a colored rectangle, followed by kernel output with a Raspberry Pi logo. If you see a black screen only, check the partitioning. If you see the colored screen only, check the files in FAT partition. If you get an illegal instruction terminating YaST firstboot, see Guillaume's libopenssl/openssl workaround. To rerun firstboot afterwards, touch /var/lib/YaST/reconfig_system followed by reboot. The fix has been accepted into Base:System and there is no link diff to openSUSE:Factory, so hopefully by the time you build your JeOS this will no longer be an issue. Hint: Having connected the Raspberry Pi to a TV with no wired network available, I found it handy to use the shared IPv4 setting in GNOME network preferences on my notebook to have the Raspberry Pi connect to Wifi/Internet via cable to the notebook - for NTP among other things. HTH, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Am 06.09.2013 03:28, schrieb Andreas Färber:
1.) Build an ARMv6 JeOS rootfs
$ osc co openSUSE:Factory:ARM JeOS.armv6 $ cd openSUSE:Factory:ARM/JeOS.armv6 $ osc build --alternative-project=openSUSE:Factory:ARM images armv6l
Obviously $ osc build --alternative-project=openSUSE:Factory:ARM images armv6l JeOS.kiwi Might the lack of JeOS.armv6.kiwi be the reason why this package does not get published? Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 06/09/2013 10:46, Andreas Färber a écrit :
Am 06.09.2013 03:28, schrieb Andreas Färber:
1.) Build an ARMv6 JeOS rootfs
$ osc co openSUSE:Factory:ARM JeOS.armv6 $ cd openSUSE:Factory:ARM/JeOS.armv6 $ osc build --alternative-project=openSUSE:Factory:ARM images armv6l Obviously $ osc build --alternative-project=openSUSE:Factory:ARM images armv6l JeOS.kiwi
Might the lack of JeOS.armv6.kiwi be the reason why this package does not get published?
It could be. Maybe Dirk or Alex could give a better answer than me about that. ;) I uploaded a new image (with fixed RPM). I am downloading it to check that the upload did not corrupt it. Once it is OK, I will make it available for public download. It would be easier for most people compared to rebuild an SD card from scratch for RPi. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On Fri, 6 Sep 2013, Guillaume Gardet wrote:
Obviously $ osc build --alternative-project=openSUSE:Factory:ARM images armv6l JeOS.kiwi
Might the lack of JeOS.armv6.kiwi be the reason why this package does not get published?
It could be. Maybe Dirk or Alex could give a better answer than me about that. ;)
It is not meant to be built. The final package is JeOS-raspberrypi or XFCE-raspberrypi. If I understand it correctly that should already include most of the steps you mentioned. Fixes and bug-reports welcome - This is the first time I have to do with kiwi, so I don't understand the build process completely - but it seems currently the kiwi issues are fixed and now it hangs due to perl incompatibilities caused by package updates. The plain RPM parts are complicated enough - kiwi creates an additional level of problems. ;-) Ciao -- http://www.dstoecker.eu/ (PGP key available) -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi,
Might the lack of JeOS.armv6.kiwi be the reason why this package does not get published?
Yes, quite likely.
It is not meant to be built. The final package is JeOS-raspberrypi or XFCE-raspberrypi.
It actually is meant to be built, because thats the package that builds the rootfs. Greetings, Dirk -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On Sat, 7 Sep 2013, Dirk Müller wrote:
It is not meant to be built. The final package is JeOS-raspberrypi or XFCE-raspberrypi.
It actually is meant to be built, because thats the package that builds the rootfs.
??? The package is disabled! And JeOS-raspberrypi and XFCE-raspberrypi are links to it. Ciao -- http://www.dstoecker.eu/ (PGP key available)
Le 07/09/2013 18:49, Dirk Stöcker a écrit :
On Sat, 7 Sep 2013, Dirk Müller wrote:
It is not meant to be built. The final package is JeOS-raspberrypi or XFCE-raspberrypi.
It actually is meant to be built, because thats the package that builds the rootfs.
???
The package is disabled!
It is disabled in RPi Contrib repo only. In Factory:ARM repo it is enabled. Guillaume
And JeOS-raspberrypi and XFCE-raspberrypi are links to it.
Ciao
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On Sat, 7 Sep 2013, Guillaume Gardet wrote:
The package is disabled!
It is disabled in RPi Contrib repo only. In Factory:ARM repo it is enabled.
Sure. I though we talk about "Raspberry Pi" here. Ciao -- http://www.dstoecker.eu/ (PGP key available) -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (4)
-
Andreas Färber
-
Dirk Müller
-
Dirk Stöcker
-
Guillaume Gardet