RetroBSD

2.11BSD operating system for microcontrollers
It is currently Wed Jul 17, 2019 2:23 am

All times are UTC




Post new topic Reply to topic  [ 49 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Fubarino SD for RetroBSD
PostPosted: Fri Sep 14, 2012 8:14 am 

Joined: Tue Apr 03, 2012 3:06 am
Posts: 6
I just release the FubarinoSD board, http://www.seeedstudio.com/depot/fubarino-sd-p-1265.html?cPath=132_133. The first 100 have the 795 chip on board. So they technical could run RetroBSD. If it can I was thinking of making the FubarinoRetro.

How is pin mapping handled in RetroBSD, do I need to do something so that RetroBSD would recognize the pins?

Thanks,
-_Rick


Top
 Profile  
 
PostPosted: Fri Sep 14, 2012 10:32 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Hi Rick,
So interesting board. When ordering right now, will I get f795 chip installed?

There is no strict requirements for pins by RetroBSD. Every board has a specific pin assingment, configured in kernel Makefile for this board. For example, for Olimex Pinguino-micro:

Code:
# SD/MMC card driver on SPI2
# /CS0 at pin B13
DEFS += -DSD_PORT=SPI2CON
DEFS += -DSD_CS0_PORT=TRISB -DSD_CS0_PIN=13

# LED at pin D1
DEFS += -DLED_KERNEL_PORT=TRISD -DLED_KERNEL_PIN=1 -DLED_KERNEL_INVERT

--
Best wishes,
Serge

_________________
--Serge


Top
 Profile  
 
PostPosted: Fri Sep 14, 2012 10:37 am 

Joined: Tue Apr 03, 2012 3:06 am
Posts: 6
This first batch has the PIC32MX795F512H chip on board. Once this group sells then smaller chip is scheduled to go on. But if it works out for RetroBSD I'll push to get a FubarinoRetro going.


Top
 Profile  
 
PostPosted: Fri Sep 14, 2012 11:32 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
OK, I've ordered one unit. It should quite easy to make a kernel configuration for this board.
--
Thanks,
Serge

_________________
--Serge


Top
 Profile  
 
PostPosted: Fri Sep 14, 2012 4:30 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
That looks a cute little board... I think you should send a free one to each of the Retro developers... XD

_________________
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 Sep 16, 2012 3:07 pm 
Contributor

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

I agree freebies are nice :).

Wiz


Top
 Profile  
 
PostPosted: Mon Sep 17, 2012 10:04 am 

Joined: Tue Apr 03, 2012 3:06 am
Posts: 6
If you have access to my email through the profile. Just send me an email. I can't promise, but I can try. :-) Make sure RetroBSD is in the subject line.

And thanks for the order! We're working on several updates and addons. Including a FubarinoMini, servo, and motor controller, and adapter shields for Arduino/ChipKit shields. We're consider a dual pmod adapter for Digilent Pmods.

Let me know what you think would be interesting for a RetroBSD add on board/shield.




Top
 Profile  
 
PostPosted: Mon Sep 17, 2012 10:54 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Nice board! Provided the bottom side is empty we may populate bottom with a second sdcard socket and a ramdisk/swapdevice :)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Mon Sep 17, 2012 11:04 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
Looks empty on the photos... You thinking of sandwiching a second PCB underneath it with the extra components on? Kind of like a reverse arduino shield, but with no gap, and soldered links?

_________________
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: Tue Sep 18, 2012 2:37 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
..no second pcb - just populate the bottom side of that PCB with ie. second sdcard socket, and a swapdevice (which one?). I would also use a voltage regulator with >250mA current capability. Maybe few more leds..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Sep 28, 2012 12:18 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
It works! :)
RetroBSD successfully started on Fubarino board. SD clock rate is 20MHz. A configuration and hex file for bootloader is in sys/pic32/fubarino directory.

A native bootloader, for some reason, did not work for me. I tried to use avrdude from MPIDE toolchain to program a kernel to the board, but it failed with write timeouts. So I decided to replace the native boot loader with a legacy UBW32-compatible version, which I used for Microchip starter kit and eflightworks DIP boards. So now it works, and can be programmed with pic32prog utility, like most other boards.

Here is a brief howto.
1) Use PICkit3 or PICkit2 to write a file http://retrobsd.googlecode.com/svn/trunk/sys/pic32/fubarino/usbboot.hex to the board. There are 5 pins marked as ICSP connector on the middle right side.
2) Connect USB port.
3) Go to sys/pic32/fubarino directory and build a kernel.
4) Program it by command "pic32prog unix.hex".
5) Press Reset button on the board.
6) Connect to a virtual console COM port and press - the kernel will start.
7) To update a kernel, press both PRG and Reset buttons. Green LED should start blinking - this is a bootloader mode. Use pic32prog.

--Serge

_________________
--Serge


Top
 Profile  
 
PostPosted: Fri Sep 28, 2012 1:23 pm 

Joined: Tue Apr 03, 2012 3:06 am
Posts: 6
That is great! I'll be at Makerfaire NYC this weekend. If anyone is there let me know. I have FubarinoSD boards with me, and get one you one.


Top
 Profile  
 
PostPosted: Fri Sep 28, 2012 2:22 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Serge, would it be possible to return the ubw32 bootloader back to the repo?
P.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sat Sep 29, 2012 1:59 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
It's here, but heavily rewritten: http://code.google.com/p/retrobsd/source/browse/trunk/sys/pic32/usb_boot.c

To build it, enter sys/pic32/usbboot directory, uncomment a proper line in Makefile and run make.

Five boards are currently supported:
- UBW32
- Maximite
- eflightworks DIP
- Microchip USB/Ethernet Starter Kit
- Fubarino

You can easily add your own board. Look for '#if defined (UBW32)' in usb_boot.c.

_________________
--Serge


Top
 Profile  
 
PostPosted: Sat Sep 29, 2012 2:42 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Thanks!

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Oct 05, 2012 4:45 am 

Joined: Thu Oct 04, 2012 9:44 pm
Posts: 2
Speaking of dual PMods and SPI... I was unhappy with the PMod Shield Uno because I have several PMods that I want to connect all using SPI and only the side connector "C" exposed SPI. I'd rather see a PMod Shield that had all of the PMod ports tied to one SPI chain.

Speaking of SPI, are the second SPI ports tied to any pins?


Top
 Profile  
 
PostPosted: Fri Oct 05, 2012 10:53 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
I guess you are asking about chipKIT Pmod Shield[/url] plugged into chipKIT Uno32 board? Only SPI2 is available to the user. Pins of SPI1 are busy with UART1-to-USB port.

_________________
--Serge


Top
 Profile  
 
PostPosted: Wed Oct 10, 2012 9:24 pm 

Joined: Thu Oct 04, 2012 9:44 pm
Posts: 2
Yes that is what I am referring to. If I had better expertise with PCB creating tools, I would try to make a shield that had a similar form factor to the chipKIT Pmod Shield, but where each Pmod port uses the SPI2 pins, with a jumper array next to each to select various other ports for slave select, int1 and int2 so you could actually plug in 4 SPI Pmods and use them all.

Not that I know how to use Eagle, but I noticed that the Eagle files for the Uno32 are available. Does anyone know if the same is true for the Pmod Shield Uno?


Top
 Profile  
 
PostPosted: Wed Oct 24, 2012 4:08 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Hi, I am new with Fubarino, so I need an advice (trunk rev655):
1. I built /fubarino/unix.hex (Note: fubarino board missing in Top makefile) - ok
2. I flashed the /fubarino/usbboot.hex to fubarino with pickit - ok
3. I tried upload the /fubarino/unix.hex with ubw32 loader - error on verify
4. I uploaded the unix.hex with pic32prog - ok
5. I connected to teraterm (XP) as com16 - ok
6. I reset fubarino (many times) - none welcome screen visible - nothing..
Any advice?

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Wed Oct 24, 2012 4:54 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
PS: repeated few times, green led (kernel) does not lit, no activity there.. chip is the 795F :)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page 1, 2, 3  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