Re: [OpenWrt-Devel] [PATCH v5] linux: add support of Synopsys ARC770-based boards

2015-11-20 Thread Alexey Brodkin
Hi Felix, Jonas,

On Tue, 2015-11-17 at 16:47 +0300, Alexey Brodkin wrote:
> Hi Felix, Jonas,
> 
> On Fri, 2015-11-13 at 21:39 +0300, Alexey Brodkin wrote:
> > This patch introduces support of new boards with ARC cores.
> > 
> >  [1] Synopsys SDP board
> >  This is a new-generation development board from Synopsys that
> >  consists of base-board and CPU tile-board (which might have a real
> >  ASIC or FPGA with CPU image).
> >  It sports a lot of DesignWare peripherals like GMAC, USB, SPI, I2C
> >  etc and is intended to be used for early development of ARC-based
> >  products.
> > 
> >  [2] nSIM
> >  This is a virtual board implemented in Synopsys proprietary
> >  software simulator (even though available for free for open source
> >  community). This board has only serial port as a peripheral and so
> >  it is meant to be used for runtime testing which is especially
> >  useful during bring-up of new tools and platforms.
> >  What's also important ARC cores are very configurable so there're
> >  many variations of options like cache sizes, their line lengths,
> >  additional hardware blocks like multipliers, dividers etc. And this
> >  board could be used to make sure built software still runs on
> >  different HW configurations.
> > 
> > Cc: Felix Fietkau 
> > Cc: Jo-Philipp Wich 
> > Cc: Jonas Gorski 
> > Signed-off-by: Alexey Brodkin 
> > ---
> > Changes compared to v4:
> >  * Removed DTS variable from profile descriptions in
> >target/linux/arc770/generic/profiles/0x-yyy
> >  * Reworked board type detection in base-files/lib/arc.sh
> >Now looking for a full match of "compatible" property.
> > 
> > Changes compared to v3:
> >  * Accomodate new KERNEL_INITRAMFS_NAME variable for building .elfs
> >  * Add and use "model" property in device tree description
> >  * Remove extra console from kernel command line
> >  * Use new buildsystem for resulting images
> >  * Nuked ARC-specific inittab, use default one instead
> >  * Linux kernel config is passed through "make kernel_oldconfig"
> >  * eth0 is now LAN instead of WAN
> > 
> > Changes compared to v2:
> >  * Fixed copyright dates
> >  * Cleaned-up init scripts
> > 
> > Changes compared to v1:
> >  * Switched to SoC-centered design. Now instead of common ARC700
> >support we claim support of boards based on ARC770D.
> >This allows to use the same one build of kernel binary for both
> >boards.
> >  * Implemented run-time scripts that parse Device Tree compatible
> >tag and according to it do configuration of serial port and network.
> >  * Implemented ability to patch in built Linux kernel external .dtb
> >  * Linux kernel switched from 4.1 to 4.3
> >  * Rebased on current master
> 
> Any comments on this one or there's a chance it could be applied?

Ping!

-Alexey
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v5] linux: add support of Synopsys ARC770-based boards

2015-11-17 Thread Alexey Brodkin
Hi Felix, Jonas,

On Fri, 2015-11-13 at 21:39 +0300, Alexey Brodkin wrote:
> This patch introduces support of new boards with ARC cores.
> 
>  [1] Synopsys SDP board
>  This is a new-generation development board from Synopsys that
>  consists of base-board and CPU tile-board (which might have a real
>  ASIC or FPGA with CPU image).
>  It sports a lot of DesignWare peripherals like GMAC, USB, SPI, I2C
>  etc and is intended to be used for early development of ARC-based
>  products.
> 
>  [2] nSIM
>  This is a virtual board implemented in Synopsys proprietary
>  software simulator (even though available for free for open source
>  community). This board has only serial port as a peripheral and so
>  it is meant to be used for runtime testing which is especially
>  useful during bring-up of new tools and platforms.
>  What's also important ARC cores are very configurable so there're
>  many variations of options like cache sizes, their line lengths,
>  additional hardware blocks like multipliers, dividers etc. And this
>  board could be used to make sure built software still runs on
>  different HW configurations.
> 
> Cc: Felix Fietkau 
> Cc: Jo-Philipp Wich 
> Cc: Jonas Gorski 
> Signed-off-by: Alexey Brodkin 
> ---
> Changes compared to v4:
>  * Removed DTS variable from profile descriptions in
>target/linux/arc770/generic/profiles/0x-yyy
>  * Reworked board type detection in base-files/lib/arc.sh
>Now looking for a full match of "compatible" property.
> 
> Changes compared to v3:
>  * Accomodate new KERNEL_INITRAMFS_NAME variable for building .elfs
>  * Add and use "model" property in device tree description
>  * Remove extra console from kernel command line
>  * Use new buildsystem for resulting images
>  * Nuked ARC-specific inittab, use default one instead
>  * Linux kernel config is passed through "make kernel_oldconfig"
>  * eth0 is now LAN instead of WAN
> 
> Changes compared to v2:
>  * Fixed copyright dates
>  * Cleaned-up init scripts
> 
> Changes compared to v1:
>  * Switched to SoC-centered design. Now instead of common ARC700
>support we claim support of boards based on ARC770D.
>This allows to use the same one build of kernel binary for both
>boards.
>  * Implemented run-time scripts that parse Device Tree compatible
>tag and according to it do configuration of serial port and network.
>  * Implemented ability to patch in built Linux kernel external .dtb
>  * Linux kernel switched from 4.1 to 4.3
>  * Rebased on current master

Any comments on this one or there's a chance it could be applied?

-Alexey
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v5] linux: add support of Synopsys ARC770-based boards

2015-11-13 Thread Alexey Brodkin
This patch introduces support of new boards with ARC cores.

 [1] Synopsys SDP board
 This is a new-generation development board from Synopsys that
 consists of base-board and CPU tile-board (which might have a real
 ASIC or FPGA with CPU image).
 It sports a lot of DesignWare peripherals like GMAC, USB, SPI, I2C
 etc and is intended to be used for early development of ARC-based
 products.

 [2] nSIM
 This is a virtual board implemented in Synopsys proprietary
 software simulator (even though available for free for open source
 community). This board has only serial port as a peripheral and so
 it is meant to be used for runtime testing which is especially
 useful during bring-up of new tools and platforms.
 What's also important ARC cores are very configurable so there're
 many variations of options like cache sizes, their line lengths,
 additional hardware blocks like multipliers, dividers etc. And this
 board could be used to make sure built software still runs on
 different HW configurations.

Cc: Felix Fietkau 
Cc: Jo-Philipp Wich 
Cc: Jonas Gorski 
Signed-off-by: Alexey Brodkin 
---
Changes compared to v4:
 * Removed DTS variable from profile descriptions in
   target/linux/arc770/generic/profiles/0x-yyy
 * Reworked board type detection in base-files/lib/arc.sh
   Now looking for a full match of "compatible" property.

Changes compared to v3:
 * Accomodate new KERNEL_INITRAMFS_NAME variable for building .elfs
 * Add and use "model" property in device tree description
 * Remove extra console from kernel command line
 * Use new buildsystem for resulting images
 * Nuked ARC-specific inittab, use default one instead
 * Linux kernel config is passed through "make kernel_oldconfig"
 * eth0 is now LAN instead of WAN

Changes compared to v2:
 * Fixed copyright dates
 * Cleaned-up init scripts

Changes compared to v1:
 * Switched to SoC-centered design. Now instead of common ARC700
   support we claim support of boards based on ARC770D.
   This allows to use the same one build of kernel binary for both
   boards.
 * Implemented run-time scripts that parse Device Tree compatible
   tag and according to it do configuration of serial port and network.
 * Implemented ability to patch in built Linux kernel external .dtb
 * Linux kernel switched from 4.1 to 4.3
 * Rebased on current master

 include/kernel.mk  |   2 +
 target/linux/arc770/Makefile   |  26 +++
 target/linux/arc770/base-files.mk  |   3 +
 .../arc770/base-files/etc/uci-defaults/02_network  |  23 +++
 target/linux/arc770/base-files/lib/arc.sh  |  50 +
 .../base-files/lib/preinit/01_preinit_arc.sh   |   9 +
 target/linux/arc770/config-4.3 | 179 
 target/linux/arc770/dts/axc001.dtsi| 100 +
 target/linux/arc770/dts/axs101.dts |  22 ++
 target/linux/arc770/dts/axs10x_mb.dtsi | 224 +
 target/linux/arc770/dts/nsim_700.dts   |  71 +++
 target/linux/arc770/dts/skeleton.dtsi  |  37 
 target/linux/arc770/generic/profiles/00-default.mk |  16 ++
 target/linux/arc770/generic/profiles/01-minimal.mk |  15 ++
 target/linux/arc770/generic/profiles/02-axs101.mk  |  16 ++
 .../linux/arc770/generic/profiles/03-nsim_700.mk   |  15 ++
 target/linux/arc770/generic/target.mk  |   8 +
 target/linux/arc770/image/Makefile |  40 
 ...openwrt-arc-remove-dependency-on-DEVTMPFS.patch |  36 
 .../0002-openwrt-arc-add-OWRTDTB-section.patch |  91 +
 20 files changed, 983 insertions(+)
 create mode 100644 target/linux/arc770/Makefile
 create mode 100644 target/linux/arc770/base-files.mk
 create mode 100644 target/linux/arc770/base-files/etc/uci-defaults/02_network
 create mode 100644 target/linux/arc770/base-files/lib/arc.sh
 create mode 100644 target/linux/arc770/base-files/lib/preinit/01_preinit_arc.sh
 create mode 100644 target/linux/arc770/config-4.3
 create mode 100644 target/linux/arc770/dts/axc001.dtsi
 create mode 100644 target/linux/arc770/dts/axs101.dts
 create mode 100644 target/linux/arc770/dts/axs10x_mb.dtsi
 create mode 100644 target/linux/arc770/dts/nsim_700.dts
 create mode 100644 target/linux/arc770/dts/skeleton.dtsi
 create mode 100644 target/linux/arc770/generic/profiles/00-default.mk
 create mode 100644 target/linux/arc770/generic/profiles/01-minimal.mk
 create mode 100644 target/linux/arc770/generic/profiles/02-axs101.mk
 create mode 100644 target/linux/arc770/generic/profiles/03-nsim_700.mk
 create mode 100644 target/linux/arc770/generic/target.mk
 create mode 100644 target/linux/arc770/image/Makefile
 create mode 100644 
target/linux/arc770/patches-4.3/0001-openwrt-arc-remove-dependency-on-DEVTMPFS.patch
 create mode 100644