git: b4cb3fe0e39a - main - loader: implement mount/unmount rootfs

Toomas Soome tsoome at me.com
Tue Sep 21 10:03:35 UTC 2021



> On 21. Sep 2021, at 13:01, Emmanuel Vadot <manu at bidouilliste.com> wrote:
> 
> On Mon, 20 Sep 2021 19:46:07 +0000 (UTC)
> "Bjoern A. Zeeb" <bzeeb-lists at lists.zabbadoz.net> wrote:
> 
>> On Wed, 8 Sep 2021, Toomas Soome wrote:
>> 
>>> The branch main has been updated by tsoome:
>>> 
>>> URL: https://cgit.FreeBSD.org/src/commit/?id=b4cb3fe0e39a31e60292018dc9fb7510b3de92bf
>>> 
>>> commit b4cb3fe0e39a31e60292018dc9fb7510b3de92bf
>>> Author:     Toomas Soome <tsoome at FreeBSD.org>
>>> AuthorDate: 2021-08-12 05:45:52 +0000
>>> Commit:     Toomas Soome <tsoome at FreeBSD.org>
>>> CommitDate: 2021-09-08 01:01:20 +0000
>>> 
>>>   loader: implement mount/unmount rootfs
>>> 
>>>   We want to keep our root file system open to preserve bcache segment
>>>   between file accesses, thus reducing physical disk IO.
>>> 
>>>   Reviewed by:    imp, allanjude, kevans (previous version)
>>>   Differential Revision:  https://reviews.freebsd.org/D30848
>>>   MFC after:      1 month
>> 
>> 
>> This makes netbooting on at least one of my arm64 impossible:
>> 
>> ------------------------------------------------------------------------
>> Consoles: serial port
>>     Reading loader env vars from /efi/freebsd/loader.env
>> FreeBSD/arm64 EFI loader, Revision 1.1
>> (Mon Sep 20 13:12:35 UTC 2021 root at localhost)
>> 
>>    Command line arguments: loader.efi
>>    Image base: 0xeb7e9000
>>    EFI version: 2.70
>>    EFI Firmware: EDK II (rev 1.00)
>>    Console: comconsole (0)
>>    Load Path:
>>    Load Device: MAC(xxxxxxxxxxxx,0x1)/IPv4(0.0.0.0)
>>    BootCurrent: 0004
>>    BootOrder: 0000 0001 0002 0003 0008 0004[*] 0005 0006 0007
>>    BootInfo Path: MAC(xxxxxxxxxxxx,0x1)/IPv4(0.0.0.0)
>> Ignoring Boot0004: Only one DP found
>> Setting currdev to net0:
>> 
>> 
>> Synchronous Exception at 0x00000000EB8217A8
>> 
>> ------------------------------------------------------------------------
>> 
>> I've backed out this change and rebuild and things boot fine again.
>> 
>> Any idea what I could try?
>> 
>> 
>> /bz
>> 
>> -- 
>> Bjoern A. Zeeb                                                     r15:7
> 
> Same thing for me on u-boot based systems :


Ye, it seems to be the same issue, UEFI netboot is broken, investigating.

sorry,
toomas

> 
> Consoles: EFI
> console Reading loader env vars
> from /efi/freebsd/loader.env FreeBSD/arm64 EFI loader, Revision
> 1.1 
>   Command line arguments:
> loader.efi Image base:
> 0xfbde0000 EFI version:
> 2.80 EFI Firmware: Das U-Boot (rev
> 8225.1792) Console: comconsole
> (0) Load
> Path: /aarch64\loader.efi Load
> Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/MAC(86e0c0eafaa9,1)
> Setting currdev to net0: Speed: 1000, full
> duplex net0: cannot set rx. filters
> (status=3) "Synchronous Abort" handler, esr
> 0x96000004 elr: fffffffffd0f1b9c lr : fffffffffd0effb4
> (reloc) elr: 00000000fbe37b9c lr :
> 00000000fbe35fb4 x0 : fbee447500000000 x1 :
> 0000000000000020 x2 : 0000000000000001 x3 :
> 00000000fbee4452 x4 : 0000000000000073 x5 :
> 0000000000000050 x6 : 00000000fbe357a4 x7 :
> 0000000000000000 x8 : fbee447500000000 x9 :
> fbee447500000000 x10: 0000000000000000 x11:
> 00000000fbee3b86 x12: 0000000000000000 x13:
> 0000000000000000 x14: 0000000000000000 x15:
> 0000000000000000 x16: 0000000000000000 x17:
> 0000000000000000 x18: 0000000000000000 x19:
> 0000000000000020 x20: 00000000fbf05df8 x21:
> 0000000000000000 x22: 0000000000000000 x23:
> fbee447500000000 x24: 0000000000000000 x25:
> 00000000fbf079b0 x26: 00000000fbee4453 x27:
> 00000000fbf079b0 x28: 00000000fbee79ee x29:
> 00000000fbf05d50 
> Code: 8b090100 d65f03c0 927df009 aa0903e8
> (f840850b) UEFI image [0x00000000fbde0000:0x00000000fbf14e9f]
> pc=0x57b9c '/aarch64\loader.efi' Resetting CPU ...
> 
> -- 
> Emmanuel Vadot <manu at bidouilliste.com> <manu at FreeBSD.org>



More information about the dev-commits-src-all mailing list