소스 검색

submit some bug

lusa 5 년 전
부모
커밋
57eeb85195

BIN
app/bmc/bmc_app


BIN
app/bmc/bmc_app.gdb


+ 21 - 21
app/bmc/main.c

@@ -75,13 +75,13 @@ void main(void)
         printf("%s: Create ChassisTimerTask thread failed!\n", __FUNCTION__);
     }
 
-    /* Create SensorMonitorTask */
-	gThreadIndex++;
-	if(0 != pthread_create(&gThreadIDs[gThreadIndex],NULL,SensorMonitorTask,NULL))
-    {
-        printf("%s: Create SensorMonitorTask thread failed!\n", __FUNCTION__);
-    }
-
+//    /* Create SensorMonitorTask */
+//	gThreadIndex++;
+//	if(0 != pthread_create(&gThreadIDs[gThreadIndex],NULL,SensorMonitorTask,NULL))
+//    {
+//        printf("%s: Create SensorMonitorTask thread failed!\n", __FUNCTION__);
+//    }
+//
 	/* Create UDS interface */
 	gThreadIndex++;
 	if(0 != pthread_create(&gThreadIDs[gThreadIndex],NULL,UDSIfcTask,NULL))
@@ -95,19 +95,19 @@ void main(void)
     {
         printf("%s: Create LANIfcTask thread failed!\n", __FUNCTION__);
     }
-	/* Create IPMB interface */
-	uint8_t primaryIpmbSelect = 0;	//primary
-	gThreadIndex++;
-	if(0 != pthread_create(&gThreadIDs[gThreadIndex],NULL,IPMBIfcTask,&primaryIpmbSelect))
-    {
-        printf("%s: Create LANIfcTask thread failed!\n", __FUNCTION__);
-    }
-    uint8_t secondaryIpmbSelect = 1;	//secondary
-    gThreadIndex++;
-	if(0 != pthread_create(&gThreadIDs[gThreadIndex],NULL,IPMBIfcTask,&secondaryIpmbSelect))
-    {
-        printf("%s: Create LANIfcTask thread failed!\n", __FUNCTION__);
-    }
+//	/* Create IPMB interface */
+//	uint8_t primaryIpmbSelect = 0;	//primary
+//	gThreadIndex++;
+//	if(0 != pthread_create(&gThreadIDs[gThreadIndex],NULL,IPMBIfcTask,&primaryIpmbSelect))
+//    {
+//        printf("%s: Create LANIfcTask thread failed!\n", __FUNCTION__);
+//    }
+//    uint8_t secondaryIpmbSelect = 1;	//secondary
+//    gThreadIndex++;
+//	if(0 != pthread_create(&gThreadIDs[gThreadIndex],NULL,IPMBIfcTask,&secondaryIpmbSelect))
+//    {
+//        printf("%s: Create LANIfcTask thread failed!\n", __FUNCTION__);
+//    }
 
 	/* Create Update FPGA thread */
 
@@ -123,4 +123,4 @@ void main(void)
 		sleep(100);
 		//printf("Hello...\n");
 	}
-}
+}

+ 1 - 1
app/goahead-5.1.0/build/linux-arm-static/.makeflags

@@ -1 +1 @@
-s --no-print-directory
+ --no-print-directory -s

BIN
app/goahead-5.1.0/build/linux-arm-static/bin/goahead


BIN
app/goahead-5.1.0/build/linux-arm-static/bin/goahead-test


BIN
app/goahead-5.1.0/build/linux-arm-static/bin/goahead-test.gdb


BIN
app/goahead-5.1.0/build/linux-arm-static/bin/goahead.gdb


BIN
app/goahead-5.1.0/build/linux-arm-static/bin/gopass


BIN
app/goahead-5.1.0/build/linux-arm-static/bin/gopass.gdb


BIN
app/goahead-5.1.0/build/linux-arm-static/bin/libgo.a


BIN
app/goahead-5.1.0/build/linux-arm-static/bin/libgoahead-mbedtls.a


+ 3 - 3
app/goahead-5.1.0/src/goahead.c

@@ -106,9 +106,9 @@ MAIN(goahead, int argc, char **argv, char **envp)
 
 
 /********************* jimbo test code **************************/
-    Webs wp;
+    // Webs wp;
 
-    getDeviceInfo(&wp);
+    // getDeviceInfo(&wp);
     
 
 /********************* jimbo test end **************************/    
@@ -213,7 +213,7 @@ MAIN(goahead, int argc, char **argv, char **envp)
 
 //add by lusa start 
         // websDefineAction("buy", buy);
-        // websDefineAction("test", actionTest);
+        websDefineAction("getDeviceInfo", getDeviceInfo);
         websDefineAction("person", personInfoAction);
 
 

+ 4 - 0
app/goahead-5.1.0/src/route.c

@@ -86,6 +86,8 @@ void personInfoAction(Webs *wp)
 
 /*获取设备信息*/
 void getDeviceInfo(Webs *wp){
+    logmsg(2, "--------------------ggggggggg----------------");
+
     uint16_t    wRet = LIBIPMI_E_SUCCESS;
     GetDevIDRes_T   DeviceID;
     char BuildTime[30] = {0};
@@ -106,6 +108,8 @@ void getDeviceInfo(Webs *wp){
 
     //Close session
     LIBIPMI_CloseSession(&wp->ipmi_session );
+    
+    
 }
 
 

+ 1 - 1
app/goahead-5.1.0/src/route.txt

@@ -41,7 +41,7 @@ route uri=/login.html
 route uri=/action/login methods=POST handler=action redirect=200@/index.html redirect=401@/login.html
 route uri=/action/logout methods=GET|POST handler=action redirect=200@/login.html
 route uri=/auth/form/ auth=form handler=continue abilities=manage redirect=401@/login.html
-
+route uri=/auth/getDeviceInfo auth=digest handler=continue methods=GET|POST abilities=manage
 route uri=/auth/person auth=digest handler=continue methods=GET|POST abilities=manage redirect=401@/login.html
 
 #route uri=/action/person methods=GET|POST handler=action 

BIN
gd32450i-eval.uImage


+ 8 - 8
local/rc

@@ -11,25 +11,25 @@ ifconfig lo 127.0.0.1
 ################### install module #####################
 #insmod /usr/bin/test_module.ko
 insmod /usr/bin/gpio.ko 
-insmod /usr/bin/i2c.ko
+#insmod /usr/bin/i2c.ko
 #insmod /usr/bin/fmc.ko
 insmod /usr/bin/platform_STM32F429.ko
-insmod /usr/bin/adc.ko
-insmod /usr/bin/spi.ko
+#insmod /usr/bin/adc.ko
+#insmod /usr/bin/spi.ko
 
 #################### create node ########################
 #mknod /dev/test_module c 99 0
 mknod /dev/platform c 100 0
-mknod /dev/i2c1 c 101 0
-mknod /dev/i2c2 c 101 1
-mknod /dev/i2c3 c 101 2
+#mknod /dev/i2c1 c 101 0
+#mknod /dev/i2c2 c 101 1
+#mknod /dev/i2c3 c 101 2
 #mknod /dev/fmc_cpld c 102 0
 mknod /dev/gpio c 103 0 
 mknod /dev/adc1 c 105 0
 #mknod /dev/adc2 c 105 1
 #mknod /dev/adc3 c 105 2
-mknod /dev/spi2 c 104 1
-mknod /dev/spi5 c 104 4
+#mknod /dev/spi2 c 104 1
+#mknod /dev/spi5 c 104 4
 
 ################### run app ####################
 /bin/telnetd