From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3370 invoked from network); 28 Jan 2022 22:23:52 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 28 Jan 2022 22:23:52 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id D14402373C for ; Fri, 28 Jan 2022 17:23:50 -0500 (EST) (envelope-from bounce.mMe02d5cb4e136e32f9d0015d0.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id CEA0C1431054; Fri, 28 Jan 2022 17:23:50 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (1024-bit rsa key sha256) header.d=boddie.org.uk header.i=@boddie.org.uk header.b=IbpY8DJj header.a=rsa-sha256 header.s=dkim x-bits=1024; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=boddie.org.uk; spf=pass smtp.mailfrom=david@boddie.org.uk smtp.helo=smtp1.de.opalstack.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding:content-type :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1643408630; bh=cx8dODBvhIKG1IjV B9T9vesL3dqoQ/cwTf9EHpUHEbU=; b=p8yKL8x7FA6I28vnTg1Pe5VVv1QeQIGi 1ISw1RPgkO1Z5bKK9cFRyWPxcy58LL/swDBBKHUv0VCX7aW0Gq2rkjK+EFmlBVZh NZQcgW93kqqglP03IulKF5Wy/YB6TSHtWPWBucaigxpymtX8v03RMtwU++NdXMr9 RwT5lmOZu2g= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1643408630; b=tKY7fe0zRaxAnJsR6lf1gNC822jLP3CvnkHTAszdwvykzNOLV1 AWGalMN27171pzq09z6PcehPSAkfgNW3CLgu1qJ8ZAHKogcYTK81uJQBN+QT0A8J +9RzLblDiWve8yMLg5Jpe9wvaHkpRFB1+WakWZugqHGnQ0rpNnvpjYEUc= Authentication-Results: topicbox.com; arc=pass; dkim=pass (1024-bit rsa key sha256) header.d=boddie.org.uk header.i=@boddie.org.uk header.b=IbpY8DJj header.a=rsa-sha256 header.s=dkim x-bits=1024; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=boddie.org.uk; spf=pass smtp.mailfrom=david@boddie.org.uk smtp.helo=smtp1.de.opalstack.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (1024-bit rsa key sha256) header.d=boddie.org.uk header.i=@boddie.org.uk header.b=IbpY8DJj header.a=rsa-sha256 header.s=dkim x-bits=1024; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=boddie.org.uk; iprev=pass smtp.remote-ip=46.165.236.26 (smtp1.de.opalstack.com); spf=pass smtp.mailfrom=david@boddie.org.uk smtp.helo=smtp1.de.opalstack.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=smtp1.de.opalstack.com policy.ptr=smtp1.de.opalstack.com; x-return-mx=pass header.domain=boddie.org.uk policy.is_org=yes (MX Records found: mx1.de.opalstack.com,mx2.de.opalstack.com); x-return-mx=pass smtp.domain=boddie.org.uk policy.is_org=yes (MX Records found: mx1.de.opalstack.com,mx2.de.opalstack.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding:content-type:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; bh=gf9LTWl4PIcAfQonsEEnQxMiOyyiyjrMM/osVrBkiFw=; b=c9pdClnX7pGY GWqP1ykn4/gF550hb++pfmheD46MpZ0nQOEJX3fR2RiNAdUlqUz+Fq7+SCgqfD0+ jRYdmavbG8PcHXFd85aM3/5jOY5TL5F1+ghyxK+LDDgxe7stFx8J1ECifuqqfI9V 2CXrEPS2lMa0rmW0y0f46dBFFKny6Ho= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 9B9541430C45 for <9fans@9fans.net>; Fri, 28 Jan 2022 17:23:39 -0500 (EST) (envelope-from david@boddie.org.uk) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 0F6EFD983B8; Fri, 28 Jan 2022 17:23:39 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1643408619; b=Sz8spIFfJNbFKN3B9JpOvd/SQW/D5zmjOD4v1ALFLiBhM1pgWt 6f3Mj6z39syRBcPqQZ9CcLJvo+EW6Xa4K7qe4zrLWxr6l0DS0e5y/yBA/SniF4bC N6KvDbSPQDabDaje0pNfTETClvV1dmPWEnvimaAav4jP/L/trJGcZmyG/OycXRQ8 wIyDE1s7w9c0UYibSb4FtuKZe6++fGXXL9VBFCkPcc9NkZtPTyjH+gzaG2NPim04 XH0uoAbhGxZavqXR97XZ/Ez54fKyuvhU+RMikCuoZ3qY4F+IYjCRndc+fGh+P/l4 KbIOm5K2jNs94b3grO8jVFfymoXelTCwvQNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding:content-type; s=arcseal; t=1643408619; bh=EPuWBhpHDD6ANfdbSrcNbL05EXrPm9NAqbQ vLC+kgPI=; b=RxRUgtYDTVU5InvhVd7JKfSAQcshqNPWt0EelIWUewssy7DdvHP 2ybgFH9rxR3QSG3hyFg/zlGAG2EYQxOO2Wzf3An3hB+f5RmNE0psPzgjgj5WVHbG 24ZAelfRjYlpJlPIPsnBtc3pnNhw0KON/2QeEZjDzCQxJPJf4cxSswqLsZdsF6Og C2gzotTT+AtmGj58E47+RF3+o8RH19pLxvTUlUfQmxQmQ/10ry6tGitYDi+lM37i czFzkfZwZ3P7gAsMs1CYMBSKsaUgvPRcICxZtKy4DDV6Lf9VngP0PRc9zHtVq0/P LiA6p/zYmJ2QSg+z4i97lVS5geBj585qsXA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (1024-bit rsa key sha256) header.d=boddie.org.uk header.i=@boddie.org.uk header.b=IbpY8DJj header.a=rsa-sha256 header.s=dkim x-bits=1024; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=boddie.org.uk; iprev=pass smtp.remote-ip=46.165.236.26 (smtp1.de.opalstack.com); spf=pass smtp.mailfrom=david@boddie.org.uk smtp.helo=smtp1.de.opalstack.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=smtp1.de.opalstack.com policy.ptr=smtp1.de.opalstack.com; x-return-mx=pass header.domain=boddie.org.uk policy.is_org=yes (MX Records found: mx1.de.opalstack.com,mx2.de.opalstack.com); x-return-mx=pass smtp.domain=boddie.org.uk policy.is_org=yes (MX Records found: mx1.de.opalstack.com,mx2.de.opalstack.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeeggdduudduucdltddurdegudehrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd enucenucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepffgr vhhiugcuuehougguihgvuceouggrvhhiugessghougguihgvrdhorhhgrdhukheqnecugg ftrfgrthhtvghrnhepveeufeegveekveevueehvdefvdejhfduteekgfetfeejieeghfeu hfdvjedvjeffnecuffhomhgrihhnpegsihhtsghutghkvghtrdhorhhgpdhgihhtlhgrsg drtghomhdpthhophhitggsohigrdgtohhmnecukfhppeegiedrudeihedrvdefiedrvdei pdefjedrudeluddrudekkedruddvkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepihhnvghtpeegiedrudeihedrvdefiedrvdeipdhhvghlohepshhmthhpuddruggv rdhophgrlhhsthgrtghkrdgtohhmpdhmrghilhhfrhhomhepoegurghvihgusegsohguug hivgdrohhrghdruhhkqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (boddie.org.uk: Sender is authorized to use 'david@boddie.org.uk' in 'mfrom' identity (mechanism 'include:spf.opalstack.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="david@boddie.org.uk"; helo=smtp1.de.opalstack.com; client-ip=46.165.236.26 Received: from smtp1.de.opalstack.com (smtp1.de.opalstack.com [46.165.236.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 28 Jan 2022 17:23:38 -0500 (EST) (envelope-from david@boddie.org.uk) Received: from aurora.localnet (host-37-191-188-128.lynet.no [37.191.188.128]) by smtp1.de.opalstack.com (Postfix) with ESMTPSA id 393AE5AD7B for <9fans@9fans.net>; Fri, 28 Jan 2022 22:23:36 +0000 (UTC) From: David Boddie To: 9fans <9fans@9fans.net> Subject: Re: [9fans] building blocks speaking 9p Date: Fri, 28 Jan 2022 23:23:35 +0100 Message-ID: <2665128.melU8dvpTR@aurora> In-Reply-To: <20220128214628.B2BD4804471@smtp.hushmail.com> References: <16434055950.51BfDC4CD.893486@composer.9fans.topicbox.com> <20220128214628.B2BD4804471@smtp.hushmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: f41690ae-8088-11ec-8708-b2bab56d5a24 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYTRlNTg0YTM3M2IwNTU1My1NZTAyZDVjYjRlMTM2ZTMyZjlkMDAx?= =?UTF-8?B?NWQwPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Me02d5cb4e136e32f9d0015d0:1:UZtYba5mANjuKJ4puSIaAOdJ7m1PYYKNqYI0uxzNh_o I'll try and write something useful about it this weekend, and I'll push a branch up to BitBucket/GitLab: https://bitbucket.org/dboddie/inferno-os/branches/ https://gitlab.com/dboddie/inferno-os/-/branches However, it basically boils down to this: * Build Inferno's tc and tl since they are not included in the default build. * Fix the tl mkfile so that it calls the executable tl not 5l. * Write a mkfile with all the rules for 5a, tc and tl, setting the text address to 0x08000000 (flash) and data to 0x20000000 (RAM). * Write a loader file to set up the stack and static base registers, copy data into RAM, and jump into main. I have some functions for setting up clocks, GPIOs and the USART. This is currently in a separate repository for bare metal tests. I'll push that up to GitLab. David On Friday, 28 January 2022 22:46:28 CET Tony Mendoza wrote: > Any interest in sharing those hints for building bare metal STM32F405 > code om plan9? > T > On 1/28/2022 at 3:34 PM, david@boddie.org.uk wrote:On 2022-01-28 >=20 > 2:55:00, Thaddeus Woskowiak wrote: > > One compiler that we really need is an arm thumb 2 compiler for >=20 > cortex-m/r >=20 > > microcontrollers. Inferno has a very old and very incomplete arm >=20 > thumb 1 >=20 > > compiler, tc. I don't know if it's worth salvaging. >=20 > I am using 5a/tc/tl to build bare metal code for a STM32F405 MCU > thanks > to some hints from Charles Forsyth. >=20 > I'm currently trying to add FP support and learn about compiler > internals. > It also means learning about Thumb-2, which is quite alien for an > old-school > ARM coder. >=20 > David > 9fans / 9fans / see discussions + participants + delivery > options Permalink > ------------------------------------------ > 9fans: 9fans > Permalink: > https://9fans.topicbox.com/groups/9fans/Ta4e584a373b05553-M520003e6d6ac2b= 54 > e8e509e4 Delivery options: > https://9fans.topicbox.com/groups/9fans/subscription ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Ta4e584a373b05553-Me02d5= cb4e136e32f9d0015d0 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription