[9fans] Update on RISC-V port

2020-11-27 Thread Skip Tavakkolian
Dear 9fans,

I'm forwarding an update from Richard and Geoff about their work porting
Plan 9 to RISC-V. I sent a synopsis on twitter; it is included here with
more detail:


Synopsis:

• 32 and 64 bit kernels (and commands) are working under tinyemu
• 64 bit kernel is booting on hardware, still being debugged
• 32 bit kernel is untested on hardware because we don't have access to an
RV32 core with MMU
• riscv compiler is available on 9p.io/sources/contrib/miller, and has been
added to the inferno distribution on bitbucket.
• tinyemu port will go onto 9p.io/sources/contrib/miller this weekend
• source is still in the experimental development stage. it will be
released when ready.

Richard recently gave a talk about his experience porting the Plan 9 C
compiler to RISC-V:
https://www.youtube.com/watch?v=LHJqdXGb0uc

Description:

TinyEMU has been ported to Plan 9, providing a choice of RV32GC or
RV64GC in machine mode, and better diagnostics than hardware provides.

We have 9k kernels running in both modes under tinyemu, but so far
using only one CPU.  They share quite a bit of non-port source.  The
RV32 kernel uses Sv32 paging.  The RV64 kernel so far uses Sv39
paging, but we expect it to work with Sv48 paging (and beyond) with
trivial changes.  So far the RV64 kernel resides at physical and
virtual 0x8000, which limits user process size, but we believe it
will be straightforward to switch to virtual 0xffc08000.

As described below, the RV32 kernel is not usable on the Polarfire
Icicle using the stock firmware and bootloaders.  The RV64 kernel is
close to working on the Icicle, and on the four main cores, we
believe.  There have been some surprises with the Icicle: as
delivered, it starts OpenSBI as RV64 on all harts (CPUs) and hart 0
(the smaller E51 core) controls the others.  OpenSBI on hart 1 starts
U-boot, from which we PXE boot the RV64 kernel, which runs in
supervisor mode.  There is no way back to machine mode, thus no way
back to RV32, and there seems to be no way to determine which mode the
CPU is in.

---
Thanks,
-Skip

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tbe8c3c69c87794db-M2f7fe588c31e9fc9907b6f17
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] mice

2020-11-27 Thread Kyle Farwell via 9fans

On 2020-11-27 6:41 p.m., Steve Simon wrote:
i tried a countour mouse but didn't get on with it. i bought a cheap 
Chinese copy - 3 real buttons on top and a wheel on the side.


i cannot find the exact link, this is the same mouse but i have the 
wired version - never needs recharged.


i really like it, it fits my had well and i can use sam, and scroll 
windows (with the 9front changes).


https://www.aliexpress.com/i/404785639.html 


-Steve


I have the same mouse, wired version. I've used a couple different 
3-button mice and this is my favourite.


It's a 灵智银狐 (Lingzhi Silver Fox) brand MODEL M-S3C. Here is the 
official website:


http://www.hao1885.com/products.asp

They have some other models with the wheel on top or without any wheel.

I bought mine on eBay but the listing is gone. There are some other 
sites selling it if you search around.


Mine stops working once in a while but it's fixed by unplugging it and 
plugging it back in. This behaviour is OS-independent.


Kyle

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9911dd6a42b7bc91-M584b74ba11b8fb0e53834a09
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] mice

2020-11-27 Thread ori
Quoth Steve Simon :
> We where discussing mice for plan9.
> 
> I have just about given up on the apple magic mouse, its a shame,
> having the nice swipe features is cool but its just too unreliable at
> detecting middle button clicks to be usable with sam.
> This maybe due to the MagicPerfs software I used.
> 
> I have however found a cheap alternative:
> https://www.ebay.co.uk/itm/Optical-3-Button-Mouse-With-Side-Scroll-Wheel-USB-3-Button-Mouse-send-mouse-pad/302784849165
> 
> This is basicially a rip off of the contour mouse. Thehey work fine with 
> plan9,
> my only complaint is they are a little small for my hand - I will probably 
> buy a contour
> mouse one of these days.
> 
> -Steve

I personally use the Evoluent vertical mouse. It's
comfortable, and has a scroll wheel and a *separate*
middle button.

I quite like it -- my only complaint is that the corded
version lacks a bit of heft, so when moving my hand off
it the cursor drifts a bit. I suppose that could be fixed
by opening it up and adding a bit of weight to the base,
but I use the cordless version just because of the weight
of the batteries.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9911dd6a42b7bc91-M3029a9e4136816f1876a3a4e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] mice

2020-11-27 Thread Steve Simon

i tried a countour mouse but didn't get on with it. i bought a cheap Chinese 
copy - 3 real buttons on top and a wheel on the side.

i cannot find the exact link, this is the same mouse but i have the wired 
version - never needs recharged.

i really like it, it fits my had well and i can use sam, and scroll windows 
(with the 9front changes).

https://www.aliexpress.com/i/404785639.html

-Steve

> On 27 Nov 2020, at 11:04 pm, Kurt H Maier  wrote:
> 
> On Fri, Nov 27, 2020 at 06:02:13PM -0500, fi...@lojanci.org wrote:
>> Anybody has tried Unimouse on plan9port/linux?
> 
> I have.  I don't use it much these days since it's in my office and the
> plague has me working from home.  It works fine -- what do you need to
> know?
> 
> khm

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9911dd6a42b7bc91-Md1bc26e0013a42888c6cffef
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] mice

2020-11-27 Thread fijal
thx, sounds very promising.
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9911dd6a42b7bc91-M3b3b1e588398b734e58d18a5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] mice

2020-11-27 Thread Kurt H Maier
On Fri, Nov 27, 2020 at 06:22:27PM -0500, fi...@lojanci.org wrote:
> what about 2-1 chording, is B2 working fine?

Yes, it's fully HID-compliant.

khm

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9911dd6a42b7bc91-M23368f682b601e2a74545152
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] mice

2020-11-27 Thread fijal
what about 2-1 chording, is B2 working fine?
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9911dd6a42b7bc91-M7ada7d550787bb925920f3d5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] mice

2020-11-27 Thread Kurt H Maier
On Fri, Nov 27, 2020 at 06:02:13PM -0500, fi...@lojanci.org wrote:
> Anybody has tried Unimouse on plan9port/linux?

I have.  I don't use it much these days since it's in my office and the
plague has me working from home.  It works fine -- what do you need to
know?

khm

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9911dd6a42b7bc91-M308824dbccd55881be10938a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] mice

2020-11-27 Thread fijal
Anybody has tried Unimouse on plan9port/linux?
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9911dd6a42b7bc91-M25a0de2bf9dc93a0e269c662
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] git9: self-hosting.

2020-11-27 Thread Lucio De Re
On 11/27/20, hiro <23h...@gmail.com> wrote:
> one way it will help the bonzai tree grow is in that 9front can soon
> escape the old python, that constantly weighs on us just bec. we want
> to run hg sometimes.
>
I could not agree more.

What I believe is that Git has neither rhyme nor reason, it is a
smorgasbord of functions produced as the need was revealed. I admire
Ori's efforts to give Git some kind of discipline.

Not having to contend with HG and Python is a massive blessing. One
that Linux users will forever oblivious of, as they just sheepishly
follow their leaders and question not.

Lucio.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te1830283b1d3653f-Md629b00c8a699744cb9602f5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] git9: self-hosting.

2020-11-27 Thread hiro
one way it will help the bonzai tree grow is in that 9front can soon
escape the old python, that constantly weighs on us just bec. we want
to run hg sometimes.

python keeps on reinventing itself (python3 now has the crappiest
unicode implementation imaginable), and hg keeps on reinventing itself
alongside. so in the long run, unless we are fine to run a very very
outdated version of python and hg, we really need a way out of these
dependencies. git9 now seems to be the best way out that would be
compatible and can keep the commit history alive.

thanks ori.

On 11/27/20, Lucio De Re  wrote:
> It's not clear what your preference is, Ori. Maybe you can clarify how
> you would like contributors to participate in the self-hosted project.
>
> I personally really appreciate, in particular the convergence of Plan
> 9 streams that your efforts are encouraging.
>
> I just don't yet see how this should be harnessed, but I do wish the
> discussion could at least start, lay down some useful objectives that
> can be accepted by all interested parties. In some kind of unity lies
> Plan 9's strength.
>
> In a sense, Plan 9 is immunisation against the fragmenting forces of
> the market place, but I think it needs more than a shot, it needs
> continuous application. R.A. Heinlein (if I remember right) likened it
> to growing a bonsai tree over multiple human generations.
>
> Let me leave it at that, but add that I personally think that revision
> control can be done far more productively than Git, but the effort
> needed would be significant. In Ori's own git9 are but the seeds for
> that. And Github has shown what Git can facilitate, imagine what the
> next generation could mean for development.
>
> Lucio.
>
> PS: in case it got swamped, Ori, all I really started with was to say
> "thank you". I tend to slip into self-indulgence...
>
> On 11/26/20, o...@eigenstate.org  wrote:
>> I'll keep mirroring to github, because people keep promising
>> that it'll get me contributors -- and because it doesn't
>> hurt to keep testing against it. Also, because breaking
>> links annoys people.
>>
>> But github is no longer the upstream: Git9 is running on
>> git/serve, hosted on plan 9 -- it's been towed within the
>> environment.
>>
>> The new upstream is now:
>>
>> gits://orib.dev/git9
>>
>> And there's a web listing of repositories here:
>>
>> https://orib.dev/git/repos.html
>>
>> I wrote up how it works here:
>>
>> https://orib.dev/githosting.html
>>
>> Thanks to everyone for all the testing, patches,
>> and reports.
> 
> 
> --
> Lucio De Re
> 2 Piet Retief St
> Kestell (Eastern Free State)
> 9860 South Africa
> 
> Ph.: +27 71 471 3694
> Cell: +27 83 251 5824

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te1830283b1d3653f-M56a6e3c5e4b6b5c0d100e144
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription