Commit 8a7c8e1b authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

+deploy/images/<machine>/mmc dir

parent c5237f99
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -394,23 +394,23 @@
			interrupts = < 0 18 4 >;
			ranges ;
			reg = < 0xe000e000 0x1000 >;
			xlnx,addr25 = <0x0>;
			xlnx,nor-chip-sel0 = <0x0>;
			xlnx,nor-chip-sel1 = <0x0>;
			xlnx,sram-chip-sel0 = <0x0>;
			xlnx,sram-chip-sel1 = <0x0>;
			arm,addr25 = <0x0>;
			arm,nor-chip-sel0 = <0x0>;
			arm,nor-chip-sel1 = <0x0>;
			arm,sram-chip-sel0 = <0x0>;
			arm,sram-chip-sel1 = <0x0>;
			ps7_nand_0: ps7-nand@e1000000 {
				compatible = "arm,pl353-nand-r2p1";
				reg = < 0xe1000000 0x1000000 >;
				xlnx,nand-clk-freq-hz = <0x5f5e100>;
				xlnx,nand-width = <0x8>;
				xlnx,nand-cycle-t0 = <0x4>;
                                xlnx,nand-cycle-t1 = <0x4>;
                                xlnx,nand-cycle-t2 = <0x1>;
                                xlnx,nand-cycle-t3 = <0x2>;
                                xlnx,nand-cycle-t4 = <0x2>;
                                xlnx,nand-cycle-t5 = <0x2>;
                                xlnx,nand-cycle-t6 = <0x4>;
				arm,nand-clk-freq-hz = <0x5f5e100>;
				arm,nand-width = <0x8>;
				arm,nand-cycle-t0 = <0x4>;
                                arm,nand-cycle-t1 = <0x4>;
                                arm,nand-cycle-t2 = <0x1>;
                                arm,nand-cycle-t3 = <0x2>;
                                arm,nand-cycle-t4 = <0x2>;
                                arm,nand-cycle-t5 = <0x2>;
                                arm,nand-cycle-t6 = <0x4>;
				#address-cells = <0x1>;
                                #size-cells = <0x1>;
				partition@0 {
+8 −1
Original line number Diff line number Diff line
@@ -20,3 +20,10 @@ MACHINE_KCONFIG := "common/elphel393_defconfig_${LINUX_VERSION}"

#hostname - applied to rootfs image
hostname_pn-base-files = "elphel393"

PRODUCTION_DIR        := "mmc"
PRODUCTION_BOOT       := "boot.bin"
PRODUCTION_UBOOT      := "u-boot-dtb.img"
PRODUCTION_DEVICETREE := "devicetree.dtb"
PRODUCTION_KERNEL     := "uImage"
PRODUCTION_ROOTFS     := "uramdisk.image.gz"
 No newline at end of file
+8 −1
Original line number Diff line number Diff line
@@ -24,4 +24,11 @@ MACHINE_KCONFIG := "common/microzed_defconfig_${LINUX_VERSION}"
IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb"

#hostname - applied to rootfs image
hostname_pn-base-files = "elphelzed"
 No newline at end of file
hostname_pn-base-files = "microzed"

PRODUCTION_DIR        := "mmc"
PRODUCTION_BOOT       := "boot.bin"
PRODUCTION_UBOOT      := "u-boot-dtb.img"
PRODUCTION_DEVICETREE := "devicetree.dtb"
PRODUCTION_KERNEL     := "uImage"
PRODUCTION_ROOTFS     := "uramdisk.image.gz"
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
 
do_deploy_append(){
	ln -sf ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/devicetree.dtb
	if [ ! -d ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR} ]; then
		mkdir ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}
	fi
	if [ -f ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE} ]; then
		rm ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE}
	fi
	cp ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_DEVICETREE}
}
 No newline at end of file
+10 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ IMAGE_INSTALL_append += " python-core \
                         htop \
                         i2c-tools \
                         mtd-utils \
                         mtd-utils-misc \
                         ethtool \
                         net-tools \
                         ntp \
@@ -35,3 +36,12 @@ inherit core-image

IMAGE_ROOTFS_SIZE = "131072"

#IMAGE_FSTYPES = "jffs2 ext2.gz"

create_symlinks_append(){
    if not os.path.isdir("${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}"):
        os.system("mkdir ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}")
    if os.path.isfile("${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_ROOTFS}"):
        os.system("rm ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_ROOTFS}")
    os.system("cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz.u-boot ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_ROOTFS}")
}
 No newline at end of file
Loading