mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 17:57:01 +00:00
Add NXP arm64 LS2088ARDB platform support
This commit is contained in:
@@ -15,7 +15,7 @@ K_PATCH_SERIES=series.arm64
|
||||
|
||||
include ../../kconfig.mk
|
||||
K_CONFIG := arm64-all.config
|
||||
K_BUILD_TARGET := Image Image.gz arm64-nxp-ls2080ardb-r0.dtb
|
||||
K_BUILD_TARGET := Image Image.gz arm64-nxp-ls2080ardb-r0.dtb arm64-nxp-ls2088ardb-r1.dtb
|
||||
K_COPY_SRC := arch/arm64/boot/Image
|
||||
K_COPY_GZIP := 1
|
||||
ifndef K_COPY_DST
|
||||
|
||||
1116
packages/base/any/kernels/3.18.25/patches/add-nxp-arm64-ls2088ardb-device-tree.patch
vendored
Normal file
1116
packages/base/any/kernels/3.18.25/patches/add-nxp-arm64-ls2088ardb-device-tree.patch
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
aufs.patch
|
||||
driver-support-intel-igb-bcm54616-phy.patch
|
||||
add-kernel-patches-for-nxp-arm64-ls2080ardb-based-on.patch
|
||||
|
||||
add-nxp-arm64-ls2088ardb-device-tree.patch
|
||||
|
||||
@@ -1 +1,27 @@
|
||||
!include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=arm64-nxp-ls2080ardb ARCH=arm64 TOOLCHAIN=aarch64-linux-gnu
|
||||
variables:
|
||||
platformbase: arm64-nxp-ls2080ardb
|
||||
r0_install: /lib/platform-config/arm64-nxp-ls2080ardb-r0/onl
|
||||
r1_install: /lib/platform-config/arm64-nxp-ls2088ardb-r1/onl
|
||||
|
||||
common:
|
||||
version: 1.0.0
|
||||
arch: arm64
|
||||
copyright: Copyright 2016 NXP Semiconductor, Inc.
|
||||
maintainer: support@bigswitch.com
|
||||
changelog: Change changes changes.,
|
||||
|
||||
|
||||
packages:
|
||||
- name: onlp-arm64-nxp-ls2080ardb-r0
|
||||
summary: ONLP Package for the arm64-nxp-ls2080ardb-r0 platform.
|
||||
|
||||
files:
|
||||
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${r0_install}/lib/libonlp-${platformbase}.so
|
||||
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${r0_install}/bin/
|
||||
|
||||
- name: onlp-arm64-nxp-ls2088ardb-r1
|
||||
summary: ONLP Package for the arm64-nxp-ls2088ardb-r1 platform.
|
||||
|
||||
files:
|
||||
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${r1_install}/lib/libonlp-${platformbase}.so
|
||||
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${r1_install}/bin/
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
/************************************************************
|
||||
* <bsn.cl fy=2016 v=onl>
|
||||
*
|
||||
* Copyright 2016 NXP Semiconductor, 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 <onlp/platformi/sysi.h>
|
||||
#include <onlplib/crc32.h>
|
||||
#include "arm64_nxp_ls2080ardb_log.h"
|
||||
|
||||
const char*
|
||||
onlp_sysi_platform_get(void)
|
||||
{
|
||||
return "arm64-nxp-ls2088ardb-r1";
|
||||
}
|
||||
|
||||
int
|
||||
onlp_sysi_init(void)
|
||||
{
|
||||
return ONLP_STATUS_OK;
|
||||
}
|
||||
|
||||
int
|
||||
onlp_sysi_onie_data_get(uint8_t** data, int* size)
|
||||
{
|
||||
//TODO
|
||||
return ONLP_STATUS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
onlp_sysi_onie_data_free(uint8_t* data)
|
||||
{
|
||||
/*
|
||||
* We returned a static array in onlp_sysi_onie_data_get()
|
||||
* so no free operation is required.
|
||||
*/
|
||||
}
|
||||
|
||||
void
|
||||
onlp_sysi_platform_manage(void)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
onlp_sysi_oids_get(onlp_oid_t* table, int max)
|
||||
{
|
||||
memset(table, 0, max*sizeof(onlp_oid_t));
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
include $(ONL)/make/pkg.mk
|
||||
@@ -0,0 +1 @@
|
||||
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=arm64 VENDOR=nxp PLATFORM=arm64-nxp-ls2088ardb-r1
|
||||
@@ -0,0 +1,44 @@
|
||||
---
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# platform-config for LS2088ARDB
|
||||
#
|
||||
######################################################################
|
||||
|
||||
arm64-nxp-ls2088ardb-r1:
|
||||
flat_image_tree:
|
||||
kernel:
|
||||
<<: *arm64-kernel
|
||||
dtb:
|
||||
=: arm64-nxp-ls2088ardb-r1.dtb
|
||||
<<: *arm64-kernel-package
|
||||
itb:
|
||||
<<: *arm64-itb
|
||||
|
||||
loader:
|
||||
device: /dev/mmcblk0
|
||||
##partition: /dev/mmcblk0p1
|
||||
loadaddr: 0xa0000000
|
||||
nos_bootcmds: *mmc_bootcmds
|
||||
|
||||
environment:
|
||||
- device: /dev/mtd2
|
||||
env_offset: 0x00000000
|
||||
env_size: 0x00020000
|
||||
sector_size: 0x00020000
|
||||
|
||||
installer:
|
||||
- ONL-BOOT:
|
||||
=: 128MiB
|
||||
format: ext2
|
||||
##format: raw
|
||||
- ONL-CONFIG:
|
||||
=: 128MiB
|
||||
format: ext4
|
||||
- ONL-IMAGES:
|
||||
=: 1GiB
|
||||
format: ext4
|
||||
- ONL-DATA:
|
||||
=: 100%
|
||||
format: ext4
|
||||
@@ -0,0 +1,8 @@
|
||||
from onl.platform.base import *
|
||||
from onl.platform.nxp import *
|
||||
|
||||
class OnlPlatform_arm64_nxp_ls2088ardb_r1(OnlPlatformNxp,
|
||||
OnlPlatformPortConfig_8x1_8x10):
|
||||
PLATFORM='arm64-nxp-ls2088ardb-r1'
|
||||
MODEL="LS2088ARDB"
|
||||
SYS_OBJECT_ID=".2088"
|
||||
Reference in New Issue
Block a user