Browse Source

2020-01-08 / Folus Wen

Actions:
1. board-support/u-boot-2017.01+gitAUTOINC+340fb36f04-g340fb36f04/common/autoboot.c add configuration check sum calculation method.

Files:
1. As follow commit history.
FolusWen 5 years ago
parent
commit
fc71faa6ed

BIN
EVSE/Projects/AW-Regular/Images/MLO


BIN
EVSE/Projects/AW-Regular/Images/am335x-evm.dtb


BIN
EVSE/Projects/AW-Regular/Images/ramdisk.gz


BIN
EVSE/Projects/AW-Regular/Images/u-boot.img


BIN
EVSE/Projects/AW-Regular/Images/zImage


BIN
board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305/.tmp_vmlinux1


BIN
board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305/.tmp_vmlinux2


+ 1 - 1
board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305/.version

@@ -1 +1 @@
-347
+348

+ 4 - 3
board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305/arch/arm/boot/dts/.am335x-evm.dtb.dts.tmp

@@ -1444,6 +1444,7 @@
                 compatible = "nxp,pcf85063";
                 reg = <0x51>;
         };
+
 };
 
 &usb {
@@ -1478,7 +1479,7 @@
 &elm {
  status = "okay";
 };
-# 402 "arch/arm/boot/dts/am335x-evm.dts"
+# 403 "arch/arm/boot/dts/am335x-evm.dts"
 &gpmc {
  status = "okay";
  pinctrl-names = "default", "sleep";
@@ -1664,7 +1665,7 @@
   };
  };
 };
-# 508 "arch/arm/boot/dts/am335x-evm.dts" 2
+# 509 "arch/arm/boot/dts/am335x-evm.dts" 2
 
 &tps {
  vcc1-supply = <&vbat>;
@@ -1763,7 +1764,7 @@
   phy-mode = "mii";
 
 };
-# 614 "arch/arm/boot/dts/am335x-evm.dts"
+# 615 "arch/arm/boot/dts/am335x-evm.dts"
 &tscadc {
  status = "okay";
 

+ 1 - 0
board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305/arch/arm/boot/dts/am335x-evm.dts

@@ -344,6 +344,7 @@
                 compatible = "nxp,pcf85063";
                 reg = <0x51>;
         };
+
 };
 #endif
 &usb {

+ 12 - 5
board-support/u-boot-2017.01+gitAUTOINC+340fb36f04-g340fb36f04/common/autoboot.c

@@ -347,12 +347,19 @@ void autoboot_command(const char *s)
 
 	{
 		unsigned char *BufTmp;
-
-		run_command_list("nand read 0x80000000 0x09C00000 0x00600000", -1, 0);
-		BufTmp=0x80000000;
+		unsigned int i,Chk=0;
+		
+		BufTmp=0x80000000;	
+		memset(BufTmp,0,0x600000);
+		run_command_list("nand read 0x80000000 0x09000000 0x00600000", -1, 0);
 		sprintf(BufTmp,&uboot_version,strlen(uboot_version));
-		run_command_list("nand erase 0x09C00000 0x00600000", -1, 0);
-		run_command_list("nand write 0x80000000 0x09C00000 0x00600000", -1, 0);
+		for(i=0;i<(0x00600000-4);i++)
+		{
+			Chk+=*(BufTmp+i);
+		}
+		memcpy(BufTmp+(0x00600000-4),&Chk,4);
+		run_command_list("nand erase 0x09000000 0x00600000", -1, 0);
+		run_command_list("nand write 0x80000000 0x09000000 0x00600000", -1, 0);
 	}
 	
 	if (stored_bootdelay != -1 && s && !abortboot(stored_bootdelay)) {