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

+deploy/images/<machine>/mmc dir

parent c5237f99
......@@ -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 {
......
......@@ -19,4 +19,11 @@ MACHINE_DEVICETREE := "elphel393/elphel393.dts"
MACHINE_KCONFIG := "common/elphel393_defconfig_${LINUX_VERSION}"
#hostname - applied to rootfs image
hostname_pn-base-files = "elphel393"
\ No newline at end of file
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
......@@ -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
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,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
......@@ -61,4 +61,14 @@ python do_link() {
os.system("cp -rfv ${linux-elphel_gitdir}/src/* ${S}")
}
addtask do_link before do_kernel_configme after do_patch
\ No newline at end of file
addtask do_link before do_kernel_configme after do_patch
sstate_create_package_append(){
if [ ! -d ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR} ]; then
mkdir ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}
fi
if [ -f ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_KERNEL} ]; then
rm ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_KERNEL}
fi
cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin ${DEPLOY_DIR_IMAGE}/${PRODUCTION_DIR}/${PRODUCTION_KERNEL}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment