Re: FreeBSD on X5000

Justin Hibbits <[email protected]>
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]>
On Thu, 22 Jul 2021 07:30:14 -0400
[email protected] wrote:

> Hi,
> 
> I have hired a programmer to help me with getting something working
> on FreeBSD, adding new features, etc. Of course, I want to be working
> with the latest code. However, I can't seem to make it run. I think
> the problem is that the bootloader expects to see a ZFS root
> partition is the reason it won't boot. Could someone at least give me
> a hint?
> 
> Kind Regards,
> Al
> 
> 

I'm not quite sure what you're asking.  I have an X5000 with a UFS
root, it's partitioned MBR with 2 partitions: msdosfs for ubldr, and
the rest is dedicated to a disklabel with a few partitions.  You want
in U-Boot the following variables at least:

loaderdev disk1s2a is mine (first disk, second slice, first partition
in that slice)

bootcmd: sata init; fatload sata 0:1 $loadaddr ubldr; fatload sata 0:1
$fdtaddr $fdtfile; fdt addr $fdtaddr; fdt boardsetup; bootelf $loadaddr
bootargs: vfs.root.mountfrom=ufs:/dev/ada0s2a (same as loaderdev)

The vfs.root.mountfrom may not be necessary, if ubldr provides it to
the kernel, but I keep it just to be safe.

- Justin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.