Fix mounts and installer settings.

This commit is contained in:
Jeffrey Townsend
2016-04-05 16:08:55 +00:00
parent 77c4bc6e8d
commit 9c0c174eeb
3 changed files with 7 additions and 15 deletions

View File

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

View File

@@ -1,7 +1,6 @@
ip link set dev eth0 name ma1
echo "LABEL=FLASH * flash" > /etc/onl/mounts
echo "LABEL=FLASH2 * flash2" >> /etc/onl/mounts
echo "block/sda sda2 flash" > /etc/onl/mounts
echo "block/sda sda3 flash2" >> /etc/onl/mounts
echo "# MTD device name Device offset Env. size Flash sector size" > /etc/fw_env.config
echo "/dev/mtd2 0x00000000 0x00002000 0x00010000" >> /etc/fw_env.config

View File

@@ -1,15 +1,7 @@
############################################################
# <bsn.cl fy=2013 v=none>
#
# Copyright 2013, 2014 BigSwitch Networks, Inc.
#
#
#
# </bsn.cl>
############################################################
# Platform data goes here.
# The loader is installed in the fat partition of the first USB storage device
platform_bootcmd="usb start; usbiddev; fatload usb 0:1 70000000 $ONL_PLATFORM.itb; setenv bootargs console=\$consoledev,\$baudrate onl_platform=$ONL_PLATFORM; bootm 70000000#$ONL_PLATFORM"
platform_installer() {
# Standard isntallation to an available GPT partition
installer_standard_gpt_install /dev/sda
# Standard installation to usb storage
installer_standard_blockdev_install sda 128M 128M ""
}