set default netbox environment
This commit is contained in:
parent
c306eb66df
commit
c52db0fa6b
|
|
@ -123,6 +123,14 @@ int am335x_get_efuse_mpu_max_freq(struct ctrl_dev *cdev)
|
||||||
{
|
{
|
||||||
int sil_rev;
|
int sil_rev;
|
||||||
|
|
||||||
|
/* @@nm@@mr@@ Ignore what the fuse says.
|
||||||
|
We do not want to go higher than 600 MHZ for now.
|
||||||
|
This should actually not be needed as it should be overwritten
|
||||||
|
in am33xx_spl_board_init anyway. Just to be sure.
|
||||||
|
-> Remove it, if really not necessary.
|
||||||
|
*/
|
||||||
|
return MPUPLL_M_600;
|
||||||
|
|
||||||
sil_rev = readl(&cdev->deviceid) >> 28;
|
sil_rev = readl(&cdev->deviceid) >> 28;
|
||||||
|
|
||||||
if (sil_rev == 1)
|
if (sil_rev == 1)
|
||||||
|
|
|
||||||
|
|
@ -43,24 +43,7 @@
|
||||||
#define CONFIG_CMD_GPT
|
#define CONFIG_CMD_GPT
|
||||||
#define CONFIG_EFI_PARTITION
|
#define CONFIG_EFI_PARTITION
|
||||||
|
|
||||||
#ifdef CONFIG_NAND
|
|
||||||
#define NANDARGS \
|
|
||||||
"mtdids=" MTDIDS_DEFAULT "\0" \
|
|
||||||
"mtdparts=" MTDPARTS_DEFAULT "\0" \
|
|
||||||
"nandargs=setenv bootargs console=${console} " \
|
|
||||||
"${optargs} " \
|
|
||||||
"root=${nandroot} " \
|
|
||||||
"rootfstype=${nandrootfstype}\0" \
|
|
||||||
"nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048\0" \
|
|
||||||
"nandrootfstype=ubifs rootwait=1\0" \
|
|
||||||
"nandboot=echo Booting from nand ...; " \
|
|
||||||
"run nandargs; " \
|
|
||||||
"nand read ${fdtaddr} NAND.u-boot-spl-os; " \
|
|
||||||
"nand read ${loadaddr} NAND.kernel; " \
|
|
||||||
"bootz ${loadaddr} - ${fdtaddr}\0"
|
|
||||||
#else
|
|
||||||
#define NANDARGS ""
|
#define NANDARGS ""
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||||
|
|
||||||
|
|
@ -90,10 +73,7 @@
|
||||||
func(DHCP, dhcp, na)
|
func(DHCP, dhcp, na)
|
||||||
|
|
||||||
#define CONFIG_BOOTCOMMAND \
|
#define CONFIG_BOOTCOMMAND \
|
||||||
"run findfdt; " \
|
"run emmcboot"
|
||||||
"run init_console; " \
|
|
||||||
"run envboot; " \
|
|
||||||
"run distro_bootcmd"
|
|
||||||
|
|
||||||
#include <config_distro_bootcmd.h>
|
#include <config_distro_bootcmd.h>
|
||||||
|
|
||||||
|
|
@ -101,86 +81,24 @@
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
DEFAULT_LINUX_BOOT_ENV \
|
DEFAULT_LINUX_BOOT_ENV \
|
||||||
DEFAULT_MMC_TI_ARGS \
|
DEFAULT_MMC_TI_ARGS \
|
||||||
"boot_fdt=try\0" \
|
"bootpart=1:2\0" \
|
||||||
"bootpart=0:2\0" \
|
"bootfile=/boot/kernel.bin\0" \
|
||||||
"bootdir=/boot\0" \
|
"fdtfile=/boot/openwrt-nbhw14.dtb\0" \
|
||||||
"bootfile=zImage\0" \
|
"rootpart=/dev/mmcblk0p2\0" \
|
||||||
"fdtfile=undefined\0" \
|
|
||||||
"console=ttyO0,115200n8\0" \
|
"console=ttyO0,115200n8\0" \
|
||||||
"partitions=" \
|
"ipaddr 192.168.1.1\0" \
|
||||||
"uuid_disk=${uuid_gpt_disk};" \
|
"serverip 192.168.1.254\0" \
|
||||||
"name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \
|
|
||||||
"optargs=\0" \
|
"optargs=\0" \
|
||||||
"ramroot=/dev/ram0 rw\0" \
|
"recovery=" \
|
||||||
"ramrootfstype=ext2\0" \
|
"tftp ${loadaddr} recovery-image;" \
|
||||||
"spiroot=/dev/mtdblock4 rw\0" \
|
"tftp ${fdtaddr} recovery-dtb;" \
|
||||||
"spirootfstype=jffs2\0" \
|
"setenv bootargs console=${console} ${optargs};" \
|
||||||
"spisrcaddr=0xe0000\0" \
|
"bootz ${loadaddr} - ${fdtaddr};\0" \
|
||||||
"spiimgsize=0x362000\0" \
|
"emmcboot=" \
|
||||||
"spibusno=0\0" \
|
"load mmc ${bootpart} ${loadaddr} ${bootfile};" \
|
||||||
"spiargs=setenv bootargs console=${console} " \
|
"load mmc ${bootpart} ${fdtaddr} ${fdtfile};" \
|
||||||
"${optargs} " \
|
"setenv bootargs console=console=${console} ${optargs} root=${rootpart} rootfstype=ext4 rootwait;" \
|
||||||
"root=${spiroot} " \
|
"bootz ${loadaddr} - ${fdtaddr};\0" \
|
||||||
"rootfstype=${spirootfstype}\0" \
|
|
||||||
"ramargs=setenv bootargs console=${console} " \
|
|
||||||
"${optargs} " \
|
|
||||||
"root=${ramroot} " \
|
|
||||||
"rootfstype=${ramrootfstype}\0" \
|
|
||||||
"loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
|
|
||||||
"loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
|
|
||||||
"loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
|
|
||||||
"mmcloados=run args_mmc; " \
|
|
||||||
"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
|
|
||||||
"if run loadfdt; then " \
|
|
||||||
"bootz ${loadaddr} - ${fdtaddr}; " \
|
|
||||||
"else " \
|
|
||||||
"if test ${boot_fdt} = try; then " \
|
|
||||||
"bootz; " \
|
|
||||||
"else " \
|
|
||||||
"echo WARN: Cannot load the DT; " \
|
|
||||||
"fi; " \
|
|
||||||
"fi; " \
|
|
||||||
"else " \
|
|
||||||
"bootz; " \
|
|
||||||
"fi;\0" \
|
|
||||||
"mmcboot=mmc dev ${mmcdev}; " \
|
|
||||||
"if mmc rescan; then " \
|
|
||||||
"echo SD/MMC found on device ${mmcdev};" \
|
|
||||||
"run envboot; " \
|
|
||||||
"if run loadimage; then " \
|
|
||||||
"run mmcloados;" \
|
|
||||||
"fi;" \
|
|
||||||
"fi;\0" \
|
|
||||||
"spiboot=echo Booting from spi ...; " \
|
|
||||||
"run spiargs; " \
|
|
||||||
"sf probe ${spibusno}:0; " \
|
|
||||||
"sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \
|
|
||||||
"bootz ${loadaddr}\0" \
|
|
||||||
"ramboot=echo Booting from ramdisk ...; " \
|
|
||||||
"run ramargs; " \
|
|
||||||
"bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
|
|
||||||
"findfdt="\
|
|
||||||
"if test $board_name = A335BONE; then " \
|
|
||||||
"setenv fdtfile am335x-bone.dtb; fi; " \
|
|
||||||
"if test $board_name = A335BNLT; then " \
|
|
||||||
"setenv fdtfile am335x-boneblack.dtb; fi; " \
|
|
||||||
"if test $board_name = BBG1; then " \
|
|
||||||
"setenv fdtfile am335x-bonegreen.dtb; fi; " \
|
|
||||||
"if test $board_name = A33515BB; then " \
|
|
||||||
"setenv fdtfile am335x-evm.dtb; fi; " \
|
|
||||||
"if test $board_name = A335X_SK; then " \
|
|
||||||
"setenv fdtfile am335x-evmsk.dtb; fi; " \
|
|
||||||
"if test $board_name = A335_ICE; then " \
|
|
||||||
"setenv fdtfile am335x-icev2.dtb; fi; " \
|
|
||||||
"if test $fdtfile = undefined; then " \
|
|
||||||
"echo WARNING: Could not determine device tree to use; fi; \0" \
|
|
||||||
"init_console=" \
|
|
||||||
"if test $board_name = A335_ICE; then "\
|
|
||||||
"setenv console ttyO3,115200n8;" \
|
|
||||||
"else " \
|
|
||||||
"setenv console ttyO0,115200n8;" \
|
|
||||||
"fi;\0" \
|
|
||||||
NANDARGS \
|
|
||||||
NETARGS \
|
NETARGS \
|
||||||
DFUARGS \
|
DFUARGS \
|
||||||
BOOTENV
|
BOOTENV
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue