Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
8a7c8e1b
Commit
8a7c8e1b
authored
Feb 24, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+deploy/images/<machine>/mmc dir
parent
c5237f99
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
17 deletions
+58
-17
elphel393.dts
conf/machine/boards/elphel393/elphel393.dts
+14
-14
elphel393.conf
conf/machine/elphel393.conf
+8
-1
microzed.conf
conf/machine/microzed.conf
+8
-1
device-tree.bbappend
recipes-bsp/device-tree/device-tree.bbappend
+7
-0
core-image-elphel393.bb
recipes-core/images/core-image-elphel393.bb
+10
-0
linux-xlnx_4.0.bbappend
recipes-kernel/linux/linux-xlnx_4.0.bbappend
+11
-1
No files found.
conf/machine/boards/elphel393/elphel393.dts
View file @
8a7c8e1b
...
@@ -394,23 +394,23 @@
...
@@ -394,23 +394,23 @@
interrupts = < 0 18 4 >;
interrupts = < 0 18 4 >;
ranges ;
ranges ;
reg = < 0xe000e000 0x1000 >;
reg = < 0xe000e000 0x1000 >;
xlnx
,addr25 = <0x0>;
arm
,addr25 = <0x0>;
xlnx
,nor-chip-sel0 = <0x0>;
arm
,nor-chip-sel0 = <0x0>;
xlnx
,nor-chip-sel1 = <0x0>;
arm
,nor-chip-sel1 = <0x0>;
xlnx
,sram-chip-sel0 = <0x0>;
arm
,sram-chip-sel0 = <0x0>;
xlnx
,sram-chip-sel1 = <0x0>;
arm
,sram-chip-sel1 = <0x0>;
ps7_nand_0: ps7-nand@e1000000 {
ps7_nand_0: ps7-nand@e1000000 {
compatible = "arm,pl353-nand-r2p1";
compatible = "arm,pl353-nand-r2p1";
reg = < 0xe1000000 0x1000000 >;
reg = < 0xe1000000 0x1000000 >;
xlnx
,nand-clk-freq-hz = <0x5f5e100>;
arm
,nand-clk-freq-hz = <0x5f5e100>;
xlnx
,nand-width = <0x8>;
arm
,nand-width = <0x8>;
xlnx
,nand-cycle-t0 = <0x4>;
arm
,nand-cycle-t0 = <0x4>;
xlnx
,nand-cycle-t1 = <0x4>;
arm
,nand-cycle-t1 = <0x4>;
xlnx
,nand-cycle-t2 = <0x1>;
arm
,nand-cycle-t2 = <0x1>;
xlnx
,nand-cycle-t3 = <0x2>;
arm
,nand-cycle-t3 = <0x2>;
xlnx
,nand-cycle-t4 = <0x2>;
arm
,nand-cycle-t4 = <0x2>;
xlnx
,nand-cycle-t5 = <0x2>;
arm
,nand-cycle-t5 = <0x2>;
xlnx
,nand-cycle-t6 = <0x4>;
arm
,nand-cycle-t6 = <0x4>;
#address-cells = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x1>;
#size-cells = <0x1>;
partition@0 {
partition@0 {
...
...
conf/machine/elphel393.conf
View file @
8a7c8e1b
...
@@ -20,3 +20,10 @@ MACHINE_KCONFIG := "common/elphel393_defconfig_${LINUX_VERSION}"
...
@@ -20,3 +20,10 @@ MACHINE_KCONFIG := "common/elphel393_defconfig_${LINUX_VERSION}"
#hostname - applied to rootfs image
#hostname - applied to rootfs image
hostname_pn
-
base
-
files
=
"elphel393"
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
conf/machine/microzed.conf
View file @
8a7c8e1b
...
@@ -24,4 +24,11 @@ MACHINE_KCONFIG := "common/microzed_defconfig_${LINUX_VERSION}"
...
@@ -24,4 +24,11 @@ MACHINE_KCONFIG := "common/microzed_defconfig_${LINUX_VERSION}"
IMAGE_BOOT_FILES
+=
"boot.bin ${MACHINE}.dtb"
IMAGE_BOOT_FILES
+=
"boot.bin ${MACHINE}.dtb"
#hostname - applied to rootfs image
#hostname - applied to rootfs image
hostname_pn
-
base
-
files
=
"elphelzed"
hostname_pn
-
base
-
files
=
"microzed"
\ No newline at end of file
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
recipes-bsp/device-tree/device-tree.bbappend
View file @
8a7c8e1b
do_deploy_append(){
do_deploy_append(){
ln -sf ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/devicetree.dtb
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
recipes-core/images/core-image-elphel393.bb
View file @
8a7c8e1b
...
@@ -10,6 +10,7 @@ IMAGE_INSTALL_append += " python-core \
...
@@ -10,6 +10,7 @@ IMAGE_INSTALL_append += " python-core \
htop \
htop \
i2c-tools \
i2c-tools \
mtd-utils \
mtd-utils \
mtd-utils-misc \
ethtool \
ethtool \
net-tools \
net-tools \
ntp \
ntp \
...
@@ -35,3 +36,12 @@ inherit core-image
...
@@ -35,3 +36,12 @@ inherit core-image
IMAGE_ROOTFS_SIZE = "131072"
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
recipes-kernel/linux/linux-xlnx_4.0.bbappend
View file @
8a7c8e1b
...
@@ -62,3 +62,13 @@ python do_link() {
...
@@ -62,3 +62,13 @@ python do_link() {
}
}
addtask do_link before do_kernel_configme after do_patch
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment