apiriadmin / APIRI

APIRI Repository
GNU Lesser General Public License v2.1
4 stars 11 forks source link

System Configuration application (atc_sc) does not work after merge #47, “Rewrite of the System Configuration Manager to remedy non-compliance issues;” #49

Open githubmc opened 7 years ago

githubmc commented 7 years ago

Expected behavior and actual behavior.

Expected behavior: Then screen "ATC CONFIGURATION INFORMATION" is displayed, when press the key “NEXT” of the screen “FRONT PANEL MANAGER” for “CONFIG INFO- NEXT”. Actual behavior: The atc_sc is not launched successfully, so the system configuration screens are not displayed.

Steps to reproduce the problem.

Before this change (#47), I only need launch these appplications to load ATC API applications at start-up. ./FrontPanelManager /dev/sp6 & ./MasterSelection & ./atc_sc & #

Then screen "ATC CONFIGURATION INFORMATION" screen is displayed, when press the key “NEXT” of the screen “FRONT PANEL MANAGER” for “CONFIG INFO- NEXT”.

With the changes of #47, the application atc_sc breaks, so system configuration screens do not work.

I changed front_panel script as below to load drivers to scope with the changes of #47. if [ ! -e /dev/fpi ]; then /bin/mknod -m 0666 /dev/fpi c $MAJOR 0; fi if [ ! -e /dev/msi ]; then /bin/mknod -m 0666 /dev/msi c $MAJOR 1; fi if [ ! -e /dev/sci ]; then /bin/mknod -m 0666 /dev/sci c $MAJOR 2; fi if [ ! -e /dev/scm ]; then /bin/mknod -m 0666 /dev/scm c $MAJOR 3; fi if [ ! -e /dev/aux ]; then /bin/mknod -m 0666 /dev/aux c $MAJOR 4; fi if [ ! -e /dev/fpm ]; then /bin/mknod -m 0666 /dev/fpm c $MAJOR 8; fi

Specifications (e.g. version of the project, Linux version, and hardware specifications).

gallagjm commented 7 years ago

Following change #47 the application start-up sequence is ./FrontPanelManager /dev/sp6 & ./MasterSelection & ./SystemConfiguration &

i.e. the System Configuration Manager is now separate and named "SystemConfiguration";

The "atc_sc" program is now a multi-call binary providing the utilities as listed in: https://github.com/apiriadmin/APIRI/blob/master/fpu/FrontPanelSystem/SystemConfiguration/ATCConfigurationMenu.txt

The menu configuration file should be installed under /etc/default

Symbolic links are now necessary, e.g.

cd /usr/bin

ls -l atc_sc*

-rwx------ 1 root root 84037 Oct 17 12:07 atc_sc lrwxrwxrwx 1 root root 6 Oct 17 11:59 atc_sc_0 -> atc_sc lrwxrwxrwx 1 root root 6 Oct 17 12:00 atc_sc_1 -> atc_sc lrwxrwxrwx 1 root root 6 Oct 17 12:00 atc_sc_2 -> atc_sc lrwxrwxrwx 1 root root 6 Oct 17 12:00 atc_sc_3 -> atc_sc lrwxrwxrwx 1 root root 6 Oct 17 12:00 atc_sc_4 -> atc_sc lrwxrwxrwx 1 root root 6 Oct 17 12:00 atc_sc_5 -> atc_sc lrwxrwxrwx 1 root root 6 Oct 17 12:00 atc_sc_6 -> atc_sc lrwxrwxrwx 1 root root 6 Oct 17 12:00 atc_sc_7 -> atc_sc