mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Remove all Calypso board configurations
This commit is contained in:
@@ -1408,7 +1408,7 @@
|
|||||||
<li><a href="#linuxusermode">Linux/Cygwin user mode simulation</a> (1)</li>
|
<li><a href="#linuxusermode">Linux/Cygwin user mode simulation</a> (1)</li>
|
||||||
<li>ARM
|
<li>ARM
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#arm7tdmi">ARM7TDMI</b></a> (5)</li>
|
<li><a href="#arm7tdmi">ARM7TDMI</b></a> (4)</li>
|
||||||
<li><a href="#arm920t">ARM920T</a> (1)</li>
|
<li><a href="#arm920t">ARM920T</a> (1)</li>
|
||||||
<li><a href="#arm926ejs">ARM926EJS</a> (4)</li>
|
<li><a href="#arm926ejs">ARM926EJS</a> (4)</li>
|
||||||
<li><a href="#armv4">Other ARMv4</a> (1)</li>
|
<li><a href="#armv4">Other ARMv4</a> (1)</li>
|
||||||
@@ -1604,7 +1604,6 @@
|
|||||||
<li>Texas Instruments (some formerly Luminary)
|
<li>Texas Instruments (some formerly Luminary)
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#tms320c5471">TI TMS320-C5471</a> <small>(ARM7TDMI)</small></li>
|
<li><a href="#tms320c5471">TI TMS320-C5471</a> <small>(ARM7TDMI)</small></li>
|
||||||
<li><a href="#ticalypso">TI Calypso</a> <small>(ARM7TDMI)</small></li>
|
|
||||||
<li><a href="#titms320dm320">TI TMS320-DM320</a> <small>(ARM9E6JS)</small></li>
|
<li><a href="#titms320dm320">TI TMS320-DM320</a> <small>(ARM9E6JS)</small></li>
|
||||||
<li><a href="#tilms6432">TI/Stellaris LM3S6432</a> <small>(ARM Cortex-M3)</small></li>
|
<li><a href="#tilms6432">TI/Stellaris LM3S6432</a> <small>(ARM Cortex-M3)</small></li>
|
||||||
<li><a href="#tilm3s6432s2e">TI/Stellaris LM3S6432S2E</a> <small>(ARM Cortex-M3)</small></li>
|
<li><a href="#tilm3s6432s2e">TI/Stellaris LM3S6432S2E</a> <small>(ARM Cortex-M3)</small></li>
|
||||||
@@ -1695,31 +1694,6 @@
|
|||||||
<td><br></td>
|
<td><br></td>
|
||||||
<td><hr></td>
|
<td><hr></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td><br></td>
|
|
||||||
<td>
|
|
||||||
<p>
|
|
||||||
<a name="ticalypso"><b>TI Calypso</b>.</a>
|
|
||||||
This port supports the TI "Calypso" MCU used in various cell phones (and, in particular,
|
|
||||||
by the <a href="http://bb.osmocom.org/trac/">Osmocom-bb project</a>).
|
|
||||||
Like the c5471, NuttX operates on the ARM7 of this dual core processor.
|
|
||||||
Board support is available for the Motorola C139, C155 and W220 phones and for the Pirelli DP-L10 phone.
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<p>
|
|
||||||
<b>STATUS:</b>
|
|
||||||
This port was contributed by Denis Carilki and includes the work of Denis Carikli, Alan Carvalho de Assis, and Stefan Richter.
|
|
||||||
Calypso support first appeared in NuttX-6.17 with LCD drivers.
|
|
||||||
Support for the Calypso keyboard was added in NuttX-6.24 by Denis Carilki.
|
|
||||||
Refer to the NuttX board README files for the <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/compal_e88/README.txt" target="_blank">Compal E88</a>, <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/compal_e99/README.txt" target="_blank">Compal E99</a> and <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/pirelli_dpl10/README.txt" target="_blank">Pirelli DP-L10</a> phones for further information.
|
|
||||||
</p>
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><br></td>
|
|
||||||
<td><hr></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><br></td>
|
<td><br></td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -70,12 +70,6 @@ nuttx/
|
|||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/cc3200-launchpad/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/cc3200-launchpad/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
| |- cloudctrl/
|
| |- cloudctrl/
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/cloudctrl/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/cloudctrl/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
| |- compal_e86/
|
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/compal_e86/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
|
||||||
| |- compal_e88/
|
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/compal_e88/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
|
||||||
| |- compal_e99/
|
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/compal_e99/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
|
||||||
| |- demo9s12ne64/
|
| |- demo9s12ne64/
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/demo9s12ne64/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/demo9s12ne64/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
| |- dk-tm4c129x/
|
| |- dk-tm4c129x/
|
||||||
@@ -199,8 +193,6 @@ nuttx/
|
|||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/pic32mx7mmb/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/pic32mx7mmb/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
| |- pic32mz-starterkit/
|
| |- pic32mz-starterkit/
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/pic32mz-starterkit/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/pic32mz-starterkit/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
| |- pirelli_dpl10/
|
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/pirelli_dpl10/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
|
||||||
| |- qemu-i486/
|
| |- qemu-i486/
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/qemu-i486/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/src/master/configs/qemu-i486/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
| |- sabre-6quad/
|
| |- sabre-6quad/
|
||||||
|
|||||||
@@ -1287,12 +1287,6 @@ nuttx/
|
|||||||
| | `- README.txt
|
| | `- README.txt
|
||||||
| |- cloudctrl
|
| |- cloudctrl
|
||||||
| | `- README.txt
|
| | `- README.txt
|
||||||
| |- compal_e86
|
|
||||||
| | `- README.txt
|
|
||||||
| |- compal_e88
|
|
||||||
| | `- README.txt
|
|
||||||
| |- compal_e99
|
|
||||||
| | `- README.txt
|
|
||||||
| |- demo0s12ne64/
|
| |- demo0s12ne64/
|
||||||
| | `- README.txt
|
| | `- README.txt
|
||||||
| |- dk-tm4c129x/
|
| |- dk-tm4c129x/
|
||||||
@@ -1415,8 +1409,6 @@ nuttx/
|
|||||||
| | `- README.txt
|
| | `- README.txt
|
||||||
| |- pic32mz-starterkit/
|
| |- pic32mz-starterkit/
|
||||||
| | `- README.txt
|
| | `- README.txt
|
||||||
| |- pirelli_dpl10/
|
|
||||||
| | `- README.txt
|
|
||||||
| |- qemu-i486/
|
| |- qemu-i486/
|
||||||
| | `- README.txt
|
| | `- README.txt
|
||||||
| |- sabre-6quad/
|
| |- sabre-6quad/
|
||||||
|
|||||||
@@ -70,32 +70,6 @@ config ARCH_BOARD_CLOUDCTRL
|
|||||||
Small network relay development board. Based on the Shenzhou IV development
|
Small network relay development board. Based on the Shenzhou IV development
|
||||||
board design.
|
board design.
|
||||||
|
|
||||||
config ARCH_BOARD_COMPALE86
|
|
||||||
bool "Compal e86 phone"
|
|
||||||
depends on ARCH_CHIP_CALYPSO
|
|
||||||
---help---
|
|
||||||
This configuration enables board support for Compal e86 phone.
|
|
||||||
This port derives from the Compal E88 port and was provided by Craig
|
|
||||||
Comstock.
|
|
||||||
|
|
||||||
config ARCH_BOARD_COMPALE88
|
|
||||||
bool "Compal e88 phone"
|
|
||||||
depends on ARCH_CHIP_CALYPSO
|
|
||||||
---help---
|
|
||||||
This configuration enables board support for compal e88 phone.
|
|
||||||
This ports is based on patches contributed by Denis Carikli for both the
|
|
||||||
compal e99 and e88. The patches were made by Alan Carvalho de Assis and
|
|
||||||
Denis Carikli using the Stefan Richter's Osmocom-bb patches.
|
|
||||||
|
|
||||||
config ARCH_BOARD_COMPALE99
|
|
||||||
bool "Compal e99 phone"
|
|
||||||
depends on ARCH_CHIP_CALYPSO
|
|
||||||
---help---
|
|
||||||
This configuration enables board support for compal e88 and e99 phones.
|
|
||||||
This port is based on patches contributed by Denis Carikli for both the
|
|
||||||
compal e99 and e88. The patches were made by Alan Carvalho de Assis and
|
|
||||||
Denis Carikli using the Stefan Richter's Osmocom-bb patches.
|
|
||||||
|
|
||||||
config ARCH_BOARD_DEMOS92S12NEC64
|
config ARCH_BOARD_DEMOS92S12NEC64
|
||||||
bool "Freescale DMO9S12NE64 board"
|
bool "Freescale DMO9S12NE64 board"
|
||||||
depends on ARCH_CHIP_MCS92S12NEC64
|
depends on ARCH_CHIP_MCS92S12NEC64
|
||||||
@@ -677,13 +651,6 @@ config ARCH_BOARD_PIC32MZ_STARTERKIT
|
|||||||
|
|
||||||
See www.microchip.com for further information.
|
See www.microchip.com for further information.
|
||||||
|
|
||||||
config ARCH_BOARD_PIRELLI_DPL10
|
|
||||||
bool "Pirelli DPL10 phone"
|
|
||||||
depends on ARCH_CHIP_CALYPSO
|
|
||||||
---help---
|
|
||||||
This directory contains the board support for Pirelli dpl10 phones. The
|
|
||||||
additions were made by Craig Comstock (with help form Alan Carvalho de Assis).
|
|
||||||
|
|
||||||
config ARCH_BOARD_NR5M100_NEXYS4
|
config ARCH_BOARD_NR5M100_NEXYS4
|
||||||
bool "NEXT RISC-V NR5M100 on Nexys-4 board"
|
bool "NEXT RISC-V NR5M100 on Nexys-4 board"
|
||||||
depends on ARCH_CHIP_NR5M100
|
depends on ARCH_CHIP_NR5M100
|
||||||
@@ -1386,9 +1353,6 @@ config ARCH_BOARD
|
|||||||
default "bambino-200e" if ARCH_BOARD_BAMBINO_200E
|
default "bambino-200e" if ARCH_BOARD_BAMBINO_200E
|
||||||
default "c5471evm" if ARCH_BOARD_C5471EVM
|
default "c5471evm" if ARCH_BOARD_C5471EVM
|
||||||
default "cloudctrl" if ARCH_BOARD_CLOUDCTRL
|
default "cloudctrl" if ARCH_BOARD_CLOUDCTRL
|
||||||
default "compal_e86" if ARCH_BOARD_COMPALE86
|
|
||||||
default "compal_e88" if ARCH_BOARD_COMPALE88
|
|
||||||
default "compal_e99" if ARCH_BOARD_COMPALE99
|
|
||||||
default "demo9s12ne64" if ARCH_BOARD_DEMOS92S12NEC64
|
default "demo9s12ne64" if ARCH_BOARD_DEMOS92S12NEC64
|
||||||
default "dk-tm4c129x" if ARCH_BOARD_DK_TM4C129X
|
default "dk-tm4c129x" if ARCH_BOARD_DK_TM4C129X
|
||||||
default "ea3131" if ARCH_BOARD_EA3131
|
default "ea3131" if ARCH_BOARD_EA3131
|
||||||
@@ -1447,7 +1411,6 @@ config ARCH_BOARD
|
|||||||
default "pic32mx-starterkit" if ARCH_BOARD_PIC32MX_STARTERKIT
|
default "pic32mx-starterkit" if ARCH_BOARD_PIC32MX_STARTERKIT
|
||||||
default "pic32mx7mmb" if ARCH_BOARD_PIC32MX7MMB
|
default "pic32mx7mmb" if ARCH_BOARD_PIC32MX7MMB
|
||||||
default "pic32mz-starterkit" if ARCH_BOARD_PIC32MZ_STARTERKIT
|
default "pic32mz-starterkit" if ARCH_BOARD_PIC32MZ_STARTERKIT
|
||||||
default "pirelli_dpl10" if ARCH_BOARD_PIRELLI_DPL10
|
|
||||||
default "nucleo-144" if ARCH_BOARD_NUCLEO_144
|
default "nucleo-144" if ARCH_BOARD_NUCLEO_144
|
||||||
default "nucleo-f303re" if ARCH_BOARD_NUCLEO_F303RE
|
default "nucleo-f303re" if ARCH_BOARD_NUCLEO_F303RE
|
||||||
default "nucleo-f4x1re" if ARCH_BOARD_NUCLEO_F401RE || ARCH_BOARD_NUCLEO_F411RE
|
default "nucleo-f4x1re" if ARCH_BOARD_NUCLEO_F401RE || ARCH_BOARD_NUCLEO_F411RE
|
||||||
@@ -1567,15 +1530,6 @@ endif
|
|||||||
if ARCH_BOARD_CLOUDCTRL
|
if ARCH_BOARD_CLOUDCTRL
|
||||||
source "configs/cloudctrl/Kconfig"
|
source "configs/cloudctrl/Kconfig"
|
||||||
endif
|
endif
|
||||||
if ARCH_BOARD_COMPALE86
|
|
||||||
source "configs/compal_e86/Kconfig"
|
|
||||||
endif
|
|
||||||
if ARCH_BOARD_COMPALE88
|
|
||||||
source "configs/compal_e88/Kconfig"
|
|
||||||
endif
|
|
||||||
if ARCH_BOARD_COMPALE99
|
|
||||||
source "configs/compal_e99/Kconfig"
|
|
||||||
endif
|
|
||||||
if ARCH_BOARD_DEMOS92S12NEC64
|
if ARCH_BOARD_DEMOS92S12NEC64
|
||||||
source "configs/demo9s12ne64/Kconfig"
|
source "configs/demo9s12ne64/Kconfig"
|
||||||
endif
|
endif
|
||||||
@@ -1747,9 +1701,6 @@ endif
|
|||||||
if ARCH_BOARD_PIC32MZ_STARTERKIT
|
if ARCH_BOARD_PIC32MZ_STARTERKIT
|
||||||
source "configs/pic32mz-starterkit/Kconfig"
|
source "configs/pic32mz-starterkit/Kconfig"
|
||||||
endif
|
endif
|
||||||
if ARCH_BOARD_PIRELLI_DPL10
|
|
||||||
source "configs/pirelli_dpl10/Kconfig"
|
|
||||||
endif
|
|
||||||
if ARCH_BOARD_NUCLEO_144
|
if ARCH_BOARD_NUCLEO_144
|
||||||
source "configs/nucleo-144/Kconfig"
|
source "configs/nucleo-144/Kconfig"
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -206,13 +206,6 @@ configs/cloudctrl
|
|||||||
board. Based on the Shenzhou IV development board design. It is based on
|
board. Based on the Shenzhou IV development board design. It is based on
|
||||||
the STM32F107VC MCU.
|
the STM32F107VC MCU.
|
||||||
|
|
||||||
configs/compal_e86, compal_e88 and compal_e99
|
|
||||||
These directories contain the board support for compal e86, e88 and e99 phones.
|
|
||||||
These ports are based on patches contributed by Denis Carikli for both the
|
|
||||||
compal e99 and e88. The patches were made by Alan Carvalho de Assis and
|
|
||||||
Denis Carikli using the Stefan Richter's Osmocom-bb patches. The variant
|
|
||||||
for the e86 was submitted by Craig Comstock.
|
|
||||||
|
|
||||||
configs/demo9s12ne64
|
configs/demo9s12ne64
|
||||||
Freescale DMO9S12NE64 board based on the MC9S12NE64 hcs12 cpu. This
|
Freescale DMO9S12NE64 board based on the MC9S12NE64 hcs12 cpu. This
|
||||||
port uses the m9s12x GCC toolchain. STATUS: (Still) under development; it
|
port uses the m9s12x GCC toolchain. STATUS: (Still) under development; it
|
||||||
@@ -531,7 +524,6 @@ configs/pic32mx7mmb
|
|||||||
Mikroelektronika PIC32MX7 Multimedia Board (MMB). See
|
Mikroelektronika PIC32MX7 Multimedia Board (MMB). See
|
||||||
http://www.mikroe.com/ for further information.
|
http://www.mikroe.com/ for further information.
|
||||||
|
|
||||||
configs/pirelli_dpl10
|
|
||||||
configs/pic32mz-starterkit
|
configs/pic32mz-starterkit
|
||||||
This directory contains the port of NuttX to the Microchip PIC32MZ
|
This directory contains the port of NuttX to the Microchip PIC32MZ
|
||||||
Embedded Connectivity (EC) Starter Kit. There are two configurations of
|
Embedded Connectivity (EC) Starter Kit. There are two configurations of
|
||||||
@@ -544,10 +536,6 @@ configs/pic32mz-starterkit
|
|||||||
|
|
||||||
See www.microchip.com for further information.
|
See www.microchip.com for further information.
|
||||||
|
|
||||||
This directory contains the board support for Pirelli "Discus" DP-L10 phones.
|
|
||||||
It is a variant of the compal_e88 config with the small changes for the
|
|
||||||
differences in the board.
|
|
||||||
|
|
||||||
configs/qemu-i486
|
configs/qemu-i486
|
||||||
Port of NuttX to QEMU in i486 mode. This port will also run on real i486
|
Port of NuttX to QEMU in i486 mode. This port will also run on real i486
|
||||||
hardwared (Google the Bifferboard).
|
hardwared (Google the Bifferboard).
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
# CONFIG_ARCH_CHIP_C5471 is not set
|
# CONFIG_ARCH_CHIP_C5471 is not set
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
# CONFIG_ARCH_CHIP_C5471 is not set
|
# CONFIG_ARCH_CHIP_C5471 is not set
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
CONFIG_ARCH_CHIP_C5471=y
|
CONFIG_ARCH_CHIP_C5471=y
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
CONFIG_ARCH_CHIP_C5471=y
|
CONFIG_ARCH_CHIP_C5471=y
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
CONFIG_ARCH_CHIP_C5471=y
|
CONFIG_ARCH_CHIP_C5471=y
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
# CONFIG_ARCH_CHIP_C5471 is not set
|
# CONFIG_ARCH_CHIP_C5471 is not set
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
# CONFIG_ARCH_CHIP_C5471 is not set
|
# CONFIG_ARCH_CHIP_C5471 is not set
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
#
|
|
||||||
# For a description of the syntax of this configuration file,
|
|
||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
||||||
#
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
compal_e86
|
|
||||||
==========
|
|
||||||
|
|
||||||
This directory contains the board support for compal e86 phones. This port
|
|
||||||
is tested on the following phone:
|
|
||||||
|
|
||||||
* motorola c139 (compal e86) with flash configuration
|
|
||||||
|
|
||||||
This port is based on patches contributed by Denis Carikli for both the
|
|
||||||
compal e99 and e88. At the time of initial check-in, the following phones
|
|
||||||
were tested:
|
|
||||||
|
|
||||||
* motorolla c155 (compal e99) with the compalram and highram configuration
|
|
||||||
* motorolla W220 (compal e88)
|
|
||||||
* The openmoko freerunner baseband(compal e88)
|
|
||||||
|
|
||||||
The patches were made by Alan Carvalho de Assis and Denis Carikli using
|
|
||||||
the Stefan Richter's patches that can be found here:
|
|
||||||
|
|
||||||
http://cgit.osmocom.org/cgit/nuttx-bb/log/?h=lputt%2Ftesting
|
|
||||||
|
|
||||||
Osmocom-BB Dependencies and Sercomm
|
|
||||||
===================================
|
|
||||||
|
|
||||||
The build environment assumes that you have the osmocom-bb project
|
|
||||||
directory at same level as the nuttx project:
|
|
||||||
|
|
||||||
|- nuttx
|
|
||||||
|- apps
|
|
||||||
`- osmocom-bb
|
|
||||||
|
|
||||||
If you attempt to build this configuration without osmocom-bb, and that
|
|
||||||
you added support for sercomm in your configuration(CONFIG_SERCOMM_CONSOLE=y)
|
|
||||||
you will get compilation errors in drivers/sercomm due to header files that
|
|
||||||
are needed from the osmocom-bb directory.
|
|
||||||
|
|
||||||
By default, NuttX will not use sercomm (HDLC protocol) to communicate with
|
|
||||||
the host system. Sercomm is the transport used by osmocom-bb that runs on top
|
|
||||||
of serial. See http://bb.osmocom.org/trac/wiki/nuttx-bb/run for detailed
|
|
||||||
the usage of nuttx with sercomm.
|
|
||||||
|
|
||||||
Running NuttX From Flash
|
|
||||||
========================
|
|
||||||
|
|
||||||
Flash layout:
|
|
||||||
|
|
||||||
0x00000 - 0x02000 - original compal loader
|
|
||||||
0x02000 - 0x10000 - simple binary to jump to 0x10000 (jumper.e86loader.bin)
|
|
||||||
0x10000 - ??? - NuttX binary (nuttx.bin)
|
|
||||||
|
|
||||||
Using osmocon/osmoload, retrieve the compal loader, flash it and the
|
|
||||||
jumper.e86loader.bin as well as nuttx.bin.
|
|
||||||
|
|
||||||
The jumper app is a modified version of the menu app in osmocom-bb, branch
|
|
||||||
jolly/menu. The app disabled irqs (setup by compal loader?) and jumps to
|
|
||||||
0x10000. This app is submitted as a patch to osmocom-bb mailing list.
|
|
||||||
|
|
||||||
Loading NuttX (highram)
|
|
||||||
=======================
|
|
||||||
|
|
||||||
The osmocom-bb wiki describes how to load NuttX. See
|
|
||||||
http://bb.osmocom.org/trac/wiki/nuttx-bb for detailed information.
|
|
||||||
The way that nuttx is loaded depends on the configuration (highram/compalram)
|
|
||||||
and phone:
|
|
||||||
|
|
||||||
o compalram is for the ramloader(for phone having a bootloader on flash)
|
|
||||||
o highram is for phones having the romloader(if the phone has a bootrom)
|
|
||||||
or for loading in the ram trough a special loader(loaded first on ram
|
|
||||||
by talking to the ramloader) when having a ramloader(which can only
|
|
||||||
load 64k).
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* configs/nsh_highram/include/board.h
|
|
||||||
*
|
|
||||||
* Supposed to be empty
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
@@ -1,140 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/compal_e86/nsh_highram/Make.defs
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011, 2013 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
include ${TOPDIR}/.config
|
|
||||||
include ${TOPDIR}/tools/Config.mk
|
|
||||||
include ${TOPDIR}/arch/arm/src/arm/Toolchain.defs
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_BOOT_RUNFROMFLASH),y)
|
|
||||||
LDSCRIPT = flash.ld
|
|
||||||
else
|
|
||||||
LDSCRIPT = highram.ld
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
|
||||||
# Windows-native toolchains
|
|
||||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
|
||||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkwindeps.sh
|
|
||||||
ARCHINCLUDES = -I. -I "${shell cygpath -w $(OSMODIR)/src/shared/libosmocore/include}" -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
|
||||||
ARCHXXINCLUDES = -I. -I "${shell cygpath -w $(OSMODIR)/src/shared/libosmocore/include}" -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
|
||||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT)}"
|
|
||||||
|
|
||||||
ifeq ("${CONFIG_SERCOMM_CONSOLE}","y")
|
|
||||||
OSMODIR = "${shell cygpath -w $(TOPDIR)/../../osmocom-bb}"
|
|
||||||
EXTRA_LIBS = "${shell cygpath -w $(OSMODIR)/src/target/firmware/comm/libcomm.a}" \
|
|
||||||
"${shell cygpath -w $(OSMODIR)/src/shared/libosmocore/build-target/src/.libs/libosmocore.a}" \
|
|
||||||
"${shell cygpath -w $(OSMODIR)/src/target/firmware/calypso/libcalypso.a}" \
|
|
||||||
"${shell cygpath -w $(OSMODIR)/src/target/firmware/comm/libcomm.a}"
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
# Linux/Cygwin-native toolchain
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps$(HOSTEXEEXT)
|
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
|
||||||
ARCHINCLUDES = -I. -I$(OSMODIR)/src/shared/libosmocore/include -isystem $(TOPDIR)/include
|
|
||||||
ARCHXXINCLUDES = -I. -I$(OSMODIR)/src/shared/libosmocore/include -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT)
|
|
||||||
|
|
||||||
ifeq ("${CONFIG_SERCOMM_CONSOLE}","y")
|
|
||||||
OSMODIR = $(TOPDIR)/../../osmocom-bb
|
|
||||||
EXTRA_LIBS = $(OSMODIR)/src/target/firmware/comm/libcomm.a \
|
|
||||||
$(OSMODIR)/src/shared/libosmocore/build-target/src/.libs/libosmocore.a \
|
|
||||||
$(OSMODIR)/src/target/firmware/calypso/libcalypso.a \
|
|
||||||
$(OSMODIR)/src/target/firmware/comm/libcomm.a
|
|
||||||
# ^^^ Stupid hack! Why do I have to put it twice???
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
|
||||||
CXX = $(CROSSDEV)g++
|
|
||||||
CPP = $(CROSSDEV)gcc -E
|
|
||||||
LD = $(CROSSDEV)ld
|
|
||||||
AR = $(CROSSDEV)ar rcs
|
|
||||||
NM = $(CROSSDEV)nm
|
|
||||||
OBJCOPY = $(CROSSDEV)objcopy
|
|
||||||
OBJDUMP = $(CROSSDEV)objdump
|
|
||||||
|
|
||||||
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
|
|
||||||
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|
||||||
ARCHOPTIMIZATION = -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
|
||||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(ARCHCCMAJOR),4)
|
|
||||||
ARCHCPUFLAGS = -mcpu=arm7tdmi -mfloat-abi=soft -fno-builtin
|
|
||||||
else
|
|
||||||
ARCHCPUFLAGS = -mapcs-32 -mcpu=arm7tdmi -msoft-float -fno-builtin
|
|
||||||
endif
|
|
||||||
|
|
||||||
ARCHCFLAGS = -fno-builtin
|
|
||||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti
|
|
||||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
|
||||||
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
|
||||||
ARCHDEFINES =
|
|
||||||
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
|
||||||
|
|
||||||
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
||||||
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
|
||||||
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
||||||
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
|
||||||
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
|
||||||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
|
||||||
|
|
||||||
NXFLATLDFLAGS1 = -r -d -warn-common
|
|
||||||
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
|
|
||||||
LDNXFLATFLAGS = -e main -s 2048
|
|
||||||
|
|
||||||
ASMEXT = .S
|
|
||||||
OBJEXT = .o
|
|
||||||
LIBEXT = .a
|
|
||||||
EXEEXT =
|
|
||||||
|
|
||||||
ifneq ($(CROSSDEV),arm-nuttx-elf-)
|
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|
||||||
LDFLAGS += -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
HOSTCC = gcc
|
|
||||||
HOSTINCLUDES = -I.
|
|
||||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
|
||||||
HOSTLDFLAGS =
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,74 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# compal_e86/nsh_highram/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Atmel GCC
|
|
||||||
# toolchain under Windows. You will also have to edit this if you install
|
|
||||||
# this toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atmel/Atmel Toolchain/ARM GCC/Native/4.7.3.99/arm-gnu-toolchain/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
/*
|
|
||||||
* Linker script for flashed applications on the Compal E86
|
|
||||||
*
|
|
||||||
* This script creates a binary that can be linked at 0xFFFF, starting
|
|
||||||
* with the second flash page. This is what a phone application or
|
|
||||||
* pure layer1 device uses.
|
|
||||||
*
|
|
||||||
* XXX: interrupts?
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
||||||
OUTPUT_ARCH(arm)
|
|
||||||
ENTRY(_start)
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
LOADR (rx) : ORIGIN = 0x00000000, LENGTH = 0x10000
|
|
||||||
/* 4 MBytes of external flash memory (minus loader) */
|
|
||||||
FLASH (rx) : ORIGIN = 0x00010000, LENGTH = 0x3F0000
|
|
||||||
/* 256 kBytes of internal zero-waitstate sram */
|
|
||||||
IRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x040000
|
|
||||||
/* 256 kBytes of external slow sram */
|
|
||||||
ERAM (rw) : ORIGIN = 0x01000000, LENGTH = 0x040000
|
|
||||||
}
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* entrypoint */
|
|
||||||
.text.start : {
|
|
||||||
PROVIDE(_start = .);
|
|
||||||
KEEP(*(.text.start))
|
|
||||||
*(.text.start)
|
|
||||||
} > FLASH
|
|
||||||
|
|
||||||
/* exception vectors from 0x80001c to 0x800034 */
|
|
||||||
.text.exceptions 0x80001c : {
|
|
||||||
KEEP(*(.text.exceptions))
|
|
||||||
* (.text.exceptions)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > IRAM AT> FLASH
|
|
||||||
PROVIDE(_exceptions = LOADADDR(.text.exceptions));
|
|
||||||
|
|
||||||
/* code */
|
|
||||||
.text : {
|
|
||||||
_stext = ABSOLUTE(.) ;
|
|
||||||
/* regular code */
|
|
||||||
*(.text*)
|
|
||||||
/* gcc voodoo */
|
|
||||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
|
|
||||||
_etext = ABSOLUTE(.) ;
|
|
||||||
} > FLASH
|
|
||||||
PROVIDE(_text_start = ADDR(.text));
|
|
||||||
PROVIDE(_text_end = ADDR(.text) + SIZEOF(.text));
|
|
||||||
|
|
||||||
/* constructor pointers */
|
|
||||||
.ctors : {
|
|
||||||
/* ctor count */
|
|
||||||
LONG(SIZEOF(.ctors) / 4 - 2)
|
|
||||||
/* ctor pointers */
|
|
||||||
KEEP(*(SORT(.ctors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > FLASH
|
|
||||||
PROVIDE(_ctor_start = LOADADDR(.ctors));
|
|
||||||
PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
|
|
||||||
|
|
||||||
/* destructor pointers */
|
|
||||||
.dtors : {
|
|
||||||
/* dtor count */
|
|
||||||
LONG(SIZEOF(.dtors) / 4 - 2)
|
|
||||||
/* dtor pointers */
|
|
||||||
KEEP(*(SORT(.dtors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > FLASH
|
|
||||||
PROVIDE(_dtor_start = LOADADDR(.dtors));
|
|
||||||
PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
|
|
||||||
|
|
||||||
/* read-only data */
|
|
||||||
.rodata : {
|
|
||||||
*(.rodata*)
|
|
||||||
_eronly = ABSOLUTE(.) ;
|
|
||||||
} > FLASH
|
|
||||||
PROVIDE(_rodata_start = ADDR(.rodata));
|
|
||||||
PROVIDE(_rodata_end = ADDR(.rodata) + SIZEOF(.rodata));
|
|
||||||
|
|
||||||
/* pic offset tables */
|
|
||||||
.got : {
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.got)
|
|
||||||
*(.got.plt) *(.igot.plt) *(.got) *(.igot)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > FLASH
|
|
||||||
PROVIDE(_got_start = ADDR(.got));
|
|
||||||
PROVIDE(_got_end = ADDR(.got) + SIZEOF(.got));
|
|
||||||
|
|
||||||
/* reserved ram */
|
|
||||||
.compal.reservedram 0x800000 (NOLOAD) : {
|
|
||||||
. = 0xff;
|
|
||||||
} > IRAM
|
|
||||||
|
|
||||||
/* initialized data */
|
|
||||||
.data : AT (LOADADDR(.got) + SIZEOF(.got)) {
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = ABSOLUTE(.);
|
|
||||||
*(.data)
|
|
||||||
_edata = ABSOLUTE(.);
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > IRAM
|
|
||||||
PROVIDE(__data_start = LOADADDR(.data));
|
|
||||||
PROVIDE(__data_end = LOADADDR(.data) + SIZEOF(.data));
|
|
||||||
PROVIDE(_data_start = ADDR(.data));
|
|
||||||
PROVIDE(_data_end = ADDR(.data) + SIZEOF(.data));
|
|
||||||
|
|
||||||
/* ram code */
|
|
||||||
.ramtext : AT (LOADADDR(.data) + SIZEOF(.data)) {
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.ramtext)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > IRAM
|
|
||||||
PROVIDE(__ramtext_start = LOADADDR(.ramtext));
|
|
||||||
PROVIDE(__ramtext_end = LOADADDR(.ramtext) + SIZEOF(.ramtext));
|
|
||||||
PROVIDE(_ramtext_start = ADDR(.ramtext));
|
|
||||||
PROVIDE(_ramtext_end = ADDR(.ramtext) + SIZEOF(.ramtext));
|
|
||||||
|
|
||||||
/* uninitialized data */
|
|
||||||
.bss (NOLOAD) : {
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = ABSOLUTE(.);
|
|
||||||
*(.bss)
|
|
||||||
_ebss = ABSOLUTE(.);
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > IRAM
|
|
||||||
PROVIDE(__bss_start = ADDR(.bss));
|
|
||||||
PROVIDE(__bss_end = ADDR(.bss) + SIZEOF(.bss));
|
|
||||||
PROVIDE(_bss_start = __bss_start);
|
|
||||||
PROVIDE(_bss_end = __bss_end);
|
|
||||||
|
|
||||||
/* end of image */
|
|
||||||
. = ALIGN(4);
|
|
||||||
_end = .;
|
|
||||||
PROVIDE(end = .);
|
|
||||||
}
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
/*
|
|
||||||
* Linker script for running from internal SRAM on Compal phones
|
|
||||||
*
|
|
||||||
* This script is tailored specifically to the requirements imposed
|
|
||||||
* on us by the Compal bootloader.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
||||||
OUTPUT_ARCH(arm)
|
|
||||||
ENTRY(__start)
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
|
|
||||||
/* E86 stacked flash 32mbit flash, 4mbit sram, DBB internal 256kb SRAM */
|
|
||||||
/* 0x800000-0x87ffff */ /* bump up because we have 32mbit instead of 16mbit */
|
|
||||||
/* compal-loaded binary: our text, initialized data */
|
|
||||||
LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000
|
|
||||||
TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 0x00040000
|
|
||||||
/* compal-loaded binary: our unitialized data, stacks, heap */
|
|
||||||
IRAM (rw) : ORIGIN = 0x00860000, LENGTH = 0x00020000
|
|
||||||
|
|
||||||
/* E88 NOR flash 16mbits, SRAM 256 kb, DBB has 256kb internal SRAM */
|
|
||||||
/* 0x800000-0x83ffff */
|
|
||||||
/* compal-loaded binary: our text, initialized data */
|
|
||||||
/*
|
|
||||||
LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000
|
|
||||||
TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 0x00010000
|
|
||||||
*/
|
|
||||||
/* compal-loaded binary: our unitialized data, stacks, heap */
|
|
||||||
/*
|
|
||||||
IRAM (rw) : ORIGIN = 0x00830000, LENGTH = 0x00010000
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
. = 0x800000;
|
|
||||||
|
|
||||||
/* romloader data section, contains passthru interrupt vectors */
|
|
||||||
.compal.loader (NOLOAD) : { . = 0x100; } > LRAM
|
|
||||||
|
|
||||||
/* image signature (prepended by osmocon according to phone type) */
|
|
||||||
.compal.header (NOLOAD) : { . = 4; } > LRAM
|
|
||||||
|
|
||||||
/* initialization code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.text.start : {
|
|
||||||
PROVIDE(__start = .);
|
|
||||||
KEEP(*(.text.start))
|
|
||||||
*(.text.start)
|
|
||||||
} > TRAM
|
|
||||||
|
|
||||||
/* exception vectors from 0x80001c to 0x800034 */
|
|
||||||
.text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) {
|
|
||||||
KEEP(*(.text.exceptions))
|
|
||||||
* (.text.exceptions)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_exceptions = LOADADDR(.text.exceptions));
|
|
||||||
|
|
||||||
/* code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.text (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) :
|
|
||||||
AT (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) {
|
|
||||||
/* regular code */
|
|
||||||
*(.text*)
|
|
||||||
/* always-in-ram code */
|
|
||||||
*(.ramtext*)
|
|
||||||
/* gcc voodoo */
|
|
||||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_text_start = LOADADDR(.text));
|
|
||||||
PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text));
|
|
||||||
|
|
||||||
/* constructor pointers */
|
|
||||||
.ctors : {
|
|
||||||
/* ctor count */
|
|
||||||
LONG(SIZEOF(.ctors) / 4 - 2)
|
|
||||||
/* ctor pointers */
|
|
||||||
KEEP(*(SORT(.ctors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_ctor_start = LOADADDR(.ctors));
|
|
||||||
PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
|
|
||||||
|
|
||||||
/* destructor pointers */
|
|
||||||
.dtors : {
|
|
||||||
/* dtor count */
|
|
||||||
LONG(SIZEOF(.dtors) / 4 - 2)
|
|
||||||
/* dtor pointers */
|
|
||||||
KEEP(*(SORT(.dtors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_dtor_start = LOADADDR(.dtors));
|
|
||||||
PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
|
|
||||||
|
|
||||||
/* read-only data */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.rodata : {
|
|
||||||
*(.rodata*)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_rodata_start = LOADADDR(.rodata));
|
|
||||||
PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata));
|
|
||||||
|
|
||||||
/* initialized data */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.data : {
|
|
||||||
*(.data)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_data_start = LOADADDR(.data));
|
|
||||||
PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data));
|
|
||||||
|
|
||||||
/* pic offset tables */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.got : {
|
|
||||||
*(.got)
|
|
||||||
*(.got.plt) *(.igot.plt) *(.got) *(.igot)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_got_start = LOADADDR(.got));
|
|
||||||
PROVIDE(_got_end = LOADADDR(.got) + SIZEOF(.got));
|
|
||||||
|
|
||||||
/* uninitialized data */
|
|
||||||
.bss (NOLOAD) : {
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_start = .;
|
|
||||||
_sbss = ABSOLUTE(.);
|
|
||||||
*(.bss)
|
|
||||||
_ebss = ABSOLUTE(.);
|
|
||||||
} > IRAM
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_end = .;
|
|
||||||
PROVIDE(_bss_start = __bss_start);
|
|
||||||
PROVIDE(_bss_end = __bss_end);
|
|
||||||
|
|
||||||
/* end of image */
|
|
||||||
. = ALIGN(4);
|
|
||||||
_end = .;
|
|
||||||
PROVIDE(end = .);
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/compal_e86/src/Makefile
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2013, 2015 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Stefan Richter. All rights reserved.
|
|
||||||
# Author: Stefan Richter <ichgeh@l--putt.de>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
|
||||||
|
|
||||||
ASRCS =
|
|
||||||
CSRCS = boot.c
|
|
||||||
|
|
||||||
include $(TOPDIR)/configs/Board.mk
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* configs/compal_e86/boot.c
|
|
||||||
*
|
|
||||||
* Copyright (C) 2015-2016 Gregory Nutt. All rights reserved.
|
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in
|
|
||||||
* the documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
* used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Included Files
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
|
||||||
#include <nuttx/board.h>
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Public Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: board_app_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Perform architecture specific initialization
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* arg - The boardctl() argument is passed to the board_app_initialize()
|
|
||||||
* implementation without modification. The argument has no
|
|
||||||
* meaning to NuttX; the meaning of the argument is a contract
|
|
||||||
* between the board-specific initalization logic and the the
|
|
||||||
* matching application logic. The value cold be such things as a
|
|
||||||
* mode enumeration value, a set of DIP switch switch settings, a
|
|
||||||
* pointer to configuration data read from a file or serial FLASH,
|
|
||||||
* or whatever you would like to do with it. Every implementation
|
|
||||||
* should accept zero/NULL as a default configuration.
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
|
||||||
* any failure to indicate the nature of the failure.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifdef CONFIG_LIB_BOARDCTL
|
|
||||||
int board_app_initialize(uintptr_t arg)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_LIB_BOARDCTL */
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#
|
|
||||||
# For a description of the syntax of this configuration file,
|
|
||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
||||||
#
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
compal_e88
|
|
||||||
==========
|
|
||||||
|
|
||||||
This directory contains the board support for compal e88 phones.
|
|
||||||
|
|
||||||
This port is based on patches contributed by Denis Carikli for both the
|
|
||||||
compal e99 and e88. At the time of initial check-in, the following phones
|
|
||||||
were tested:
|
|
||||||
|
|
||||||
* Motorola c155 (compal e99) with the compalram and highram configuration
|
|
||||||
* Motorola W220 (compal e88)
|
|
||||||
* The openmoko freerunner baseband(compal e88)
|
|
||||||
|
|
||||||
The patches were made by Alan Carvalho de Assis and Denis Carikli using
|
|
||||||
the Stefan Richter's patches that can be found here:
|
|
||||||
|
|
||||||
http://cgit.osmocom.org/cgit/nuttx-bb/log/?h=lputt%2Ftesting
|
|
||||||
|
|
||||||
Osmocom-BB Dependencies and Sercomm
|
|
||||||
===================================
|
|
||||||
|
|
||||||
The build environment assumes that you have the osmocom-bb project
|
|
||||||
directory at same level as the nuttx project:
|
|
||||||
|
|
||||||
|- nuttx
|
|
||||||
|- apps
|
|
||||||
`- osmocom-bb
|
|
||||||
|
|
||||||
If you attempt to build this configuration without osmocom-bb, and that
|
|
||||||
you added support for sercomm in your configuration(CONFIG_SERCOMM_CONSOLE=y)
|
|
||||||
you will get compilation errors in drivers/sercomm due to header files that
|
|
||||||
are needed from the osmocom-bb directory.
|
|
||||||
|
|
||||||
By default, NuttX will not use sercomm (HDLC protocol) to communicate with
|
|
||||||
the host system. Sercomm is the transport used by osmocom-bb that runs on top
|
|
||||||
of serial. See http://bb.osmocom.org/trac/wiki/nuttx-bb/run for detailed
|
|
||||||
the usage of nuttx with sercomm.
|
|
||||||
|
|
||||||
Loading NuttX
|
|
||||||
=============
|
|
||||||
|
|
||||||
The osmocom-bb wiki describes how to load NuttX. See
|
|
||||||
http://bb.osmocom.org/trac/wiki/nuttx-bb for detailed information.
|
|
||||||
The way that nuttx is loaded depends on the configuration (highram/compalram)
|
|
||||||
and phone:
|
|
||||||
|
|
||||||
o compalram is for the ramloader(for phone having a bootloader on flash)
|
|
||||||
o highram is for phones having the romloader(if the phone has a bootrom)
|
|
||||||
or for loading in the ram trough a special loader(loaded first on ram
|
|
||||||
by talking to the ramloader) when having a ramloader(which can only
|
|
||||||
load 64k).
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* arch/board.h
|
|
||||||
*
|
|
||||||
* Supposed to be empty
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/compal_e88/nsh_highram/Make.defs
|
|
||||||
#
|
|
||||||
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
include ${TOPDIR}/.config
|
|
||||||
include ${TOPDIR}/tools/Config.mk
|
|
||||||
include ${TOPDIR}/arch/arm/src/arm/Toolchain.defs
|
|
||||||
|
|
||||||
LDSCRIPT = ld.script
|
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
|
||||||
# Windows-native toolchains
|
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
|
||||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT)}"
|
|
||||||
else
|
|
||||||
# Linux/Cygwin-native toolchain
|
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT)
|
|
||||||
endif
|
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
|
||||||
CXX = $(CROSSDEV)g++
|
|
||||||
CPP = $(CROSSDEV)gcc -E
|
|
||||||
LD = $(CROSSDEV)ld
|
|
||||||
AR = $(ARCROSSDEV)ar rcs
|
|
||||||
NM = $(ARCROSSDEV)nm
|
|
||||||
OBJCOPY = $(CROSSDEV)objcopy
|
|
||||||
OBJDUMP = $(CROSSDEV)objdump
|
|
||||||
|
|
||||||
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
|
|
||||||
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|
||||||
ARCHOPTIMIZATION = -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
|
||||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
|
||||||
endif
|
|
||||||
|
|
||||||
ARCHCFLAGS = -fno-builtin
|
|
||||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti
|
|
||||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
|
||||||
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
|
||||||
ARCHDEFINES =
|
|
||||||
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
|
||||||
|
|
||||||
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
||||||
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
|
||||||
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
||||||
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
|
||||||
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
|
||||||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
|
||||||
|
|
||||||
NXFLATLDFLAGS1 = -r -d -warn-common
|
|
||||||
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
|
|
||||||
LDNXFLATFLAGS = -e main -s 2048
|
|
||||||
|
|
||||||
ASMEXT = .S
|
|
||||||
OBJEXT = .o
|
|
||||||
LIBEXT = .a
|
|
||||||
EXEEXT =
|
|
||||||
|
|
||||||
ifneq ($(CROSSDEV),arm-nuttx-elf-)
|
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|
||||||
LDFLAGS += -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
HOSTCC = gcc
|
|
||||||
HOSTINCLUDES = -I.
|
|
||||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
|
||||||
HOSTLDFLAGS =
|
|
||||||
ifeq ($(CONFIG_HOST_WINDOWS),y)
|
|
||||||
HOSTEXEEXT = .exe
|
|
||||||
else
|
|
||||||
HOSTEXEEXT =
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
|
||||||
# Windows-native host tools
|
|
||||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
|
||||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkwindeps.sh
|
|
||||||
else
|
|
||||||
# Linux/Cygwin-native host tools
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps$(HOSTEXEEXT)
|
|
||||||
endif
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,46 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# c5471evm/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z ${PATH_ORIG} ]; then export PATH_ORIG=${PATH}; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
export BUILDROOT_BIN=${WD}/../buildroot/build_arm_nofpu/staging_dir/bin
|
|
||||||
export PATH=${BUILDROOT_BIN}:/sbin:/usr/sbin:${PATH_ORIG}
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
/*
|
|
||||||
* Linker script for running from internal SRAM on Compal phones
|
|
||||||
*
|
|
||||||
* This script is tailored specifically to the requirements imposed
|
|
||||||
* on us by the Compal bootloader.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
||||||
OUTPUT_ARCH(arm)
|
|
||||||
ENTRY(__start)
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
/* 0x800000-0x83ffff */
|
|
||||||
/* compal-loaded binary: our text, initialized data */
|
|
||||||
LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000
|
|
||||||
TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 0x00010000
|
|
||||||
/* compal-loaded binary: our unitialized data, stacks, heap */
|
|
||||||
IRAM (rw) : ORIGIN = 0x00830000, LENGTH = 0x00010000
|
|
||||||
}
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
. = 0x800000;
|
|
||||||
|
|
||||||
/* romloader data section, contains passthru interrupt vectors */
|
|
||||||
.compal.loader (NOLOAD) : { . = 0x100; } > LRAM
|
|
||||||
|
|
||||||
/* image signature (prepended by osmocon according to phone type) */
|
|
||||||
.compal.header (NOLOAD) : { . = 4; } > LRAM
|
|
||||||
|
|
||||||
/* initialization code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.text.start : {
|
|
||||||
PROVIDE(__start = .);
|
|
||||||
KEEP(*(.text.start))
|
|
||||||
*(.text.start)
|
|
||||||
} > TRAM
|
|
||||||
|
|
||||||
/* exception vectors from 0x80001c to 0x800034 */
|
|
||||||
.text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) {
|
|
||||||
KEEP(*(.text.exceptions))
|
|
||||||
* (.text.exceptions)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_exceptions = LOADADDR(.text.exceptions));
|
|
||||||
|
|
||||||
/* code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.text (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) :
|
|
||||||
AT (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) {
|
|
||||||
/* regular code */
|
|
||||||
*(.text*)
|
|
||||||
/* always-in-ram code */
|
|
||||||
*(.ramtext*)
|
|
||||||
/* gcc voodoo */
|
|
||||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_text_start = LOADADDR(.text));
|
|
||||||
PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text));
|
|
||||||
|
|
||||||
/* constructor pointers */
|
|
||||||
.ctors : {
|
|
||||||
/* ctor count */
|
|
||||||
LONG(SIZEOF(.ctors) / 4 - 2)
|
|
||||||
/* ctor pointers */
|
|
||||||
KEEP(*(SORT(.ctors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_ctor_start = LOADADDR(.ctors));
|
|
||||||
PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
|
|
||||||
|
|
||||||
/* destructor pointers */
|
|
||||||
.dtors : {
|
|
||||||
/* dtor count */
|
|
||||||
LONG(SIZEOF(.dtors) / 4 - 2)
|
|
||||||
/* dtor pointers */
|
|
||||||
KEEP(*(SORT(.dtors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_dtor_start = LOADADDR(.dtors));
|
|
||||||
PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
|
|
||||||
|
|
||||||
/* read-only data */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.rodata : {
|
|
||||||
*(.rodata*)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_rodata_start = LOADADDR(.rodata));
|
|
||||||
PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata));
|
|
||||||
|
|
||||||
/* initialized data */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.data : {
|
|
||||||
*(.data)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_data_start = LOADADDR(.data));
|
|
||||||
PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data));
|
|
||||||
|
|
||||||
/* pic offset tables */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.got : {
|
|
||||||
*(.got)
|
|
||||||
*(.got.plt) *(.igot.plt) *(.got) *(.igot)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_got_start = LOADADDR(.got));
|
|
||||||
PROVIDE(_got_end = LOADADDR(.got) + SIZEOF(.got));
|
|
||||||
|
|
||||||
/* uninitialized data */
|
|
||||||
.bss (NOLOAD) : {
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_start = .;
|
|
||||||
_sbss = ABSOLUTE(.);
|
|
||||||
*(.bss)
|
|
||||||
_ebss = ABSOLUTE(.);
|
|
||||||
} > IRAM
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_end = .;
|
|
||||||
PROVIDE(_bss_start = __bss_start);
|
|
||||||
PROVIDE(_bss_end = __bss_end);
|
|
||||||
|
|
||||||
/* end of image */
|
|
||||||
. = ALIGN(4);
|
|
||||||
_end = .;
|
|
||||||
PROVIDE(end = .);
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
/.depend
|
|
||||||
/Make.dep
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/compal_e88/src/Makefile
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2015 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Stefan Richter. All rights reserved.
|
|
||||||
# Author: Stefan Richter <ichgeh@l--putt.de>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
|
||||||
|
|
||||||
ASRCS =
|
|
||||||
CSRCS = boot.c
|
|
||||||
|
|
||||||
include $(TOPDIR)/configs/Board.mk
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* configs/compal_e88/boot.c
|
|
||||||
*
|
|
||||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in
|
|
||||||
* the documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
* used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Included Files
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
|
||||||
#include <nuttx/board.h>
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Public Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: board_app_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Perform architecture specific initialization
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* arg - The boardctl() argument is passed to the board_app_initialize()
|
|
||||||
* implementation without modification. The argument has no
|
|
||||||
* meaning to NuttX; the meaning of the argument is a contract
|
|
||||||
* between the board-specific initalization logic and the the
|
|
||||||
* matching application logic. The value cold be such things as a
|
|
||||||
* mode enumeration value, a set of DIP switch switch settings, a
|
|
||||||
* pointer to configuration data read from a file or serial FLASH,
|
|
||||||
* or whatever you would like to do with it. Every implementation
|
|
||||||
* should accept zero/NULL as a default configuration.
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
|
||||||
* any failure to indicate the nature of the failure.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifdef CONFIG_LIB_BOARDCTL
|
|
||||||
int board_app_initialize(uintptr_t arg)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_LIB_BOARDCTL */
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#
|
|
||||||
# For a description of the syntax of this configuration file,
|
|
||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
||||||
#
|
|
||||||
|
|
||||||
if ARCH_BOARD_COMPALE99
|
|
||||||
|
|
||||||
config COMPALE99_LCD_SSD1783
|
|
||||||
bool "SSD1783 LCD support"
|
|
||||||
default y
|
|
||||||
select LCD
|
|
||||||
|
|
||||||
endif
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
compal_e99
|
|
||||||
==========
|
|
||||||
|
|
||||||
This directory contains the board support for compal e99 phones.
|
|
||||||
|
|
||||||
This port is based on patches contributed by Denis Carikli for both the
|
|
||||||
compal e99 and e88. At the time of initial check-in, the following phones
|
|
||||||
were tested:
|
|
||||||
|
|
||||||
* Motorola c155 (compal e99) with the compalram and highram configuration
|
|
||||||
* Motorola W220 (compal e88)
|
|
||||||
* The openmoko freerunner baseband(compal e88)
|
|
||||||
|
|
||||||
The patches were made by Alan Carvalho de Assis and Denis Carikli using
|
|
||||||
the Stefan Richter's patches that can be found here:
|
|
||||||
|
|
||||||
http://cgit.osmocom.org/cgit/nuttx-bb/log/?h=lputt%2Ftesting
|
|
||||||
|
|
||||||
Osmocom-BB Dependencies and Sercomm
|
|
||||||
===================================
|
|
||||||
|
|
||||||
The build environment assumes that you have the osmocom-bb project
|
|
||||||
directory at same level as the nuttx project:
|
|
||||||
|
|
||||||
|- nuttx
|
|
||||||
|- apps
|
|
||||||
`- osmocom-bb
|
|
||||||
|
|
||||||
If you attempt to build this configuration without osmocom-bb, and that
|
|
||||||
you added support for sercomm in your configuration(CONFIG_SERCOMM_CONSOLE=y)
|
|
||||||
you will get compilation errors in drivers/sercomm due to header files that
|
|
||||||
are needed from the osmocom-bb directory.
|
|
||||||
|
|
||||||
By default, NuttX will not use sercomm (HDLC protocol) to communicate with
|
|
||||||
the host system. Sercomm is the transport used by osmocom-bb that runs on top
|
|
||||||
of serial. See http://bb.osmocom.org/trac/wiki/nuttx-bb/run for detailed
|
|
||||||
the usage of nuttx with sercomm.
|
|
||||||
|
|
||||||
Loading NuttX
|
|
||||||
=============
|
|
||||||
|
|
||||||
The osmocom-bb wiki describes how to load NuttX. See
|
|
||||||
http://bb.osmocom.org/trac/wiki/nuttx-bb for detailed information.
|
|
||||||
The way that nuttx is loaded depends on the configuration (highram/compalram)
|
|
||||||
and phone:
|
|
||||||
|
|
||||||
o compalram is for the ramloader(for phone having a bootloader on flash)
|
|
||||||
o highram is for phones having the romloader(if the phone has a bootrom)
|
|
||||||
or for loading in the ram trough a special loader(loaded first on ram
|
|
||||||
by talking to the ramloader) when having a ramloader(which can only
|
|
||||||
load 64k).
|
|
||||||
|
|
||||||
Configurations
|
|
||||||
==============
|
|
||||||
|
|
||||||
1. Each Compal E99 configuration is maintained in a sub-directory and
|
|
||||||
can be selected as follow:
|
|
||||||
|
|
||||||
cd tools
|
|
||||||
./configure.sh compal_e99/<subdir>
|
|
||||||
cd -
|
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the configuration sub-directories under
|
|
||||||
nuttx/configs/compal_e99.
|
|
||||||
|
|
||||||
2. These configurations use the mconf-based configuration tool. To
|
|
||||||
change a configurations using that tool, you should:
|
|
||||||
|
|
||||||
a. Build and install the kconfig-mconf tool. See nuttx/README.txt
|
|
||||||
see additional README.txt files in the NuttX tools repository.
|
|
||||||
|
|
||||||
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
|
||||||
reconfiguration process.
|
|
||||||
|
|
||||||
3. By default, all configurations assume the NuttX Buildroot toolchain
|
|
||||||
under Linux (should work under Windows with Cygwin as well). This
|
|
||||||
is easily reconfigured:
|
|
||||||
|
|
||||||
CONFIG_HOST_LINUX=y
|
|
||||||
CONFIG_ARM_TOOLCHAIN_BUILDROOT=y
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* arch/board.h
|
|
||||||
*
|
|
||||||
* Supposed to be empty
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
@@ -1,125 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/c5471evm/nsh/Make.defs
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
include ${TOPDIR}/.config
|
|
||||||
include ${TOPDIR}/tools/Config.mk
|
|
||||||
include ${TOPDIR}/arch/arm/src/arm/Toolchain.defs
|
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
|
||||||
# Windows-native toolchains
|
|
||||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
|
||||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkwindeps.sh
|
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
|
||||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/compalram.ld}"
|
|
||||||
else
|
|
||||||
# Linux/Cygwin-native toolchain
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps$(HOSTEXEEXT)
|
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/compalram.ld
|
|
||||||
endif
|
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
|
||||||
CXX = $(CROSSDEV)g++
|
|
||||||
CPP = $(CROSSDEV)gcc -E
|
|
||||||
LD = $(CROSSDEV)ld
|
|
||||||
AR = $(CROSSDEV)ar rcs
|
|
||||||
NM = $(CROSSDEV)nm
|
|
||||||
OBJCOPY = $(CROSSDEV)objcopy
|
|
||||||
OBJDUMP = $(CROSSDEV)objdump
|
|
||||||
|
|
||||||
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
|
|
||||||
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
|
||||||
|
|
||||||
ifeq ($(ARCHCCMAJOR),4)
|
|
||||||
ifneq ($(HOSTOS),Cygwin)
|
|
||||||
OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ("${CONFIG_DEBUG_FEATURES}","y")
|
|
||||||
ARCHOPTIMIZATION = -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
|
||||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(ARCHCCMAJOR),4)
|
|
||||||
ARCHCPUFLAGS = -mcpu=arm7tdmi -mfloat-abi=soft
|
|
||||||
else
|
|
||||||
ARCHCPUFLAGS = -mapcs-32 -mcpu=arm7tdmi -msoft-float
|
|
||||||
endif
|
|
||||||
|
|
||||||
ARCHCFLAGS = -fno-builtin
|
|
||||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new
|
|
||||||
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
|
||||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
|
||||||
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
|
||||||
ARCHDEFINES =
|
|
||||||
|
|
||||||
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
|
|
||||||
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
||||||
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
|
||||||
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) \
|
|
||||||
$(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
||||||
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
|
||||||
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
|
||||||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
|
||||||
|
|
||||||
NXFLATLDFLAGS1 = -r -d -warn-common
|
|
||||||
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) \
|
|
||||||
-T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-gotoff.ld \
|
|
||||||
-no-check-sections
|
|
||||||
LDNXFLATFLAGS = -e main -s 2048
|
|
||||||
|
|
||||||
ASMEXT = .S
|
|
||||||
OBJEXT = .o
|
|
||||||
LIBEXT = .a
|
|
||||||
EXEEXT =
|
|
||||||
|
|
||||||
ifneq ($(CROSSDEV),arm-nuttx-elf-)
|
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_DEBUG_FEATURES),y)
|
|
||||||
LDFLAGS += -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
HOSTCC = gcc
|
|
||||||
HOSTINCLUDES = -I.
|
|
||||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
|
||||||
HOSTLDFLAGS =
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,63 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# c5471evm/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
||||||
@@ -1,125 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/c5471evm/nsh/Make.defs
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011, 2014 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
include ${TOPDIR}/.config
|
|
||||||
include ${TOPDIR}/tools/Config.mk
|
|
||||||
include ${TOPDIR}/arch/arm/src/arm/Toolchain.defs
|
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
|
||||||
# Windows-native toolchains
|
|
||||||
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
|
||||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkwindeps.sh
|
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
|
||||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/highram.ld}"
|
|
||||||
else
|
|
||||||
# Linux/Cygwin-native toolchain
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps$(HOSTEXEEXT)
|
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/highram.ld
|
|
||||||
endif
|
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
|
||||||
CXX = $(CROSSDEV)g++
|
|
||||||
CPP = $(CROSSDEV)gcc -E
|
|
||||||
LD = $(CROSSDEV)ld
|
|
||||||
AR = $(CROSSDEV)ar rcs
|
|
||||||
NM = $(CROSSDEV)nm
|
|
||||||
OBJCOPY = $(CROSSDEV)objcopy
|
|
||||||
OBJDUMP = $(CROSSDEV)objdump
|
|
||||||
|
|
||||||
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
|
|
||||||
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
|
||||||
|
|
||||||
ifeq ($(ARCHCCMAJOR),4)
|
|
||||||
ifneq ($(HOSTOS),Cygwin)
|
|
||||||
OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ("${CONFIG_DEBUG_FEATURES}","y")
|
|
||||||
ARCHOPTIMIZATION = -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
|
||||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(ARCHCCMAJOR),4)
|
|
||||||
ARCHCPUFLAGS = -mcpu=arm7tdmi -mfloat-abi=soft
|
|
||||||
else
|
|
||||||
ARCHCPUFLAGS = -mapcs-32 -mcpu=arm7tdmi -msoft-float
|
|
||||||
endif
|
|
||||||
|
|
||||||
ARCHCFLAGS = -fno-builtin
|
|
||||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new
|
|
||||||
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
|
||||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
|
||||||
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
|
||||||
ARCHDEFINES =
|
|
||||||
|
|
||||||
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
|
|
||||||
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
||||||
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
|
||||||
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) \
|
|
||||||
$(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
||||||
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
|
||||||
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
|
||||||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
|
||||||
|
|
||||||
NXFLATLDFLAGS1 = -r -d -warn-common
|
|
||||||
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) \
|
|
||||||
-T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-gotoff.ld \
|
|
||||||
-no-check-sections
|
|
||||||
LDNXFLATFLAGS = -e main -s 2048
|
|
||||||
|
|
||||||
ASMEXT = .S
|
|
||||||
OBJEXT = .o
|
|
||||||
LIBEXT = .a
|
|
||||||
EXEEXT =
|
|
||||||
|
|
||||||
ifneq ($(CROSSDEV),arm-nuttx-elf-)
|
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_DEBUG_FEATURES),y)
|
|
||||||
LDFLAGS += -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
HOSTCC = gcc
|
|
||||||
HOSTINCLUDES = -I.
|
|
||||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
|
||||||
HOSTLDFLAGS =
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,63 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# c5471evm/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
||||||
@@ -1,126 +0,0 @@
|
|||||||
/*
|
|
||||||
* Linker script for running from internal SRAM on Compal phones
|
|
||||||
*
|
|
||||||
* This script is tailored specifically to the requirements imposed
|
|
||||||
* on us by the Compal bootloader.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
||||||
OUTPUT_ARCH(arm)
|
|
||||||
ENTRY(__start)
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
/* compal-loaded binary: our text, initialized data */
|
|
||||||
LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000
|
|
||||||
/* compal-loaded binary: our unitialized data, stacks, heap */
|
|
||||||
IRAM (rw) : ORIGIN = 0x00820000, LENGTH = 0x00020000
|
|
||||||
}
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
. = 0x800000;
|
|
||||||
|
|
||||||
/* romloader data section, contains passthru interrupt vectors */
|
|
||||||
.compal.loader (NOLOAD) : { . = 0x100; } > LRAM
|
|
||||||
|
|
||||||
/* image signature (prepended by osmocon according to phone type) */
|
|
||||||
.compal.header (NOLOAD) : { . = 4; } > LRAM
|
|
||||||
|
|
||||||
/* initialization code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.text.start : {
|
|
||||||
PROVIDE(__start = .);
|
|
||||||
KEEP(*(.text.start))
|
|
||||||
*(.text.start)
|
|
||||||
} > LRAM
|
|
||||||
|
|
||||||
/* exception vectors from 0x80001c to 0x800034 */
|
|
||||||
.text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) {
|
|
||||||
KEEP(*(.text.exceptions))
|
|
||||||
* (.text.exceptions)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_exceptions = LOADADDR(.text.exceptions));
|
|
||||||
|
|
||||||
/* code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.text (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) :
|
|
||||||
AT (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) {
|
|
||||||
/* regular code */
|
|
||||||
*(.text*)
|
|
||||||
/* always-in-ram code */
|
|
||||||
*(.ramtext*)
|
|
||||||
/* gcc voodoo */
|
|
||||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_text_start = LOADADDR(.text));
|
|
||||||
PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text));
|
|
||||||
|
|
||||||
/* constructor pointers */
|
|
||||||
.ctors : {
|
|
||||||
/* ctor count */
|
|
||||||
LONG(SIZEOF(.ctors) / 4 - 2)
|
|
||||||
/* ctor pointers */
|
|
||||||
KEEP(*(SORT(.ctors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_ctor_start = LOADADDR(.ctors));
|
|
||||||
PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
|
|
||||||
|
|
||||||
/* destructor pointers */
|
|
||||||
.dtors : {
|
|
||||||
/* dtor count */
|
|
||||||
LONG(SIZEOF(.dtors) / 4 - 2)
|
|
||||||
/* dtor pointers */
|
|
||||||
KEEP(*(SORT(.dtors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_dtor_start = LOADADDR(.dtors));
|
|
||||||
PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
|
|
||||||
|
|
||||||
/* read-only data */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.rodata : {
|
|
||||||
*(.rodata*)
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_rodata_start = LOADADDR(.rodata));
|
|
||||||
PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata));
|
|
||||||
|
|
||||||
/* initialized data */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.data : {
|
|
||||||
*(.data)
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_data_start = LOADADDR(.data));
|
|
||||||
PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data));
|
|
||||||
|
|
||||||
/* pic offset tables */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.got : {
|
|
||||||
*(.got)
|
|
||||||
*(.got.plt) *(.igot.plt) *(.got) *(.igot)
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_got_start = LOADADDR(.got));
|
|
||||||
PROVIDE(_got_end = LOADADDR(.got) + SIZEOF(.got));
|
|
||||||
|
|
||||||
/* uninitialized data */
|
|
||||||
.bss (NOLOAD) : {
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_start = .;
|
|
||||||
_sbss = ABSOLUTE(.);
|
|
||||||
*(.bss)
|
|
||||||
_ebss = ABSOLUTE(.);
|
|
||||||
} > IRAM
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_end = .;
|
|
||||||
PROVIDE(_bss_start = __bss_start);
|
|
||||||
PROVIDE(_bss_end = __bss_end);
|
|
||||||
|
|
||||||
/* end of image */
|
|
||||||
. = ALIGN(4);
|
|
||||||
_end = .;
|
|
||||||
PROVIDE(end = .);
|
|
||||||
}
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
/*
|
|
||||||
* Linker script for running from internal SRAM on Compal phones
|
|
||||||
*
|
|
||||||
* This script is tailored specifically to the requirements imposed
|
|
||||||
* on us by the Compal bootloader.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
||||||
OUTPUT_ARCH(arm)
|
|
||||||
ENTRY(__start)
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
/* 0x800000-0xa00000 */
|
|
||||||
/* compal-loaded binary: our text, initialized data */
|
|
||||||
LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000
|
|
||||||
TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 0x0001d000
|
|
||||||
/* compal-loaded binary: our unitialized data, stacks, heap */
|
|
||||||
IRAM (rw) : ORIGIN = 0x0083d000, LENGTH = 0x00002000
|
|
||||||
}
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
. = 0x800000;
|
|
||||||
|
|
||||||
/* romloader data section, contains passthru interrupt vectors */
|
|
||||||
.compal.loader (NOLOAD) : { . = 0x100; } > LRAM
|
|
||||||
|
|
||||||
/* image signature (prepended by osmocon according to phone type) */
|
|
||||||
.compal.header (NOLOAD) : { . = 4; } > LRAM
|
|
||||||
|
|
||||||
/* initialization code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.text.start : {
|
|
||||||
PROVIDE(__start = .);
|
|
||||||
KEEP(*(.text.start))
|
|
||||||
*(.text.start)
|
|
||||||
} > TRAM
|
|
||||||
|
|
||||||
/* exception vectors from 0x80001c to 0x800034 */
|
|
||||||
.text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) {
|
|
||||||
KEEP(*(.text.exceptions))
|
|
||||||
* (.text.exceptions)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > LRAM
|
|
||||||
PROVIDE(_exceptions = LOADADDR(.text.exceptions));
|
|
||||||
|
|
||||||
/* code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.text (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) :
|
|
||||||
AT (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) {
|
|
||||||
/* regular code */
|
|
||||||
*(.text*)
|
|
||||||
/* always-in-ram code */
|
|
||||||
*(.ramtext*)
|
|
||||||
/* gcc voodoo */
|
|
||||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_text_start = LOADADDR(.text));
|
|
||||||
PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text));
|
|
||||||
|
|
||||||
/* constructor pointers */
|
|
||||||
.ctors : {
|
|
||||||
/* ctor count */
|
|
||||||
LONG(SIZEOF(.ctors) / 4 - 2)
|
|
||||||
/* ctor pointers */
|
|
||||||
KEEP(*(SORT(.ctors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_ctor_start = LOADADDR(.ctors));
|
|
||||||
PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
|
|
||||||
|
|
||||||
/* destructor pointers */
|
|
||||||
.dtors : {
|
|
||||||
/* dtor count */
|
|
||||||
LONG(SIZEOF(.dtors) / 4 - 2)
|
|
||||||
/* dtor pointers */
|
|
||||||
KEEP(*(SORT(.dtors)))
|
|
||||||
/* end of list */
|
|
||||||
LONG(0)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_dtor_start = LOADADDR(.dtors));
|
|
||||||
PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
|
|
||||||
|
|
||||||
/* read-only data */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.rodata : {
|
|
||||||
*(.rodata*)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_rodata_start = LOADADDR(.rodata));
|
|
||||||
PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata));
|
|
||||||
|
|
||||||
/* initialized data */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.data : {
|
|
||||||
*(.data)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_data_start = LOADADDR(.data));
|
|
||||||
PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data));
|
|
||||||
|
|
||||||
/* pic offset tables */
|
|
||||||
. = ALIGN(4);
|
|
||||||
.got : {
|
|
||||||
*(.got)
|
|
||||||
*(.got.plt) *(.igot.plt) *(.got) *(.igot)
|
|
||||||
} > TRAM
|
|
||||||
PROVIDE(_got_start = LOADADDR(.got));
|
|
||||||
PROVIDE(_got_end = LOADADDR(.got) + SIZEOF(.got));
|
|
||||||
|
|
||||||
/* uninitialized data */
|
|
||||||
.bss (NOLOAD) : {
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_start = .;
|
|
||||||
_sbss = ABSOLUTE(.);
|
|
||||||
*(.bss)
|
|
||||||
_ebss = ABSOLUTE(.);
|
|
||||||
} > IRAM
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_end = .;
|
|
||||||
PROVIDE(_bss_start = __bss_start);
|
|
||||||
PROVIDE(_bss_end = __bss_end);
|
|
||||||
|
|
||||||
/* end of image */
|
|
||||||
. = ALIGN(4);
|
|
||||||
_end = .;
|
|
||||||
PROVIDE(end = .);
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
/.depend
|
|
||||||
/Make.dep
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/compal_e99/src/Makefile
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2015 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Stefan Richter. All rights reserved.
|
|
||||||
# Author: Stefan Richter <ichgeh@l--putt.de>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
|
||||||
|
|
||||||
ASRCS =
|
|
||||||
CSRCS = boot.c ssd1783.c
|
|
||||||
|
|
||||||
include $(TOPDIR)/configs/Board.mk
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* configs/compal_e99/boot.c
|
|
||||||
*
|
|
||||||
* Copyright (C) 2015-2016 Gregory Nutt. All rights reserved.
|
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in
|
|
||||||
* the documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
* used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Included Files
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
|
||||||
#include <nuttx/board.h>
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Public Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: board_app_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Perform architecture specific initialization
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* arg - The boardctl() argument is passed to the board_app_initialize()
|
|
||||||
* implementation without modification. The argument has no
|
|
||||||
* meaning to NuttX; the meaning of the argument is a contract
|
|
||||||
* between the board-specific initalization logic and the the
|
|
||||||
* matching application logic. The value cold be such things as a
|
|
||||||
* mode enumeration value, a set of DIP switch switch settings, a
|
|
||||||
* pointer to configuration data read from a file or serial FLASH,
|
|
||||||
* or whatever you would like to do with it. Every implementation
|
|
||||||
* should accept zero/NULL as a default configuration.
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
|
||||||
* any failure to indicate the nature of the failure.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifdef CONFIG_LIB_BOARDCTL
|
|
||||||
int board_app_initialize(uintptr_t arg)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_LIB_BOARDCTL */
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,110 +0,0 @@
|
|||||||
#ifndef SSD1783_H_
|
|
||||||
#define SSD1783_H_
|
|
||||||
|
|
||||||
#include <nuttx/lcd/lcd.h>
|
|
||||||
|
|
||||||
#define FB_COLOR_TO_R(v) (((v)>>16) & 0xff)
|
|
||||||
#define FB_COLOR_TO_G(v) (((v)>> 8) & 0xff)
|
|
||||||
#define FB_COLOR_TO_B(v) ( (v) & 0xff)
|
|
||||||
|
|
||||||
#define SSD1783_UWIRE_BITLEN 9
|
|
||||||
#define SSD1783_DEV_ID 0
|
|
||||||
|
|
||||||
#define ARMIO_LATCH_OUT 0xfffe4802
|
|
||||||
#define IO_CNTL_REG 0xfffe4804
|
|
||||||
#define ASIC_CONF_REG 0xfffef008
|
|
||||||
|
|
||||||
#define ASCONF_PWL_ENA (1 << 4)
|
|
||||||
|
|
||||||
/* begin backlight.c */
|
|
||||||
#define BASE_ADDR_PWL 0xfffe8000
|
|
||||||
#define PWL_REG(m) (BASE_ADDR_PWL + (m))
|
|
||||||
|
|
||||||
enum pwl_reg {
|
|
||||||
PWL_LEVEL = 0,
|
|
||||||
PWL_CTRL = 1,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum ssd1783_cmdflag { CMD, DATA, END };
|
|
||||||
|
|
||||||
struct ssd1783_cmdlist {
|
|
||||||
enum ssd1783_cmdflag is_cmd:8; /* 1: is a command, 0: is data, 2: end marker! */
|
|
||||||
uint8_t data; /* 8 bit to send to LC display */
|
|
||||||
} __attribute__((packed));
|
|
||||||
|
|
||||||
static const struct ssd1783_cmdlist nop[] = {
|
|
||||||
{ CMD, 0x25 }, // NOP command
|
|
||||||
{ END, 0x00 }
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct ssd1783_cmdlist
|
|
||||||
ssd1783_initdata[] = {
|
|
||||||
{ CMD, 0xD1 }, /* CMD set internal oscillator on */
|
|
||||||
{ CMD, 0x94 }, /* CMD leave sleep mode */
|
|
||||||
{ CMD, 0xbb }, /* CMD Set COM Output Scan Direction: */
|
|
||||||
{ DATA, 0x01 }, /* DATA: 01: COM0-79, then COM159-80 */
|
|
||||||
/* -------- DIFFERENT FROM ORIGINAL CODE: -------------- */
|
|
||||||
/* we use 8bit per pixel packed RGB 332 */
|
|
||||||
{ CMD, 0xbc }, /* CMD Set Data Output Scan Direction */
|
|
||||||
{ DATA, 0x00 }, /* DATA: column scan, normal rotation, normal display */
|
|
||||||
{ DATA, 0x00 }, /* DATA: RGB color arrangement R G B R G B ... */
|
|
||||||
/*-->*/ { DATA, 0x01 }, /* DATA: 8 bit per pixel mode MSB <RRRGGGBB> LSB */
|
|
||||||
/* --------- /DIFFERENT ---------- */
|
|
||||||
{ CMD, 0xce }, /* CMD Set 256 Color Look Up Table LUT */
|
|
||||||
{ DATA, 0x00 }, /* DATA red 000 */
|
|
||||||
{ DATA, 0x03 }, /* DATA red 001 */
|
|
||||||
{ DATA, 0x05 }, /* DATA red 010 */
|
|
||||||
{ DATA, 0x07 }, /* DATA red 011 */
|
|
||||||
{ DATA, 0x09 }, /* DATA red 100 */
|
|
||||||
{ DATA, 0x0b }, /* DATA red 101 */
|
|
||||||
{ DATA, 0x0d }, /* DATA red 110 */
|
|
||||||
{ DATA, 0x0f }, /* DATA red 111 */
|
|
||||||
{ DATA, 0x00 }, /* DATA green 000 */
|
|
||||||
{ DATA, 0x03 }, /* DATA green 001 */
|
|
||||||
{ DATA, 0x05 }, /* DATA green 010 */
|
|
||||||
{ DATA, 0x07 }, /* DATA green 011 */
|
|
||||||
{ DATA, 0x09 }, /* DATA green 100 */
|
|
||||||
{ DATA, 0x0b }, /* DATA green 101 */
|
|
||||||
{ DATA, 0x0d }, /* DATA green 110 */
|
|
||||||
{ DATA, 0x0f }, /* DATA green 111 */
|
|
||||||
{ DATA, 0x00 }, /* DATA blue 00 */
|
|
||||||
{ DATA, 0x05 }, /* DATA blue 01 */
|
|
||||||
{ DATA, 0x0a }, /* DATA blue 10 */
|
|
||||||
{ DATA, 0x0f }, /* DATA blue 11 */
|
|
||||||
{ CMD, 0xca }, /* CMD Set Display Control - Driver Duty Selection */
|
|
||||||
{ DATA, 0xff }, // can't find description of the values in the original
|
|
||||||
{ DATA, 0x10 }, // display/ssd1783.c in my datasheet :-(
|
|
||||||
{ DATA, 0x01 }, //
|
|
||||||
{ CMD, 0xab }, /* CMD Set Scroll Start */
|
|
||||||
{ DATA, 0x00 }, /* DATA: Starting address at block 0 */
|
|
||||||
{ CMD, 0x20 }, /* CMD Set power control register */
|
|
||||||
{ DATA, 0x0b }, /* DATA: booster 6x, reference gen. & int regulator */
|
|
||||||
{ CMD, 0x81 }, /* CMD Contrast Lvl & Int. Regul. Resistor Ratio */
|
|
||||||
{ DATA, 0x29 }, /* DATA: contrast = 0x29 */
|
|
||||||
{ DATA, 0x05 }, /* DATA: 0x05 = 0b101 -> 1+R2/R1 = 11.37 */
|
|
||||||
{ CMD, 0xa7 }, /* CMD Invert Display */
|
|
||||||
{ CMD, 0x82 }, /* CMD Set Temperature Compensation Coefficient */
|
|
||||||
{ DATA, 0x00 }, /* DATA: Gradient is -0.10 % / degC */
|
|
||||||
{ CMD, 0xfb }, /* CMD Set Biasing Ratio */
|
|
||||||
{ DATA, 0x03 }, /* DATA: 1/10 bias */
|
|
||||||
{ CMD, 0xf2 }, /* CMD Set Frame Frequency and N-line inversion */
|
|
||||||
{ DATA, 0x08 }, /* DATA: 75 Hz (POR) */
|
|
||||||
{ DATA, 0x06 }, /* DATA: n-line inversion: 6 lines */
|
|
||||||
{ CMD, 0xf7 }, /* CMD Select PWM/FRC Select Full Col./8col mode */
|
|
||||||
{ DATA, 0x28 }, /* DATA: always 0x28 */
|
|
||||||
{ DATA, 0x8c }, /* DATA: 4bit PWM + 2 bit FRC */
|
|
||||||
{ DATA, 0x05 }, /* DATA: full color mode */
|
|
||||||
{ CMD, 0xaf }, /* CMD Display On */
|
|
||||||
{ END, 0x00 }, /* MARKER: end of list */
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ssd1783_dev_s
|
|
||||||
{
|
|
||||||
/* Publicly visible device structure */
|
|
||||||
struct lcd_dev_s dev;
|
|
||||||
|
|
||||||
/* Private LCD-specific information follows */
|
|
||||||
uint8_t power; /* Current power setting */
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* SSD1783_H_ */
|
|
||||||
@@ -79,7 +79,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
# CONFIG_ARCH_CHIP_C5471 is not set
|
# CONFIG_ARCH_CHIP_C5471 is not set
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ CONFIG_ARCH="arm"
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_A1X is not set
|
# CONFIG_ARCH_CHIP_A1X is not set
|
||||||
# CONFIG_ARCH_CHIP_C5471 is not set
|
# CONFIG_ARCH_CHIP_C5471 is not set
|
||||||
# CONFIG_ARCH_CHIP_CALYPSO is not set
|
|
||||||
# CONFIG_ARCH_CHIP_DM320 is not set
|
# CONFIG_ARCH_CHIP_DM320 is not set
|
||||||
# CONFIG_ARCH_CHIP_EFM32 is not set
|
# CONFIG_ARCH_CHIP_EFM32 is not set
|
||||||
# CONFIG_ARCH_CHIP_IMX1 is not set
|
# CONFIG_ARCH_CHIP_IMX1 is not set
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user