RetroBSD

2.11BSD operating system for microcontrollers
It is currently Fri Apr 27, 2018 8:40 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Bootloader Required
PostPosted: Wed Sep 09, 2015 4:09 pm 

Joined: Wed Sep 09, 2015 3:46 pm
Posts: 6
Dear all
I make a circuit with pic32mx795f512L using the rs232 with uart2. i need a bootloader example coad for it to run the unix kernal on my controller.


BR
Fahim Haider


Top
 Profile  
 
 Post subject: Re: Bootloader Required
PostPosted: Wed Sep 09, 2015 5:02 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
This is the best one: https://github.com/chipKIT32/PIC32-avrdude-bootloader

It's the one used by all the chipKIT boards and is fully supported by pic32prog.

_________________
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  
 
 Post subject:
PostPosted: Wed Sep 09, 2015 7:58 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
Hi Fahim,

Technically, you don't need to have a bootloader to be able to run RetroBSD on your custom board. See the baremetal/Config or starter-kit/Config as real examples of kernel configuration in this case. To write the kernel image to the chip, you can use pic32prog utility and PICkit2 adapter.

An alternative variant of USB HID bootloader is also available: https://github.com/sergev/pic32-usb-bootloader. This one does not require the Microchip MPLABX software to build. No support for serial (UART) mode, though.

Regards,
--Serge


Top
 Profile  
 
 Post subject: Re: Bootloader Required
PostPosted: Thu Sep 10, 2015 7:16 am 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1091
Hi Fahim and all,

I wrote my own 'bootloader'. It gets the chip started, has a built-in simple peek and poke debugger.

That debugger then allows the kernel to be manually or automatically started.

It currently runs its serial port at 4800 baud. This has proven reliable and allows RZ SZ

communication with a Linux box so programs can be up and down loaded and passed

to another RetroBSD system.

I program most of the embedded systems I have helped to work this way.


I have found this MOST useful.

You can kill the working RetroBSD image by

jumping into the debugger and then examine all of RetroBSD memory in detail.

You can 'give' the debugger some CPU from RetroBSD and watch BSD as it works

in real time.

Right now most programs are compiled on one more recent RetroBSD system

and then up loaded to a Linux box and then downloaded to the working system.

The biggest problem is unreliable serial ports on the Linux box !! RetroBSD seems

to run reliably. Pretty impressive IMHO.


I really need to move a jtag program I have running on an old serial port Linux system

so one RetroBSD can low level program a brand new RetroBSD board.


Another useful utility would be a RetroBSD program to read, verify and rewrite the bootloader

on the running RetroBSD system itself !! AFAIK the PIC32 chip can do this. So upgrading

the bootloader could be as simple as uploading the new bootloader to SD and then

telling the system to upgrade itself :).

Hope this helps?

Lots of fun :).

Wiz


Top
 Profile  
 
 Post subject: Re:
PostPosted: Mon Sep 14, 2015 7:50 am 

Joined: Wed Sep 09, 2015 3:46 pm
Posts: 6
Dear
i have a unix hex file and a sd card image file.so i program the hex file directly for the MPLAB IDE on the microcontroller. and upload the image file on sd card using sd card image formatter.Then i connect the serial cable and connect the putty but i did't see any thing happening.That the issue i facing.some of my buddy says that u need a bootloader to run the retrobsd os.can u help me for this issue.

br
Fahim

vak wrote:
Hi Fahim,

Technically, you don't need to have a bootloader to be able to run RetroBSD on your custom board. See the baremetal/Config or starter-kit/Config as real examples of kernel configuration in this case. To write the kernel image to the chip, you can use pic32prog utility and PICkit2 adapter.

An alternative variant of USB HID bootloader is also available: https://github.com/sergev/pic32-usb-bootloader. This one does not require the Microchip MPLABX software to build. No support for serial (UART) mode, though.

Regards,
--Serge


Top
 Profile  
 
 Post subject: Re: Bootloader Required
PostPosted: Mon Sep 14, 2015 7:45 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
No, you don't need to have a bootloader to run RetroBSD.
The only problem is whether your kernel is configured appropriately.
Probably DEVCFG values don't match your board, or wrong linker script has been used.
See more detailed answer in another thread: http://retrobsd.org/viewtopic.php?f=5&t=37278&p=41860#p41860.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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