charlieb000
Posts: 1
Joined: Tue Feb 26, 2013 11:48 am

Bare SBC (no OS, just your program)

Tue Feb 26, 2013 12:05 pm

Hello,
I am curious to ask if there is an option for a "bare" OS, I am alluding to the competition like audino where there is little else but what is needed to flash itself. I do acknowledge that it would probably mean forfeiting many of the peripherals, but perhaps the manufacturer could have the video (as an example) respond to having the program (which i guess would nearly be called the OS) write some text to the screen, the BIOS accepting the command. I had this thought after i read that your program could be momentarily interrupted if the OS decides to do some background task. Being a fast processor it's probably not a super necessity unless you have some real intense process, but there could be a niche demand, so I ask. It may be just a bios upgrade.

It could be a requirement to use some of the peripherals, it would mean that code may need to be written from the coder, for example to reacquire an IP if connection were lost, but the tasks could be prioritised.

Charlie.

Cloudcentric
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am

Re: Bare SBC (no OS, just your program)

Tue Feb 26, 2013 4:35 pm

The Raspberry Pi does not have a BIOS !
I know everything about nothing"


User avatar
socialdefect
Posts: 110
Joined: Mon Jun 25, 2012 9:02 pm
Location: Tilburg, the Netherlands
Contact: Website

Re: Bare SBC (no OS, just your program)

Tue Feb 26, 2013 8:58 pm

The Moebius project focusses on providing a 'bare bones' solution for the Raspberry Pi. It's based-on Raspbian packages and only includes the bare minimal OS features and a package manager that makes it easy to extend the basic system when required. Such a system runs all scripts that can be interpreted by the Linux shell and you can compile your own code to run.

http://moebiuslinux.sourceforge.net
== If it's not broke... I'm not done fixing it! ==

User avatar
[email protected]
Posts: 2020
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: Bare SBC (no OS, just your program)

Tue Feb 26, 2013 9:07 pm

socialdefect wrote:The Moebius project focusses on providing a 'bare bones' solution for the Raspberry Pi. It's based-on Raspbian packages and only includes the bare minimal OS features and a package manager that makes it easy to extend the basic system when required. Such a system runs all scripts that can be interpreted by the Linux shell and you can compile your own code to run.

http://moebiuslinux.sourceforge.net
Except that @charlieb000 above didn't want an OS ...

-Gordon
--
Gordons projects: https://projects.drogon.net/

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: Bare SBC (no OS, just your program)

Wed Feb 27, 2013 2:23 am

There are may example of using bare metal, alot with function not unlike the BIOS functions.
Example bare metal code to print string

Code: Select all

include 'DexBasic\DexBasic.inc'   

print "Hello World!"            
sync                             
end                              

align 4                          
ProgramSize:                    
ScreenBuffer: 
Display a image

Code: Select all

include 'DexBasic\DexBasic.inc' 
                 
load   MyBmpImage, ScreenBuffer                   
sync                                             
end 
                                             
align 4                          
MyBmpImage:                                    
file 'Images\Bg.bmp'   
                     
align 4                                         
ProgramSize:                                
ScreenBuffer:  
Flash a led

Code: Select all

 include 'DexBasic\DexBasic.inc'                  
                                                  
pinMode  GPIO16, OUTPUT                 
                                                 
LetsLoop:                                      
digitalWrite  GPIO16, HIGH                       
delayMicroseconds  1000000                      
digitalWrite  GPIO16, LOW                         
delayMicroseconds  1000000                        
goto  LetsLoop                                   
                                                  
align 4                                           
ProgramSize:                                       
ScreenBuffer:  
HowTo here:
http://www.dex-os.com/DexBasic/DexBasic.htm
Batteries not included, Some assembly required.

JoeStrout
Posts: 43
Joined: Sun Oct 09, 2011 12:11 pm
Contact: Website

Re: Bare SBC (no OS, just your program)

Thu Mar 06, 2014 11:32 pm

For bare-metal coding, I think Alex Chadwell's tutorials may be very helpful. Although it talks about creating an "OS," it's really just about putting code directly on the metal, with no other OS in the way.

http://www.cl.cam.ac.uk/projects/raspbe ... index.html

I just discovered this today, and I can't wait to try it myself!

Cheers,
- Joe

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24116
Joined: Sat Jul 30, 2011 7:41 pm

Re: Bare SBC (no OS, just your program)

Fri Mar 07, 2014 9:40 am

JoeStrout wrote:For bare-metal coding, I think Alex Chadwell's tutorials may be very helpful. Although it talks about creating an "OS," it's really just about putting code directly on the metal, with no other OS in the way.

http://www.cl.cam.ac.uk/projects/raspbe ... index.html

I just discovered this today, and I can't wait to try it myself!

Cheers,
- Joe
You win this weeks thread necro prize! (although your link is indeed useful!)
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

Return to “Other”