From patchwork Mon Jul 29 09:09:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Schilling, Benjamin" X-Patchwork-Id: 13744634 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64A22C3DA61 for ; Mon, 29 Jul 2024 09:09:15 +0000 (UTC) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.65]) by mx.groups.io with SMTP id smtpd.web11.52366.1722244149645619813 for ; Mon, 29 Jul 2024 02:09:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@siemens.com header.s=selector2 header.b=aLFJlz1Z; spf=pass (domain: siemens.com, ip: 40.107.21.65, mailfrom: schilling.benjamin@siemens.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xKoNNqbYnr5uXxg6I4S8s62wQSzEmJdo0zyAIFtN9kM89O+o77/dZQlQmdOxCUl+v2aTktbZO7+S8cLsZwN6zj07Pb3tgZCaSkOPjw/c2HOFmDOW8WmKIXrsbRc/NWQ2pq8pDBZmnRRlXE4RMg+/jHYIgpJLKwEQFXfpPjrqToYho+sjF1X6tk4tnnvvqfcPVjRSwBXpTR3O9aJA7M6W0Aamr28Uho1SFsDkAZXxXYMBCqZqOrSk04wI9ZsaiwlFPNkSxodCoPKtZ9cIQmkBOOTVvugSPgUFea0mNEv6phwfuk1VsfEsGVzEG4evNdPz0T8Z1U5kbtfY6PPwDuDBug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Zp97iEvd7GjbkIdmZQEEBUSAyl24WJ3uN/dDwOlGDkM=; b=h+iBFJ8BczUkY+uacvXBUPLJyL4KAlpkYCz3cIr6Ur2345Af80AZtd35kGKAThu8U+wdEF7hf2LKZx4qt6KW0scuqO2+pIpGVqoAQmiwFlNaPjkHqs4kMjV/ICMyD8BbEeLvPKBP4aNjr/fR1eTmR2RSrjbDMvQnUSdDUTjY5p8JsLdWHQcBSS3iX4MxF1m23k/tr69bCPi3kJRx6ds/3pcunKsbRohisenR8MRvAhsxdHlmtI0JxIIqx6BGevF1Dq+IeZeU7ZYr+E4XSpYvBOnTa18vEMyNa3YkfqOS39/waAcaBrqAFW/akB3oq59BW7H+vxZmUr+FJzsBR/jeQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Zp97iEvd7GjbkIdmZQEEBUSAyl24WJ3uN/dDwOlGDkM=; b=aLFJlz1ZgPzYc5+zekg95GN94VFNtO+H6ezoYj8fue6XTtVii9JwtiJqgPO+0hp65B6MA5TOAS6PbogWSTZ4LCFBmYSsXZcZrD4rjWElDI5TUOqk2j8kAi0Sem8Td2HWHK1n1pcb60/2KO4Uh/dWJe+vNM1qhbX9bTC/6IA248YPGVhcks4vKPn9be2qydB+QEBQ0kIipMIIa3j7+v1SlAVRZgOl46Qmv2AMhbieJyKxeS41imbrxMgpaxzrZMniylwj1PmUo9GzAf6RQ5gbsh/gQHvw6hkHpcqN89HHqGUuHntrqfMI+loOge6KkbyFw715ahg5VblIOuCnGVA2rw== Received: from GVXPR10MB5837.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:6d::17) by DU0PR10MB6385.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:40e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.26; Mon, 29 Jul 2024 09:09:01 +0000 Received: from GVXPR10MB5837.EURPRD10.PROD.OUTLOOK.COM ([fe80::8e3f:ee20:5b20:8a7b]) by GVXPR10MB5837.EURPRD10.PROD.OUTLOOK.COM ([fe80::8e3f:ee20:5b20:8a7b%6]) with mapi id 15.20.7807.026; Mon, 29 Jul 2024 09:09:01 +0000 From: "Schilling, Benjamin" To: "cip-dev@lists.cip-project.org" Subject: AW: [PATCH] README.m-com-x86.md: Add hardware details Thread-Topic: [PATCH] README.m-com-x86.md: Add hardware details Thread-Index: AQHa0WoMtLneHGC5O0mPJoBUkEeQPbINivJh Date: Mon, 29 Jul 2024 09:09:01 +0000 Message-ID: References: <17E052EC654FA61F.30444@lists.cip-project.org> In-Reply-To: <17E052EC654FA61F.30444@lists.cip-project.org> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Enabled=True;MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SiteId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SetDate=2024-07-08T19:07:17.1778584Z;MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ContentBits=0;MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Method=Standard authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GVXPR10MB5837:EE_|DU0PR10MB6385:EE_ x-ms-office365-filtering-correlation-id: f95b5822-d3af-4d66-1d8a-08dcafae1689 x-ms-exchange-atpmessageproperties: SA x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?windows-1252?q?WSLd/uexFYspC0+XZAZgyNKK?= =?windows-1252?q?ayvhXvIEpY4hYeIUBG4c7JzmZFoLteAeZnAsSKZKgMlPFLca8GPaJnXtz0?= =?windows-1252?q?KWMGGd5mGbosMGmJA9rOW7VXJ8/ro/F4SpfPWtFJHswei1zulPvtTFfHo4?= =?windows-1252?q?94IwcorZv50ssoBv/lfroEEDUZkJB6kWh92JvwYRiDdLjdxfRNocO86DGZ?= =?windows-1252?q?xMYoK94Qg7FO5KUyHVrVeOSeFxAKU4K6hQMQ+viz/CUr0Alv7EjVcNIwDB?= =?windows-1252?q?eTz2KnWU0UJUZC2z1z78UW1H9MYpnEX/I1VgvzXQlTJFaAmkjgPWipD1GX?= =?windows-1252?q?r/UNCW5+bzgAf7fxQiXDcp7IKsROH709M241hrRvzE0nEmAiOBmy7/oINk?= =?windows-1252?q?dzxQitiBCS5N/BOLzWnOEVa/yIWFUqMPPtWM2haRn7dsqmbMPRq6GannTJ?= =?windows-1252?q?cclqdXKFFz9Gao0A9pUOLlWSIJA+uAilwnHLOaz03Q4QGEIiQ5uOZMLqeB?= =?windows-1252?q?IIHYwBInPohA5ncPNddesfQ/MD13uLiJuoewg+uvujQwrFQHXppw3cONas?= =?windows-1252?q?btnPCemgxfVGSw99CqQJsTLP/s6utYRKd2dBiBwvnFmZf71Wzos6mrWLuU?= =?windows-1252?q?8krn/qbewfOqxMhGPg/JNpi3wJMHb4Y42zhK1hbZPVjWoLpjNlzQUx0H5U?= =?windows-1252?q?i4LDmr29/JAKfvZ+6DrvSmHE4lAfuW8GHaa3sztq+54syfAXu2yN09QceY?= =?windows-1252?q?U5Q97dPehtfNC/3+7y09Z/INQabFlsL+LgaUCiEURv9oG9ahS6SPNLiSdM?= =?windows-1252?q?zsK5kFik+3JA4TWcwLX2vt50mQFLIOzmFdwZurjEm2ZVWFrbuOZ8TaHlJ+?= =?windows-1252?q?C8Usgu9qpCuzdIsqHZFTjBv9Xv0QFNuQXWvOfwZgr3ZFgfRDyoCV6p1P5p?= =?windows-1252?q?7B1tKSHgyyhKvsPtiNZgBu+97cYxDSFx7R9lTotWOKeMWfHc7omzOMF8ae?= =?windows-1252?q?MO4lL9F0zsNQnVKcGrwIVn6c9CfrEPE8qkvUe8d5b01Oq3krzEYpZmNTIy?= =?windows-1252?q?ZqQ6o/hYPF0aX7OtGT1qZoxQ6BJcDUKgeTEymtTk8sQHRi+csuYctJ2vJu?= =?windows-1252?q?g11KCA0YymmwbllvHS4R1LjEOGPTkhMHIp1wZOBVwQ9sBeOqVCf3v5HBTr?= =?windows-1252?q?hH1UoU6a0MJZhWW2ybX/SkfDuQxc/vTu6WaIQ7rhxuqb5ROVM4XgMg07Qs?= =?windows-1252?q?jSGg9EvH3UdByKUqgOENYO88pB4AHdGU8WEL997Y6VyMfRefsMcSprhqgm?= =?windows-1252?q?4Zds+anRSWkZduwj2mRDaEI0s3WMzlJ11PQUgO78iAkMUkmz1wdavQX9bG?= =?windows-1252?q?8EF0LuzFydl8nIbP/s2wIGDQZj0nJecFcH9nJu8bUni+cI+yxkMUWHcaFF?= =?windows-1252?q?kARHKYZ1RQa6vde1n9x/b2Gb2BYDQ9jk+OsTMD8sfjOnFk3E6CCT/oZZgG?= =?windows-1252?q?icX6/CGcroBvYQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GVXPR10MB5837.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?windows-1252?q?IlRem7ywj1figTsct9+ml?= =?windows-1252?q?yv9r4CF/sGjnG0GRilsvxLt57txG0El0HggsfB/wG7HdseKi7E/b1PjwOG?= =?windows-1252?q?Y2twnb4IJBHvi6TqvGtnK5BSyvHfz6DUveDxGrYmcnKMxZV35FYlC50daw?= =?windows-1252?q?/rhcHIIuwIupNOycNAfdIkDELst2eA0NSegp77Nk55bhLZX4V3voYiGLp/?= =?windows-1252?q?uChiHKIgTC/aeOf4u56dLCT91U6LmiN0Tt0Krrq3UVQWmv/Nq12mNS2xN4?= =?windows-1252?q?kwO/Anm6DTqdb9fd7mZTt/42jJsH3DCO+MkUkrpz2sj1d3yYrl4+JXAWLA?= =?windows-1252?q?lsuar3SYDyB55ofZEsgulTP+7v808Qtxw6sYWwq2rwuq2BL0N+6pCjFPWi?= =?windows-1252?q?4SEfSZ/CZ6oLdViJLPSPIDGDK56ZLbCnmmDSclFUzabqFaAsy2HUvRUy3o?= =?windows-1252?q?BsGaOwudNcSvsLJM8m1Isb++vd59O2oqMIE7uvHgwBL4rthWEImMbgbV1J?= =?windows-1252?q?WhsAIgO/FBfyWK5RdMqPq6NtLoqRl7plsHNhAole88wy7c1EqlqAyX8zgM?= =?windows-1252?q?AnlXDBku7lJ/3AWkwtPYg/vql8h6pFEOaL3N0BzRFSaZhCVTQFe4IGHVAi?= =?windows-1252?q?L2eynWFEatZCwM9/lA9akKQjYJ3sDTcU1GQr7FozR8s7h/93/2Rdlzs0e1?= =?windows-1252?q?ncT4TgyLgxVUvAAIcrZpWdjIvh+0/4FFLU/coy238Dx0BwVhq2sSpNJOZk?= =?windows-1252?q?hjnbJ1Xh4f2Bg1eh8VzWIcQE6rmwqIBHsE/50gzS4DFGKedL9JWNcVeyOv?= =?windows-1252?q?he4nWIydGu+aQ2STcEP7Am+aEFbCsO38FbcIb8NAbRajQ6zEdDpEzF9ETq?= =?windows-1252?q?5TG1Nrb915mXoi5HS3xefWVloE76fv5VFUN3KG6vMaFkPqfICa12WcOMPs?= =?windows-1252?q?0/HLFM+9yJblgEPOH28FdZMy0uAEj55j/jeKpRO7Iat5WSZTkPlZuCRpQe?= =?windows-1252?q?w5Q5j5NHV7v7wzsoMvTdFj/uIDkgV0Y8J2AMd4kquz6AbiWfdn+ACU/eD4?= =?windows-1252?q?iJrSLF8BRhXl7ULTCzZdHSZgR6AMkaa8dBS8P5lfd5H67SpCLMsNiMKF1K?= =?windows-1252?q?GZrvDNaHsmVkGNSYKbcX/rvvt2mSCEg/SSx7jrCL1z3vEtE7ZVbTTdFSG5?= =?windows-1252?q?eo/9q04kfR79KCAQy3PBpZY6lxxBcrIpPdwGFpLqNIn0vnYh8L2g/9leC0?= =?windows-1252?q?+8Neq1adUbSeVbsEzeVcJA/jSxZK0VrrNQf8YUbOKBP8+6yPQCyRuAzr2d?= =?windows-1252?q?O8xQVlwWjFRM9p24E9quMoH80PevPLnpVqdDZiW4PY/tUV4Q+py85g2Fja?= =?windows-1252?q?PqALc8coi5HfzlSXFp8kl0zfs/cuAo3wAKhfCXBUBkBaXg5E8UB+Bo1J1a?= =?windows-1252?q?RVEmZZTX9nd1Mnp6k8ZMUXEcCKbSNkG5jaQ46legCBf53DFU6dSRwDn0yL?= =?windows-1252?q?X08JlMZ43FMGdwN5o54aUjOYTeN3fFwStkyBl6zyGOb9WJs+uxWD/x9kZc?= =?windows-1252?q?zKgw2zeWgc1/YWtV7FITajRtB0QzzCdJj5NAsQtREFsxvrfnEVneSatMt6?= =?windows-1252?q?1MXYkkjapSsbcCoJzC4ZryUYrimEqdGAwSdBlGkMIEeh1TDpWshNYjXeTR?= =?windows-1252?q?kxP1vaq2GW227Y5D0bWz17b+S0jHbp/tnhr924b1LN7qKUxvjsb3025U?= =?windows-1252?q?=3D?= MIME-Version: 1.0 X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GVXPR10MB5837.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: f95b5822-d3af-4d66-1d8a-08dcafae1689 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2024 09:09:01.6651 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IM0uJTsi8DRUglijis2zFHplmG/pFr5oLPamfF3G5UIUxVRe2Xi6ni1Kau9cmZSiTfDZJqz7mAwnaKoYpTLKIVaWsT1E2tObeiq2BTnmabc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR10MB6385 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 29 Jul 2024 09:09:15 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/16631 Hi all, what’s the status here? Anything I should change before it being merged? Best regards Benjamin Von: cip-dev@lists.cip-project.org im Auftrag von Benjamin Schilling via lists.cip-project.org Datum: Montag, 8. Juli 2024 um 21:17 An: cip-dev@lists.cip-project.org Betreff: [cip-dev] [PATCH] README.m-com-x86.md: Add hardware details From 4e6b957569e0a4dd617cc1f4fd716c769681f6dc Mon Sep 17 00:00:00 2001 From: Benjamin Schilling Date: Mon, 8 Jul 2024 21:00:14 +0200 Subject: [PATCH] README.m-com-x86.md: Add hardware details Signed-off-by: Benjamin Schilling --- doc/boards/README.m-com-x86.md | 131 ++++++++++++++++++++++++++++++++- 1 file changed, 130 insertions(+), 1 deletion(-) [ 0.008368] Secure boot enabled ``` + +## Internal interfaces + +The M-COM contains an internal serial port that can be used to access the devices kernel console for debug purposes. + +To access it, the backside of the device has to be unscrewed. +Afterwards it can be connected using a Mini-USB cable. +Make sure to have the appropriate FTDI driver installed. + +## Software Interfaces + +The following chapter describes interfaces accessible from software level. + +### Controlling the watchdogs + +The M-COM RT x86 contains two watchdogs: + +- Custom Hardware Watchdog +- UEFI watchdog of efibootguard + +The UEFI watchdog is controlled via efibootguard variables. +It can be configured for both partition sets using `bg_setenv -p -w `. +To confirm the new watchdog configuration use `bg_setenv -c`. +To disable the watchdog set the timeout to 0. +The watchdog is fed via `/dev/wdog`. + +The custom watchdog is controlled via I2C. +The following scripts can be used to control it. + +Enable watchdog: +```bash +#!/bin/bash + +# i2cset + +# i2cbus = 2 +# chip-address = 0x3c +# data-address = 0x00 (Status Register) +# value = 0x8000 +# mode = w + +# enable watchdog +i2cset -y 2 -m 0x8000 0x3c 0x00 0x8000 w +``` + +Disable watchdog: +```bash +#!/bin/bash + +# i2cset + +# i2cbus = 2 +# chip-address = 0x3c +# data-address = 0x00 (Status Register) +# value = 0x0000 +# mode = w + +# disable watchdog +i2cset -y 2 -m 0x8000 0x3c 0x00 0x0000 w +``` \ No newline at end of file -- 2.45.2 diff --git a/doc/boards/README.m-com-x86.md b/doc/boards/README.m-com-x86.md index cbd74ad..d677b76 100644 --- a/doc/boards/README.m-com-x86.md +++ b/doc/boards/README.m-com-x86.md @@ -1,4 +1,73 @@ -# ISAR CIP Core: Instructions for M-COM RT X86 V1 +ISAR CIP Core: Instructions for the Siemens Mobility GmbH M-COM RT X86 V1 + +## About the M-COM RT X86 V1 + +The M-COM RT X86 V1 is an industrial grade PC. +It is designed to be installed on-board of trains and can be used for communication and processing purposes or as a security gateway. + +## Hardware Specifications + +- Intel Atom E3950 CPU +- 8GB DDR3 DRAM soldered, ECC +- Trusted Platform Module V2.0 +- 3 Gigabit Ethernet ports (M12 X-coded) +- 1 USB 3.0 on front +- -40°C to +70°C, fanless +- EN 50155 compliant (railways) +- 16 GB eMMC storage +- Input voltage range: 24 - 110 V DC EN50155 + +### Power Plug Pinout + +M12 B-coded Plug + +| Column 1 | Column 2 | +| -------- | --------------------------- | +| 24-110V | Edge triggered power on | +| GND | Not connected | + +#### Powering the device + +The device must be connected to a powersupply providing 24V to 110V output voltage at the "+" and "-" pins. +The "switch" pin is used for edge triggered power on. +It can be hardwired to the power supply 24V to 110V to trigger power on of the device. + +### LED Matrix: + +| Column 1 | Column 2 | Column 3 | Column 4 | +| -------------- | -------------- | -------------- | ------------- | +| Power STBY | Power ON | WD-Trigger | Error 1 | +| ETH0 Link/Data | ETH1 Link/Data | ETH2 Link/Data | RS232/RS422 | +| Module1 | Module1 | F1 | M.2 Used/Data | + +Power STBY (Yellow): +- Standby: on +- Powering down: flashing + +Power ON (Green): +- Operation: on +- Powering up: flashing + +WD-Trigger (Yellow): +- Trigger pulses: flashing per pulse + +Error 1 (Red): +- WD-Permanent-Reset: flashing 4 Hz +- WD-Disabled: flashing 2 Hz + +ETHx (Yellow/Green): +- Link: on +- Data transfer: flashing + +Module1 (Yellow/Green): +- Module-specific + +F1 (Yellow): +- Controlled via Software + +M.2 (Green): +- Module installed:on +- Data transfer: flashing ## Build the CIP Core image @@ -100,3 +169,63 @@ After boot, check the dmesg for Secure Boot status like below: root@demo:~# dmesg | grep Secure