Accton AS5710_54X: Support kernel module

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
x86_64 demo: export GRUB_SERIAL_COMMAND and GRUB_CMDLINE_LINUX

After the commit f0901d4, demo installer does not export
'GRUB_SERIAL_COMMAND' and 'GRUB_CMDLINE_LINUX' before calling
'50_onie_grub'. It always writes default serial configs into
grub.cfg in onie-boot. ONIE's serial console will be out of
control after installing the demo os.

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
Alpha_Networks SNX6070_486f: Add machine directory and the patches for SNX6070-486F.

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
i2ctools: Add gitignore patch

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
u-boot: Add to support building PBL image

To enable the feature, insert "UBOOT_PBL_ENABLE = yes" into
$(MACHINEDIR)/machine.make.

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
Updater can't extract correct 'ver' and 'onie_bootcmd' from u-boot.pbl

The Freescale PBL image has special format that different from
u-boot.bin.  ONIE updater cannot extract 'ver' and 'onie_bootcmd'
from the PBL image easily.

The patch will pack u-boot.bin and u-boot.pbl into the ONIE updater
if 'UBOOT_PBL_ENABLE' is turned on.  The updater will write u-boot.pbl
to MTD device and parse u-boot.bin to get 'ver' and 'onie_bootcmd'.

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
fetch-package: always verify cached packages

The fetch-package script has a bug where a corrupt package marked as
BAD on one run will be seen as OK on subsequent runs.  The problem is
on subsequent runs the script only checks for the presence of the
package, but not the checksum.

This patch makes fetch-package validate the checksum in all cases.  If
the package already exists only the download is skipped, but the
cached package is still validated.
package mirror: use http://mirror.opencompute.org/onie

Fixes #9

This patch changes the default package mirror to
http://mirror.opencompute.org/onie.

Testing Done:

From a clean build tree (the build directory was completely empty)
built the kvm_x86_64 machine and fsl_p2020rdbpca (PowerPC) machines.
apply-config-patch: revise pattern to exactly match a word

Signed-off-by: david_yang <david_yang@accton.com>
Add to support onie-syseeprom command in busybox

The patch supports r/w sys_eeprom (a.k.a. hardware information)
on either I2C or MTD device.  To enable the feature, the EEPROM
configuration have to be specified in $(MACHINEDIR)/busybox/config.
For instance:

    # Configuration for I2C EEPROM
    CONFIG_SYS_EEPROM=y
    CONFIG_SYS_EEPROM_DEVICE_I2C=y
    CONFIG_SYS_EEPROM_I2C_DEVICE="/dev/i2c-1"
    CONFIG_SYS_EEPROM_I2C_ADDR=0x57
    CONFIG_SYS_EEPROM_OFFSET=0
    CONFIG_SYS_EEPROM_SIZE=512
    CONFIG_SYS_EEPROM_MAX_SIZE=512

    # Configuration for MTD EEPROM
    CONFIG_SYS_EEPROM=y
    CONFIG_SYS_EEPROM_DEVICE_MTD=y
    CONFIG_SYS_EEPROM_MTD_DEVICE="/dev/mtd-board_eeprom"
    CONFIG_SYS_EEPROM_ERASE_SIZE=0x10000
    CONFIG_SYS_EEPROM_OFFSET=0
    CONFIG_SYS_EEPROM_SIZE=512
    CONFIG_SYS_EEPROM_MAX_SIZE=512

Both CONFIG_SYS_EEPROM_OFFSET and CONFIG_SYS_EEPROM_MAX_SIZE are
optional whose default values are 0 and 2048.

Signed-off-by: david_yang <david_yang@accton.com>
Write platform name and ONIE version to sys_eeprom during updating ONIE

Signed-off-by: david_yang <david_yang@accton.com>
i2ctools: Make onie-syseeprom be an optional feature

The feature is enabled by default.  However, it is deprecated now.
It is recommended to enable the command in busybox instead.  To
disable the feature, please insert "I2CTOOLS_SYSEEPROM = no" into
$(MACHINEDIR)/machine.make.

Signed-off-by: david_yang <david_yang@accton.com>
i2ctools: Make machine's patches be optional

If the machine's patch directory is absent, it will neither load,
apply, nor complain the patches.  However, the series must be in the
patch directory if the directory is present.

Signed-off-by: david_yang <david_yang@accton.com>
busybox: Add to support machine's patches

The machine's patches for busybox is optional.  i.e., If the
machine's patch directory is absent, it will neither load, apply,
nor complain the patches.  However, the series must be in the
patch directory if the directory is present.

Signed-off-by: david_yang <david_yang@accton.com>