From owner-freebsd-ppc@freebsd.org Fri Nov 6 09:00:03 2020 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D832D2E73E2 for ; Fri, 6 Nov 2020 09:00:03 +0000 (UTC) (envelope-from volkovdablo@hotmail.com) Received: from EUR06-DB8-obe.outbound.protection.outlook.com (mail-db8eur06olkn2057.outbound.protection.outlook.com [40.92.51.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CSDqQ424Gz4qjT; Fri, 6 Nov 2020 09:00:02 +0000 (UTC) (envelope-from volkovdablo@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bgmLpti/FM4a8VZJ+sFvKUIAZtOUJ3TDt5Q8YJ1Lt2JDmMUdbn9VB/vicmYYuJFAoTVs8YFTFOo51Y7vz5jnx4vFdbjZpCGO7UcUWlf84CWgpuAeoe4f3EapasBJvd1zmeDIumrqVdx45f30SiiKz65GMMRmFdw9VCOVcwvyDUGnAnu0OkW575WNVs/BCT2b5Zd1ATJob/WTwKBEMCT7Hn/CzGyam2PqF2G3x/1jyWEANPm8dheoTdZolKOSeI98p4Tt6YxVHaxr9/kNldqJR8SWrWNgcT8uJ0gFD7u3I4+Omo4ggnch/Pxf+ayhYMfEvpwNrJgAhZmVSMEkXgBdKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n/XqJ15DSBC2YZc/a85VdHYLPZ9w1hVkF/4lGwoUNZA=; b=jSZ0YX8CEKgLP37RA6lMArgRDZVY2knY3cpW1/3rIyFEZmHzmXVVbVni0SYB3Vidta8gaJYZGJ6uWc/mTJ2FX6kTHCP86wzGqZ5GRuYqSLD3XbxwZ4pBmVH0LFctI7/927uLI6NLVngrVvB2K0Wd0drOM7gd/TekPSflC/tU1qcq6htKVZQml3dQZC0ddOQtga/CybZysCx+M+XT94DCbMK+pKak0DIMmcw0nzQIKfuyN9AGN38epOP9gD2waxJZRvnzlCc9mbXcZu3L4WDRHeZ88zzNiRHVzNngMcn2kY05/iIokcs6Eiqk9keci2xiVPbL4Sv0x8q4+L2IwSt8sA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n/XqJ15DSBC2YZc/a85VdHYLPZ9w1hVkF/4lGwoUNZA=; b=vGGnKJOCzx9rCSOS3Apvbu55q4KsWJxrjUOFnjGytyEM/bX1269S5YhPUkf9an5sl3nHaBagP35PgxgAg1/by50LE9SNGWn4G0EcR65cOncRiItH1FsRi2JGPQWahvke0SF1w60pW6VKakRRHKGRwLz4+Tj90NOov+vfJzs5AN1LKJIWwgZwcqhjci3MzszJMK/R3kfr6CUl0iW7/pdlDfDOUE4IZceo7w+ALixJpu1HPCpfYmJuf6gdeiVHtB6s80a+RaFCHbgwibtptVJPESTuq0MBxhZSs8Pyue6fyAFUHkJKo1n+04VVDn9OL/6oYGwmEoK8iRrQDDpa8XRaSQ== Received: from VI1EUR06FT003.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::4b) by VI1EUR06HT016.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::262) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3520.15; Fri, 6 Nov 2020 09:00:00 +0000 Received: from DB8PR04MB6860.eurprd04.prod.outlook.com (2a01:111:e400:fc37::40) by VI1EUR06FT003.mail.protection.outlook.com (2a01:111:e400:fc37::75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.17 via Frontend Transport; Fri, 6 Nov 2020 09:00:00 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8B63CB6832802CDAC4F67F37E10FA8C4DC6EB0295D8270D2BD827E5ECFE224F3; UpperCasedChecksum:4B5A92486625CF75121CE54254EE42BE95BF9F9DCDD716D36555499AD8AB9691; SizeAsReceived:11213; Count:48 Received: from DB8PR04MB6860.eurprd04.prod.outlook.com ([fe80::6588:d0ca:2a59:9822]) by DB8PR04MB6860.eurprd04.prod.outlook.com ([fe80::6588:d0ca:2a59:9822%9]) with mapi id 15.20.3541.021; Fri, 6 Nov 2020 09:00:00 +0000 To: Brandon Bergren , FreeBSD PowerPC ML References: <88d23ee0-765d-1b82-4318-2c8359018b1a@freebsd.org> <0f4a1ee8-a37f-ea3d-6807-bb2431235a82@gmail.com> From: Javi Hotmail Autocrypt: addr=volkovdablo@hotmail.com; keydata= mQENBF6Yg10BCAC03sof//KadqOy0/xRlSzOjAVWXj8TGzmtTu0ec2RPMZQwdXeX+Bv7BiB+ cK9+Pnio/AMS6ueHc/ZJptRSX/K7csNUgh/+m0jwclcI6W/Sa/UmHLxYpiuLAG1nogk60JmC RoMKhei9EHBuxoTtRB/4l3u2RL+wipuIwx6rAgQEjgtItkao8JtJKi43C3i1z8OeEqbe78P9 +ssCMdfnR0AopPApoQBfJirJSPdCdyZL0mOQx5tL1AcHDJXeqFu/sKh9M2Tr5mECzUz3a1r5 F0AQROdntQ2REohXSSdfswJWDM1tLse3tW/Lw5AV6XTzR9vxobrHy89xKwj2hGU/MLYjABEB AAG0JkphdmkgSG90bWFpbCA8dm9sa292ZGFibG9AaG90bWFpbC5jb20+iQFUBBMBCAA+FiEE 2CMVjWEbFs4g+dD5GCgQIAgKsPUFAl6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ZGE2zOAuwSrlW2Hk9z2KtbKQjo+WMo+Su/WGVDH2n SloqcUw1ocx+pYnDGPZYq+8fWvX7nQeHttIhPZDzJwmRkKbr3JokqTOSBL/mje8mtOFN6gIk rnP5xQ== Subject: Re: Question about xserve G5 Message-ID: Date: Fri, 6 Nov 2020 08:59:58 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-TMN: [Y/IJybKRGFVsNOBmW/itMXH6quoLQEdg] X-ClientProxiedBy: LO2P265CA0383.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a3::35) To DB8PR04MB6860.eurprd04.prod.outlook.com (2603:10a6:10:112::22) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.100] (88.104.31.11) by LO2P265CA0383.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a3::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Fri, 6 Nov 2020 08:59:59 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 38ceaf8e-19b9-4f0f-8ff4-08d88232574e X-MS-TrafficTypeDiagnostic: VI1EUR06HT016: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j3kjYAZH8t2qeu+9o71oreDBCJ3EYmpHbi+A6/7n0su7IYx+LGlHFDN2eYXgwVBcO/YOaHxzTlB+HqI/FDtVlKsQPfLtwqOXAq4gSc0V0eqdB9OUxGGyx4kBG+Gm59QCZZDcFfSht48Bm6KjwA85pNPHXvb544//CMO03N/TmNYZl0eiGhkzX+HVBzstTJKB9amIWA2TPiD+LbincO4buBFTfv1u7Q702AHD/tpLj8qqUHyQsJlTgZolR+wjtJHC X-MS-Exchange-AntiSpam-MessageData: 1MrgtRTmv/TXX6mlKv8vuXAbfCb83kE+z5mDZTetoxnnRsG9uU67qpKhDZ2FWMXi1vPm4zUuil3pjyOb8Ui2q+ET9FXfeiR6kLDwmRBkLuEuz0QfB0frqZhg1h3WxS9igOSCWJr9Trm90CpSI1UGxA== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38ceaf8e-19b9-4f0f-8ff4-08d88232574e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2020 09:00:00.1888 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR06FT003.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR06HT016 X-Rspamd-Queue-Id: 4CSDqQ424Gz4qjT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=vGGnKJOC; arc=pass (microsoft.com:s=arcselector9901:i=1); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of volkovdablo@hotmail.com designates 40.92.51.57 as permitted sender) smtp.mailfrom=volkovdablo@hotmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; FREEMAIL_FROM(0.00)[hotmail.com]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[88.104.31.11:received]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; FROM_EQ_ENVFROM(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; RBL_DBL_DONT_QUERY_IPS(0.00)[40.92.51.57:from]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; SPAMHAUS_ZRD(0.00)[40.92.51.57:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[40.92.51.57:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.51.57:from]; MAILMAN_DEST(0.00)[freebsd-ppc] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2020 09:00:03 -0000 Thanks for the information. I'll give it a go. I also discover that there is something wrong with the PMU of my Xserve. I tried installing OSX server, and I realized that it would get stuck in the booting process for quite a bit, then enter in the desktop, and after 5 minutes or so the fans will ramp up like crazy. Long story short I've discovered that I have to reset the PRAM every single time (so pressing command + alt + p + r four times), and after that I'll boot without problem (in a split second). After that I was playing around removing cards and memory and I realised that if I remove the graphics card from the xserve it'll pretty much boot correctly all the time. Internally it was complaining about not being able to read the I2C=C2=A0 (I assume from the PMU); But anyways it seems to be more or less working now, I'll switch back to FBSD and see how it goes. On 30/10/2020 15:29, Brandon Bergren wrote: > In any case, without the interpreter, what we have to do on a per model b= asis is manually decode the platform functions from a dumped device tree an= d do the same sequences in C, and then run that code when encountering that= model. > > On Fri, Oct 30, 2020, at 10:25 AM, Brandon Bergren wrote: >> >> On Fri, Oct 30, 2020, at 10:02 AM, Javi Hotmail wrote: >>> Is there any documentation that I could read about this? Also why is no= t >>> possible from the kernel to run functions from the DT?. I just started >>> looking at the code now; It seems to me that depends on some sort of >>> openfirmware functionality. Why is this? >>> >>> Regards, >>> >> It's not possible because we don't have an implementation of the=20 >> platform function interpreter written. >> >> If someone were to write a BSD-licensed platform function interpreter,=20 >> it would be pretty easy to hook it in. >> >> The (GPL) linux interpreter is an example of a platform function=20 >> interpreter.=20 >> https://github.com/torvalds/linux/blob/master/arch/powerpc/platforms/pow= ermac/pfunc_core.c >> >> Darwin has one as well but when I looked at it it was a bunch of=20 >> Objective C that would be less work to just reimplement rather than=20 >> trying to use. (I think the license wasn't BSD either) >> >> The device tree has a series of platform functions that contain=20 >> bytecode that the kernel runs to do a function like change the cpu=20 >> clockrate, etc. It's done this way so it can be run without having to=20 >> context-switch, and have platform drivers that automatically work on=20 >> all Mac99 machines. >> >> I'm not sure off the top of my head what documentation there is availabl= e. >> _______________________________________________ >> 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" >>