Re: http://pkg.freebsd.org only has freebsd:11:aarch64:64 for aaarch64? How to boostrap aarch64 pkg for head (12-CURRENT)?

2016-11-07 Thread Mark Millard
On 2016-Nov-7, at 1:16 PM, Brad Davis  wrote:

> On Mon, Nov 07, 2016 at 12:19:24PM -0800, Mark Millard wrote:
>> It looks like http://pkg.freebsd.org is still back as of head being 
>> 11-CURRENT: http://pkg.freebsd.org shows only
> 
> Correct.  I wrote up some details on how to use the 11 packages here:
> 
> http://www.raspbsd.org/raspberrypi.html
> 
> 
> Regards,
> Brad Davis

Thanks. That helped me get to the next issue to figure out.

I eventually found that https://wiki.freebsd.org/arm64/rpi3 has a "Package 
Repo" section with the alternate ABI information for pkg and also how to get 
port builds going (putting an ld in place) --as if the material was RPI3 
specific. https://wiki.freebsd.org/arm64/rpi3 says:

> There is no package repo for 12-CURRENT, but the package repo for 11 can be 
> used on 12-CURRENT by telling pkg to use the FreeBSD 11 aarch64 ABI: 
> 
> env ABI=FreeBSD:11:aarch64 pkg bootstrap
> 
> Once pkg is bootstrapped, you can add this to /usr/local/etc/pkg.conf: 
> 
> ABI = "FreeBSD:11:aarch64";
> 
> If you want to build your own ports or packages, you'll need to install the 
> aarch64-binutils package and link /usr/bin/ld to 
> /usr/local/bin/aarch64-freebsd-ld: 
> 
> # pkg install aarch64-binutils
> # ln /usr/local/bin/aarch64-freebsd-ld /usr/bin/ld
> 
> Note that if you're building directly on the RPI3, you will definitely want 
> to use either USB storage or NFS. Building on the sdcard will likely wear the 
> sdcard out. 

(I have the root filesystem on a USB SSD.)

My context is a Pine64+ 2GB --which https://wiki.freebsd.org/arm64 does not 
even mention as covered by TARGET_ARCH=aarch64 . But crochet is set up for 
pine64's and uses TARGET_ARCH=aarch64 style builds.


===
Mark Millard
markmi at dsl-only.net

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: http://pkg.freebsd.org only has freebsd:11:aarch64:64 for aaarch64? How to boostrap aarch64 pkg for head (12-CURRENT)?

2016-11-07 Thread Brad Davis
On Mon, Nov 07, 2016 at 12:19:24PM -0800, Mark Millard wrote:
> It looks like http://pkg.freebsd.org is still back as of head being 
> 11-CURRENT: http://pkg.freebsd.org shows only

Correct.  I wrote up some details on how to use the 11 packages here:

http://www.raspbsd.org/raspberrypi.html


Regards,
Brad Davis

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: http://pkg.freebsd.org only has freebsd:11:aarch64:64 for aaarch64? How to boostrap aarch64 pkg for head (12-CURRENT)?

2016-11-07 Thread Allan Jude
On 2016-11-07 15:19, Mark Millard wrote:
> It looks like http://pkg.freebsd.org is still back as of head being 
> 11-CURRENT: http://pkg.freebsd.org shows only
> 
>   • freebsd:11:aarch64:64
> 
> (as http://pkg.freebsd.org/freebsd%3A11%3Aaarch64%3A64 ).
> 
> So on 12-CURRENT pkg bootstrapping gets:
> 
>> # pkg
>> The package management tool is not yet installed on your system.
>> Do you want to fetch and install it now? [y/N]: y
>> Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:aarch64/latest, 
>> please wait...
>> pkg: Error fetching 
>> http://pkg.FreeBSD.org/FreeBSD:12:aarch64/latest/Latest/pkg.txz: Not Found
>> A pre-built version of pkg could not be found for your system.
>> Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
> 
> but ld is also missing at this stage so one cannot link anything --and pkg is 
> not a route to make an ld available.
> 
> So how does one currently bootstrap a 12-CURRENT pkg for aarch64 (context: 
> pine64+ 2GB)?
> 
> Create a /usr/local/etc/pkg/repos/FreeBSD.conf to reference 
> FreeBSD:11:aarch64 ? That just reports the wrong architecture is being 
> attempted:
> 
>> # pkg
>> The package management tool is not yet installed on your system.
>> Do you want to fetch and install it now? [y/N]: y
>> Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:aarch64/latest, 
>> please wait...
>> Verifying signature with trusted certificate pkg.freebsd.org.2013102301... 
>> done
>> pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static 
>> install -f pkg" recommended
>> Installing pkg-1.9.2...
>> pkg-static: wrong architecture: FreeBSD:11:aarch64 instead of 
>> FreeBSD:12:aarch64
>>
>> Failed to install the following 1 package(s): /tmp//pkg.txz.zkdHp2
> 
> 
> pkg-static install -f pkg fetches meta.txz and packagesite.txz first but then 
> also reports "wrong architecture":
> 
>> # pkg-static install -f pkg
>> pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static 
>> install -f pkg" recommended
>> Updating FreeBSD repository catalogue...
>> Fetching meta.txz: 100%944 B   0.9kB/s00:01
>> Fetching packagesite.txz: 100%4 MiB   4.3MB/s00:01
>> Processing entries:   0%
>> pkg-static: wrong architecture: freebsd:11:aarch64:64 instead of 
>> FreeBSD:12:aarch64
>> pkg-static: repository FreeBSD contains packages with wrong ABI: 
>> freebsd:11:aarch64:64
>> Processing entries: 100%
>> Unable to update repository FreeBSD
>> All repositories are up-to-date.
>> pkg-static: Repository FreeBSD cannot be opened. 'pkg update' required
>> pkg-static: No packages available to install matching 'pkg' have been found 
>> in the repositories
> 
> 
> 
> 
> Context details (was cross built from amd64 head -r308247):
> 
>> # uname -apKU
>> FreeBSD pine64 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r308247M: Thu Nov  3 
>> 07:10:44 PDT 2016 
>> markmi@FreeBSDx64:/usr/local/src/crochet/work/obj/arm64.aarch64/usr/src/sys/GENERIC-NODBG
>>   arm64 aarch64 1200014 1200014
> 
> 
>> # svnlite info /usr/ports | grep "Re[lv]"
>> Relative URL: ^/head
>> Revision: 424540
>> Last Changed Rev: 424540
> 
> 
> 
> ===
> Mark Millard
> markmi at dsl-only.net
> 
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
> 

Until the 12 packages are built, you can cheat:

env ABI=freebsd:11:aarch64:64 pkg bootstrap


-- 
Allan Jude



signature.asc
Description: OpenPGP digital signature