mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2026-01-09 16:51:30 +00:00
Sample templates for platform configs
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
---
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# platform-config-defaults-uboot.yml
|
||||
#
|
||||
# Configuration for u-boot systems (powerpc and arm)
|
||||
#
|
||||
######################################################################
|
||||
|
||||
default:
|
||||
|
||||
flat_image_tree:
|
||||
|
||||
##############################
|
||||
#
|
||||
# Default kernel packages provided by ONL
|
||||
#
|
||||
##############################
|
||||
|
||||
e500v-kernel-package: &e500v-kernel-package
|
||||
package: onl-kernel-3.9.6-powerpc-e500v:powerpc
|
||||
|
||||
e500v-kernel: &e500v-kernel
|
||||
=: kernel-3.9.6-powerpc-e500v.bin.gz
|
||||
<<: *e500v-kernel-package
|
||||
|
||||
e500mc-kernel-package: &e500mc-kernel-package
|
||||
package: onl-kernel-3.8.13-powerpc-e500mc:powerpc
|
||||
|
||||
e500mc-kernel:
|
||||
=: kernel-3.8.13-powerpc-e500mc.bin.gz
|
||||
<<: *e500mc-kernel-package
|
||||
|
||||
arm-iproc-kernel-package: &arm-iproc-kernel-package
|
||||
package: onl-kernel-3.2-deb7-arm-iproc-all:armel
|
||||
|
||||
arm-iproc-kernel:
|
||||
=: kernel-3.2-deb7-arm-iproc-all.bin.gz
|
||||
<<: *arm-iproc-kernel-package
|
||||
|
||||
##############################
|
||||
#
|
||||
# For your system, pick from the above list
|
||||
# to compose a 'kernel' and 'dtb' key
|
||||
#
|
||||
##############################
|
||||
|
||||
### Example, pick one kernel and one DTB
|
||||
##kernel:
|
||||
## <<: *e500v-kernel
|
||||
##dtb:
|
||||
## =: powerpc-quanta-lb9-r0.dtb
|
||||
## <<: *e500v-kernel-package
|
||||
|
||||
loader:
|
||||
|
||||
partition: /dev/sda1
|
||||
##partition: /dev/mmcblk0p1
|
||||
|
||||
### True for raw partitions
|
||||
##raw: True
|
||||
@@ -0,0 +1,106 @@
|
||||
---
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# platform-config-defaults-x86-64.yml
|
||||
#
|
||||
# Default settings for x86-64 platform-config YAML declarations
|
||||
#
|
||||
# X86 platforms assume a GPT partition table and ext4 partitions
|
||||
#
|
||||
######################################################################
|
||||
|
||||
default:
|
||||
|
||||
grub:
|
||||
|
||||
label: gpt
|
||||
# default, use a GPT (not msdos) label
|
||||
# this is mostly to *reject* invalid disk labels,
|
||||
# since we will never create our own
|
||||
|
||||
initrd-amd64: &initrd-amd64
|
||||
=: onl-loader-initrd-amd64.cpio.gz
|
||||
package: onl-loader-initrd:amd64
|
||||
|
||||
initrd:
|
||||
<<: *initrd-amd64
|
||||
|
||||
kernel-3.2: &kernel-3-2
|
||||
=: kernel-3.2-deb7-x86_64-all
|
||||
package: onl-kernel-3.2-deb7-x86-64-all:amd64
|
||||
|
||||
kernel-3.9.6: &kernel-3-9-6
|
||||
=: kernel-3.9.6-x86-64-all
|
||||
package: onl-kernel-3.9.6-x86-64-all:amd64
|
||||
|
||||
kernel-3.18: &kernel-3-18
|
||||
=: kernel-3.18-x86_64-all
|
||||
package: onl-kernel-3.18-x86-64-all:amd64
|
||||
|
||||
# pick one of the above kernels
|
||||
kernel:
|
||||
<<: *kernel-3-2
|
||||
|
||||
# GRUB command line arguments for 'serial' declaration
|
||||
# this is equivalent to, but not in the same format as,
|
||||
# the linux 'console=' arguments below
|
||||
# Default for ttyS1
|
||||
serial: >-
|
||||
--port=0x2f8
|
||||
--speed=115200
|
||||
--word=8
|
||||
--parity=no
|
||||
--stop=1
|
||||
|
||||
# supplemental kernel arguments
|
||||
# (not including kernel, initrd and ONL-specific options)
|
||||
# Default for ttyS1
|
||||
args: >-
|
||||
nopat
|
||||
console=ttyS1,115200n8
|
||||
|
||||
### Defaults for ttyS0
|
||||
##serial: >-
|
||||
## --port=0x3f8
|
||||
## --speed=115200
|
||||
## --word=8
|
||||
## --parity=no
|
||||
## --stop=1
|
||||
##args: >-
|
||||
## nopat
|
||||
## console=ttyS0,115200n8
|
||||
|
||||
##device: /dev/vda
|
||||
### install to a specific block device
|
||||
|
||||
device: ONIE-BOOT
|
||||
# install to the device that contains the ONIE-BOOT partition
|
||||
# (query using parted and/or blkid)
|
||||
|
||||
# Default partitioning scheme
|
||||
# boot, config --> 128MiB
|
||||
# images --> 1GiB
|
||||
# data --> rest of disk
|
||||
# default format (as shown) is ext4
|
||||
installer:
|
||||
- ONL-BOOT:
|
||||
=: 128MiB
|
||||
format: ext4
|
||||
- ONL-CONFIG:
|
||||
=: 128MiB
|
||||
format: ext4
|
||||
- ONL-IMAGES:
|
||||
=: 1GiB
|
||||
format: ext4
|
||||
- ONL-DATA:
|
||||
=: 100%
|
||||
format: ext4
|
||||
|
||||
### Sample partitioning scheme experiencing disk space pressure
|
||||
##installer:
|
||||
##- ONL-BOOT: 128MiB
|
||||
##- ONL-CONFIG: 128MiB
|
||||
##- ONL-IMAGES: 384MiB
|
||||
##- ONL-DATA: 100%
|
||||
|
||||
Reference in New Issue
Block a user