RetroBSD

2.11BSD operating system for microcontrollers
It is currently Mon Aug 03, 2020 11:21 pm

All times are UTC




Post new topic Reply to topic  [ 192 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 10  Next
Author Message
PostPosted: Fri Nov 28, 2014 11:07 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
Wayhay! I have it booting!!! Miracle!

Now we need to make it stable...

I boot. I log in. I type things. Things happen. I type more things. It freezes.

Won't reboot until I pop the SD card out and in again.

Sometimes it's a complete freeze, in that there is no response on the serial.

Sometimes it seems to be an SD card freeze - serial responds, but nothing is actually happening (right now it's stuck trying to run "ls" on /).

But despite that it's looking good.

_________________
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: Fri Nov 28, 2014 11:07 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
You could call it DPOB. Don't PIC on BSD :)

_________________
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: Fri Nov 28, 2014 11:17 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
majenko wrote:
Also need to
Code:
sudo apt-get install ctags
And these as well:
Code:
sudo apt-get install byacc flex libfuse-dev

Looks like I was too optimistic enabling command line editor in shell. It significantly increases the resident memory size for shell, causing excessive paging. In file /root/.profile, se the line "set -E" - it's better to remove it. The system will be much more responsive.

There is a lot of places for enhancements. Shared libraries would help to reduce memory footprint, especially when libc, libm and libcurses put into Flash memory and dynamically linked from there.

But for now, I'm going to fix networking first. At least make 'ping 127.0.0.1' work as expected.

BTW, it's possible to run the system on simulator. With tracing enabled, it helps to resolve issues with TLB, interrupts, context switching etc. See: https://github.com/sergev/pic32sim project.


Top
 Profile  
 
PostPosted: Fri Nov 28, 2014 11:42 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
Yeah, but simulators are no fun :P

I think we should use the ubiquitous Adjective Animal naming scheme for our releases.

I've written a random generator to help us: http://dist.majenko.co.uk/name

It's come up with a few interesting things, like "Moist Moorhen", "Incomplete Indri", "Gripping Gerbil"... :twisted:

_________________
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: Sat Nov 29, 2014 12:51 am 

Joined: Mon Nov 24, 2014 6:12 am
Posts: 13
Location: Australia
Something with VAX, or MZ in the name perhaps...
picVAX
VAXpic
VAPIC

Or since old-iron computers are sometimes referred to as dinosoars, what about Jurassic Junior..

What are some names for small fast smart dinosoars?

Meanwhile, after adding MIPS_GCC_ROOT I can now compile the file system.. :D Many thanks!
I also am experiencing random hangs... no discernable pattern... otherwise looks pretty good!

Ray


Top
 Profile  
 
PostPosted: Sat Nov 29, 2014 3:17 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
majenko wrote:
It's come up with a few interesting things, like "Moist Moorhen", "Incomplete Indri", "Gripping Gerbil"... :twisted:
Funny names. :)
Good as codenames for releases.

But we need something more generic, to distantiate 4.4bsd-based system from RetroBSD (which is 2.11bsd, totally dirrerent architecture and codebase).

rayg wrote:
Something with VAX, or MZ in the name perhaps...
picVAX
VAXpic
VAPIC

Or since old-iron computers are sometimes referred to as dinosoars, what about Jurassic Junior..

What are some names for small fast smart dinosoars?
Well... 4.4bsd is not quite a dinosoar. Most modern BSD vlafors are based on it, including MacOS, iOS and upcoming Sony playstation 4. Every iPhone and iPad has a bit of 4.4bsd in it. :)
Many high load internet services, like Netflix and whatsApp, use FreeBSD as a workhorse - a direct descendant of 4.4bsd-lite.

Why VAX? Frankly, there is not so much vax specific stuff in 4.4bsd. From the very beginning it had been ported to m68k, mips, sparc, i386 and tahoe (another CISC architecture).

rayg wrote:
I also am experiencing random hangs... no discernable pattern... otherwise looks pretty good!
There is something wrong with i/o routines in the kernel. Even simple "cp /bin/echo foobar" hangs waiting for buffers. Increasing the number of buffers in the kernel does not help.


Top
 Profile  
 
PostPosted: Sat Nov 29, 2014 3:47 am 

Joined: Mon Nov 24, 2014 6:12 am
Posts: 13
Location: Australia
Ok, no dinosoars.. :D ( or VAX )

Recursive names? VIPU
Vipu is Pic Unix

Or conventional wisdom would mandate simply picBSD

Ray

Pulled latest repo, compiled and running fine.


Top
 Profile  
 
PostPosted: Sat Nov 29, 2014 4:32 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
I would not be surprised if in the near future there will be more microcontrollers with MMU and enough SRAM, not only PICs. So it might be something like EmbedOS, TinyBSD or alike.

The most important feature of 4.4bsd (as opposed to RetroBSD) is networking. The name could reflect it somehow.


Top
 Profile  
 
PostPosted: Sat Nov 29, 2014 4:46 am 

Joined: Mon Nov 24, 2014 6:12 am
Posts: 13
Location: Australia
Ok, since we have some history to draw on, there's

OpenBSD
FreeBSD
NetBSD
etc..

So the name should probably be something "BSD" and since it's not constrained to just pic, that would imply something like.

microBSD --- already taken.. http://en.wikipedia.org/wiki/MicroBSD
nanoBSD --- already taken https://www.freebsd.org/doc/en/articles/nanobsd/
embeddedBSD --- not sure
tinyBSD -- already taken https://code.google.com/p/tinybsd/

might be closer, and use then of course Majenko's generator for release names as suggested.

Ray


Top
 Profile  
 
PostPosted: Sat Nov 29, 2014 6:49 am 
Contributor

Joined: Mon Apr 29, 2013 1:56 am
Posts: 196
Naming...

Latest 4.4 is still a teenager, right? Let's see what we have related to youth, freshness and such...
Junior BSD
Juvenile BSD
Juno(?) BSD
Teen BSD
Chico BSD
Fresco BSD

Light? What about all things light?
Luz BSD
Lux BSD
Clair BSD

Chic BSD?

Speaking of teens and light...
***Tin BSD*** sounds fun(ny). Plus, tin is silvery-white metal and light things are made of it. Network has tin parts! :)

4(.4)?
Cuatro BSD, Quatro BSD, Quattro BSD
***Tetra BSD*** rhymes with Retro BSD! :) I'm sure you could relate 4 to network as well.

Something with no more than two syllables is needed, I think.


Top
 Profile  
 
PostPosted: Sat Nov 29, 2014 10:44 am 
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
SergeBSD "Alarming Affenpinscher"

_________________
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: Sun Nov 30, 2014 8:56 am 
Contributor

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

Can the chip do VMS? (Virtual Memory System)

If so then the 'obvious' name is VAKVAX :).

Wiz


Top
 Profile  
 
PostPosted: Sun Nov 30, 2014 10:07 am 

Joined: Mon Nov 24, 2014 6:12 am
Posts: 13
Location: Australia
I'm thinking minimalist.. μnetBSD

μ for micro obviously
net... because it does networking
BSD ... so we know it's BSD UNIX

hopefully this doesn't conflict with the company micronet...

Ray


Top
 Profile  
 
PostPosted: Sun Nov 30, 2014 10:48 am 
Contributor

Joined: Mon Apr 29, 2013 1:56 am
Posts: 196
rayg wrote:
μnetBSD

μ for micro obviously
net... because it does networking
BSD ... so we know it's BSD UNIX

hopefully this doesn't conflict with the company micronet...


Too close to French minette, also borrowed into Russian, meaning fellatio. :)


Top
 Profile  
 
PostPosted: Sun Nov 30, 2014 11:16 am 

Joined: Mon Nov 24, 2014 6:12 am
Posts: 13
Location: Australia
alexfru wrote:
also borrowed into Russian, meaning fellatio. :)


Usefull to know... :)


Top
 Profile  
 
PostPosted: Sun Nov 30, 2014 11:29 am 
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
rayg wrote:
alexfru wrote:
also borrowed into Russian, meaning fellatio. :)


Usefull to know... :)

FellatioBSD?

YoctoBSD? 4.4BSDx10-24

_________________
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: Sun Nov 30, 2014 12:12 pm 
Contributor

Joined: Mon Apr 29, 2013 1:56 am
Posts: 196
Fella BSD!

Not to be confused with Favela BSD. :)
Favela in Portuguese means slum(s).


Top
 Profile  
 
PostPosted: Mon Dec 01, 2014 8:34 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
majenko wrote:
SergeBSD "Alarming Affenpinscher"
Sounds funny. :)

I looked over a lot of variants with Net-, Micro-, Tiny- and other prefixes - nothing suitable.

EmBUX (embeddable Berkeley Unix).
Bynix
BitbyteOS

Meanwhile, I fixed a few critical bugs in syscall restart, uart driver, timer interrupts and software interrupts. Now the system is much more stable, and ping runs reliably:
Code:
# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.415 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.388 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.52 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.484 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=0.322 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=255 time=0.319 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=255 time=0.323 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=255 time=0.39 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=255 time=0.424 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=255 time=0.497 ms
64 bytes from 127.0.0.1: icmp_seq=10 ttl=255 time=0.433 ms
^C
--- 127.0.0.1 ping statistics ---
11 packets transmitted, 11 packets received, 0% packet loss
round-trip min/avg/max = 0.319/0.41/0.52 ms

Flood ping mode works as well:
Code:
# ping -f 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
.^C
--- 127.0.0.1 ping statistics ---
30447 packets transmitted, 30447 packets received, 0% packet loss
round-trip min/avg/max = 0.329/0.423/65.37 ms


Top
 Profile  
 
PostPosted: Mon Dec 01, 2014 11:44 am 

Joined: Mon Nov 24, 2014 6:12 am
Posts: 13
Location: Australia
Latest git pull, runs ping nicely, and no strange hangs or crashes so far...

What has to run, to get telnet 127.0.0.1 working, is it just inetd?

what about riotBSD real internet of things BSD

Ray


Top
 Profile  
 
PostPosted: Mon Dec 01, 2014 12:30 pm 
Contributor

Joined: Mon Apr 29, 2013 1:56 am
Posts: 196
Speaking of which...
Rebel BSD
Iota BSD or Yotta BSD


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 192 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 10  Next

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