Skip to content

Commit

Permalink
remove debug sync fw
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Apr 27, 2024
1 parent a284503 commit e1ab405
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 214 deletions.
3 changes: 0 additions & 3 deletions deploy/roles/sheep/tasks/build_shp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
- pru0-shepherd-fw
- pru1-shepherd-fw
- pru0-programmer
- pru1-sync
become: true

- name: Build PRU firmware
Expand All @@ -27,7 +26,6 @@
- pru0-shepherd-fw
- pru1-shepherd-fw
- pru0-programmer
- pru1-sync
environment:
PRU_CGT: '{{ sheep_ti_pru_cgt_path }}'
PRU_CGT_SUPPORT: '{{ sheep_ti_pru_support_path }}'
Expand All @@ -44,7 +42,6 @@
- pru0-shepherd-fw
- pru1-shepherd-fw
- pru0-programmer
- pru1-sync
become: true

# build second programmer
Expand Down
2 changes: 1 addition & 1 deletion software/firmware/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DIRS = pru0-shepherd-fw pru1-shepherd-fw device-tree pru0-programmer pru1-sync
DIRS = pru0-shepherd-fw pru1-shepherd-fw device-tree pru0-programmer
# TODO: this makefile currently can't produce both versions of the programmer

BUILDDIRS = $(DIRS:%=build-%)
Expand Down
1 change: 0 additions & 1 deletion software/firmware/pru1-sync/.gitignore

This file was deleted.

31 changes: 0 additions & 31 deletions software/firmware/pru1-sync/Makefile

This file was deleted.

173 changes: 0 additions & 173 deletions software/firmware/pru1-sync/main.c

This file was deleted.

1 change: 0 additions & 1 deletion software/kernel-module/src/commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define PRU0_FW_PRG_SWD ("am335x-pru0-programmer-SWD-fw")
#define PRU0_FW_PRG_SBW ("am335x-pru0-programmer-SBW-fw")
#define PRU1_FW_DEFAULT ("am335x-pru1-shepherd-fw")
#define PRU1_FW_SYNC ("am335x-pru1-sync-fw")


// NOTE: a (almost)Copy of this definition-file exists for the pru-firmware (copy changes by hand)
Expand Down
6 changes: 3 additions & 3 deletions software/kernel-module/src/sysfs_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,10 +833,10 @@ static ssize_t sysfs_pru1_firmware_store(struct kobject *kobj, struct kobj_attri
/* FAIL with no file-name or not matching start-string */
if (strlen(buffer) == 0) return -EINVAL;

if ((strncmp(buffer, "sync", 4) == 0) || (strncmp(buffer, PRU1_FW_SYNC, 19) == 0))
if (strncmp(buffer, "sync", 4) == 0)
{
swap_pru_firmware("", PRU1_FW_SYNC);
/* only for debug */
printk(KERN_ERR "shprd.k: sync-fw was removed");
// NOTE: this could be removed, but that makes the whole FN useless
}
else { swap_pru_firmware("", PRU1_FW_DEFAULT); }

Expand Down
1 change: 0 additions & 1 deletion software/python-package/shepherd_sheep/sysfs_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ def check_programmer() -> str:
"am335x-pru0-programmer-SWD-fw",
"am335x-pru0-programmer-SBW-fw",
"am335x-pru1-shepherd-fw",
"am335x-pru1-sync-fw", # just for debug
]


Expand Down

0 comments on commit e1ab405

Please sign in to comment.