Where is the 64-bit ppc FreeBSD ?
marklmi at yahoo.com
Tue Nov 20 07:34:10 UTC 2018
On 2018-Nov-19, at 20:58, Dennis Clarke <dclarke at blastwave.org> wrote:
> On 11/19/18 11:18 PM, Justin Hibbits wrote:
>> Hi Dennis,
>> On Mon, Nov 19, 2018 at 9:33 PM Dennis Clarke <dclarke at blastwave.org> wrote:
>>> Well I don't know how else to ask but where is the 64-bit ppc FreeBSD ?
>>> I just checked again and I did boot the dvd that I fetched from
>>> https://download.freebsd.org/ftp/releases/ISO-IMAGES/12.0/ and what I
>>> get is a 32-bit system. The live dvd is 32-bit. The compiler can only
>>> produce 32-bit output and well here we are.
>>> So then, is there some magic to utter to the boot loader or something I
>>> am missing ?
>> I just downloaded FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso.xz and
>> everything looked correct. Did you download the -powerpc-powerpc ISO
>> by mistake?
> Repeatedly I have gone through these motions and this would be a third
> time. Sadly I use the dvd burner inside the G5 to actually burn the DVD
> itself and I run a full surface blank first. It is DVD+RW media and I
> use Jörg Schilling's cdrecord from the sources and always build it
> myself. It never fails and after all he is the master of such things.
> So once again I will download the same dvd image and again do a full surface blank and a re-burn and then a boot.
> Is there anywhere on the dvd media that identifies what it is ? A file somewhere that says readme or similar ... what I see :
> root at eris:~ # uname -a
> FreeBSD eris 12.0-RC1 FreeBSD 12.0-RC1 r340470 GENERIC powerpc
> root at eris:~ # dmesg | egrep -i 'cd|dvd'
> cd0 at ata0 bus 0 scbus4 target 0 lun 0
> cd0: <HL-DT-ST DVD-RW GWA-4165B C006> Removable CD-ROM SCSI device
> cd0: Serial Number M0063NE3358
> cd0: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes)
> cd0: 4482MB (2295104 2048 byte sectors)
> root at eris:~ #
> root at eris:~ # camcontrol devlist
> <Hitachi HDS725050KLA360 K2ABC20A> at scbus0 target 0 lun 0 (ada0,pass0)
> <HL-DT-ST DVD-RW GWA-4165B C006> at scbus4 target 0 lun 0 (cd0,pass1)
> root at eris:~ #
> root at eris:~ # mkdir /media/dvd
> root at eris:~ # mount -t cd9660 -o ro /dev/cd0 /media/dvd
> root at eris:~ # ls -lap /media/dvd/
> total 547
> drwxr-xr-x 20 root wheel 6144 Nov 16 04:45 ./
> drwxr-xr-x 3 root wheel 512 Nov 20 04:50 ../
> -rw-r--r-- 2 root wheel 951 Nov 16 04:35 .cshrc
> -rw-r--r-- 2 root wheel 470 Nov 16 04:35 .profile
> drwxr-xr-x 2 root wheel 4096 Nov 16 04:34 .rr_moved/
> -r--r--r-- 1 root wheel 6177 Nov 16 04:35 COPYRIGHT
> -r--r--r-- 1 root wheel 6994 Nov 16 04:35 ERRATA.HTML
> -r--r--r-- 1 root wheel 3266 Nov 16 04:35 ERRATA.TXT
> -r--r--r-- 1 root wheel 255886 Nov 16 04:35 HARDWARE.HTML
> -r--r--r-- 1 root wheel 119849 Nov 16 04:35 HARDWARE.TXT
> -r--r--r-- 1 root wheel 23899 Nov 16 04:35 README.HTML
> -r--r--r-- 1 root wheel 14333 Nov 16 04:35 README.TXT
> -r--r--r-- 1 root wheel 20415 Nov 16 04:35 RELNOTES.HTML
> -r--r--r-- 1 root wheel 8336 Nov 16 04:35 RELNOTES.TXT
> drwxr-xr-x 2 root wheel 6144 Nov 16 04:33 bin/
Given the lack of other material to look at,
why not try something like:
(Done from an amd64 context in my case.)
# file bin/ls
bin/ls: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, FreeBSD-style, for FreeBSD 12.0 (1200086), stripped
Note that the .iso file can be expanded with tar and this
can be checked before burning a CD/DVD. That I did before
cd'ing into the expansion and using the file command.
Note that this does not show what it would install but
what the cd runs as when booted. (See later for what
would be installed.)
> drwxr-xr-x 9 root wheel 6144 Nov 16 04:35 boot/
> dr-xr-xr-x 2 root wheel 2048 Nov 16 04:33 dev/
> -r--r--r-- 1 root wheel 6914 Nov 16 04:35 docbook.css
> drwxr-xr-x 25 root wheel 14336 Nov 16 04:45 etc/
> drwxr-xr-x 4 root wheel 8192 Nov 16 04:34 lib/
> drwxr-xr-x 3 root wheel 2048 Nov 16 04:33 libexec/
> drwxr-xr-x 2 root wheel 2048 Nov 16 04:33 media/
> drwxr-xr-x 2 root wheel 2048 Nov 16 04:33 mnt/
> drwxr-xr-x 2 root wheel 2048 Nov 16 04:33 net/
> drwxr-xr-x 4 root wheel 2048 Nov 16 04:45 packages/
> drwxr-xr-x 3 root wheel 2048 Nov 16 04:45 ppc/
> dr-xr-xr-x 2 root wheel 2048 Nov 16 04:33 proc/
> drwxr-xr-x 2 root wheel 2048 Nov 16 04:33 rescue/
> drwxr-xr-x 2 root wheel 2048 Nov 16 04:35 root/
> drwxr-xr-x 2 root wheel 18432 Nov 16 04:35 sbin/
> drwxrwxrwt 2 root wheel 2048 Nov 16 04:33 tmp/
> drwxr-xr-x 14 root wheel 2048 Nov 16 04:35 usr/
> drwxr-xr-x 24 root wheel 4096 Nov 16 04:33 var/
> root at eris:~ #
> root at eris:~ # head /media/dvd/COPYRIGHT
> # $FreeBSD: releng/12.0/COPYRIGHT 333391 2018-05-09 02:02:49Z imp $
> # @(#)COPYRIGHT 8.2 (Berkeley) 3/21/94
> The compilation of software known as FreeBSD is distributed under the
> following terms:
> Copyright (c) 1992-2018 The FreeBSD Project.
> Redistribution and use in source and binary forms, with or without
> modification, are permitted provided that the following conditions
> root at eris:~ #
> That is not helpful and neither is README.TXT.
> Has to be a file somewhere that says "release and version".
> In any case I can not tell what this dvd is and so I shall start over with a full surface blank and then a re-burn and a test of the live DVD.
See my earlier suggestion.
> Thank you for putting up with my seemingly dumb questions but there is
> just so much knowledge about FreeBSD that isn't obvious and even with
> decades of UNIX and Linux experience I fall flat on my face over and
> over. Strangely I just keep plowing forwards with the goal here being to
> build the kernel myself and that includes the zfs.ko which is absent
> from the DVD.
By the way:
# file boot/kernel/zfs.ko
boot/kernel/zfs.ko: ELF 64-bit MSB shared object, 64-bit PowerPC or cisco 7500, version 1 (FreeBSD), dynamically linked, not stripped
The .iso does include zfs.ko so that it can work with such media.
But the actual materials to be installed are from:
# find . -name "*.txz" -print
lib32 is a hint: there is not supposed to be such for
a 32-bit powerpc build, just for 64-bit builds: it
is what allows running 32-bit code under the 64-bit
Testing the content of what would be installed . . .
# mkdir ~/base-expansion
# tar -xpf usr/freebsd-dist/base.txz -C ~/base-expansion
# file ~/base-expansion/bin/ls
/root/base-expansion/bin/ls: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, FreeBSD-style, for FreeBSD 12.0 (1200086), stripped
So it is not 32-bit code. As for zfs.ko :
# tar -tvf usr/freebsd-dist/kernel.txz | grep zfs
-r-xr-xr-x 0 root wheel 4072352 Nov 15 20:13 ./boot/kernel/zfs.ko
Looks like zfs.ko is present to install.
(Note: zfs.ko is not part of a 32-bit powerpc build
if I remember right, jut 64-bit.)
For reference to get started for this I did:
# wget http://ftp3.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso
--2018-11-19 23:00:06-- http://ftp3.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso
Resolving ftp3.freebsd.org (ftp3.freebsd.org)... 2001:4f8:1:11::15:0, 126.96.36.199
Connecting to ftp3.freebsd.org (ftp3.freebsd.org)|2001:4f8:1:11::15:0|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 735252480 (701M) [application/octet-stream]
Saving to: 'FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso'
FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso 100%[=============================================================================================================>] 701.19M 9.74MB/s in 76s
2018-11-19 23:01:22 (9.27 MB/s) - 'FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso' saved [735252480/735252480]
I'll also note that the size of the .iso file also can be
checked against the size of the downloads listed on the
# ls -l FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso
-rw-r--r-- 1 root wheel 735252480 Nov 15 20:26 FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso
Back to setting up for the earlier material . . .
# mkdir FreeBSD-12.0-RC1-powerpc-powerpc64-disc1
# tar -xpf FreeBSD-12.0-RC1-powerpc-powerpc64-disc1.iso -C FreeBSD-12.0-RC1-powerpc-powerpc64-disc1
# cd FreeBSD-12.0-RC1-powerpc-powerpc64-disc1/
Then I looked around at things, as I reported.
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
More information about the freebsd-ppc