Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2017 09:05:53 -0600
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-current@freebsd.org
Cc:        tsoome@me.com
Subject:   Re: Crochet build for Pi3 fails to boot on r313441 (and later), works on r313109
Message-ID:  <5128b9a9-1186-8c6c-6227-e5e8a087cf89@denninger.net>
In-Reply-To: <F4D44CDD-BEF6-4E21-848A-745B88440617@me.com>
References:  <517ab0d5-412a-35dd-7d0d-d8297af43b46@denninger.net> <4a6f872b-cee1-57e5-7a72-a1d445f9926f@denninger.net> <F4D44CDD-BEF6-4E21-848A-745B88440617@me.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms000600030805080004020705
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


On 2/9/2017 08:58, Toomas Soome wrote:
>> On 9. veebr 2017, at 16:36, Karl Denninger <karl@denninger.net> wrote:=

>>
>>
>> On 2/8/2017 16:18, Karl Denninger wrote:
>>> r313441 blows up on the Pi3 in /boot/loader.efi with:
>>>
>>> FreeBSD/arm64 EFI loader, Revision 1.1
>>> (Tue Feb  7 15:15:52 CST 2017 freebsd@NewFS.denninger.net)
>>> Failed to start image provided by UFS (14)
>>> "Synchronous Abort" handler, esr 0x96000004
>>> ELR:     3af62cec
>>> LR:      3af61d60
>>> x0 : 0000000000000001 x1 : 0000000000000001
>>> x2 : 000000003afeb000 x3 : 000000000000003f
>>> x4 : 0000000000000020 x5 : 0000000000000010
>>> x6 : 0000000000000000 x7 : 0000000039b260a4
>>> x8 : 000000003af61d48 x9 : 000000000000000d
>>> x10: 0000000000000030 x11: 0000000000000000
>>> x12: 0000000000000000 x13: 0000000000000002
>>> x14: 0000000000000000 x15: 0000000000000000
>>> x16: 0000000000000000 x17: 0000000000000000
>>> x18: 000000003ab30df8 x19: 0000000037a16008
>>> x20: 0000000000000000 x21: 0000000000000000
>>> x22: 0000000039b28000 x23: 0000000039b1d49c
>>> x24: 0000000039b28850 x25: 000000003ab3d740
>>> x26: 000000003af839a0 x27: 0000000039b2e3e8
>>> x28: 0000000000000000 x29: 000000003ab2ef60
>>>
>>> Resetting CPU ...
>>>
>>> If you copy in a loader.efi from an earlier build (e.g. r313109) then=
 the system boots but complains about SMP problems, fails to start any of=
 the other CPUs (although it sees them) and panics before it reaches a lo=
gin prompt with what appears to be a problem reading the SD card (I also =
get a couple of lor's in here too..... not sure if those are "real" or fa=
lse positives)
>>>
>>> B
>> This has been isolated to r313333 in sys/boot/efi; reverting the EFI
>> loader to a previous revision stops the crash.
>>
>> Filed here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216940=
 <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216940>;
>>
> Does it still crash with r313442? I think it does and this is why:
>
> From your log above, the hint is "Failed to start image provided by UFS=
 (14)=E2=80=9D, so what we can guess here is that for some reason the loa=
der.efi main() failed to detect the boot device, and did return back to b=
oot1.
>
> Boot1 did print out this error message and did call panic(). So, the qu=
estion is, why it is failing to detect the root fs handle. I=E2=80=99ll t=
ry to check if I can replicate the issue with x86 + ufs.
>
> BTW: sorry for trouble:)
>
> rgds,
> toomas
>
Yes.

It's isolated to that particular revision, which appears to have
reworked the enumeration of the available devices to boot from.=20
Reverting only sys/boot/efi to anything before 313333 (e.g. "svn update
-r 313332 ." in src/sys/boot/efi) and rebuilding results in a loader.efi
that successfully loads and starts the kernel.

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

--------------ms000600030805080004020705
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC
BlwwggZYMIIEQKADAgECAgE9MA0GCSqGSIb3DQEBCwUAMIGQMQswCQYDVQQGEw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BQAEggIAgdDLsc/mlR9Y
3dZHs0sC73PIzBru2E/TXzqAKSNboVD/8RETYobbU5xCIV1Z40iE65tkKrA5oxA5wwvR3wOo
wpqIaOSinkbLSlN49TwYY8MOhXXG41LhX8nAVL5PpoA5AyGGirmre4OUqpu5uJeHT5qa/t4F
UwsSYNuo0afv7TOFVSlnZXuVwH8otKgcSkzD14axdfKMQkctDpEbSSOqLr9uJdePgXReLSVB
FTsff/MvruHk6lvIBivmJyGWEifmHClOmSwvcSSREAVMVzTRgRrRSGdk/Dh5Yu18wxrr9VHs
u/KhU0tvmuKw/7qwuzJK8dLCzgU1aDEXqljlZ7dhC4pCKRoWfUoxTdw8iakLIEDWCMr0hBy3
M5ll8UKbz+40BpQ+ukqAawjpCfDUcGs2Twq5/d0v3TSMANKQ/nX7UoepnFh6GskDlcvZKWOn
oXARzhbOJkF4+mzehqYXsc9Hvl8cx7xIOlAWW5ZbTrZibdZwWzF3YntC0AkmjEGV0KuNPhLR
m9BR2aTNyJgVQM4LkIPRXF9nGrSQB2LN/aVpa2y5wdmFF1SzpwxQwJTmXtlcXpPN2CQCKelS
SKLPEAx5MzUlViKWYIr/BzYMZVgWlBxCHq9V61w8vREqaYM/oyYLB3WmuI5Gzik8KMbQWLOI
FfVfb7SHqBfUF/5HfAGlO08AAAAAAAA=
--------------ms000600030805080004020705--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5128b9a9-1186-8c6c-6227-e5e8a087cf89>