summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLu Qiuwen <[email protected]>2021-04-27 11:16:26 +0800
committerLu Qiuwen <[email protected]>2021-04-27 11:17:55 +0800
commitbb9fe9f5cc02eef0c16e3e4304a8e564e3b4b9fb (patch)
treebcd70e20c35491985ae3196aa542600b0bd23c2e
parentd800b49a2aefafa0ce7dbf048e783f9f3f57ff9a (diff)
Support for GEEDGENETWORKS TSG-9000 Series NPC.
-rwxr-xr-xmachine/geedge/geedge_tsg_9140_npb/INSTALL112
-rwxr-xr-xmachine/geedge/geedge_tsg_9140_npb/busybox/conf/config10
-rwxr-xr-xmachine/geedge/geedge_tsg_9140_npb/demo/platform.conf2
-rwxr-xr-xmachine/geedge/geedge_tsg_9140_npb/installer.conf14
-rw-r--r--machine/geedge/geedge_tsg_9140_npb/kernel/config102
-rw-r--r--machine/geedge/geedge_tsg_9140_npb/kernel/series0
-rwxr-xr-xmachine/geedge/geedge_tsg_9140_npb/machine.make54
7 files changed, 294 insertions, 0 deletions
diff --git a/machine/geedge/geedge_tsg_9140_npb/INSTALL b/machine/geedge/geedge_tsg_9140_npb/INSTALL
new file mode 100755
index 00000000..3e09c395
--- /dev/null
+++ b/machine/geedge/geedge_tsg_9140_npb/INSTALL
@@ -0,0 +1,112 @@
+================================================
+Installing ONIE on GEEDGENETWORKS TSG-9000 Series
+================================================
+
+Cross-Compiling ONIE
+====================
+
+Change directories to ``build-config`` to compile ONIE.
+
+To compile ONIE first change directories to ``build-config`` and then
+type ``"make MACHINEROOT=../machine/lenovo MACHINE=lenovo_ne10032 all"``.
+For example::
+
+ $ cd build-config
+ $ make -j4 MACHINEROOT=../machine/lenovo MACHINE=lenovo_ne10032 all
+
+When complete, the ONIE binaries are located in
+``build/images``::
+
+-rw-r--r-- 8569516 Jul 19 10:50 lenovo_ne10032-r0.initrd
+-rw-r--r-- 3479872 Jul 19 10:47 lenovo_ne10032-r0.vmlinuz
+-rw-r--r-- 29753344 Jul 19 10:51 onie-recovery-x86_64-lenovo_ne10032-r0.iso
+-rw-r--r-- 12105591 Jul 19 10:50 onie-updater-x86_64-lenovo_ne10032-r0
+
+lenovo_ne10032-r0.vmlinuz -- This is the ONIE kernel image
+
+lenovo_ne10032-r0.initrd -- This is the ONIE initramfs (filesystem)
+
+onie-updater-x86_64-lenovo_ne10032-r0 -- This is the ONIE self-update
+image. This image is a self-extracting archive used for installing ONIE.
+
+onie-recovery-x86_64-lenovo_ne10032-r0.iso -- This is the ONIE recovery
+ISO image. This image can be used to create a bootable USB memory stick
+for installing/recovery ONIE.
+
+Installing ONIE on a Blank Machine
+==================================
+
+To install ONIE on a new machine, you can use the recovery ISO image to
+create a bootable USB memory stick.
+
+Creating bootable USB stick
+---------------------------
+
+Use rufus (https://rufus.akeo.ie/) to create a bootable USB stick.
+- Under "Create a bootable disk using" load the onie-recovery image (above)
+ from your filesystem and choose "DD Image" from the drop down box
+ (load the file first, then choose DD Image) .
+- Hit Start and agree with the prompts and a boot able USB stick should be created
+- Use the usb converter cable to plug your USB stick into the NE10032
+ (the cable should have come with the switch)
+
+Booting from USB stick
+----------------------
+
+To enable booting from USB in the BIOS:
+
+1. Insert the USB stick
+
+2. Power on the switch and enter the BIOS configuration
+
+3. Set the hard drive boot order:
+
+ In "Boot Option #1" select the device that corresponds to your
+ device::
+
+ Boot-->Boot Option Priorities-->Boot Option #1
+
+ If the device name is not listed in "Boot Option #1", please
+ check the priorities in the hard drive boot order::
+
+ Boot-->Hard Drive BBS Priorities-->Boot Option #1
+
+ Taking ``UEFI: Generic Flash Disk 8.07`` as an example, the boot
+ order will look like following::
+
+ Boot Option Priorities
+ Boot Option #1 [UEFI: Generic Flash...]
+ Boot Option #2 [UEFI: TS32GMTS400 ...]
+ Boot Option #3 [P0: TS32GMTS400 ...]
+ Boot Option #4 [UEFI: Built-in EFI ...]
+
+4. Save and Exit the BIOS configuration
+
+5. After several seconds, you should see:
+
+ GNU GRUB version 2.02~beta3
+
+ +----------------------------------------------------------------------------+
+ | ONIE: Rescue |
+ |*ONIE: Embed ONIE |
+ | |
+ | |
+ | |
+ | |
+ | |
+ | |
+ | |
+ | |
+ | |
+ | |
+ +----------------------------------------------------------------------------+
+
+ Use the ^ and v keys to select which entry is highlighted.
+ Press enter to boot the selected OS, `e' to edit the commands
+ before booting or `c' for a command-line.
+
+ - Choose ``ONIE: Embed ONIE`` for creating a fresh partition layout and
+ installing ONIE automatically. All data on the mass storage will be
+ erased.
+ - Choose ``ONIE: Rescue`` for entering ONIE recovery command-line shell.
+
diff --git a/machine/geedge/geedge_tsg_9140_npb/busybox/conf/config b/machine/geedge/geedge_tsg_9140_npb/busybox/conf/config
new file mode 100755
index 00000000..b938a7f0
--- /dev/null
+++ b/machine/geedge/geedge_tsg_9140_npb/busybox/conf/config
@@ -0,0 +1,10 @@
+#CONFIG_SYS_EEPROM=y
+#CONFIG_SYS_EEPROM_DEVICE_I2C=y
+#CONFIG_SYS_EEPROM_I2C_DEVICE="/dev/i2c-0"
+#CONFIG_SYS_EEPROM_I2C_ADDR=0x56
+#CONFIG_SYS_EEPROM_I2C_MEM_ADDR_BITS=16
+#CONFIG_SYS_EEPROM_I2C_WRITE_2B_DELAY=5000
+#CONFIG_SYS_EEPROM_I2C_WRITE_3B_DELAY=5000
+#CONFIG_SYS_EEPROM_OFFSET=0
+#CONFIG_SYS_EEPROM_SIZE=2048
+#CONFIG_SYS_EEPROM_MAX_SIZE=16384
diff --git a/machine/geedge/geedge_tsg_9140_npb/demo/platform.conf b/machine/geedge/geedge_tsg_9140_npb/demo/platform.conf
new file mode 100755
index 00000000..5ae4046e
--- /dev/null
+++ b/machine/geedge/geedge_tsg_9140_npb/demo/platform.conf
@@ -0,0 +1,2 @@
+# NE10032 specific info
+
diff --git a/machine/geedge/geedge_tsg_9140_npb/installer.conf b/machine/geedge/geedge_tsg_9140_npb/installer.conf
new file mode 100755
index 00000000..f15fbb47
--- /dev/null
+++ b/machine/geedge/geedge_tsg_9140_npb/installer.conf
@@ -0,0 +1,14 @@
+# Lenovo NE10032 ONIE installer configuration
+
+description="Lenovo, NE10032"
+
+# Default ONIE block device
+install_device_platform()
+{
+ echo /dev/sda
+}
+
+# Local Variables:
+# mode: shell-script
+# eval: (sh-set-shell "/bin/sh" t nil)
+# End:
diff --git a/machine/geedge/geedge_tsg_9140_npb/kernel/config b/machine/geedge/geedge_tsg_9140_npb/kernel/config
new file mode 100644
index 00000000..c4bdf2a2
--- /dev/null
+++ b/machine/geedge/geedge_tsg_9140_npb/kernel/config
@@ -0,0 +1,102 @@
+# CONFIG_I2C_I801=y
+# CONFIG_USB_SISUSBVGA=y
+# CONFIG_USB_SISUSBVGA_CON=y
+# CONFIG_INPUT_KEYBOARD=y
+# CONFIG_KEYBOARD_ADP5588 is not set
+# CONFIG_KEYBOARD_ADP5589 is not set
+# CONFIG_KEYBOARD_ATKBD=y
+# CONFIG_KEYBOARD_QT1070 is not set
+# CONFIG_KEYBOARD_QT2160 is not set
+# CONFIG_KEYBOARD_LKKBD is not set
+# CONFIG_KEYBOARD_GPIO is not set
+# CONFIG_KEYBOARD_GPIO_POLLED is not set
+# CONFIG_KEYBOARD_TCA6416 is not set
+# CONFIG_KEYBOARD_TCA8418 is not set
+# CONFIG_KEYBOARD_MATRIX is not set
+# CONFIG_KEYBOARD_LM8333 is not set
+# CONFIG_KEYBOARD_MAX7359 is not set
+# CONFIG_KEYBOARD_MCS is not set
+# CONFIG_KEYBOARD_MPR121 is not set
+# CONFIG_KEYBOARD_NEWTON is not set
+# CONFIG_KEYBOARD_OPENCORES is not set
+# CONFIG_KEYBOARD_STOWAWAY is not set
+# CONFIG_KEYBOARD_SUNKBD is not set
+# CONFIG_KEYBOARD_XTKBD is not set
+
+#CONFIG_VGA_ARB=y
+#CONFIG_NET_VENDOR_INTEL=y
+#CONFIG_E100=y
+#CONFIG_E1000=y
+#CONFIG_E1000E=y
+#CONFIG_E1000E_HWTS=y
+#CONFIG_IGB=y
+#CONFIG_IGBVF=y
+#CONFIG_IXGB=y
+#CONFIG_IXGBE=y
+#CONFIG_IXGBEVF=y
+#CONFIG_I40E=y
+#CONFIG_I40EVF=y
+#CONFIG_FM10K=y
+
+CONFIG_MDIO=y
+CONFIG_IGBVF=y
+CONFIG_IXGB=y
+CONFIG_IXGBE=y
+CONFIG_IXGBE_HWMON=y
+CONFIG_IXGBE_DCB=y
+CONFIG_IXGBEVF=y
+CONFIG_I40E=y
+CONFIG_I40E_DCB=y
+CONFIG_I40EVF=y
+CONFIG_FM10K=y
+CONFIG_NET_VENDOR_I825XX=y
+CONFIG_INPUT_POLLDEV=y
+CONFIG_INPUT_MATRIXKMAP=y
+CONFIG_INPUT_KEYBOARD=y
+CONFIG_KEYBOARD_ADP5588=y
+CONFIG_KEYBOARD_ADP5589=y
+CONFIG_KEYBOARD_ATKBD=y
+CONFIG_KEYBOARD_QT1070=y
+CONFIG_KEYBOARD_QT2160=y
+CONFIG_KEYBOARD_LKKBD=y
+CONFIG_KEYBOARD_GPIO=y
+CONFIG_KEYBOARD_GPIO_POLLED=y
+CONFIG_KEYBOARD_TCA6416=y
+CONFIG_KEYBOARD_TCA8418=y
+CONFIG_KEYBOARD_MATRIX=y
+CONFIG_KEYBOARD_LM8333=y
+CONFIG_KEYBOARD_MAX7359=y
+CONFIG_KEYBOARD_MCS=y
+CONFIG_KEYBOARD_MPR121=y
+CONFIG_KEYBOARD_NEWTON=y
+CONFIG_KEYBOARD_OPENCORES=y
+CONFIG_KEYBOARD_STOWAWAY=y
+CONFIG_KEYBOARD_SUNKBD=y
+CONFIG_KEYBOARD_XTKBD=y
+CONFIG_VGACON_SOFT_SCROLLBACK=y
+CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
+CONFIG_USB_MON=y
+CONFIG_USB_STORAGE_REALTEK=y
+CONFIG_USB_STORAGE_DATAFAB=y
+CONFIG_USB_STORAGE_FREECOM=y
+CONFIG_USB_STORAGE_ISD200=y
+CONFIG_USB_STORAGE_USBAT=y
+CONFIG_USB_STORAGE_SDDR09=y
+CONFIG_USB_STORAGE_SDDR55=y
+CONFIG_USB_STORAGE_JUMPSHOT=y
+CONFIG_USB_STORAGE_ALAUDA=y
+CONFIG_USB_STORAGE_ONETOUCH=y
+CONFIG_USB_STORAGE_KARMA=y
+CONFIG_USB_STORAGE_CYPRESS_ATACB=y
+CONFIG_USB_STORAGE_ENE_UB6250=y
+CONFIG_USB_UAS=y
+CONFIG_SERIO_I8042=y
+CONFIG_SERIO_SERPORT=y
+CONFIG_SERIO_CT82C710=y
+CONFIG_SERIO_PCIPS2=y
+CONFIG_SERIO_LIBPS2=y
+CONFIG_SERIO_RAW=y
+CONFIG_SERIO_ALTERA_PS2=y
+CONFIG_SERIO_PS2MULT=y
+CONFIG_SERIO_ARC_PS2=y
+CONFIG_USERIO=y
diff --git a/machine/geedge/geedge_tsg_9140_npb/kernel/series b/machine/geedge/geedge_tsg_9140_npb/kernel/series
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/machine/geedge/geedge_tsg_9140_npb/kernel/series
diff --git a/machine/geedge/geedge_tsg_9140_npb/machine.make b/machine/geedge/geedge_tsg_9140_npb/machine.make
new file mode 100755
index 00000000..9c200dce
--- /dev/null
+++ b/machine/geedge/geedge_tsg_9140_npb/machine.make
@@ -0,0 +1,54 @@
+# Copyright (C) 2018 GeedgeNetworks.
+# Geedge/TSG-9140-NPC-v1
+
+ONIE_ARCH ?= x86_64
+SWITCH_ASIC_VENDOR = none
+
+VENDOR_REV ?= 0
+
+# Translate hardware revision to ONIE hardware revision
+ifeq ($(VENDOR_REV),0)
+ MACHINE_REV = 0
+else
+ $(warning Unknown VENDOR_REV '$(VENDOR_REV)' for MACHINE '$(MACHINE)')
+ $(error Unknown VENDOR_REV)
+endif
+
+# The VENDOR_VERSION string is appended to the overal ONIE version
+# string. HW vendors can use this to appended their own versioning
+# information to the base ONIE version string.
+# VENDOR_VERSION = .0.3
+
+# Vendor ID -- IANA Private Enterprise Number:
+# http://www.iana.org/assignments/enterprise-numbers
+# Lenovo
+# VENDOR_ID = 19046
+
+# Enable the i2ctools and the onie-syseeprom command for this platform
+# I2CTOOLS_ENABLE = yes
+
+# Console parameters
+CONSOLE_DEV = 0
+CONSOLE_SPEED = 115200
+# SERIAL_CONSOLE_ENABLE="no"
+
+#Enable UEFI support
+UEFI_ENABLE = yes
+
+# Set Linux kernel version
+# LINUX_VERSION = 5.4
+# LINUX_MINOR_VERSION = 114
+
+# Specify uClibc version
+# UCLIBC_VERSION = 0.9.32.1
+# GCC_VERSION = 9.3.1
+
+#Extra kernel command line
+EXTRA_CMDLINE_LINUX ?= nomodeset debug
+
+#-------------------------------------------------------------------------------
+#
+# Local Variables:
+# mode: makefile-gmake
+# End:
+