Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fbelavenuto committed Jul 1, 2022
0 parents commit a086628
Show file tree
Hide file tree
Showing 1,085 changed files with 341,425 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_size = 2

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# YAML
[*.yml]
indent_style = space
indent_size = 2

[*.{c,h}]
indent_style = space
indent_size = 4
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
!.gitkeep
.vscode
arpl.img*
/buildroot-2022.02.2
test.sh
docker/Dockerfile
docker/cache
8 changes: 8 additions & 0 deletions PLATFORMS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bromolow 3.10.108
apollolake 4.4.180
broadwell 4.4.180
broadwellnk 4.4.180
denverton 4.4.180
geminilake 4.4.180
v1000 4.4.180
purley 4.4.180
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# arpl
23 changes: 23 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
A fazer
- Implementar update do bzimage e ramdisk online

Concluidos:
- Generalizar código dos addons
- Implementar checagem de conflito entre addons *** Usado alternativa de ter listagem de módulos não necessários ***
- Tirar MAXDISKS dos arquivos dos modelos e adicionar menu no synoinfo para configurar máximo de HDs
- mudar na configs dos modelos os módulos builtin para módulos não necessários
- Mudar palavra "extra" para "cmdline"
- Implementar exibição de cmdline e synoinfo dos modelos
- Adicionar checagem no grub para exibir ou não menu de boot
- Bug no boot.sh, se usuário mudar a variável netif_num o script repassa os macX sem considerar o novo número de interfaces
*** TIRADO obrigatoriedade no LKM de passar esses parâmetros ***
- bug com macs, com 2 placas os MACs podem se inverter, checar isso
*** Resolvido com solução anterior ***
- Verifica se plataforma vai rodar na máquina checando as flags da CPU
- Implementar seleção da versão do LKM (dev ou prod)
- Usando TTYD para acesso via web
- Verificar se fica legal colocar na config dos modelos os addons obrigatórios como o qjs-dtb *** Usado outra maneira ***
- Implementar escolha de maxdisks


https://kb.synology.com/en-me/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have
22 changes: 22 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# https://taskfile.dev

version: '3'

tasks:
build-img:
cmds:
- ./img-gen.sh

build-docker-img:
dir: docker
cmds:
- ./build.sh

compile-lkms:
cmds:
- ./compile-lkm.sh

compile-addons:
dir: addons
cmds:
- ./compile-addons.sh {{.CLI_ARGS}}
6 changes: 6 additions & 0 deletions addons/9p/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if [ "${1}" = "rd" ]; then
echo "Installing module for Plan 9 Resource Sharing Support (9P2000)"
${INSMOD} "/modules/9pnet.ko"
${INSMOD} "/modules/9pnet_virtio.ko"
${INSMOD} "/modules/9p.ko" ${PARAMS}
fi
28 changes: 28 additions & 0 deletions addons/9p/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 1
name: 9p
description: "Driver for Plan 9 Resource Sharing Support (9P2000)"
available-for:
bromolow-3.10.108:
install-script: &script "install.sh"
modules: true
apollolake-4.4.180:
install-script: *script
modules: true
broadwell-4.4.180:
install-script: *script
modules: true
broadwellnk-4.4.180:
install-script: *script
modules: true
denverton-4.4.180:
install-script: *script
modules: true
geminilake-4.4.180:
install-script: *script
modules: true
v1000-4.4.180:
install-script: *script
modules: true
purley-4.4.180:
install-script: *script
modules: true
36 changes: 36 additions & 0 deletions addons/9p/src/3.10.108/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
obj-m := 9p.o

9p-objs := \
vfs_super.o \
vfs_inode.o \
vfs_inode_dotl.o \
vfs_addr.o \
vfs_file.o \
vfs_dir.o \
vfs_dentry.o \
v9fs.o \
fid.o \
xattr.o \
xattr_user.o

9p-y += cache.o
9p-n += acl.o

obj-m := 9pnet.o
obj-m += 9pnet_virtio.o
obj-n += 9pnet_rdma.o

9pnet-objs := \
mod.o \
client.o \
error.o \
util.o \
protocol.o \
trans_fd.o \
trans_common.o \

9pnet_virtio-objs := \
trans_virtio.o

9pnet_rdma-objs := \
trans_rdma.o
Loading

0 comments on commit a086628

Please sign in to comment.