Bug 216504 - RPI-B-20170105-r311441 image causes continuous reboot
Summary: RPI-B-20170105-r311441 image causes continuous reboot
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 11.0-STABLE
Hardware: arm Any
: --- Affects Many People
Assignee: Oleksandr Tymoshenko
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2017-01-26 20:23 UTC by Michael Cress
Modified: 2017-02-04 01:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cress 2017-01-26 20:23:11 UTC
FreeBSD-11.0-STABLE-arm-armv6-RPI-B-20170105-r311441.img.xz causes a continuous reboot immediately after power-on of my Raspberry Pi Model B (original). This appears after the messages about uBoot/uEnv.txt. This did not occur with FreeBSD-11.0-STABLE-arm-armv6-RPI-B-20161209-r309771.img.xz. Unfortunately, the reboot happens so fast that I am unable to read the contents of the screen but cant tell that it dumps data in a somewhat tabular formatted fashion.
Comment 1 punasipuli 2017-01-26 20:43:00 UTC
I had the same issues with the latest snapshot. 

I've tried the RPI-B snapshot image for a Raspberry Pi Zero and it ends
up in a boot loop just after u-boot. I can not connect a keyboard to
hold the screen.

It seems, that only the latest snapshot of FreeBSD-11.0-STABLE-arm-armv6-RPI-B-20170105-r311441.img.xz don't boot.

The images before 2017 are booting fine with FreeBSD-11.0-STABLE and the
RPi Zero.
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-02-04 01:25:25 UTC
A commit references this bug:

Author: gonzo
Date: Sat Feb  4 01:24:21 UTC 2017
New revision: 313183
URL: https://svnweb.freebsd.org/changeset/base/313183

Log:
  MFC r310124 (by andrew):

  Add -fPIC to the ubldr build. Without this the self relocation code will
  try to use an absolute address in a switch statement, jumping to an invalid
  memory location.

  Sponsored by:	ABT Systems Ltd

  PR:		216504

Changes:
_U  stable/11/
  stable/11/sys/boot/arm/uboot/Makefile
Comment 3 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2017-02-04 01:27:58 UTC
The problem was regression in ubldr caused by clang 3.9.1 import. It was fixed in HEAD but never backported to STABLE-11. Next image should be OK.

Possible workaround is to replace UBLDR and UBLDR.BIN in affected images with the version from pre-2017 images. 

Thanks for reporting