Merge pull request #509 from jnealtowns/armhf

Support for ARMHF.
This commit is contained in:
Jeffrey Townsend
2018-12-28 09:57:03 -08:00
committed by GitHub
171 changed files with 4100 additions and 528 deletions

View File

@@ -0,0 +1 @@
include $(ONL)/make/repo.mk

View File

@@ -0,0 +1,2 @@
- u-boot-tools
- onl-kernel-4.14-lts-armhf-iproc-all-modules

View File

@@ -0,0 +1,9 @@
############################################################
#
# These packages are specific to the ONL root filesystem build.
#
############################################################
- onl-loader-fit

View File

@@ -46,12 +46,14 @@ Multistrap:
source: http://apt.opennetlinux.org/debian
suite: unstable
omitdebsrc: true
arches: amd64, arm64, armel
ONL-Local:
packages: *Packages
source: http://${APT_CACHE}apt.opennetlinux.org/debian
suite: unstable
omitdebsrc: true
arches: amd64, arm64, armel
Local-All:
source: ${ONLPM_OPTION_REPO}/${ONL_DEBIAN_SUITE}/packages/binary-all

1
builds/armhf/Makefile Normal file
View File

@@ -0,0 +1 @@
include $(ONL)/make/arch-build.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=armhf BOOTMODE=installed

View File

@@ -0,0 +1 @@
*INSTALLER

View File

@@ -0,0 +1,3 @@
BOOTMODE=INSTALLED
include $(ONL)/make/config.armhf.mk
include $(ONL)/builds/any/installer/uboot/builds/Makefile

View File

@@ -0,0 +1,3 @@
NETDEV=ma1
BOOTMODE=INSTALLED
SWI=images::latest

View File

@@ -0,0 +1,2 @@
This partition contains system configuration data that is persistant across installations and upgrades of ONL-based systems.

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=armhf BOOTMODE=swi

View File

@@ -0,0 +1 @@
*INSTALLER

View File

@@ -0,0 +1,3 @@
BOOTMODE=SWI
include $(ONL)/make/config.armhf.mk
include $(ONL)/builds/any/installer/uboot/builds/Makefile

View File

@@ -0,0 +1,3 @@
NETDEV=ma1
BOOTMODE=SWI
SWI=images::latest

View File

@@ -0,0 +1,2 @@
This partition contains system configuration data that is persistant across installations and upgrades of ONL-based systems.

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/builds/any/rootfs/APKG.yml ARCH=armhf

2
builds/armhf/rootfs/builds/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.d/
manifest.json

View File

@@ -0,0 +1,16 @@
include $(ONL)/make/config.armhf.mk
#
# Default to include all available powerpc platforms.
# You override this with you own list or yaml file.
#
ifndef PLATFORM_LIST
export PLATFORM_LIST=$(shell onlpm --list-platforms --arch armhf --csv )
endif
RFS_CONFIG := $(ONL)/builds/any/rootfs/$(ONL_DEBIAN_SUITE)/standard/standard.yml
RFS_DIR := rootfs-armhf.d
RFS_CPIO := rootfs-armhf.cpio.gz
RFS_SQUASH := rootfs-armhf.sqsh
include $(ONL)/make/rfs.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

1
builds/armhf/swi/PKG.yml Normal file
View File

@@ -0,0 +1 @@
!include $ONL/builds/any/swi/APKG.yml ARCH=armhf

1
builds/armhf/swi/builds/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
manifest.json

View File

@@ -0,0 +1,3 @@
ROOTFS_PACKAGE := onl-rootfs
include $(ONL)/make/config.armhf.mk
include $(ONL)/make/swi.mk

View File

@@ -53,6 +53,13 @@ default:
=: kernel-4.14-lts-armel-iproc-all.bin.gz
<<: *armel-iproc-4-14-kernel-package
armhf-iproc-4-14-kernel-package: &armhf-iproc-4-14-kernel-package
package: onl-kernel-4.14-lts-armhf-iproc-all:armhf
armhf-iproc-4-14-kernel: &armhf-iproc-4-14-kernel
=: kernel-4.14-lts-armhf-iproc-all.bin.gz
<<: *armhf-iproc-4-14-kernel-package
arm64-kernel-package: &arm64-kernel-package
package: onl-kernel-4.9-lts-arm64-all:arm64
@@ -85,10 +92,14 @@ default:
=: onl-loader-fit.itb
package: onl-loader-fit:powerpc
arm-itb: &arm-itb
armel-itb: &armel-itb
=: onl-loader-fit.itb
package: onl-loader-fit:armel
armhf-itb: &armhf-itb
=: onl-loader-fit.itb
package: onl-loader-fit:armhf
arm64-itb: &arm64-itb
=: onl-loader-fit.itb
package: onl-loader-fit:arm64

View File

@@ -41,11 +41,7 @@ class OnlSystemConfig(object):
self.variables = {}
self.variables['PLATFORM'] = platform.platform()
self.variables['ARCH'] = pp.machine()
self.variables['PARCH'] = dict(ppc='powerpc',
x86_64='amd64',
armv7l='armel',
aarch64='arm64')[pp.machine()]
self.variables['PARCH'] = onl.util.dpkg_architecture()
self.config = {}
for dir_ in self.SYSTEM_CONFIG_DIRS:
if os.path.isdir(dir_):

View File

@@ -15,6 +15,7 @@ import string
import argparse
import yaml
from time import sleep
import onl.util
from onl.platform.current import OnlPlatform, OnlPlatformName
from onl.mounts import OnlMountManager, OnlMountContextReadOnly, OnlMountContextReadWrite
@@ -37,7 +38,7 @@ class BaseUpgrade(object):
self.init_argparser()
self.load_config()
self.arch = pp.machine()
self.parch = dict(ppc='powerpc', x86_64='amd64', armv7l='armel', aarch64='arm64')[self.arch]
self.parch = onl.util.dpkg_architecture()
self.platform = OnlPlatform()
self.init()

View File

@@ -148,3 +148,9 @@ def wget(url, directory=None, temp_directory=None, extension=None):
return (None, filename, directory)
except subprocess.CalledProcessError, e:
return (e, None, None)
def dpkg_architecture():
try:
return subprocess.check_output(['/usr/bin/dpkg', '--print-architecture']).strip()
except (subprocess.CalledProcessError, OSError):
return None

View File

@@ -30,7 +30,7 @@ CONFIG_BUILDTIME_EXTABLE_SORT=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE="arm-linux-gnueabi-"
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION="-OpenNetworkLinux-armel"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
@@ -155,7 +155,7 @@ CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
# CONFIG_BPF_SYSCALL is not set
# CONFIG_SHMEM is not set
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_ADVISE_SYSCALLS=y
# CONFIG_USERFAULTFD is not set
@@ -2913,6 +2913,9 @@ CONFIG_PROC_PAGE_MONITOR=y
# CONFIG_PROC_CHILDREN is not set
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
# CONFIG_HUGETLB_PAGE is not set
CONFIG_CONFIGFS_FS=m
CONFIG_MISC_FILESYSTEMS=y
@@ -3225,6 +3228,7 @@ CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
#
CONFIG_KEYS=y
# CONFIG_PERSISTENT_KEYRINGS is not set
# CONFIG_BIG_KEYS is not set
# CONFIG_ENCRYPTED_KEYS is not set
# CONFIG_KEY_DH_OPERATIONS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set

View File

@@ -0,0 +1,2 @@
linux-4.14*
kernel-4.14*

View File

@@ -0,0 +1,42 @@
###########################################################
# <bsn.cl fy=2015 v=onl>
#
# Copyright 2015 Big Switch Networks, Inc.
#
# Licensed under the Eclipse Public License, Version 1.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.eclipse.org/legal/epl-v10.html
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the
# License.
#
# </bsn.cl>
############################################################
THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include $(ONL)/make/config.mk
ifndef K_TARGET_DIR
K_TARGET_DIR := $(THIS_DIR)
endif
K_PATCH_DIR := $(THIS_DIR)/patches
include ../../kconfig.mk
K_CONFIG := armhf-iproc-all.config
K_BUILD_TARGET := Image
K_COPY_SRC := arch/arm/boot/Image
K_COPY_GZIP := 1
ifndef K_COPY_DST
K_COPY_DST := kernel-4.14-lts-armhf-iproc-all.bin.gz
endif
export ARCH=arm
include $(ONL)/make/kbuild.mk

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

1
packages/base/armhf/faultd/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/faultd/APKG.yml ARCH=armhf TOOLCHAIN=arm-linux-gnueabihf

View File

@@ -0,0 +1,2 @@
faultd.mk
faultd-module.mk

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/faultd/builds/Makefile

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/fit/buildroot/APKG.yml ARCH=armhf

View File

@@ -0,0 +1,4 @@
kernel-*
*.itb
*.its
loader-initrd-armhf

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/fit/buildroot/builds/Makefile

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/fit/loader/APKG.yml ARCH=armhf

View File

@@ -0,0 +1,5 @@
kernel-*
*.itb
*.its
loader-initrd-armhf
manifest.json

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/fit/loader/builds/Makefile

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/initrds/buildroot/APKG.yml ARCH=armhf

View File

@@ -0,0 +1 @@
makedevs

View File

@@ -0,0 +1,27 @@
# -*- Makefile -*-
############################################################
# <bsn.cl fy=2013 v=onl>
#
# Copyright 2013, 2014 Big Switch Networks, Inc.
#
# Licensed under the Eclipse Public License, Version 1.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.eclipse.org/legal/epl-v10.html
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the
# License.
#
# </bsn.cl>
############################################################
#
#
############################################################
include $(ONL)/make/config.armhf.mk
export BUILDROOT_ARCH := arm
include $(ONL)/packages/base/any/initrds/buildroot/Makefile.any

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/initrds/loader/APKG.yml ARCH=armhf

View File

@@ -0,0 +1,3 @@
loader-rootfs
buildroot-makedevs
manifest.json

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/initrds/loader/builds/Makefile

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/kernels/lts/APKG.yml VERSION=4.14 ARCH=armhf CONFIG=armhf-iproc-all

View File

@@ -0,0 +1,3 @@
linux-*
kernel-*
lib/

View File

@@ -0,0 +1,5 @@
KERNEL_BUILD_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
KERNEL_ARCH := arm
KERNEL_LTS_VERSION := 4.14
KERNEL_CONFIG := armhf-iproc-all
include $(ONL)/packages/base/any/kernels/lts/builds/Makefile

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/onlp-snmpd/APKG.yml ARCH=armhf TOOLCHAIN=arm-linux-gnueabihf

View File

@@ -0,0 +1 @@
onlp-snmpd.mk

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/onlp-snmpd/builds/Makefile

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/onlp/APKG.yml ARCH=armhf TOOLCHAIN=arm-linux-gnueabihf

View File

@@ -0,0 +1 @@
libonlp-module.mk

View File

@@ -0,0 +1,3 @@
DIRECTORIES := onlp-platform-defaults onlp-platform onlp onlpd
include $(ONL)/make/subdirs.mk

View File

@@ -0,0 +1 @@
libonlp-platform-defaults-module.mk

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/onlp/builds/onlp-platform-defaults/Makefile

View File

@@ -0,0 +1 @@
libonlp-platform-module.mk

View File

@@ -0,0 +1,3 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/onlp/builds/onlp-platform/Makefile

View File

@@ -0,0 +1,3 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/onlp/builds/onlp/Makefile

View File

@@ -0,0 +1 @@
onlpd-module.mk

View File

@@ -0,0 +1,3 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/onlp/builds/onlpd/Makefile

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/oom-shim/APKG.yml ARCH=armhf TOOLCHAIN=arm-linux-gnueabihf

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armhf.mk
include $(ONL)/packages/base/any/oom-shim/builds/Makefile

View File

@@ -1,6 +1,6 @@
KERNELS := onl-kernel-4.14-lts-armel-iproc-all:armel
KMODULES := $(wildcard $(ONL)/packages/platforms/accton/armel/arm-accton-as4610/src/modules/*.c)
KINCLUDES := $(wildcard $(ONL)/packages/platforms/accton/armel/arm-accton-as4610/src/modules/*.h)
KMODULES := $(wildcard $(ONL)/packages/platforms/accton/armxx/arm-accton-as4610/modules/*.c)
KINCLUDES := $(wildcard $(ONL)/packages/platforms/accton/armxx/arm-accton-as4610/modules/*.h)
VENDOR := accton
BASENAME := arm-accton-as4610-30
ARCH := arm

View File

@@ -1,7 +1,7 @@
INCLUDES=include .
KERNEL := onl-kernel-4.14-lts-armel-iproc-all:armel
DTS_LIST := arm-accton-as4610.dts
VPATH := ../../../../../src
VPATH := $(ONL)/packages/platforms/accton/armxx/arm-accton-as4610
include $(ONL)/make/dtbs.mk
#

View File

@@ -1,254 +0,0 @@
/*
* Accton AS4610 54 Device Tree Source
*
* Copyright 2015, Cumulus Networks, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
*/
/dts-v1/;
/include/ "dts/helix4.dtsi"
/ {
model = "accton,as4610_54";
compatible = "accton,as4610_54";
aliases {
serial0 = &uart0;
i2c-controller0 = &i2c0;
i2c-controller1 = &i2c1;
};
memory {
reg = <0x61000000 0x7f000000>;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-a9";
next-level-cache = <&L2>;
reg = <0x00>;
};
cpu@1 {
device_type = "cpu";
compatible = "arm,cortex-a9";
next-level-cache = <&L2>;
reg = <0x01>;
};
};
localbus@1c000000 {
#address-cells = <0x2>;
#size-cells = <0x1>;
/* NAND Flash */
ranges = <
0x0 0x0 0x0 0x1c000000 0x00120000
0x1 0x0 0x0 0x1c120000 0x00040000
>;
flash@0,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
reg = <0x0 0x0 0x02000000>;
byteswap;
partition@0 {
/* uboot */
reg = <0x00000000 0x00100000>;
label = "uboot";
};
partition@1 {
/* uboot-env */
reg = <0x00100000 0x00100000>;
label = "uboot-env";
env_size = <0x2000>;
};
partition@2 {
/* board_eeprom */
reg = <0x00200000 0x00100000>;
label = "board_eeprom";
};
partition@3 {
/* shmoo */
reg = <0x00300000 0x00100000>;
label = "shmoo";
};
partition@4 {
/* onie */
reg = <0x00400000 0x00800000>;
label = "onie";
};
partition@5 {
/* open */
reg = <0x00c00000 0x03c00000>;
label = "open";
};
partition@6 {
/* open2 */
reg = <0x04800000 0x7d000000>;
label = "open2";
};
partition@7 {
/* diag */
reg = <0xfec00000 0x01000000>;
label = "diag";
};
};
};
i2c0: i2c@18038000 {
compatible = "iproc-smb";
reg = <0x18038000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = < 127 >;
clock-frequency = <400000>;
cpld@1,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "accton,as4610_54_cpld";
label = "cpld";
reg = <0x30>;
};
};
i2c1: i2c@1803b000 {
compatible = "iproc-smb";
reg = <0x1803b000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = < 128 >;
clock-frequency = <100000>;
mux@70 {
compatible = "ti,pca9548";
reg = <0x70>;
#address-cells = <1>;
#size-cells = <0>;
deselect-on-exit;
// SFP+ 1
i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
sfp_eeprom@50 {
compatible = "at,as4610_sfp1";
reg = <0x50>;
label = "port49";
};
};
// SFP+ 2
i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp2";
reg = <0x50>;
label = "port50";
};
};
// SFP+ 3
i2c@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <2>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp3";
reg = <0x50>;
label = "port51";
};
};
// SFP+ 4
i2c@3 {
#address-cells = <1>;
#size-cells = <0>;
reg = <3>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp4";
reg = <0x50>;
label = "port52";
};
};
// QSFP+ STK1
i2c@4 {
#address-cells = <1>;
#size-cells = <0>;
reg = <4>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp5";
reg = <0x50>;
};
};
// QSFP+ STK2
i2c@5 {
#address-cells = <1>;
#size-cells = <0>;
reg = <5>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp6";
reg = <0x50>;
};
};
// PSU EEPROM
i2c@6 {
#address-cells = <1>;
#size-cells = <0>;
reg = <6>;
psu1_eeprom@50 {
compatible = "accton,as4610_psu1";
reg = <0x50>;
};
psu1_pmbus@58 {
compatible = "3y-power,ym1921";
reg = <0x58>;
};
psu2_eeprom@51 {
compatible = "accton,as4610_psu2";
reg = <0x51>;
};
psu2_pmbus@59 {
compatible = "3y-power,ym1921";
reg = <0x59>;
};
};
i2c@7 {
#address-cells = <1>;
#size-cells = <0>;
reg = <7>;
temp@48 {
compatible = "nxp,lm77";
reg = <0x48>;
};
rtc@68 {
/* Actually M41T11 */
compatible = "dallas,ds1307";
reg = <0x68>;
};
board_eeprom@50 {
compatible = "at,24c04";
reg = <0x50>;
label = "board_eeprom";
};
};
};
};
};

View File

@@ -15,7 +15,7 @@ arm-accton-as4610-30-r0:
package: onl-platform-build-arm-accton-as4610-30-r0:armel
itb:
<<: *arm-itb
<<: *armel-itb
loader:
device: /dev/sda

View File

@@ -1,6 +1,6 @@
KERNELS := onl-kernel-4.14-lts-armel-iproc-all:armel
KMODULES := $(wildcard $(ONL)/packages/platforms/accton/armel/arm-accton-as4610/src/modules/*.c)
KINCLUDES := $(wildcard $(ONL)/packages/platforms/accton/armel/arm-accton-as4610/src/modules/*.h)
KMODULES := $(wildcard $(ONL)/packages/platforms/accton/armxx/arm-accton-as4610/modules/*.c)
KINCLUDES := $(wildcard $(ONL)/packages/platforms/accton/armxx/arm-accton-as4610/modules/*.h)
VENDOR := accton
BASENAME := arm-accton-as4610-54
ARCH := arm

View File

@@ -1,7 +1,7 @@
INCLUDES=include .
KERNEL := onl-kernel-4.14-lts-armel-iproc-all:armel
DTS_LIST := arm-accton-as4610.dts
VPATH := ../../../../../src
VPATH := $(ONL)/packages/platforms/accton/armxx/arm-accton-as4610
include $(ONL)/make/dtbs.mk
#

View File

@@ -1,254 +0,0 @@
/*
* Accton AS4610 54 Device Tree Source
*
* Copyright 2015, Cumulus Networks, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
*/
/dts-v1/;
/include/ "dts/helix4.dtsi"
/ {
model = "accton,as4610_54";
compatible = "accton,as4610_54";
aliases {
serial0 = &uart0;
i2c-controller0 = &i2c0;
i2c-controller1 = &i2c1;
};
memory {
reg = <0x61000000 0x7f000000>;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-a9";
next-level-cache = <&L2>;
reg = <0x00>;
};
cpu@1 {
device_type = "cpu";
compatible = "arm,cortex-a9";
next-level-cache = <&L2>;
reg = <0x01>;
};
};
localbus@1c000000 {
#address-cells = <0x2>;
#size-cells = <0x1>;
/* NAND Flash */
ranges = <
0x0 0x0 0x0 0x1c000000 0x00120000
0x1 0x0 0x0 0x1c120000 0x00040000
>;
flash@0,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
reg = <0x0 0x0 0x02000000>;
byteswap;
partition@0 {
/* uboot */
reg = <0x00000000 0x00100000>;
label = "uboot";
};
partition@1 {
/* uboot-env */
reg = <0x00100000 0x00100000>;
label = "uboot-env";
env_size = <0x2000>;
};
partition@2 {
/* board_eeprom */
reg = <0x00200000 0x00100000>;
label = "board_eeprom";
};
partition@3 {
/* shmoo */
reg = <0x00300000 0x00100000>;
label = "shmoo";
};
partition@4 {
/* onie */
reg = <0x00400000 0x00800000>;
label = "onie";
};
partition@5 {
/* open */
reg = <0x00c00000 0x03c00000>;
label = "open";
};
partition@6 {
/* open2 */
reg = <0x04800000 0x7d000000>;
label = "open2";
};
partition@7 {
/* diag */
reg = <0xfec00000 0x01000000>;
label = "diag";
};
};
};
i2c0: i2c@18038000 {
compatible = "iproc-smb";
reg = <0x18038000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = < 127 >;
clock-frequency = <400000>;
cpld@1,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "accton,as4610_54_cpld";
label = "cpld";
reg = <0x30>;
};
};
i2c1: i2c@1803b000 {
compatible = "iproc-smb";
reg = <0x1803b000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = < 128 >;
clock-frequency = <100000>;
mux@70 {
compatible = "ti,pca9548";
reg = <0x70>;
#address-cells = <1>;
#size-cells = <0>;
deselect-on-exit;
// SFP+ 1
i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
sfp_eeprom@50 {
compatible = "at,as4610_sfp1";
reg = <0x50>;
label = "port49";
};
};
// SFP+ 2
i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp2";
reg = <0x50>;
label = "port50";
};
};
// SFP+ 3
i2c@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <2>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp3";
reg = <0x50>;
label = "port51";
};
};
// SFP+ 4
i2c@3 {
#address-cells = <1>;
#size-cells = <0>;
reg = <3>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp4";
reg = <0x50>;
label = "port52";
};
};
// QSFP+ STK1
i2c@4 {
#address-cells = <1>;
#size-cells = <0>;
reg = <4>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp5";
reg = <0x50>;
};
};
// QSFP+ STK2
i2c@5 {
#address-cells = <1>;
#size-cells = <0>;
reg = <5>;
sfp_eeprom@50 {
compatible = "accton,as4610_sfp6";
reg = <0x50>;
};
};
// PSU EEPROM
i2c@6 {
#address-cells = <1>;
#size-cells = <0>;
reg = <6>;
psu1_eeprom@50 {
compatible = "accton,as4610_psu1";
reg = <0x50>;
};
psu1_pmbus@58 {
compatible = "3y-power,ym1921";
reg = <0x58>;
};
psu2_eeprom@51 {
compatible = "accton,as4610_psu2";
reg = <0x51>;
};
psu2_pmbus@59 {
compatible = "3y-power,ym1921";
reg = <0x59>;
};
};
i2c@7 {
#address-cells = <1>;
#size-cells = <0>;
reg = <7>;
temp@48 {
compatible = "nxp,lm77";
reg = <0x48>;
};
rtc@68 {
/* Actually M41T11 */
compatible = "dallas,ds1307";
reg = <0x68>;
};
board_eeprom@50 {
compatible = "at,24c04";
reg = <0x50>;
label = "board_eeprom";
};
};
};
};
};

View File

@@ -15,7 +15,7 @@ arm-accton-as4610-54-r0:
package: onl-platform-build-arm-accton-as4610-54-r0:armel
itb:
<<: *arm-itb
<<: *armel-itb
loader:
device: /dev/sda

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1,2 @@
*x86*64*cel*redstone*xp*.mk
onlpdump.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL_TEMPLATES/platform-modules.yml ARCH=armhf VENDOR=accton BASENAME=arm-accton-as4610-30 KERNELS="onl-kernel-4.14-lts-armhf-iproc-all:armhf"

View File

@@ -0,0 +1,7 @@
KERNELS := onl-kernel-4.14-lts-armhf-iproc-all:armhf
KMODULES := $(wildcard $(ONL)/packages/platforms/accton/armxx/arm-accton-as4610/modules/*.c)
KINCLUDES := $(wildcard $(ONL)/packages/platforms/accton/armxx/arm-accton-as4610/modules/*.h)
VENDOR := accton
BASENAME := arm-accton-as4610-30
ARCH := arm
include $(ONL)/make/kmodule.mk

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=arm-accton-as4610-30 ARCH=armhf TOOLCHAIN=arm-linux-gnueabihf

View File

@@ -0,0 +1,2 @@
FILTER=src
include $(ONL)/make/subdirs.mk

Some files were not shown because too many files have changed in this diff Show More