Differences
This shows you the differences between two versions of the page.
tools:retrobsd [2015/03/09 07:12] darron [Build] |
tools:retrobsd [2015/03/22 21:55] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== RetroBSD ==== | ||
- | <wrap right> | ||
- | {{: | ||
- | </ | ||
- | RetroBSD is an embedded version of 2.11BSD for PIC32 micro-controllers. | ||
- | |||
- | === Setup === | ||
- | First we need to fetch a working cross-compiler. RetroBSD supports this one in Linux. | ||
- | |||
- | < | ||
- | cd /usr/local | ||
- | wget https:// | ||
- | unzip pic32-tools-chipKIT-cxx-master-Linux32-image-20120720.zip | ||
- | </ | ||
- | |||
- | === Checkout === | ||
- | Now we fetch the RetroBSD source from GitHUB. | ||
- | < | ||
- | mkdir -p /embedded | ||
- | cd /embedded | ||
- | git clone https:// | ||
- | cd retrobsd | ||
- | </ | ||
- | === Conigure === | ||
- | In this example we will configure RetroBSD for the [[: | ||
- | |||
- | First select the SDXL. | ||
- | < | ||
- | sed -i ' | ||
- | </ | ||
- | |||
- | Now we will enable two UARTS. Edit the following file, | ||
- | < | ||
- | vi sys/ | ||
- | </ | ||
- | |||
- | and add the following within the DEFS section, save the file. | ||
- | < | ||
- | DEFS += -DUART1_BAUD=115200 | ||
- | DEFS += -DUART1_ENABLED=YES | ||
- | DEFS += -DUART2_BAUD=115200 | ||
- | DEFS += -DUART2_ENABLED=YES | ||
- | </ | ||
- | |||
- | Now edit the kernel configuration to enable the devices. | ||
- | < | ||
- | vi sys/ | ||
- | </ | ||
- | |||
- | Add the following options to enable the UARTS. | ||
- | < | ||
- | # tty0 | ||
- | device uart1 baud=115200 | ||
- | # tty1 | ||
- | device uart2 baud=115200 | ||
- | </ | ||
- | |||
- | |||
- | === Build === | ||
- | Building will create the unix boot image and the SDcard image for the system. | ||
- | < | ||
- | make cleanall | ||
- | make | ||
- | </ |