RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sat Jan 29, 2022 1:33 pm

All times are UTC




Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: emg removed, mg added
PostPosted: Fri Feb 05, 2016 8:43 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Hi team --

I *finally* got mg(1) from OpenBSD -current working on LiteBSD. And it works great. Mg is a better MicroEMACS than emg will ever be. So I've gone ahead and replaced emg with mg.

It comes with a minimal .mg startup file so that mg will look the same as emg when launched.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
PostPosted: Fri Feb 05, 2016 9:45 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Mg also includes a built-in dired (M-x dired), making the dired package (sysutils/dired in ports) a bit redundant.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
PostPosted: Sat Feb 06, 2016 12:20 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Brian,

NICE. Any chance of mg for RetroBSD?

Wiz


Top
 Profile  
 
PostPosted: Mon Feb 08, 2016 2:34 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Looks like something is still wrong with mg:
Code:
# mg .mg     
panic: Terminal setup failed


Top
 Profile  
 
PostPosted: Mon Feb 08, 2016 4:38 am 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Serge:
Can you post the output of
Code:
# echo $TERM

That message implies you don't have that variable set.
(Maybe this is a real hardware issue that QEMU doesn't have?)

_________________
@__briancallahan on Twitter


Top
 Profile  
 
PostPosted: Mon Feb 08, 2016 4:51 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Code:
# echo $TERM
xterm

I tried TERM=xterm, ansi, vt100, linux - all the same result.


Top
 Profile  
 
PostPosted: Mon Feb 08, 2016 5:07 am 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Hmm... ok
I put a bug in the bug tracker to remind myself when I get real hardware.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
PostPosted: Mon Feb 08, 2016 12:32 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
I'mm pulling a string at Microchip to see if I can get you a free WiFire board :)

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Mon Feb 08, 2016 9:49 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Matt,

It might be good to also think about a 'standard' way to connect wired ethernet to the WiFire board. Maybe some Microchip based module? I notice some of their ethernet chips are cheap enough!

Lots of fun :).

Wiz


Top
 Profile  
 
PostPosted: Mon Feb 08, 2016 9:57 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
It would be nice to have support for the ENC28J60 (10Mbps) and ENC24J600 (100Mbps) chips, that is for sure. I have a bunch of the ENC28J60's here in DIP form - easy to prototype with, just needs a crystal and a magjack. SPI connected, so doesn't rely on the internal ethernet peripheral's pins being available, and also means you could have multiple ethernet ports directly connected. PIC32 router anyone?

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Mon Feb 08, 2016 11:57 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Matt,

Those would be my choice too. I also have a bunch. I think it makes MUCH more sense than the whole RMII sort of thing. That said, those chips are power hogs, but they work and don't need many pins from the PIC32.

Maybe we can convince Serge to add a driver to LiteBSD [ please :) ] ?

IIRC there is already one for RetroBSD?

Lots of fun :).

Wiz


Top
 Profile  
 
PostPosted: Thu Feb 11, 2016 4:07 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
(back on topic...)
Hey Serge --

I can't reproduce your mg issue. On my WI-FIRE, mg starts up as expected and works identically to how it does on OpenBSD. Doesn't matter if I open a scratch buffer, a new file, or an already existing file.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
PostPosted: Thu Feb 11, 2016 7:41 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Let me double check...
Looks like on QEMU under Linux, mg works fine.
The directory structure of /usr/share/terminfo is correct:
Code:
# find /usr/share/terminfo -type f
/usr/share/terminfo/s/screen
/usr/share/terminfo/v/vt100
/usr/share/terminfo/v/vt220
/usr/share/terminfo/v/vt300
/usr/share/terminfo/x/xterm
/usr/share/terminfo/x/xterm-256color
/usr/share/terminfo/x/xterm-color
/usr/share/terminfo/x/xterm-new
/usr/share/terminfo/x/xterm-old
/usr/share/terminfo/x/xterm-vt220

When built under Mac OS X, it was different. Something has to be fixed in libncurses installation scripts.


Top
 Profile  
 
PostPosted: Thu Feb 11, 2016 8:30 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Serge,

I just tried to download litebsd-wifire-2016-02-10.zip from LiteBSD.org/wiki/autobuild.php using SeaMonkey 2.39 running on Knoppix 7.2.0.

I get File not Found (Error 404).

I that just me?

Same error when I try to get sdcard-2016-02-10.zip.

I can get build-2016-02-10.log and look at it.

Lots of fun :).

Wiz


Top
 Profile  
 
PostPosted: Fri Feb 12, 2016 12:39 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Hi Wiz,
Oops.
Something went wrong with rev516.
I need to check the build log.
A newer version rev517 is already available: http://litebsd.org/wiki/autobuild.php?rev=517.
Does it work for you?


Top
 Profile  
 
PostPosted: Fri Feb 12, 2016 3:34 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Serge,

Thanks :).

The download worked !!

Each day LiteBSD is full of exciting new things :). We / you really have a tiger by the tail :) !!

I once worked for a boss who would say: " I must hurry for there go my people :) !! ".

Lots of fun :).

Wiz


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission