Skip to content

Commit

Permalink
sunxi-pack: update new uEnv.txt for bpi-bootsel to support HDMI(1080P…
Browse files Browse the repository at this point in the history
… & 720P & 480P) & LCD5 & LCD7
  • Loading branch information
BPI-SINOVOIP committed Aug 21, 2017
1 parent abd0b95 commit 6809411
Show file tree
Hide file tree
Showing 14 changed files with 686 additions and 28 deletions.
2 changes: 2 additions & 0 deletions scripts/pack_img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ function do_prepare()
# amend env copy
rm ${ROOT_DIR}/image/env-3*.cfg 2> /dev/null
cp -f ${PACK_TOPDIR}/target/allwinner/generic/configs/env-${ENV_SUFFIX}.cfg ${ROOT_DIR}/image/env.cfg 2> /dev/null
#BPI
cp -f ${PACK_TOPDIR}/target/allwinner/${PACK_BOARD}/configs/${BOARD}/env.cfg ${ROOT_DIR}/image/env.cfg 2> /dev/null
# If platform config files exist, we will cover the default files
# For example, mv out/image_linux.cfg out/image.cfg
cd ${ROOT_DIR}
Expand Down
64 changes: 64 additions & 0 deletions sunxi-pack/allwinner/azalea-m2ultra/configs/BPI_M2B_720P/env.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#kernel command arguments
enforcing=1
earlyprintk=sunxi-uart,0x01c28000
initcall_debug=0
console=ttyS0,115200 console=tty1
nor_root=/dev/mtdblock4
nand_root=/dev/nandd
#mmc_root=/dev/mmcblk0p7
mmc_root=/dev/mmcblk0p9 rootwait
#init=/sbin/init
init=/init
loglevel=8
cma=256M
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
setargs_nor=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} init=${init} partitions=${partitions} cma=${cma}
setargs_nand=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} init=${init} partitions=${partitions} cma=${cma}
setargs_mmc=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma}

#
##
bpiver=1
bpi=bananapi
board=bpi-m2u
chip=r40
service=linux
#
##
#
bpiuser=720p
#
##
#
panicarg=panic=10
scriptaddr=0x44000000
device=mmc
partition=0:1
kernel=uImage
bootenv=uEnv.txt
script=script.bin
checkemmc=fatinfo $device 2:1
#
##
#
loadbootenv=fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bpiuser}/${bootenv} || fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bootenv} || fatload $device $partition $scriptaddr ${bootenv}
#
#boot_normal=fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#boot_normal=fatload mmc 0:1 43800000 uImage;bootm 43800000
#
boot_normal=if run checkemmc; then setenv partition 2:1; fi; if run loadbootenv; then echo Loaded environment from ${bootenv}; env import -t ${scriptaddr} ${filesize}; fi; if test -n "${uenvcmd}"; then echo Running uenvcmd ...; run uenvcmd; fi; fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#
#
boot_recovery=fatload sunxi_flash extend 43800000 uImage;bootm 43800000
boot_fastboot=fastboot
#recovery key
recovery_key_value_max=0x13
recovery_key_value_min=0x10
#fastboot key
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2

#uboot system env config
bootdelay=2
#default bootcmd, will change at runtime according to key press
bootcmd=run setargs_nand boot_normal#default nand boot
64 changes: 64 additions & 0 deletions sunxi-pack/allwinner/azalea-m2ultra/configs/BPI_M2U_1080P/env.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#kernel command arguments
enforcing=1
earlyprintk=sunxi-uart,0x01c28000
initcall_debug=0
console=ttyS0,115200 console=tty1
nor_root=/dev/mtdblock4
nand_root=/dev/nandd
#mmc_root=/dev/mmcblk0p7
mmc_root=/dev/mmcblk0p9 rootwait
#init=/sbin/init
init=/init
loglevel=8
cma=256M
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
setargs_nor=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} init=${init} partitions=${partitions} cma=${cma}
setargs_nand=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} init=${init} partitions=${partitions} cma=${cma}
setargs_mmc=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma}

#
##
bpiver=1
bpi=bananapi
board=bpi-m2u
chip=r40
service=linux
#
##
#
bpiuser=1080p
#
##
#
panicarg=panic=10
scriptaddr=0x44000000
device=mmc
partition=0:1
kernel=uImage
bootenv=uEnv.txt
script=script.bin
checkemmc=fatinfo $device 2:1
#
##
#
loadbootenv=fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bpiuser}/${bootenv} || fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bootenv} || fatload $device $partition $scriptaddr ${bootenv}
#
#boot_normal=fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#boot_normal=fatload mmc 0:1 43800000 uImage;bootm 43800000
#
boot_normal=if run checkemmc; then setenv partition 2:1; fi; if run loadbootenv; then echo Loaded environment from ${bootenv}; env import -t ${scriptaddr} ${filesize}; fi; if test -n "${uenvcmd}"; then echo Running uenvcmd ...; run uenvcmd; fi; fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#
#
boot_recovery=fatload sunxi_flash extend 43800000 uImage;bootm 43800000
boot_fastboot=fastboot
#recovery key
recovery_key_value_max=0x13
recovery_key_value_min=0x10
#fastboot key
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2

#uboot system env config
bootdelay=2
#default bootcmd, will change at runtime according to key press
bootcmd=run setargs_nand boot_normal#default nand boot
64 changes: 64 additions & 0 deletions sunxi-pack/allwinner/azalea-m2ultra/configs/BPI_M2U_480P/env.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#kernel command arguments
enforcing=1
earlyprintk=sunxi-uart,0x01c28000
initcall_debug=0
console=ttyS0,115200 console=tty1
nor_root=/dev/mtdblock4
nand_root=/dev/nandd
#mmc_root=/dev/mmcblk0p7
mmc_root=/dev/mmcblk0p9 rootwait
#init=/sbin/init
init=/init
loglevel=8
cma=256M
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
setargs_nor=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} init=${init} partitions=${partitions} cma=${cma}
setargs_nand=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} init=${init} partitions=${partitions} cma=${cma}
setargs_mmc=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma}

#
##
bpiver=1
bpi=bananapi
board=bpi-m2u
chip=r40
service=linux
#
##
#
bpiuser=480p
#
##
#
panicarg=panic=10
scriptaddr=0x44000000
device=mmc
partition=0:1
kernel=uImage
bootenv=uEnv.txt
script=script.bin
checkemmc=fatinfo $device 2:1
#
##
#
loadbootenv=fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bpiuser}/${bootenv} || fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bootenv} || fatload $device $partition $scriptaddr ${bootenv}
#
#boot_normal=fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#boot_normal=fatload mmc 0:1 43800000 uImage;bootm 43800000
#
boot_normal=if run checkemmc; then setenv partition 2:1; fi; if run loadbootenv; then echo Loaded environment from ${bootenv}; env import -t ${scriptaddr} ${filesize}; fi; if test -n "${uenvcmd}"; then echo Running uenvcmd ...; run uenvcmd; fi; fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#
#
boot_recovery=fatload sunxi_flash extend 43800000 uImage;bootm 43800000
boot_fastboot=fastboot
#recovery key
recovery_key_value_max=0x13
recovery_key_value_min=0x10
#fastboot key
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2

#uboot system env config
bootdelay=2
#default bootcmd, will change at runtime according to key press
bootcmd=run setargs_nand boot_normal#default nand boot
64 changes: 64 additions & 0 deletions sunxi-pack/allwinner/azalea-m2ultra/configs/BPI_M2U_720P/env.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#kernel command arguments
enforcing=1
earlyprintk=sunxi-uart,0x01c28000
initcall_debug=0
console=ttyS0,115200 console=tty1
nor_root=/dev/mtdblock4
nand_root=/dev/nandd
#mmc_root=/dev/mmcblk0p7
mmc_root=/dev/mmcblk0p9 rootwait
#init=/sbin/init
init=/init
loglevel=8
cma=256M
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
setargs_nor=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} init=${init} partitions=${partitions} cma=${cma}
setargs_nand=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} init=${init} partitions=${partitions} cma=${cma}
setargs_mmc=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma}

#
##
bpiver=1
bpi=bananapi
board=bpi-m2u
chip=r40
service=linux
#
##
#
bpiuser=720p
#
##
#
panicarg=panic=10
scriptaddr=0x44000000
device=mmc
partition=0:1
kernel=uImage
bootenv=uEnv.txt
script=script.bin
checkemmc=fatinfo $device 2:1
#
##
#
loadbootenv=fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bpiuser}/${bootenv} || fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bootenv} || fatload $device $partition $scriptaddr ${bootenv}
#
#boot_normal=fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#boot_normal=fatload mmc 0:1 43800000 uImage;bootm 43800000
#
boot_normal=if run checkemmc; then setenv partition 2:1; fi; if run loadbootenv; then echo Loaded environment from ${bootenv}; env import -t ${scriptaddr} ${filesize}; fi; if test -n "${uenvcmd}"; then echo Running uenvcmd ...; run uenvcmd; fi; fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#
#
boot_recovery=fatload sunxi_flash extend 43800000 uImage;bootm 43800000
boot_fastboot=fastboot
#recovery key
recovery_key_value_max=0x13
recovery_key_value_min=0x10
#fastboot key
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2

#uboot system env config
bootdelay=2
#default bootcmd, will change at runtime according to key press
bootcmd=run setargs_nand boot_normal#default nand boot
64 changes: 64 additions & 0 deletions sunxi-pack/allwinner/azalea-m2ultra/configs/BPI_M2U_LCD5/env.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#kernel command arguments
enforcing=1
earlyprintk=sunxi-uart,0x01c28000
initcall_debug=0
console=ttyS0,115200 console=tty1
nor_root=/dev/mtdblock4
nand_root=/dev/nandd
#mmc_root=/dev/mmcblk0p7
mmc_root=/dev/mmcblk0p9 rootwait
#init=/sbin/init
init=/init
loglevel=8
cma=256M
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
setargs_nor=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} init=${init} partitions=${partitions} cma=${cma}
setargs_nand=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} init=${init} partitions=${partitions} cma=${cma}
setargs_mmc=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma}

#
##
bpiver=1
bpi=bananapi
board=bpi-m2u
chip=r40
service=linux
#
##
#
bpiuser=lcd5
#
##
#
panicarg=panic=10
scriptaddr=0x44000000
device=mmc
partition=0:1
kernel=uImage
bootenv=uEnv.txt
script=script.bin
checkemmc=fatinfo $device 2:1
#
##
#
loadbootenv=fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bpiuser}/${bootenv} || fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bootenv} || fatload $device $partition $scriptaddr ${bootenv}
#
#boot_normal=fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#boot_normal=fatload mmc 0:1 43800000 uImage;bootm 43800000
#
boot_normal=if run checkemmc; then setenv partition 2:1; fi; if run loadbootenv; then echo Loaded environment from ${bootenv}; env import -t ${scriptaddr} ${filesize}; fi; if test -n "${uenvcmd}"; then echo Running uenvcmd ...; run uenvcmd; fi; fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#
#
boot_recovery=fatload sunxi_flash extend 43800000 uImage;bootm 43800000
boot_fastboot=fastboot
#recovery key
recovery_key_value_max=0x13
recovery_key_value_min=0x10
#fastboot key
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2

#uboot system env config
bootdelay=2
#default bootcmd, will change at runtime according to key press
bootcmd=run setargs_nand boot_normal#default nand boot
64 changes: 64 additions & 0 deletions sunxi-pack/allwinner/azalea-m2ultra/configs/BPI_M2U_LCD7/env.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#kernel command arguments
enforcing=1
earlyprintk=sunxi-uart,0x01c28000
initcall_debug=0
console=ttyS0,115200 console=tty1
nor_root=/dev/mtdblock4
nand_root=/dev/nandd
#mmc_root=/dev/mmcblk0p7
mmc_root=/dev/mmcblk0p9 rootwait
#init=/sbin/init
init=/init
loglevel=8
cma=256M
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
setargs_nor=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} init=${init} partitions=${partitions} cma=${cma}
setargs_nand=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} init=${init} partitions=${partitions} cma=${cma}
setargs_mmc=setenv bootargs enforcing=${enforcing} earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma}

#
##
bpiver=1
bpi=bananapi
board=bpi-m2u
chip=r40
service=linux
#
##
#
bpiuser=lcd7
#
##
#
panicarg=panic=10
scriptaddr=0x44000000
device=mmc
partition=0:1
kernel=uImage
bootenv=uEnv.txt
script=script.bin
checkemmc=fatinfo $device 2:1
#
##
#
loadbootenv=fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bpiuser}/${bootenv} || fatload $device $partition $scriptaddr ${bpi}/${board}/${service}/${bootenv} || fatload $device $partition $scriptaddr ${bootenv}
#
#boot_normal=fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#boot_normal=fatload mmc 0:1 43800000 uImage;bootm 43800000
#
boot_normal=if run checkemmc; then setenv partition 2:1; fi; if run loadbootenv; then echo Loaded environment from ${bootenv}; env import -t ${scriptaddr} ${filesize}; fi; if test -n "${uenvcmd}"; then echo Running uenvcmd ...; run uenvcmd; fi; fatload sunxi_flash boot 43800000 uImage;bootm 43800000
#
#
boot_recovery=fatload sunxi_flash extend 43800000 uImage;bootm 43800000
boot_fastboot=fastboot
#recovery key
recovery_key_value_max=0x13
recovery_key_value_min=0x10
#fastboot key
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2

#uboot system env config
bootdelay=2
#default bootcmd, will change at runtime according to key press
bootcmd=run setargs_nand boot_normal#default nand boot
Loading

0 comments on commit 6809411

Please sign in to comment.