Initial project barebones structure
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2021-01-02 12:01:52 +01:00
commit 688fdd14bb
8 changed files with 104 additions and 0 deletions

20
.drone.yml Normal file
View file

@ -0,0 +1,20 @@
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --recursive --remote
- name: build
image: alpine:latest
commands:
- apk add --update gcc musl-dev make cmake
- make
...

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.idea/
firmware.bin

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "rrcc"]
path = rrcc
url = https://git.gammaspectra.live/FM10K/rrcc.git

24
COPYING Normal file
View file

@ -0,0 +1,24 @@
Copyright (c) 2021, rrc-open-firmware FM10K-Documentation Contributors
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* 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.
* Neither the name of the copyright holder 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.

13
Makefile Normal file
View file

@ -0,0 +1,13 @@
default: all
all: firmware.bin
src/rrc-as: rrcc/CMakeLists.txt
cd rrcc && cmake . && make -j $(nproc)
firmware.bin: src/rrc-as src/entrypoint.asm
rrcc/rrc-as src/entrypoint.asm firmware.bin
clean:
-rm -f firmware.bin
-cd rrcc && make clean

13
README.md Normal file
View file

@ -0,0 +1,13 @@
# rrc-open-firmware
Experimental project for replacing factory firmware on FM10000 cards with custom-made code.
WARNING: **This is a Work In Progress project**. Do not use on any cards you don't want to have to unbrick via manual SPI connection.
### Requirements
* [rrcc](https://git.gammaspectra.live/FM10K/rrcc) (will build it from submodule)
* make
### Compilation
* `$ make`
* The firmware will be output to `firmware.bin`

1
rrcc Submodule

@ -0,0 +1 @@
Subproject commit bb6bcc8b5f42946d99be71963d17d393f4b300e8

28
src/entrypoint.asm Normal file
View file

@ -0,0 +1,28 @@
; Copyright (c) 2021, rrc-open-firmware FM10K-Documentation Contributors
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; * Redistributions of source code must retain the above copyright notice,
; this list of conditions and the following disclaimer.
; * 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.
; * Neither the name of the copyright holder 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.
entrypoint:
RET