From owner-freebsd-ppc@freebsd.org Mon Jan 22 04:39:05 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46704ECD8E1 for ; Mon, 22 Jan 2018 04:39:05 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-io0-x242.google.com (mail-io0-x242.google.com [IPv6:2607:f8b0:4001:c06::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F1D46AA3A for ; Mon, 22 Jan 2018 04:39:05 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-io0-x242.google.com with SMTP id l17so8106014ioc.3 for ; Sun, 21 Jan 2018 20:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=o/oWcL4dbLtNSVF/5vi7kCByGowAK5qBHbZTGSt0Rng=; b=fLS8mr2pELodKrYjJxkGDIekWcXUu5JszI5oFehAznwvT4WAfHqJ/OKwCxVLGOmmMz lJnhhvJ9j4KiDsx94yNvxhr0EQXI4NErM+Ym+9Y10xLbNJ8MwrnJ7b9IICfAShY4nGRu uZCNTq1kYYiNkYFuJp0Rw0Vx5MSZvtcXJyVPiZMWaIjF0McbpHn7HxNUTw7BhHSOzIcN 1xJc2yjyxpGxIUmE9t4rVjPdnJ+iQtmxjoGZMEATSWfgP1J6XUuD9zh5NQX+yaeMNw92 VqgRa6v+NSPiRta2xoYpthIMSGdSF4J91QQZVMT/z5pQrLH2mta7ERNdNKVpLs50bi6Y padw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=o/oWcL4dbLtNSVF/5vi7kCByGowAK5qBHbZTGSt0Rng=; b=rF3dGp7g9FUi9HcNQvjOgsOHSaFQhyTuzuORaVXGV/ynm4mOPtnoxZv8TzJ8Z/Ksja j5ULm0FFN/qNfMGNkRQryvNNHjenxcfp/QLfMo1wa7Z4N0sfPWaGzXVeqRcDYRE8uQHj aPpa7SNggilAvaRqMWyyORgNGEBiIjQjNuiKhyAjDRAdOUe7wWYhlfcXB/ciJ0rXpggm tAZgnTzJzbvdNxQIVzcGuWcw26ChhmEs2DgERHuIJKRoD214eRsY28E3sUuW/tR1nCgh x03UwMbhTQfqwnhZATiugGbTjQTHxjsX21pWZ2tC/VZ+17wrvJ93E5gxRoDXN84XOxqW M46A== X-Gm-Message-State: AKwxytf9QxoDkmXVM8n8FiI58neqAF7LtNozuBQUYTggj2FjqhspTSM8 qV1kWrMXhoEWQGHuLs1chkQELbMievdt/p/R9e4= X-Google-Smtp-Source: AH8x2259pjoRR7lb0iPyxWk46n5OrdoZ02RQBzMEUAEz8MFY/NnSiZ5zYU9zl4KxdKR56s8g/RvYSgDY9WxFAhe7K3A= X-Received: by 10.107.88.7 with SMTP id m7mr6408989iob.162.1516595944175; Sun, 21 Jan 2018 20:39:04 -0800 (PST) MIME-Version: 1.0 Sender: chmeeedalf@gmail.com Received: by 10.79.241.158 with HTTP; Sun, 21 Jan 2018 20:39:03 -0800 (PST) In-Reply-To: <6E574283-DC80-42C1-B75A-DA8D5892FDF5@familysafeinternet.com> References: <471CD26F-229A-470D-A408-D3ECB51893DE@familysafeinternet.com> <6E574283-DC80-42C1-B75A-DA8D5892FDF5@familysafeinternet.com> From: Justin Hibbits Date: Sun, 21 Jan 2018 22:39:03 -0600 X-Google-Sender-Auth: zoWd8fDPgYgnXhD9porgNVvs2zk Message-ID: Subject: Re: FreeBSD on AmigaOne X5000 To: Al Zick Cc: FreeBSD PowerPC ML Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2018 04:39:05 -0000 Hi Al, With the device tree addition of the PHY information, on the Linux cyrus device tree, Ethernet works just fine on FreeBSD, so there's no problem when using my modified tree. I also tested today loading the radeonkms driver, and it loaded just fine, so maybe the crash was a fluke. It of course needs more testing. - Justin On Thu, Jan 18, 2018 at 8:02 PM, Al Zick wrote: > Hi Justin, > > I don't know if this helps, but there is work being done to get the X5000 > built in network ports working in both AmigaOS and Linux. I know the issue > he had/has with the PHY hookups. Honestly, I am not sure which one of you > are further along, so I don't know if that helps. > > I will be installing FreeBSD on my X5000. I will let you know when I get it > installed and then I will start testing. > > Kind Regards, > Al > > > > > > On Jan 18, 2018, at 12:11 PM, Justin Hibbits wrote: > >> Hi Al, >> >> FreeBSD runs pretty well on the AmigaOne X5000, but there are some >> gotchas right now. It needs a minor change to the dts in order to use >> the ethernet controller, and you currently have to make an >> execute-in-place uImage, for 64-bit kernels anyway. >> >> The former is impossible to work around, because the device tree is >> just incorrect with regard to the PHY hookups (it lists TBI >> connections, but the AmigaOne X5000 uses rgmii, which puts all >> connections through dtsec0's mdio). You can find my working device >> tree at https://people.freebsd.org/~jhibbits/cyrus_p5020_amiga2.dtb . >> >> The latter I'm currently working on, and plan to have ubldr loading >> 64-bit kernels in the next couple weeks, so we won't need to build >> uImages. But, for now, the way I do it is: >> >> buildkernel with KERNCONF=QORIQ64 >> >> Using NetBSD's 'mkubootimage' (easy enough to build on FreeBSD with >> some minor tweaks to the source), run: >> >> mkubootimage -A powerpc -C none -T kernel -O linux -a 0x3ffffc0 -e >> -N "FreeBSD AmigaOne X5000" >> amiga64.uImage /path/to/built/kernel >> >> Then I can boot that image via either dhcp or sata (Be sure to load it >> to 0x3ffffc0, for some reason uboot doesn't copy the image when loaded >> to the default loadaddr of 0x01000000). >> >> Booting from SATA you need to create an MBR partition scheme, and the >> first partition must be FAT, since uboot doesn't know how to read >> FreeBSD disklabels and UFS. I made two partitions: 128MB FAT to put >> the kernel, ubldr, and dtb; and the rest of my disk is a BSD disklabel >> volume, partitioned like a normal FreeBSD system. You would put the >> dtb and uImage in the FAT partition, and set the uboot bootargs >> environment variable to 'vfs.root.mountfrom=ufs:/dev/ada0s2a' >> (assuming /dev/ada0s2a is the root you create, as my example is) >> >> >> As for what you can do to help, that depends on your skill set. >> >> If you're happy in the kernel: >> * I have some patches to drm2 so it can load the radeonkms driver, but >> it crashes due to TLB synchronization issues between the two cores, >> that might be interesting to look at. >> * Performance improvements: CPU0 is seeing a very high decrementer >> interrupt count, measured with vmstat -i. I think this might be uboot >> messing up the clock frequency information populating, but I'm not >> sure. Maybe test that. >> * There are still device drivers missing for things like the XMOS and >> CPLD. >> >> If you'd prefer userspace, once you have FreeBSD installed, and able >> to use the network: >> * Build a kernel with ZFS (just add "options ZFS" to the QORIQ config, >> or create your own), and test building everything with poudriere. >> Report any bugs and panics you see. Just hammer away. >> * It's pretty boringly stable up in userspace, so it's hard for me to >> think of anything more. >> >> Let me know what you're interested in, and I can point you to >> somewhere you can help. >> >> Glad to see interest in this! >> >> - Justin >> >> On Wed, Jan 17, 2018 at 5:20 PM, Al Zick >> wrote: >>> >>> Hi, >>> >>> Would it be possible to find out about how much progress has been made on >>> the FreeBSD port to the AmigaOne X5000 in the last few months and if >>> there >>> is anything that I can do to help? >>> >>> Kind Regards, >>> Al >>> >>> >>> _______________________________________________ >>> freebsd-ppc@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > >