Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2023 10:08:18 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        mike@karels.net
Cc:        freebsd-arm@freebsd.org
Subject:   Re: BeagleBone Black does not boot -current (DTB incompatibility?)
Message-ID:  <DAAE4278-66D0-4BD2-A5BD-51F3E4A25481@yahoo.com>
In-Reply-To: <202301091649.309GnGi1055259@mail.karels.net>
References:  <202301091649.309GnGi1055259@mail.karels.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 9, 2023, at 08:49, Mike Karels <mike@karels.net> wrote:

> The last couple of snapshots of -current fail to boot on BeagleBone
> Black (armv7 GENERICSD).  I have no idea how long this has been =
failing.
> (13.1 runs.)
>=20
> It appears that a malloc from ti_sysc_attach or ti_sysc_attach_clocks
> is passing a size of 0, which maybe could happen if the FDT has a =
"clocks"
> node but no clocks are found.  The console output including backtrace =
is
> below.
>=20
> I replaced the dtb directory with the one from 13.1, and the system =
boots
> and seems to run.  I don't know my way around the armv7 DTS files, but
> I'm happy to investigate if someone can point me in the right =
direction.
>=20
> Mike
>=20
> ...
> . . .
>=20

I mounted based on:

FreeBSD-13.1-STABLE-arm-armv7-GENERICSD-20230107-1149f0ec2b18-253362.img

doing:

# mount -onoatime -tmsdosfs /dev/da0s1 /mnt
# dtc -o am335x-boneblack-13.1.dts -O dts -I dtb -s =
/mnt/dtb/am335x-boneblack.dtb

to generate a sorted, overall .dts source.

I then dismounted and did similarly for based on:

=
FreeBSD-14.0-CURRENT-arm-armv7-GENERICSD-20230107-11b5b9e8a520-259967.img

generating a sorted, overall .dts source via:

# dtc -o am335x-boneblack-main.dts -O dts -I dtb -s =
/mnt/dtb/am335x-boneblack.dtb

(The -s sorts for making the source produced more useful for
diff activity.)

Then:

# diff -u am335x-boneblack-*.dts | more

but the diff was rather large. So:

# diff -u am335x-boneblack-*.dts | grep "^-" | wc
     933    4250   36379

# diff -u am335x-boneblack-*.dts | grep "^+" | wc
    1318    5774   50377

13.1 (and stable/13) are back at something like linux 5.9=20
for .dt* source but main [so: 14] is at linux 6.0 now, the
11th import after 13.1 if I counted right.

=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?DAAE4278-66D0-4BD2-A5BD-51F3E4A25481>