9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Boddie <david@boddie.org.uk>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] building blocks speaking 9p
Date: Fri, 28 Jan 2022 23:23:35 +0100	[thread overview]
Message-ID: <2665128.melU8dvpTR@aurora> (raw)
In-Reply-To: <20220128214628.B2BD4804471@smtp.hushmail.com>

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
> 
> 2:55:00, Thaddeus Woskowiak wrote:
> > One compiler that we really need is an arm thumb 2 compiler for
> 
> cortex-m/r
> 
> > microcontrollers. Inferno has a very old and very incomplete arm
> 
> thumb 1
> 
> > compiler, tc. I don't know if it's worth salvaging.
> 
> I am using 5a/tc/tl to build bare metal code for a STM32F405 MCU
> thanks
> to some hints from Charles Forsyth.
> 
> 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.
> 
> David
>  9fans   / 9fans / see discussions   + participants   + delivery
> options Permalink
> ------------------------------------------
> 9fans: 9fans
> Permalink:
> https://9fans.topicbox.com/groups/9fans/Ta4e584a373b05553-M520003e6d6ac2b54
> e8e509e4 Delivery options:
> https://9fans.topicbox.com/groups/9fans/subscription





------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Ta4e584a373b05553-Me02d5cb4e136e32f9d0015d0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  reply	other threads:[~2022-01-28 22:23 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27 22:57 Bakul Shah
2022-01-28  2:55 ` Thaddeus Woskowiak
2022-01-28  3:31 ` Lucio De Re
2022-01-28  5:16   ` Bakul Shah
2022-01-28 10:16     ` Lucio De Re
2022-01-28 19:01       ` Charles Forsyth
2022-01-28 21:26         ` Bakul Shah
2022-01-28 21:37           ` Eli Cohen
2022-01-28 20:54       ` Tony Mendoza
2022-01-28 20:59       ` Tony Mendoza
2022-01-28 21:03         ` ori
2022-01-28 21:07           ` Tony Mendoza
2022-01-28 21:06         ` Eli Cohen
2022-01-28 21:16           ` Tony Mendoza
2022-01-28 21:27             ` Eli Cohen
2022-01-28 21:33               ` david
2022-01-28 21:46                 ` Tony Mendoza
2022-01-28 22:23                   ` David Boddie [this message]
2022-01-29  1:04                 ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2022-01-29  2:08                   ` David Boddie
2022-01-29  3:36                     ` Tony Mendoza
2022-01-29 18:03                     ` David Boddie
2022-01-29  2:32           ` Thaddeus Woskowiak
2022-01-29 20:04             ` [9fans] aiju boards Lyndon Nerenberg (VE7TFX/VE6BBM)
2022-01-28 19:32   ` [9fans] building blocks speaking 9p Kent R. Spillner
2022-01-28  4:54 ` ori
2022-01-28 20:55 ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2022-01-29  9:16 ` Skip Tavakkolian
2022-01-29 11:56   ` Frank D. Engel, Jr.
2022-01-29 12:14     ` Frank D. Engel, Jr.
2022-01-29 12:30       ` Frank D. Engel, Jr.
2022-01-29 13:24         ` cinap_lenrek
2022-02-15  3:07 ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2022-01-29 20:53 Lyndon Nerenberg (VE7TFX/VE6BBM)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2665128.melU8dvpTR@aurora \
    --to=david@boddie.org.uk \
    --cc=9fans@9fans.net \
    --subject='Re: [9fans] building blocks speaking 9p' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).