[OpenWrt-Devel] [RFC] [zynq] Add new target zynq

2015-12-15 Thread Jason Wu
(although this can be workaround with rdinit="/sbin/init" in bootargs but requires DTS modification). Patch is tested with Xilinx ZC702 Dev board. Signed-off-by: Jason Wu --- git.openwrt.org () openwrt.git master diff --git a/package/boot/uboot-zynq/Makefile b/package/boot/uboot-zynq/Ma

Re: [OpenWrt-Devel] [RFC] [zynq] Add new target zynq

2015-12-15 Thread Jason Wu
Hi Felix, The QSPI driver is not in Linux 4.4-rc5 either. I could add the driver from Xilinx Linux repo. This is not an issue. I will update Kernel to Linux 4.4-rc5. Best regards, Jason On 16/12/2015 6:31 AM, Felix Fietkau wrote: On 2015-12-15 13:31, Jason Wu wrote: Add support for

[OpenWrt-Devel] [RFC v2] [zynq] Add new target zynq

2016-01-18 Thread Jason Wu
Patch is tested with Xilinx ZC702 Dev board with SD boot mode. known issue: - no QSPI driver in 4.4 kernel: no QSPI flash support - USB is not working in 4.4 kernel Signed-off-by: Jason Wu --- v2: - use 4.4 kernel - use 2016.1 U-Boot - add fit.itb generation (default boot image format i

Re: [OpenWrt-Devel] [RFC v2] [zynq] Add new target zynq

2016-01-18 Thread Jason Wu
Hi Felix, Thanks for reviewing the patch. please see my reply inline. On 19/01/2016 12:09 AM, Felix Fietkau wrote: On 2016-01-18 14:36, Jason Wu wrote: Add support for Xilinx ZC702 Dev board Zynq target is using 4.4 kernel and mainline 2016.1 u-boot. I symbolic linked /init with /sbin/init

Re: [OpenWrt-Devel] [RFC v2] [zynq] Add new target zynq

2016-01-19 Thread Jason Wu
On 19/01/2016 7:13 PM, Felix Fietkau wrote: On 2016-01-19 10:05, John Crispin wrote: On 19/01/2016 09:59, Felix Fietkau wrote: If you remove the zynq.sh, the variable will always be empty. So you can just do: case "$(cat /tmp/sysinfo/board_name)" in ... esac - Felix dont we have

[OpenWrt-Devel] [PATCH] build: mkits.sh: Add ramdsik support

2016-01-19 Thread Jason Wu
mkits.ssh helper currently does not support ramdisk node support. To add ramdisk suppport, we add extra two additional options -r and -z to specify the ramdisk image and compression type. Signed-off-by: Jason Wu diff --git a/include/image.mk b/include/image.mk index 4eee4ad..84307cf 100644

[OpenWrt-Devel] [PATCH v3] [zynq] Add new target zynq

2016-02-01 Thread Jason Wu
Add support for Xilinx ZC702 Dev board Zynq target is using 4.4 kernel and mainline 2016.1 u-boot. Patch is tested with Xilinx ZC702 Dev board with SD boot mode. known issues: - no QSPI driver in 4.4 kernel: no QSPI flash support - USB is not working in 4.4 kernel Signed-off-by: Jason Wu

[OpenWrt-Devel] [PATCH v3] Add new target zynq

2016-02-08 Thread Jason Wu
Add support for Xilinx ZC702 Dev board Zynq target is using 4.4 kernel and mainline 2016.1 u-boot. Patch is tested with Xilinx ZC702 Dev board with SD boot mode. known issues: - no QSPI driver in 4.4 kernel: no QSPI flash support - USB is not working in 4.4 kernel Signed-off-by: Jason Wu

Re: [OpenWrt-Devel] [PATCH v3] Add new target zynq

2016-02-08 Thread Jason Wu
). Tested on Xilinx ZC702 SD boot mode. Best regards, jason On 8/02/2016 11:55 PM, Jason Wu wrote: Add support for Xilinx ZC702 Dev board Zynq target is using 4.4 kernel and mainline 2016.1 u-boot. Patch is tested with Xilinx ZC702 Dev board with SD boot mode. known issues: - no QSPI driver in

[OpenWrt-Devel] Question regarding call python script

2016-03-10 Thread Jason Wu
Dear all, I have a question regarding using a python script (within target/linux/zynq/images/ directory) instead of shell script to handle some scripting work. I am wondering is there any rule against this? Best regards, Jason ___ openwrt-devel mai

Re: [OpenWrt-Devel] Question regarding call python script

2016-03-10 Thread Jason Wu
Hi John, There are two scripts that i am thinking about. 1. generate fitimage.its that is able to generate mufti-configuration its file with multiple kernel/dtb/rootfs. One of the benefit of using python is that it is easier to implement from my point of view. But have to said it can done wit

Re: [OpenWrt-Devel] Question regarding call python script

2016-03-10 Thread Jason Wu
HiJo and Alexandru, Thanks for the input. Cheers, jason On 11/03/2016 7:11 AM, Alexandru Ardelean wrote: On Thu, Mar 10, 2016 at 6:38 PM, Jo-Philipp Wich mailto:j...@openwrt.org>> wrote: Hi Jason, no reason against it per se but it would introduce a new build prereq I suppose.

Re: [OpenWrt-Devel] Question regarding call python script

2016-03-11 Thread Jason Wu
On 11/03/2016 4:45 PM, John Crispin wrote: please dont top post. i see your point but there is no technical reason to use python beyond you being more skilled in python than the other languages. i personally would prefer to stick to shell as that is what the rest of the system uses. so i am b

Re: [OpenWrt-Devel] Question regarding call python script

2016-03-11 Thread Jason Wu
On 11/03/2016 8:12 PM, John Crispin wrote: On 11/03/2016 11:11, Paul Fertser wrote: Hey folks, Bastian Bittorf writes: * John Crispin [11.03.2016 06:27]: depends on what you want to do. i dont really see anything that cannot be handled using shell. what exactly do you want to write in p

Re: [OpenWrt-Devel] Question regarding call python script

2016-03-13 Thread Jason Wu
On 13/03/2016 8:41 PM, Bastian Bittorf wrote: Using n-dimensional arrays in build scripts is a rare usecase. you can easily switch to AWK if this fits more. But using Perl or Python should be avoided, because it adds more complexity to the dependencies and leads to more headache when maintainin

Re: [OpenWrt-Devel] Question regarding call python script

2016-03-14 Thread Jason Wu
On 14/03/2016 5:20 PM, John Crispin wrote: On 14/03/2016 03:55, Jason Wu wrote: On 13/03/2016 8:41 PM, Bastian Bittorf wrote: Using n-dimensional arrays in build scripts is a rare usecase. you can easily switch to AWK if this fits more. But using Perl or Python should be avoided, because

[OpenWrt-Devel] [PATCH] zynq:image: Simplify boot-img build

2016-03-19 Thread Jason Wu
by adding Device/DefaultConfig macro to define the dts and device in lower case. Signed-off-by: Jason Wu diff --git a/target/linux/zynq/image/Makefile b/target/linux/zynq/image/Makefile index 2924a5d..99293a6 100644 --- a/target/linux/zynq/image/Makefile +++ b/target/linux/zynq/image/Makefile

[OpenWrt-Devel] [PATCH] zynq: Re-implement mkits.sh and use it

2016-03-19 Thread Jason Wu
provide different features. E.g. system boot with ramdisk or sdroot or nfsroot and etc. Signed-off-by: Jason Wu diff --git a/target/linux/zynq/image/Makefile b/target/linux/zynq/image/Makefile index 99293a6..bb60222 100644 --- a/target/linux/zynq/image/Makefile +++ b/target/linux/zynq/image

[OpenWrt-Devel] [PATCH] package:boot:uboot-zynq: Update to U-Boot 2016.03 release

2016-03-20 Thread Jason Wu
Signed-off-by: Jason Wu --- git.openwrt.org () openwrt.git master diff --git a/package/boot/uboot-zynq/Makefile b/package/boot/uboot-zynq/Makefile index 7e502b6..3a17f7f 100644 --- a/package/boot/uboot-zynq/Makefile +++ b/package/boot/uboot-zynq/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR

[OpenWrt-Devel] [OpenWrt] [PATCH] zynq: Remove rdinit patch

2016-03-21 Thread Jason Wu
This is not required as long as CONFIG_TARGET_INIT_CMD is correctly configured. Signed-off-by: Jason Wu diff --git a/target/linux/zynq/patches-4.4/0001-arm-dts-zynq-zc702.dts-Set-default-rdinit-to-sbin-in.patch b/target/linux/zynq/patches-4.4/0001-arm-dts-zynq-zc702.dts-Set-default-rdinit-to

Re: [OpenWrt-Devel] [PATCH] zynq: Re-implement mkits.sh and use it

2016-03-29 Thread Jason Wu
On 18/03/2016 11:19 PM, Jason Wu wrote: The new mkits.sh is a complete new implementation to support: - multi-configuration (upto 10 with -c option). First -c used defines the default conf used. - multi-image support - multiple kernel/fdt/ramdsik image (upto 50 images) - per image

[OpenWrt-Devel] [PATCH] zynq: Remove rdinit patch

2016-04-20 Thread Jason Wu
This is not required as long as CONFIG_TARGET_INIT_CMD is correctly configured. Signed-off-by: Jason Wu diff --git a/target/linux/zynq/patches-4.4/0001-arm-dts-zynq-zc702.dts-Set-default-rdinit-to-sbin-in.patch b/target/linux/zynq/patches-4.4/0001-arm-dts-zynq-zc702.dts-Set-default-rdinit-to

[OpenWrt-Devel] [RFC v2] zynq: Re-implement mkits.sh and use it

2016-04-20 Thread Jason Wu
provide different features. E.g. system boot with ramdisk or sdroot or nfsroot and etc. Signed-off-by: Jason Wu --- v2: - Fix -D use before -c options - add additional array checking to prevent undeclared array diff --git a/target/linux/zynq/image/Makefile b/target/linux/zynq/image/Makefile

[OpenWrt-Devel] [PATCH] Zynq: Add Zedboard device support

2016-04-20 Thread Jason Wu
Tested-by: Joe Zhang Signed-off-by: Jason Wu diff --git a/package/boot/uboot-zynq/Makefile b/package/boot/uboot-zynq/Makefile index 3a17f7f..2053e8d 100644 --- a/package/boot/uboot-zynq/Makefile +++ b/package/boot/uboot-zynq/Makefile @@ -37,8 +37,13 @@ define uboot/zc706 TITLE:=U-Boot

[OpenWrt-Devel] [PATCH] zynq: Add Zybo device support

2016-04-20 Thread Jason Wu
Signed-off-by: Jason Wu diff --git a/package/boot/uboot-zynq/Makefile b/package/boot/uboot-zynq/Makefile index 2053e8d..412415b 100644 --- a/package/boot/uboot-zynq/Makefile +++ b/package/boot/uboot-zynq/Makefile @@ -41,9 +41,14 @@ define uboot/zed TITLE:=U-Boot $(PKG_VERSION) for Avnet