From 198df9c82ef94c17f8fe240957fbef1a796f8712 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 1 Jun 2013 15:14:53 +0200 Subject: [PATCH] All apps compiling and linked (listed in NSH help), but not executing yet --- Images/{px4fmu.prototype => px4fmu-v1.prototype} | 0 Images/{px4io.prototype => px4io-v1.prototype} | 0 ROMFS/px4fmu_common/init.d/rcS | 7 ++++++- makefiles/config_px4fmu-v1_default.mk | 3 ++- 4 files changed, 8 insertions(+), 2 deletions(-) rename Images/{px4fmu.prototype => px4fmu-v1.prototype} (100%) rename Images/{px4io.prototype => px4io-v1.prototype} (100%) diff --git a/Images/px4fmu.prototype b/Images/px4fmu-v1.prototype similarity index 100% rename from Images/px4fmu.prototype rename to Images/px4fmu-v1.prototype diff --git a/Images/px4io.prototype b/Images/px4io-v1.prototype similarity index 100% rename from Images/px4io.prototype rename to Images/px4io-v1.prototype diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index c0a70f7ddc..0efcc5db90 100755 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -69,7 +69,12 @@ else then echo "[init] USB interface connected" else - echo "[init] No USB connected" + if [ -f /dev/ttyACM0 ] + echo "[init] NSH via USB" + then + else + echo "[init] No USB connected" + fi fi fi diff --git a/makefiles/config_px4fmu-v1_default.mk b/makefiles/config_px4fmu-v1_default.mk index 37a05c90fa..4fc61e97d2 100644 --- a/makefiles/config_px4fmu-v1_default.mk +++ b/makefiles/config_px4fmu-v1_default.mk @@ -129,4 +129,5 @@ endef # command priority stack entrypoint BUILTIN_COMMANDS := \ $(call _B, sercon, , 2048, sercon_main ) \ - $(call _B, serdis, , 2048, serdis_main ) + $(call _B, serdis, , 2048, serdis_main ) \ + $(call _B, sysinfo, , 2048, sysinfo_main )