Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2022 20:11:23 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Glen Barber <gjb@FreeBSD.org>
Cc:        Warner Losh <imp@bsdimp.com>, Ed Maste <emaste@freebsd.org>, "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>, dev-commits-src-main@freebsd.org, "Dr. Rolf Jansen" <freebsd-rj@cyclaero.com>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: git: 1dfcff294e44 - main - release: increase IMAGE_SIZE for arm, arm64, riscv [odd alignment for SBC images]
Message-ID:  <7E1AE740-FA45-4889-BD70-8EABB0725B39@yahoo.com>
In-Reply-To: <AA836971-668D-49A4-B9ED-8DC5B3C84085@yahoo.com>
References:  <16906DFD-286B-4D59-9438-CA9CD9026C55@yahoo.com> <202207171708.26HH81bA062303@gndrsh.dnsmgr.net> <CAPyFy2D1aBe8h4kq=RqCR2tkEiEXh_pHNEqaAnW7tk9-HxCmBQ@mail.gmail.com> <20220719204245.GL30607@FreeBSD.org> <CANCZdfoABLggPQgDeCZ5FzYCf8243kvr-p8Bj5_JGNnEszGHBw@mail.gmail.com> <D630043D-6EAC-4216-A046-910DB64F8B4A@yahoo.com> <20220729204943.GT30607@FreeBSD.org> <AA836971-668D-49A4-B9ED-8DC5B3C84085@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-Jul-29, at 19:56, Mark Millard <marklmi@yahoo.com> wrote:

> On 2022-Jul-29, at 13:49, Glen Barber <gjb@FreeBSD.org> wrote:
>=20
>> On Wed, Jul 20, 2022 at 10:08:20AM -0700, Mark Millard wrote:
>>> Would it seem appropriate to use a week (this week?) to do all
>>> the snapshot builds with the builders all set to have
>>> kern.geom.part.mbr.enforce_chs=3D0 and see what breaks, if anything?
>>> (Sort of a snapshot exp run.)
>>>=20
>>> More than just the SBC images might be involved for
>>> kern.geom.part.mbr.enforce_ch consequences, for all I know.
>>>=20
>>=20
>> Hey, Mark.
>>=20
>> New snapshots for 13 and 14 are up now.  Is it possible for you to =
check
>> if the issues you had run into are indeed resolved, after setting
>> kern.geom.part.mbr.enforce_chs=3D0 on the builders?
>>=20
>=20
> Well, it is a mix, I think (unsure).
>=20
> I started with:
>=20
> # dd =
if=3DFreeBSD-13.1-STABLE-arm64-aarch64-RPI-20220729-db2eff1cff8-251976.img=
 of=3D/dev/da0 conv=3Dsync,fsync bs=3D1m status=3Dprogress
>  5222957056 bytes (5223 MB, 4981 MiB) transferred 21.027s, 248 MB/s
> 5120+0 records in
> 5120+0 records out
> 5368709120 bytes transferred in 21.816899 secs (246080301 bytes/sec)
>=20
> I plugged the USB3 SSD into an old 8 GiByte RPi4B and it booted.
>=20
> . . .
> Starting file system checks:
> /dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
> /dev/ufs/rootfs: clean, 499417 free (1153 frags, 62283 blocks, 0.1% =
fragmentation)
> Growing root partition to fill device
> random: randomdev_wait_until_seeded unblock wait
> random: randomdev_wait_until_seeded unblock wait
> random: unblocking device.
> GEOM_PART: ufs/rootfs was automatically resized.
>  Use `gpart commit ufs/rootfs` to save changes or `gpart undo =
ufs/rootfs` to revert them.
> da0s2 resized
> super-block backups (for fsck_ffs -b #) at:
> 11524224, 12804672, 14085120, 15365568, 16646016, 17926464, 19206912,
> . . .
>=20
> But, after logging in:
>=20
> root@generic:~ # gpart show
> =3D>       63  468862065  da0  MBR  (224G)
>         63       1985       - free -  (993K)
>       2048     102400    1  fat32lba  [active]  (50M)
>     104448  468757680    2  freebsd  (224G)
>=20
> root@generic:~ # gpart show -p
> =3D>       63  468862065    da0  MBR  (224G)
>         63       1985         - free -  (993K)
>       2048     102400  da0s1  fat32lba  [active]  (50M)
>     104448  468757680  da0s2  freebsd  (224G)
>=20
> So 1985 and 2048 are there, as intended.
>=20
> But no explicit da0s2 BSD or da0s2a freebsd-ufs shows up
> in gpart show's output.
>=20
> I wonder if this is because of a lack of a distinct
> starting offset vs. the BSD. For example, the old 2016
> and 2079 alignment had showed:
>=20
> =3D>        0  468757737   da0s2  BSD  (224G)
>          0         57          - free -  (29K)
>         57  468757680  da0s2a  freebsd-ufs  (224G)
>=20
> where the 57 was, appearently, for alignment. May be now
> the distance from the da0s2 to da0s2a is zero and so
> BSD and its contained da0s2a is not now shown?
>=20
> I've yet to try the 14-CURRENT.
>=20

It did not survive a simple reboot test:

. . .
FreeBSD/arm64 EFI loader, Revision 1.1

   Command line arguments: loader.efi
   Image base: 0x39b08000
   EFI version: 2.90
   EFI Firmware: Das U-Boot (rev 8226.1024)
   Console: efi (0x1000)
   Load Path: /efi\boot\bootaa64.efi
   Load Device: =
/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)=
/UsbClass(0x1e91,0xa2a5,0x0,0x0,0x0)/HD(1,0x01,0,0x800,0x19000)
Trying ESP: =
/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)=
/UsbClass(0x1e91,0xa2a5,0x0,0x0,0x0)/HD(1,0x01,0,0x800,0x19000)
Setting currdev to disk1p1:
Trying: =
/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/UsbClass(0x0,0x0,0x9,0x0,0x3)=
/UsbClass(0x1e91,0xa2a5,0x0,0x0,0x0)/HD(2,0x01,0,0x19800,0x1bf0acb0)
Setting currdev to disk1p2:
ERROR: cannot open /boot/lua/loader.lua: no such file or directory.


Type '?' for a list of commands, 'help' for more detailed help.
OK lsdev
disk devices:
    disk0:    60258304 X 512 blocks (removable)
    disk1:    468862128 X 512 blocks
      disk1s1: DOS/Windows
      disk1s2: FreeBSD
        disk1s2a: FreeBSD UFS
http: (unknown)
net devices:
    net0:
OK ls  =20
/
 d  EFI
 d  dtb
    README
    u-boot.bin
    armstub8.bin
    armstub8-gic.bin
    bootcode.bin
    fixup_cd.dat
    fixup_db.dat
    fixup_x.dat
    fixup.dat
    LICENCE.broadcom
    start_cd.elf
    start_db.elf
    start_x.elf
    start.elf
    fixup4.dat
    fixup4cd.dat
    fixup4db.dat
    fixup4x.dat
    start4.elf
    start4cd.elf
    start4db.elf
    start4x.elf
    bcm2710-rpi-2-b.dtb
    bcm2710-rpi-3-b.dtb
    bcm2710-rpi-3-b-plus.dtb
    bcm2711-rpi-4-b.dtb
    config.txt
 d  overlays
OK show
COLUMNS=3D200
LINES=3D60
autoboot_delay=3DNO
boot_serial=3DYES
console=3Defi
currdev=3Ddisk1s1:
efi-version=3D2.90
efi_com_port=3D0
efi_com_speed=3D9600
hint.smbios.0.mem=3D0x39c2e000
interpret=3DOK
loaddev=3Ddisk1s1:
prompt=3D${interpret}
script.lang=3Dlua
smbios.bios.reldate=3D04/01/2022
smbios.bios.vendor=3DU-Boot
smbios.bios.version=3D2022.04
smbios.chassis.maker=3DUnknown
smbios.chassis.type=3DDesktop
smbios.planar.maker=3DUnknown
smbios.planar.product=3DUnknown Product
smbios.socket.enabled=3D1
smbios.system.maker=3DUnknown
smbios.system.product=3DUnknown Product
smbios.system.serial=3D100000007151395e
smbios.system.uuid=3D30303031-3030-3030-3731-353133393565
smbios.version=3D3.0
twiddle_divisor=3D16

So definitely not working for a 2nd boot.


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7E1AE740-FA45-4889-BD70-8EABB0725B39>