Преглед изворни кода

imgtec-ci20: genimage config/ u-boot env

Waldemar Brodkorb пре 1 месец
родитељ
комит
43d98bb6ad
2 измењених фајлова са 43 додато и 0 уклоњено
  1. 10 0
      package/u-boot/files/uboot-env.txt.ci20
  2. 33 0
      target/mips/imgtec-ci20/genimage.cfg

+ 10 - 0
package/u-boot/files/uboot-env.txt.ci20

@@ -0,0 +1,10 @@
+baudrate=115200
+board_mfr=NP
+bootargs=console=ttyS4,115200 console=tty0 mem=256M@0x0 mem=768M@0x30000000 rootwait root=/dev/mmcblk0p1 devtmpfs.mount=1
+bootcmd=run ethargs; ext4load mmc 0:1 0x88000000 /boot/kernel; bootm 0x88000000
+bootdelay=1
+ethargs=env set bootargs ${bootargs}
+loads_echo=1
+stderr=eserial0,eserial4
+stdin=eserial0,eserial4
+stdout=eserial0,eserial4

+ 33 - 0
target/mips/imgtec-ci20/genimage.cfg

@@ -0,0 +1,33 @@
+image sdcard.img {
+	hdimage {
+	}
+
+	partition uboot-spl {
+		in-partition-table = "no"
+		image = "u-boot-spl.bin"
+		offset = 512
+	}
+
+	partition uboot {
+		in-partition-table = "no"
+		image = "u-boot-dtb.img"
+		offset = 14K
+	}
+
+	partition uboot-env {
+		in-partition-table = "no"
+		image = "uboot-env.bin"
+		offset = 526K
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext"
+		offset = 2M
+	}
+
+	partition cfgfs {
+		partition-type = 0x88
+		image = "cfgfs.img"
+	}
+}