omap3, am37x, am3517, beagleboard: unify and cleanup configs
PATCH 1/5 omap3, am37x, am3517, beagleboard: unify and cleanup configs
From: Denys Dmytriyenko <[email protected]>
* Centralize common/SoC settings in omap3.inc SOC_FAMILY config.
* Set/override uncommon specifics in machine configs.
--- conf/machine/am3517-evm.conf | 22 ++++------------------ conf/machine/am37x-evm.conf | 25 ++++--------------------- conf/machine/beagleboard.conf | 18 ++---------------- conf/machine/include/omap3.inc | 23 ++++++++++++++++++++++- conf/machine/omap3evm.conf | 24 +++++------------------- 5 files changed, 37 insertions(+), 75 deletions(-)
conf/machine/am3517-evm.conf +4 -18
@@ -2,19 +2,12 @@ #@NAME: AM3517 EVM #@DESCRIPTION: Machine configuration for the TI Sitara AM3517 EVM -PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" -XSERVER = "xserver-xorg \ - xf86-input-evdev \ - xf86-input-mouse \ - xf86-input-tslib \ - xf86-video-omapfb \ - xf86-input-keyboard" - -GUI_MACHINE_CLASS = "smallscreen" - require conf/machine/include/omap3.inc -# Ship all kernel modules +# Use built-in LCD by default +XSERVER += "xf86-input-tslib" +GUI_MACHINE_CLASS = "smallscreen" +MACHINE_FEATURES += "touchscreen ethernet" IMAGE_FSTYPES += "ubi tar.gz" EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
@@ -24,16 +17,10 @@ USE_VT = "2" PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" -PREFERRED_PROVIDER_virtual/bootloader = "u-boot" - -UBOOT_ARCH = "arm" UBOOT_MACHINE = "am3517_evm_config" XLOAD_MACHINE = "am3517evm_config" -MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen ethernet sgx" - # NOTE: there are NAND and OneNAND versions of this board... - # do ubiattach /dev/ubi_ctrl -m 4 # From dmesg: # UBI: smallest flash I/O unit: 2048
@@ -48,4 +35,3 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996" # UBI: physical eraseblock size: 131072 bytes (128 KiB) # UBI: sub-page size: 512 UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" -
conf/machine/am37x-evm.conf +4 -21
@@ -2,19 +2,12 @@ #@NAME: AM37x EVM #@DESCRIPTION: Machine configuration for the TI AM37x EVM -PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" -XSERVER = "xserver-xorg \ - xf86-input-evdev \ - xf86-input-mouse \ - xf86-input-tslib \ - xf86-video-omapfb \ - xf86-input-keyboard" - -GUI_MACHINE_CLASS = "smallscreen" - require conf/machine/include/omap3.inc -# Ship all kernel modules +# Use built-in LCD by default +XSERVER += "xf86-input-tslib" +GUI_MACHINE_CLASS = "smallscreen" +MACHINE_FEATURES += "touchscreen ethernet" IMAGE_FSTYPES += "ubi tar.gz" EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
@@ -23,16 +16,7 @@ SERIAL_CONSOLE = "115200 ttyO0" PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" -PREFERRED_PROVIDER_virtual/bootloader = "u-boot" - -UBOOT_ARCH = "arm" -UBOOT_MACHINE = "omap3_evm_config" -XLOAD_MACHINE = "omap3evm_config" - -MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen sgx" - # NOTE: there are NAND and OneNAND versions of this board... - # do ubiattach /dev/ubi_ctrl -m 4 # From dmesg: # UBI: smallest flash I/O unit: 2048
@@ -47,4 +31,3 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996" # UBI: physical eraseblock size: 131072 bytes (128 KiB) # UBI: sub-page size: 512 UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" -
conf/machine/beagleboard.conf +2 -16
@@ -2,27 +2,16 @@ #@NAME: Beagleboard machine #@DESCRIPTION: Machine configuration for the http://beagleboard.org/ board -PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" -XSERVER = "xserver-xorg \ - xf86-input-evdev \ - xf86-input-mouse \ - xf86-video-omapfb \ - xf86-input-keyboard" +require conf/machine/include/omap3.inc # Only has DVI connector for external screen GUI_MACHINE_CLASS = "bigscreen" -require conf/machine/include/omap3.inc - -# SPL build -EXTRA_IMAGEDEPENDS = "u-boot" - PREFERRED_PROVIDER_virtual/kernel = "linux-mainline" IMAGE_FSTYPES += "tar.gz ubi" -EXTRA_IMAGECMD_jffs2 = "-lnp " +EXTRA_IMAGECMD_jffs2 = "-lnp" -# Guesswork SERIAL_CONSOLE = "115200 ttyO2" UBOOT_MACHINE = "omap3_beagle_config"
@@ -44,9 +33,6 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996" # UBI: sub-page size: 512 UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" -# and sdio -MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa sgx" - # For a modularized kernel we want to drag in networking, sound, rtc etc." MACHINE_EXTRA_RRECOMMENDS = "kernel-module-smsc95xx kernel-module-snd-soc-twl4030 kernel-module-rtc-twl \ kernel-module-snd-soc-omap kernel-module-snd-soc-omap-mcbsp kernel-module-snd-soc-omap3beagle"
conf/machine/include/omap3.inc +22 -1
@@ -3,15 +3,36 @@ require conf/machine/include/soc-family.inc require conf/machine/include/tune-cortexa8.inc +PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" + +# For built-in LCD, add xf86-input-tslib +XSERVER = "xserver-xorg \ + xf86-input-evdev \ + xf86-input-mouse \ + xf86-video-omapfb \ + xf86-input-keyboard" + +# Default to external video, change to smallscreen for built-in LCD +GUI_MACHINE_CLASS = "bigscreen" + # Increase this everytime you change something in the kernel MACHINE_KERNEL_PR = "r123" KERNEL_IMAGETYPE = "uImage" +# Default providers, may need to override for specific machines PREFERRED_PROVIDER_virtual/kernel = "linux-omap" PREFERRED_PROVIDER_virtual/bootloader = "u-boot" +UBOOT_ARCH = "arm" +UBOOT_MACHINE = "omap3_evm_config" +XLOAD_MACHINE = "omap3evm_config" + UBOOT_ENTRYPOINT = "0x80008000" UBOOT_LOADADDRESS = "0x80008000" -EXTRA_IMAGEDEPENDS += "u-boot x-load" +# If SPL is not used, may need to add x-load +EXTRA_IMAGEDEPENDS += "u-boot" + +# List common SoC features, may need to add touchscreen/ethernet for specific machines +MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa sgx"
conf/machine/omap3evm.conf +5 -19
@@ -2,19 +2,12 @@ #@NAME: OMAP3 EVM #@DESCRIPTION: Machine configuration for the TI OMAP3 EVM -PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" -XSERVER = "xserver-xorg \ - xf86-input-evdev \ - xf86-input-mouse \ - xf86-input-tslib \ - xf86-video-omapfb \ - xf86-input-keyboard" - -GUI_MACHINE_CLASS = "smallscreen" - require conf/machine/include/omap3.inc -# Ship all kernel modules +# Use built-in LCD by default +XSERVER += "xf86-input-tslib" +GUI_MACHINE_CLASS = "smallscreen" +MACHINE_FEATURES += "touchscreen ethernet" IMAGE_FSTYPES += "jffs2 tar.bz2" EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048"
@@ -24,16 +17,9 @@ USE_VT = "0" PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" -PREFERRED_PROVIDER_virtual/bootloader = "u-boot" - -UBOOT_ARCH = "arm" -UBOOT_MACHINE = "omap3_evm_config" -XLOAD_MACHINE = "omap3evm_config" - -MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen sgx" +EXTRA_IMAGEDEPENDS += "x-load" # NOTE: there are NAND and OneNAND versions of this board... - # do ubiattach /dev/ubi_ctrl -m 4 # From dmesg: # UBI: smallest flash I/O unit: 2048
Signature · 1 line
1.8.1.5
PATCH 2/5 ti33x, am335x, beaglebone: unify and cleanup configs
From: Denys Dmytriyenko <[email protected]>
* Centralize common/SoC settings in ti33x.inc SOC_FAMILY config.
* Set/override uncommon specifics in machine configs.
--- conf/machine/am335x-evm.conf | 17 ++++------------- conf/machine/beaglebone.conf | 14 ++------------ conf/machine/include/ti33x.inc | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 25 deletions(-)
conf/machine/am335x-evm.conf +4 -13
@@ -2,14 +2,12 @@ #@NAME: AM335x EVM #@DESCRIPTION: Machine configuration for the TI AM335x EVM -PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" -XSERVER = "xserver-xorg \ - xf86-input-evdev \ - xf86-video-fbdev" +require conf/machine/include/ti33x.inc +# Use built-in LCD by default +XSERVER += "xf86-input-tslib" GUI_MACHINE_CLASS = "smallscreen" - -require conf/machine/include/ti33x.inc +MACHINE_FEATURES += "touchscreen" IMAGE_FSTYPES += "ubi tar.gz"
@@ -37,10 +35,3 @@ MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 3836" # UBI: sub-page size: 512 # UBI: VID header offset: 2048 (aligned 2048) UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048" - -PREFERRED_PROVIDER_virtual/bootloader = "u-boot" - -UBOOT_ARCH = "arm" -UBOOT_MACHINE = "am335x_evm_config" - -MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen sgx"
conf/machine/beaglebone.conf +2 -12
@@ -2,25 +2,15 @@ #@NAME: BeagleBone machine #@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board -PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" -XSERVER = "xserver-xorg \ - xf86-input-evdev \ - xf86-video-fbdev" +require conf/machine/include/ti33x.inc # Only has DVI connector for external screen GUI_MACHINE_CLASS = "bigscreen" -require conf/machine/include/ti33x.inc -EXTRA_IMAGEDEPENDS = "u-boot" - PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp" -IMAGE_FSTYPES += "tar.bz2 " +IMAGE_FSTYPES += "tar.bz2" -# Guesswork SERIAL_CONSOLE = "115200 ttyO0" UBOOT_MACHINE = "am335x_evm_config" - -# and sdio -MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa sgx"
conf/machine/include/ti33x.inc +19 -0
@@ -3,15 +3,34 @@ require conf/machine/include/soc-family.inc require conf/machine/include/tune-cortexa8.inc +PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" + +# For built-in LCD, add xf86-input-tslib +XSERVER = "xserver-xorg \ + xf86-input-evdev \ + xf86-input-mouse \ + xf86-video-fbdev \ + xf86-input-keyboard" + +# Default to external video, change to smallscreen for built-in LCD +GUI_MACHINE_CLASS = "bigscreen" + # Increase this everytime you change something in the kernel MACHINE_KERNEL_PR = "r17" +# Default providers, may need to override for specific machines PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp" PREFERRED_PROVIDER_virtual/bootloader = "u-boot" KERNEL_IMAGETYPE = "uImage" +UBOOT_ARCH = "arm" +UBOOT_MACHINE = "am335x_evm_config" + UBOOT_ENTRYPOINT = "0x80008000" UBOOT_LOADADDRESS = "0x80008000" EXTRA_IMAGEDEPENDS += "u-boot" + +# List common SoC features, may need to add touchscreen for specific machines +MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet sgx"
Signature · 1 line
1.8.1.5
PATCH 3/5 omap4, pandaboard: unify and cleanup configs
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
* Centralize common/SoC settings in omap4.inc SOC_FAMILY config.
* Set/override uncommon specifics in machine configs.
--- conf/machine/include/omap4.inc | 2 ++ conf/machine/pandaboard.conf | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-)
conf/machine/include/omap4.inc +2 -0
@@ -17,6 +17,8 @@ MACHINE_KERNEL_PR = "r1" KERNEL_IMAGETYPE = "uImage" +UBOOT_MACHINE = "omap4_panda_config" + UBOOT_ENTRYPOINT = "0x80008000" UBOOT_LOADADDRESS = "0x80008000"
conf/machine/pandaboard.conf +1 -5
@@ -4,8 +4,6 @@ require conf/machine/include/omap4.inc -UBOOT_MACHINE = "omap4_panda_config" - GUI_MACHINE_CLASS = "bigscreen" IMAGE_FSTYPES += "tar.bz2"
@@ -13,6 +11,4 @@ IMAGE_FSTYPES += "tar.bz2" SERIAL_CONSOLE = "115200 ttyO2" MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" -MACHINE_FEATURES = "kernel26 wifi bluetooth alsa apm ext2 screen touchscreen usbgadget usbhost vfat sgx" - - +MACHINE_FEATURES = "kernel26 wifi bluetooth alsa apm ext2 screen usbgadget usbhost vfat sgx"
Signature · 1 line
1.8.1.5
PATCH 4/5 keystone: unify and cleanup configs
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
* Centralize common/SoC settings in keystone.inc SOC_FAMILY config.
* Set/override uncommon specifics in machine configs.
--- conf/machine/include/keystone.inc | 4 ++++ conf/machine/keystone-evm.conf | 13 ------------- 2 files changed, 4 insertions(+), 13 deletions(-)
conf/machine/include/keystone.inc +4 -0
@@ -11,8 +11,12 @@ MACHINE_KERNEL_PR = "r5" KERNEL_IMAGETYPE = "uImage" +UBOOT_MACHINE = "tci6638_evm_config" + UBOOT_ENTRYPOINT = "0x80008000" UBOOT_LOADADDRESS = "0x80008000" EXTRA_IMAGEDEPENDS += "u-boot" EXTRA_IMAGEDEPENDS += "boot-monitor" + +MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat"
conf/machine/keystone-evm.conf +0 -13
@@ -2,17 +2,7 @@ #@NAME: Keystone 2 machine #@DESCRIPTION: Machine configuration for the TI Keystone 2 -PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" -XSERVER = "xserver-xorg \ - xf86-input-evdev \ - xf86-video-fbdev" - -GUI_MACHINE_CLASS = "bigscreen" - require conf/machine/include/keystone.inc -#EXTRA_IMAGEDEPENDS = "u-boot" - -PREFERRED_PROVIDER_virtual/kernel = "linux-keystone" IMAGE_FSTYPES += "ubi tar.bz2 cpio"
@@ -20,9 +10,6 @@ SERIAL_CONSOLE = "115200 ttyS0" SYSVINIT_ENABLED_GETTYS = "" -UBOOT_MACHINE = "tci6638_evm_config" - -MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa" # do ubiattach /dev/ubi_ctrl -m 4 # From dmesg: # UBI: smallest flash I/O unit: 2048
Signature · 1 line
1.8.1.5
PATCH 5/5 am180x: cleanup machine config, remove common SoC settings
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- conf/machine/am180x-evm.conf | 3 --- 1 file changed, 3 deletions(-)
conf/machine/am180x-evm.conf +0 -3
@@ -11,9 +11,6 @@ UBOOT_LOADADDRESS = "0xc0008000" IMAGE_FSTYPES += "tar.gz ubi" -MACHINE_FEATURES = "kernel26 serial ethernet" - SERIAL_CONSOLE = "115200 ttyS2" PREFERRED_PROVIDER_virtual/kernel = "linux-omapl138-psp" -PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
Signature · 1 line
1.8.1.5