Raspberry Pi 3 support

Shawn Webb shawn.webb at hardenedbsd.org
Tue Dec 20 00:09:44 UTC 2016


On Thu, Oct 20, 2016 at 12:02:03PM -0400, Shawn Webb wrote:
> On Thu, Oct 20, 2016 at 05:57:06PM +0200, Michael Tuexen wrote:
> > > Cool! Thanks!
> > I followed the instructions in the Wiki with the difference that I had to go
> > via a file image. I successfully installed it on an SD card and booted the
> > RPI3. The only problem is that it misses an /usr/bin/ld although it has
> > /usr/bin/cc
> > 
> > Any idea what might went wrong?
> 
> Hey Michael,
> 
> You'll need to use the projects/clang390-import branch to bring in lld.
> lld will get installed as /usr/bin/ld.lld. You'll need to create a
> symlink (or hardlink) pointing /usr/bin/ld to /usr/bin/ld.lld.
> 
> I didn't document steps for the clang 3.9.0 / lld work mainly because
> it's extremely experimental and doesn't even work right at the moment.

Update on this:

FreeBSD HEAD now has clang/lld 3.9.1 in base. This fixes a couple
regressions. There's a new regression, though. clang/lld 3.9.1 creates a
relocation entry that isn't handled by the RTLD. The patch attached to
the linked bug[1] solves this problem.

I just found another regression. Compiling simple applications by hand
is fine (like a little hello world application). However, after
compiling and installing ports-mgmt/pkg and trying to run
`/usr/local/sbin/pkg info`, I get this error:

/usr/local/lib/libpkg.so: Undefined symbol "basename at FBSD_1.0"

But, `/usr/local/sbin/pkg-static info` works fine. So, time to track
down the basename issue. I think this is due to a recent-ish commit.

[1]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214971

Thanks,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20161219/b3c8603c/attachment.sig>


More information about the freebsd-arm mailing list