RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sat Jul 20, 2019 8:35 am

All times are UTC




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Wed Oct 24, 2012 7:44 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Serge, is this ok in the usbboot makefile?

# Fubarino
#CFLAGS += -DFUBARINO -DFLASH_JUMP=0x9d000000

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 2:32 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Hi Pito,
There is a precompiled bootloader file: sys/pic32/fubarino/usbboot.hex
it works for me. Options in usbboot/Makefile should be uncommented by a user before compilation, they are board-specific.
--Serge

_________________
--Serge


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 5:46 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I’ve not been using USB connectivity too much – when I power on the fubarino, without an USB connectivity, and without an SDcard inserted, should I see the green LED (kernel) activity after the reset??


_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 6:17 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
After reset, only red LED should be active. To start a kernel, you need to connect to USB console and press any key. It is suspended in cninit() function until any USB activity.

_________________
--Serge


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 6:26 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Ok, so the above situation will not indicate on the LED the retrobsd is alive.. :(
That is the difference to the uart versions which blink from the very beginning.
Maybe a few blinks after the reset ("I am alive", or R in morse .-.) may save a LOT of time to newbies as I am.. :)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 6:35 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Good idea!
Fixed and committed. A kernel LED is activated while waiting for a user input on USB console.

_________________
--Serge


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 10:17 pm 

Joined: Tue Apr 03, 2012 3:06 am
Posts: 6
I found adding:
FUBARINOSD = pic32/fubarino

To the makefile then updating current target to FUBARINOSD worked great.
However, I think I would still need to update the OPTIONS from earlier.


Top
 Profile  
 
PostPosted: Thu Nov 22, 2012 1:59 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
My Fubarino SD arrived today! Yay! Thanks Rich!

Now... getting it going... :/

I have never actually managed to get the bootloader to work on anything yet, so I don't know what I am doing wrong.

Programmed the usbboot.hex in sys/pic32/fubarino with my pickit2... OK.

Try and program the Fubarino:

Code:
matt@laptop01 ~/retrobsd/retrobsd-compile/sys/pic32/fubarino $ make load
pic32prog unix.hex
Programmer for Microchip PIC32 microcontrollers, Version 1.62
    Copyright: (C) 2011-2012 Serge Vakulenko
      Adapter: HID Bootloader
 Program area: 1d000000-1d07ffff
    Processor: Bootloader
 Flash memory: 512 kbytes
         Data: 137752 bytes
        Erase: Timed out.
make: *** [load] Error 255
matt@laptop01 ~/retrobsd/retrobsd-compile/sys/pic32/fubarino $ make load
pic32prog unix.hex
Programmer for Microchip PIC32 microcontrollers, Version 1.62
    Copyright: (C) 2011-2012 Serge Vakulenko
      Adapter: HID Bootloader
 Program area: 1d000000-1d07ffff
    Processor: Bootloader
 Flash memory: 512 kbytes
         Data: 137752 bytes
        Erase: done
Program flash: ################################## done
 Verify flash: #.................................
error at address 9D000000: file=3C1A9D00, mem=00080000
make: *** [load] Error 1


That's the same results I get when I try and use the bootloader on any other board I make. The erase times out, then I have to wait a few seconds for the LED to start flashing again, and then I can try and program again, at which point it fails to verify.

I'm working from trunk at the moment, but I have had the same results from other branches in the past.

_________________
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: Thu Nov 22, 2012 2:08 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I may confirm the fubarino works with pic32prog, release 174 (I think) (I had to update, it did not build on my ububu10)
Code:
pito@ubuntu:~/RETROPART/retrobsd$ make installflashfub
sudo  /home/pito/pic32prog/pic32prog   sys/pic32/fubarino-uart-sramc/unix.hex
Programmer for Microchip PIC32 microcontrollers, Version 1.74
    Copyright: (C) 2011-2012 Serge Vakulenko
      Adapter: HID Bootloader
 Program area: 1d000000-1d07ffff
    Processor: Bootloader
 Flash memory: 512 kbytes
         Data: 138740 bytes
        Erase: done
Program flash: ################################### done
 Verify flash: ################################### done
Rate: 7341 bytes per second
pito@ubuntu:~/RETROPART/retrobsd$


PS: I did two mods on the fubarino:
1. added 3x 10u ceramics 0805 - soldered from top on each pinheader pair with gnd-3v3 (still the sdcard has no vcc cap near the sdcard socket - not good)
2. replaced red->blue, green->red, resistors for both leds 2k2 0603
3. there is still big issue with none resistors in series with buttons - ie when using portE for swapdisk data bus - there is the led on pe5 and usr button on pe7 (or vice versa)
4. not done yet - portB15 is not put on the header, this could be done with cutting the SS trace near the pinheaderSS and soldering a thin wire from pic32 B15 to the pinheaderSS..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Nov 22, 2012 2:10 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
Ah, cool. I will update and let you know.

Update: It works!!! Yay!!!

Now for some fun!

Thanks Pito :)

_________________
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: Thu Nov 22, 2012 2:22 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
See above mods.. If Rick plans a new pcb release I may propose him few changes then.. :)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Tue Sep 30, 2014 8:36 am 

Joined: Thu May 01, 2014 7:17 am
Posts: 8
How did you guys get retroBSD onto the Fubarino? It won't work with the Fubarino's own USB-upload, does it?

I'd appreciate any pointer to the hardware needed so I can finally start in on the fun, too (now that I have moved and finally have some time for playing with technology again ;).

Thank you,
Christian.


Top
 Profile  
 
PostPosted: Tue Sep 30, 2014 9:36 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
All the makefiles for the kernels have a "loadmax" target. That will use avrdude (if set up right) to upload to a chipKIT style bootloader using the stk500v2 protocol.

_________________
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: Wed Oct 01, 2014 8:50 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Fubarino does not need any specific Hw to run retrobsd. You need to flash pic32 with pic32prog bootloader and kernal, and, to install the filesystem (with swap) on the sdcard.
You may use an optional ramdisk, which has been developed for fubarino and friends (the driver does exist). You may place the swap as well as a partition(s) on it. It works nice and fast :)

PS: it does need an usb2serial gadget in case you want to use uart instead the native usb serial, or you need a Bluetooth module, or you need 2 Bluetooth modules when using two uarts (first one for the terminal, the second one for something else, ie. for a reliable and fast zmodem upload into the retro filesystem) :)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Wed Oct 01, 2014 8:54 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
Serge and I are wondering if it would make sense to change the default Fubarino SD definitions to use the STK500v2 bootloader instead of the HID bootloader - that way there's no need for people to replace the bootloader to get the default Fubarino installation working.

Serge has also been looking at adding STK500v2 to pic32prog, which would be nice - get rid of avrdude across the board then :)

_________________
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 Oct 03, 2014 7:37 am 

Joined: Thu May 01, 2014 7:17 am
Posts: 8
I'd love to go the easy way of installing on the Fubarino - connect the Fubarino via USB, the simply upload the base system, insert the SD card, done.

For now - do I need additional hardware to install retroBSD or can I already use the "simple" SUB connection?


Top
 Profile  
 
PostPosted: Fri Oct 03, 2014 7:47 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
I already have the stk500v2 protocol half working in pic32prog. Hopefully this weekend I'll be able to finish it. It will make installation on Fubarino SD a piece of cake.


Top
 Profile  
 
PostPosted: Fri Oct 03, 2014 9:30 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Quote:
For now - do I need additional hardware to install retroBSD or can I already use the "simple" SUB connection?

Today you need ie. pickit2 to flash the pic32prog bootloader into.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Oct 03, 2014 12:04 pm 

Joined: Thu May 01, 2014 7:17 am
Posts: 8
@vak: Great, great news! Where will I be able to find the howto on, well, how to use it once it's done? If you have "bits" of info I'd be glad to help documenting it.


Top
 Profile  
 
PostPosted: Sat Oct 04, 2014 8:07 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
I've just finished the stk500v2 protocol support for pic32prog. Try the latest revision (r103). It works on Linux, Windows and Mac OS X. Now it can be used for programming chipKIT Max32, Fubarino SD and other boards equipped with Arduino-compatible bootloader.

For example, loading a simple LED demo to chipKIT Wi-Fire board:
Code:
$ sudo ./pic32prog -d /dev/tty.usbserial-AD01Q9BU led.hex
Programmer for Microchip PIC32 microcontrollers, Version 1.101M
    Copyright: (C) 2011-2014 Serge Vakulenko
      Adapter: STK500v2 Bootloader
 Program area: 1d000000-1d07ffff
    Processor: Bootloader
 Flash memory: 512 kbytes
         Data: 4348 bytes
Program flash: ###### done
 Verify flash: ##### done
Rate: 2849 bytes per second


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