openSUSE Leap 42.2, Raspberry 3, 64b-Image not bootable?

Hi, folks - I wish you a happy new year.

A little problem I have - maybe you could help.

I am using a Raspi3 with SuSE 42.1 (32b) Tumbleweed on a 32GB sdcard for some months now as a small server and firewall. Works nice.
Now I want to try the 64b version of Tumbleweed, but I cannot get the thing to boot.

I bought another 32GB sdcard, downloaded an image from http://download.opensuse.org/ports/aarch64/distribution/leap/42.2/, wrote it to the sdcard as usual, even made a verify and put the card into the Raspi. After power on - nothing. Next image, same nothing. I expanded an image on my hard disk, put it on a loop device and examined sector 0 (the GPU boot loader of the raspi does this too after power on). I did NOT find a FAT partition via sector zero) The GPT points to a FAT partition, but this has not bootcode.bin.
This means, to my understanding, that the image is not bootable for raspberry, which explains why it is not booting.

But there are reports from other people who had success.
I don’t understand it - am I missing something?

Please enlighten me, so that my poor little ARM CPU can soon execute its first real 64b commands :wink:

Regards and have fun,

Ralf

Hi
I used the following to burn the image from <http://download.opensuse.org/ports/aarch64/distribution/leap/42.2/appliances/> onto a 16GB Micro SD card;


xz -cd openSUSE-Leap42.2-ARM-XFCE-raspberrypi3.aarch64-2016.11.25-Build1.15.raw.xz | dd bs=4M of=/dev/mmcblk1 iflag=fullblock oflag=direct

I see you mention openSUSE Tumbleweed (Rolling release), but prefix is openSUSE Leap 42.2, please confirm.

Hi!

Best I can recommend (Raspi support is a mess here and the email list is not helpful, too):

Take the aarch64 TW from here

http://download.opensuse.org/repositories/home:/StefanBruens:/branches:/devel:/ARM:/Factory:/Contrib:/RaspberryPi3/images/

… I found it stable and pretty reliable on 2 raspi 3 for some months now.

:slight_smile:

Germans have a good description for such an animal: Eierlegende Wollmilchsau rotfl!

Hi, malcolmlewis,

sorry my inexactness - I tried both, but neither worked. The last image I tried was
openSUSE-Leap42.2-ARM-JeOS-efi.aarch64-2016.11.25-Build1.12.raw.xz (download verified with sha256)
The problem must be something basic, but I’m stuck.
The hardware I use is a Raspberry 3 which is about half a year old and runs on “openSUSE Tumbleweed” 32b on a 32GB sdcard since then.
I use an USB-SDCard writer, so my raw device is not /dev/mmcblk1 but /dev/sdX, but I used it (and dd) many times before to fiddle around with the image. I dont think the problem is there.
I also copied (via dd) the card content of the working installation to the newly bought sdcard (in order to verify that the new card is OK). It works.
My procedure for trying a newly downloaded image always is

  1. zero the whole sdcard with “dd if=/dev/zero bs=1M of=/dev/sdX”
  2. uncompress <image>.*
  3. dd if=<image> bs=1M of=/dev/sdX
  4. dd bs=1M if=/dev/sdX of=<tempfile>
  5. cmp <tempfile> <image>
    So it is certain that the image was on the card.

Is it possible that the very newest Pi3 models have a different boot loader?

Regards, Ralf

Hi
Please clarify this comment?

True :wink:
It served my well all the time.

This is the main RPi3 page, the links on it are to officially supported images (and always updated).

https://en.opensuse.org/HCL:Raspberry_Pi3

If you want to review the official recommended command and how to burn the image, the info is on the RPiv1 page
Note that it’s different than what you describe. Although what you describe may work, the xzcat command is the officially recommended way which I’ve found works using Linux (There is another procedure which works if you’re burning on a Windows box, but I vastly prefer the official openSUSE instructions).

https://en.opensuse.org/HCL:Raspberry_Pi

From what you describe, I’ve seen similar and always related to burning the image correctly.
If you see <anything> on a monitor when you boot, only then I’ve found it’s some configuration or the image itself.

HTH,
TSU

Hi, rasputin

Thanks! This image works.
I downloaded
openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3_aarch64.aarch64-2016.10.18-Build10.4.raw.xz
and did exactly what I did before with the other images. It boots and reaches the login prompt. That’s all I need.

openSUSE-Leap42.2-ARM-JeOS-efi.aarch64-2016.11.25-Build1.12.raw.xz does not boot.

Out of curiosity I compared the DOS partitions of the two images and I think I found the problem: Bootloader missing.

losetup -r -P -f openSUSE-Leap42.2-ARM-JeOS-efi.aarch64-2016.11.25-Build1.12.raw

mount /dev/loop0p1 /mnt

find /mnt -ls

 1   16 drwxr-xr-x   3 root     root        16384 Jan  1  1970 /mnt
 5    4 drwxr-xr-x   3 root     root         4096 Dec 28 13:10 /mnt/EFI
 7    4 drwxr-xr-x   2 root     root         4096 Dec 28 13:10 /mnt/EFI/BOOT
11  592 -rwxr-xr-x   1 root     root       606208 Dec 28 13:10 /mnt/EFI/BOOT/bootaa64.efi
12    4 -rwxr-xr-x   1 root     root            9 Dec 28 13:10 /mnt/startup.nsh

umount /mnt

losetup -r -P -f openSUSE-Tumbleweed-ARM-JeOS-raspberrypi3_aarch64.aarch64-2016.10.18-Build10.4.raw

mount /dev/loop1p1 /mnt

find /mnt -ls

 1   16 drwxr-xr-x   3 root     root        16384 Jan  1  1970 /mnt
38    4 drwxr-xr-x   3 root     root         4096 Oct 29 18:19 /mnt/EFI
40    4 drwxr-xr-x   2 root     root         4096 Oct 29 18:20 /mnt/EFI/BOOT
42  712 -rwxr-xr-x   1 root     root       729088 Oct 29 18:20 /mnt/EFI/BOOT/bootaa64.efi
43    8 -rwxr-xr-x   1 root     root         6621 Oct 20 20:11 /mnt/fixup.dat
44 2752 -rwxr-xr-x   1 root     root      2816836 Oct 20 20:11 /mnt/start.elf
45  348 -rwxr-xr-x   1 root     root       353032 Oct 14 23:46 /mnt/u-boot.bin
46   20 -rwxr-xr-x   1 root     root        17932 Oct 20 20:11 /mnt/bootcode.bin
47    4 -rwxr-xr-x   1 root     root          938 Sep 27 11:19 /mnt/config.txt
48    4 -rwxr-xr-x   1 root     root            9 Oct 29 18:20 /mnt/startup.nsh

umount /mnt

Somehow the build system which generates the images referenced by https://en.opensuse.org/HCL:Raspberry_Pi3 is generating images without bootloader code.
Also, the page does not seem to be properly updated, as all the links to the upstream-images (Leap and Tumbleweed) are dangling (404, Object not found).
Could please somebody fix the build script? I do not know who is the maintainer, but it would be nice if someone who knows could notify him.

Finally, I want to say thank you for your fast and helpful replies and for the great effort to launch a 64b raspi suse linux.

Have fun and a great 2017,
regards,

   Ralf

…you can post here:

https://lists.opensuse.org/opensuse-arm/

But don’t be surprised if nobody answers for some weeks :slight_smile:

Hi
I’m more interested in the comment about these forums. Then suggest you jump onto IRC #opensuse-arm it’s probably a bit more active.