Use common files for AT91SAM9 configuration
PATCH 1/5 Use common files for AT91SAM9 configuration
From: Ulf Samuelsson <[email protected]>
--- conf/machine/at91sam9g10ek.conf | 21 +++---------- conf/machine/at91sam9g20ek.conf | 26 ++++------------ conf/machine/at91sam9g45ek.conf | 13 +++----- conf/machine/at91sam9g45ekes.conf | 31 +++++++++++--------- conf/machine/at91sam9m10ekes.conf | 22 ++++++++++++++ conf/machine/at91sam9m10g45ek.conf | 22 ++++++++++++++ conf/machine/include/AT91-LCD.inc | 15 ---------- conf/machine/include/AT91.inc | 51 ---------------------------------- conf/machine/include/at91-2.6.30.inc | 39 ++++++++++++++++++++++++++ conf/machine/include/at91-2.6.32.inc | 41 +++++++++++++++++++++++++++ conf/machine/include/at91-lcd.inc | 30 ++++++++++++++++++++ 11 files changed, 188 insertions(+), 123 deletions(-) create mode 100644 conf/machine/at91sam9m10ekes.conf create mode 100644 conf/machine/at91sam9m10g45ek.conf delete mode 100644 conf/machine/include/AT91-LCD.inc delete mode 100644 conf/machine/include/AT91.inc create mode 100644 conf/machine/include/at91-2.6.30.inc create mode 100644 conf/machine/include/at91-2.6.32.inc create mode 100644 conf/machine/include/at91-lcd.inc
conf/machine/at91sam9g10ek.conf +5 -16
@@ -2,22 +2,11 @@ #@Name: Atmel AT91SAM9G10EK Development Platform #@DESCRIPTION: Machine configuration for the at91sam9g10ek development board with a at91sam9g10 processor -TARGET_ARCH = "arm" -#PACKAGE_EXTRA_ARCHS = "armv4t armv5te" +include conf/machine/include/at91-2.6.30.inc +include conf/machine/include/at91-lcd.inc -PREFERRED_PROVIDER_virtual/kernel = "linux" -PREFERRED_PROVIDER_xserver = "xserver-kdrive" +UBOOT_MACHINE = "at91sam9g10ek_dataflash_cs0_config" +AT91BOOTSTRAP_BOARD = "at91sam9g10ek at91sam9g10df at91sam9g10nf" -KERNEL_IMAGETYPE = "uImage" +MACHINE_FEATURES += "usbhost" -#don't try to access tty1 -USE_VT = "0" - -MACHINE_FEATURES = "kernel26 alsa ext2 usbhost usbgadget screen touchscreen" - -# used by sysvinit_2 -SERIAL_CONSOLE = "115200 ttyS0" -IMAGE_FSTYPES ?= "jffs2" -EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n" - -require conf/machine/include/tune-arm926ejs.inc
conf/machine/at91sam9g20ek.conf +7 -19
@@ -2,25 +2,13 @@ #@Name: Atmel AT91SAM9G20EK Development Platform #@DESCRIPTION: Machine configuration for the at91sam9g20ek development board with a at91sam9g20 processor -TARGET_ARCH = "arm" +include conf/machine/include/at91-2.6.30.inc -PREFERRED_PROVIDER_virtual/kernel = "linux" -PREFERRED_VERSION_linux = "2.6.28" +# UBOOT_MACHINE = "at91sam9g20ek_nandflash_config" +# UBOOT_MACHINE = "at91sam9g20ek_dataflash_cs0_config" +UBOOT_MACHINE = "at91sam9g20ek_dataflash_cs1_config" +# UBOOT_MACHINE = "at91sam9g20ek_config" -KERNEL_IMAGETYPE = "uImage" -UBOOT_MACHINE = "at91sam9g20ek_config" +AT91BOOTSTRAP_BOARD = "at91sam9g20ek at91sam9g20df at91sam9g20nf" -PREFERRED_VERSION_at91bootstrap = "2.10" - -#don't try to access tty1 -USE_VT = "0" - -MACHINE_FEATURES = "kernel26 alsa ext2 usbhost usbgadget" -EXTRA_IMAGEDEPENDS += "at91bootstrap u-boot" - -# used by sysvinit_2 -SERIAL_CONSOLE = "115200 ttyS0" -IMAGE_FSTYPES ?= "jffs2" -EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n" - -require conf/machine/include/tune-arm926ejs.inc +MACHINE_FEATURES += "usbhost"
conf/machine/at91sam9g45ek.conf +5 -8
@@ -1,13 +1,12 @@ #@TYPE: Machine #@Name: Atmel AT91SAM9G45EK Development Platform -#@DESCRIPTION: Machine configuration for the at91sam9g45ek development board with a at91sam9g45-ES2 processor -# Once a at91sam9g45ek development board with a production at91sam9g45 processor -# is available we should change the recipe to use the at91sam9m10g45ek_defconfig +#@DESCRIPTION: Machine configuration for the at91sam9m10g45ek board with a at91sam9g45 processor -include conf/machine/include/AT91-LCD.inc +include conf/machine/include/at91-2.6.30.inc +include conf/machine/include/at91-lcd.inc # Has linux config file in OpenEmbedded -# +# # LINUX26_DEFCONFIG = "at91sam9g45ek_defconfig" # LINUX26_DEFCONFIG = "at91sam9m10g45ek_defconfig"
@@ -21,9 +20,7 @@ UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config" #UBOOT_MACHINE = "at91sam9g45ekes_dataflash_cs0_config" #UBOOT_MACHINE = "at91sam9g45ekes_config" -# Boot from Dataflash, so we do not have to reprogram -# At91bootstrap/U-Boot everytime we erase the NAND flash -AT91BOOTSTRAP_BOARD = "at91sam9g45df" +AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf" MACHINE_FEATURES += "usbhost"
conf/machine/at91sam9g45ekes.conf +17 -14
@@ -2,22 +2,25 @@ #@Name: Atmel AT91SAM9G45EKES Development Platform #@DESCRIPTION: Machine configuration for the at91sam9g45ekes development board with a at91sam9g45-es processor -TARGET_ARCH = "arm" -#PACKAGE_EXTRA_ARCHS = "armv4t armv5te" +include conf/machine/include/at91-2.6.30.inc +include conf/machine/include/at91-lcd.inc -PREFERRED_PROVIDER_virtual/kernel = "linux" -PREFERRED_PROVIDER_xserver = "xserver-kdrive" +# Has linux config file in OpenEmbedded +# +# LINUX26_DEFCONFIG = "at91sam9g45ek_defconfig" +# LINUX26_DEFCONFIG = "at91sam9m10g45ek_defconfig" -KERNEL_IMAGETYPE = "uImage" +# Supported u-boot machines +#UBOOT_MACHINE = "at91sam9m10g45ek_nandflash_config" +#UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_config" +UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config" +#UBOOT_MACHINE = "at91sam9m10g45ek_config" +#UBOOT_MACHINE = "at91sam9g45ekes_nandflash_config" +#UBOOT_MACHINE = "at91sam9g45ekes_dataflash_config" +#UBOOT_MACHINE = "at91sam9g45ekes_dataflash_cs0_config" +#UBOOT_MACHINE = "at91sam9g45ekes_config" -#don't try to access tty1 -USE_VT = "0" +AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf" -MACHINE_FEATURES = "kernel26 alsa ext2 usbhost usbgadget screen touchscreen" +MACHINE_FEATURES += "usbhost" -# used by sysvinit_2 -SERIAL_CONSOLE = "115200 ttyS0" -IMAGE_FSTYPES ?= "jffs2" -EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n" - -require conf/machine/include/tune-arm926ejs.inc
conf/machine/at91sam9m10ekes.conf new file +22 -0
@@ -0,0 +1,22 @@ +#@TYPE: Machine +#@Name: Atmel AT91SAM9M10EKES Development Platform +#@DESCRIPTION: Machine configuration for the at91sam9m10ekes board with a at91sam9m10-es2 processor + +include conf/machine/include/at91-2.6.30.inc +include conf/machine/include/at91-lcd.inc + +# Has linux config file in OpenEmbedded +# +# LINUX26_DEFCONFIG = "at91sam9m10ekes_defconfig" +# LINUX26_DEFCONFIG = "at91sam9m10g45ek_defconfig" + +# Supported u-boot machines +#UBOOT_MACHINE = "at91sam9m10g45ek_nandflash_config" +#UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_config" +UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config" +#UBOOT_MACHINE = "at91sam9m10g45ek_config" + +AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf" + +MACHINE_FEATURES += "usbhost" +
conf/machine/at91sam9m10g45ek.conf new file +22 -0
@@ -0,0 +1,22 @@ +#@TYPE: Machine +#@Name: Atmel AT91SAM9M10G45EK Development Platform +#@DESCRIPTION: Machine configuration for the at91sam9m10g45ek board with a at91sam9m10 processor + +include conf/machine/include/at91-2.6.30.inc +include conf/machine/include/at91-lcd.inc + +# Has linux config file in OpenEmbedded +# +# LINUX26_DEFCONFIG = "at91sam9m10ekes_defconfig" +# LINUX26_DEFCONFIG = "at91sam9m10g45ek_defconfig" + +# Supported u-boot machines +#UBOOT_MACHINE = "at91sam9m10g45ek_nandflash_config" +#UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_config" +UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config" +#UBOOT_MACHINE = "at91sam9m10g45ek_config" + +AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf" + +MACHINE_FEATURES += "usbhost" +
conf/machine/include/AT91-LCD.inc deleted +0 -15
@@ -1,15 +0,0 @@ -# Common description for Atmel ARM processors with LCD controller - -include conf/machine/include/AT91.inc - -MACHINE_FEATURES += "screen touchscreen keyboard" - -# Some options we disable for now -# MACHINE_FEATURES += "apm" -# MACHINE_FEATURES += "lcd" -# MACHINE_FEATURES += "bluetooth wifi irda phone gps" -# MACHINE_FEATURES += "mmc mmcroot fat" -# MACHINE_FEATURES += "i2c spi serial" -# MACHINE_FEATURES += "sound libogg libvorbis" - -
conf/machine/include/AT91.inc deleted +0 -51
51 lines not on this page · raw message
conf/machine/include/at91-2.6.30.inc new file +39 -0
@@ -0,0 +1,39 @@ +# Common description for Atmel ARM processors + +TARGET_ARCH = "arm" +#PACKAGE_EXTRA_ARCHS = "armv4t armv5te" +SOC_FAMILY = "at91" + +PREFERRED_PROVIDER_virtual/kernel = "linux" +PREFERRED_VERSION_linux = "2.6.30" + +PREFERRED_PROVIDER_at91bootstrap = "at91bootstrap_2.13" +PREFERRED_VERSION_at91bootstrap = "2.13" + +PREFERRED_PROVIDER_u-boot = "u-boot_2009.11" +PREFERRED_VERSION_u-boot = "2009.11" + +KERNEL_IMAGETYPE = "uImage" + +#don't try to access tty1 +USE_VT = "0" + +MACHINE_FEATURES = " kernel26 alsa ext2 usbgadget vfat uboot " +EXTRA_IMAGEDEPENDS += "u-boot" +EXTRA_IMAGEDEPENDS += "at91bootstrap" + +MACHINE_EXTRA_RDEPENDS += " kernel-modules " +#MACHINE_EXTRA_RDEPENDS += " atmel-fixes " + +# used by sysvinit_2 +SERIAL_CONSOLE = "115200 ttyS0" +IMAGE_FSTYPES ?= "jffs2" +EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n" +# +# Uncomment or add kernel modules that should be autoloaded +#module_autoload_g_file_storage = ${@base_contains('MACHINE_FEATURES', 'usbgadget', 'g_file_storage', '',d)} +#module_autoload_g_ether = ${@base_contains('MACHINE_FEATURES', 'usbgadget', 'g_ether', '',d)} +module_autoload_g_serial = ${@base_contains('MACHINE_FEATURES', 'usbgadget', 'g_serial', '',d)} + +require conf/machine/include/tune-arm926ejs.inc +
conf/machine/include/at91-2.6.32.inc new file +41 -0
41 lines not on this page · raw message
conf/machine/include/at91-lcd.inc new file +30 -0
@@ -0,0 +1,30 @@ +# Common description for Atmel ARM processors with LCD controller + +#PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive" +#PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive-1300" +#PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" +#PREFERRED_PROVIDER_xserver = "xserver-xorg" +PREFERRED_PROVIDER_xserver = "xserver-kdrive" +#XSERVER = "xserver-kdrive-fbdev" +#XSERVER = "xserver-xorg \ +# xf86-input-evdev \ +# xf86-input-mouse \ +# xf86-input-tslib \ +# xf86-video-fbdev \ +# xf86-input-keyboard" + +# Angstrom defines: +#PREFERRED_VERSION_xserver-kdrive = "1.4.0.90" +#PREFERRED_VERSION_xserver-kdrive = "1.6.1" + +MACHINE_FEATURES += "screen touchscreen keyboard" + +# Some options we disable for now +# MACHINE_FEATURES += "apm" +# MACHINE_FEATURES += "lcd" +# MACHINE_FEATURES += "bluetooth wifi irda phone gps" +# MACHINE_FEATURES += "mmc mmcroot fat" +# MACHINE_FEATURES += "i2c spi serial" +# MACHINE_FEATURES += "sound libogg libvorbis" + +
Signature · 1 line
1.6.3.3
PATCH 2/5 Add AT91SAM9 linux-2.6.30 from www.linux4sam.org
From: Ulf Samuelsson <[email protected]>
--- ....30-001-configurable-partition-size.patch.patch | 362 +++++ .../at91/linux-2.6.30-002-mach-at91-Kconfig.patch | 196 +++ .../at91/linux-2.6.30-003-sam9m10g45ek.patch | 29 + recipes/linux/linux-2.6.30/at91sam9260ek/defconfig | 1492 ++++++++++++++++++ recipes/linux/linux-2.6.30/at91sam9261ek/defconfig | 1531 ++++++++++++++++++ recipes/linux/linux-2.6.30/at91sam9g10ek/defconfig | 1528 ++++++++++++++++++ recipes/linux/linux-2.6.30/at91sam9g20ek/defconfig | 1563 ++++++++++++++++++ .../linux-2.6.30/at91sam9g20ek_2mmc/defconfig | 1561 ++++++++++++++++++ recipes/linux/linux-2.6.30/at91sam9g45ek/defconfig | 1651 ++++++++++++++++++++ .../linux/linux-2.6.30/at91sam9g45ekes/defconfig | 1618 +++++++++++++++++++ .../linux/linux-2.6.30/at91sam9m10ekes/defconfig | 1617 +++++++++++++++++++ recipes/linux/linux-2.6.30/at91sam9rlek/defconfig | 1378 ++++++++++++++++ recipes/linux/linux-2.6.30/at91sam9xeek/defconfig | 1492 ++++++++++++++++++ recipes/linux/linux_2.6.30.bb | 25 +- 14 files changed, 16039 insertions(+), 4 deletions(-) create mode 100644 recipes/linux/linux-2.6.30/at91/linux-2.6.30-001-configurable-partition-size.patch.patch create mode 100644 recipes/linux/linux-2.6.30/at91/linux-2.6.30-002-mach-at91-Kconfig.patch create mode 100644 recipes/linux/linux-2.6.30/at91/linux-2.6.30-003-sam9m10g45ek.patch create mode 100644 recipes/linux/linux-2.6.30/at91sam9260ek/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9261ek/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9g10ek/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9g20ek/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9g20ek_2mmc/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9g45ek/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9g45ekes/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9m10ekes/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9rlek/defconfig create mode 100644 recipes/linux/linux-2.6.30/at91sam9xeek/defconfig
recipes/linux/linux-2.6.30/at91/linux-2.6.30-001-configurable-partition-size.patch.patch new file +362 -0
@@ -0,0 +1,362 @@ +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-at572d940hf_ek.c linux-2.6.30/arch/arm/mach-at91/board-at572d940hf_ek.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-at572d940hf_ek.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-at572d940hf_ek.c 2010-03-14 11:28:55.000000000 +0100 +@@ -114,10 +114,20 @@ + */ + static struct mtd_partition __initdata eb_nand_partition[] = { + { +- .name = "Partition 1", +- .offset = 0, ++ .name = "Bootstrap", ++ .offset = 0, ++ .size = 4 * SZ_1M, ++ }, ++ { ++ .name = "Root File System", ++ .offset = MTDPART_OFS_NXTBLK, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, ++ }, ++ { ++ .name = "Data", ++ .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, +- } ++ }, + }; + + static struct mtd_partition * __init nand_partitions(int size, int *num_partitions) +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-cap9adk.c linux-2.6.30/arch/arm/mach-at91/board-cap9adk.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-cap9adk.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-cap9adk.c 2010-03-14 11:28:36.000000000 +0100 +@@ -167,8 +167,18 @@ + */ + static struct mtd_partition __initdata cap9adk_nand_partitions[] = { + { +- .name = "NAND partition", +- .offset = 0, ++ .name = "Bootstrap", ++ .offset = 0, ++ .size = 4 * SZ_1M, ++ }, ++ { ++ .name = "Root File System", ++ .offset = MTDPART_OFS_NXTBLK, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, ++ }, ++ { ++ .name = "Data", ++ .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, + }; +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-dk.c linux-2.6.30/arch/arm/mach-at91/board-dk.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-dk.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-dk.c 2010-03-14 11:28:43.000000000 +0100 +@@ -314,8 +314,18 @@ + + static struct mtd_partition __initdata dk_nand_partition[] = { + { +- .name = "NAND Partition 1", +- .offset = 0, ++ .name = "Bootstrap", ++ .offset = 0, ++ .size = 4 * SZ_1M, ++ }, ++ { ++ .name = "Root File System", ++ .offset = MTDPART_OFS_NXTBLK, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, ++ }, ++ { ++ .name = "Data", ++ .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, + }; +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9260ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9260ek.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9260ek.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-sam9260ek.c 2010-03-14 11:26:57.000000000 +0100 +@@ -177,12 +177,17 @@ + */ + static struct mtd_partition __initdata ek_nand_partition[] = { + { +- .name = "Partition 1", +- .offset = 0, +- .size = SZ_256K, ++ .name = "Bootstrap", ++ .offset = 0, ++ .size = 4 * SZ_1M, + }, + { +- .name = "Partition 2", ++ .name = "Root File System", ++ .offset = MTDPART_OFS_NXTBLK, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, ++ }, ++ { ++ .name = "Data", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9261ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9261ek.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9261ek.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-sam9261ek.c 2010-03-14 11:26:57.000000000 +0100 +@@ -184,12 +184,17 @@ + */ + static struct mtd_partition __initdata ek_nand_partition[] = { + { +- .name = "Partition 1", +- .offset = 0, +- .size = SZ_256K, ++ .name = "Bootstrap", ++ .offset = 0, ++ .size = 4 * SZ_1M, + }, + { +- .name = "Partition 2", ++ .name = "Root File System", ++ .offset = MTDPART_OFS_NXTBLK, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, ++ }, ++ { ++ .name = "Data", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9263ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9263ek.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9263ek.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-sam9263ek.c 2010-03-14 11:26:57.000000000 +0100 +@@ -174,12 +174,17 @@ + */ + static struct mtd_partition __initdata ek_nand_partition[] = { + { +- .name = "Partition 1", +- .offset = 0, +- .size = SZ_64M, ++ .name = "Bootstrap", ++ .offset = 0, ++ .size = 4 * SZ_1M, + }, + { +- .name = "Partition 2", ++ .name = "Root File System", ++ .offset = MTDPART_OFS_NXTBLK, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, ++ }, ++ { ++ .name = "Data", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c 2010-03-14 11:28:29.000000000 +0100 +@@ -130,12 +130,12 @@ + .size = 4 * SZ_1M, + }, + { +- .name = "Partition 1", ++ .name = "Root File System", + .offset = MTDPART_OFS_NXTBLK, +- .size = 60 * SZ_1M, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, + }, + { +- .name = "Partition 2", ++ .name = "Data", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek.c 2010-03-14 11:26:57.000000000 +0100 +@@ -129,12 +129,12 @@ + .size = 4 * SZ_1M, + }, + { +- .name = "Partition 1", ++ .name = "Root File System", + .offset = MTDPART_OFS_NXTBLK, +- .size = 60 * SZ_1M, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, + }, + { +- .name = "Partition 2", ++ .name = "Data", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c 2010-03-14 11:26:57.000000000 +0100 +@@ -133,12 +133,17 @@ + */ + static struct mtd_partition __initdata ek_nand_partition[] = { + { +- .name = "Partition 1", +- .offset = 0, +- .size = SZ_64M, ++ .name = "Bootstrap", ++ .offset = 0, ++ .size = 4 * SZ_1M, + }, + { +- .name = "Partition 2", ++ .name = "Root File System", ++ .offset = MTDPART_OFS_NXTBLK, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, ++ }, ++ { ++ .name = "Data", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9rlek.c linux-2.6.30/arch/arm/mach-at91/board-sam9rlek.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9rlek.c 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-sam9rlek.c 2010-03-14 11:26:57.000000000 +0100 +@@ -83,12 +83,17 @@ + */ + static struct mtd_partition __initdata ek_nand_partition[] = { + { +- .name = "Partition 1", +- .offset = 0, +- .size = SZ_256K, ++ .name = "Bootstrap", ++ .offset = 0, ++ .size = 4 * SZ_1M, + }, + { +- .name = "Partition 2", ++ .name = "Root File System", ++ .offset = MTDPART_OFS_NXTBLK, ++ .size = CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M, ++ }, ++ { ++ .name = "Data", + .offset = MTDPART_OFS_NXTBLK, + .size = MTDPART_SIZ_FULL, + }, +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/Kconfig linux-2.6.30/arch/arm/mach-at91/Kconfig +--- linux-2.6.30-0rig/arch/arm/mach-at91/Kconfig 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/Kconfig 2010-03-14 11:32:54.000000000 +0100 +@@ -96,6 +96,7 @@ + config ARCH_AT91RM9200DK + bool "Atmel AT91RM9200-DK Development board" + depends on ARCH_AT91RM9200 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91RM9200-DK Development board. + (Discontinued) +@@ -213,6 +214,7 @@ + config MACH_AT91SAM9260EK + bool "Atmel AT91SAM9260-EK / AT91SAM9XE Evaluation Kit" + depends on ARCH_AT91SAM9260 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91SAM9260-EK or AT91SAM9XE Evaluation Kit + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3933> +@@ -278,6 +280,7 @@ + config MACH_AT91SAM9261EK + bool "Atmel AT91SAM9261-EK Evaluation Kit" + depends on ARCH_AT91SAM9261 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91SAM9261-EK Evaluation Kit. + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820> +@@ -293,6 +296,7 @@ + config MACH_AT91SAM9G10EK + bool "Atmel AT91SAM9G10-EK Evaluation Kit" + depends on ARCH_AT91SAM9G10 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91SAM9G10-EK Evaluation Kit. + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4588> +@@ -308,6 +312,7 @@ + config MACH_AT91SAM9263EK + bool "Atmel AT91SAM9263-EK Evaluation Kit" + depends on ARCH_AT91SAM9263 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91SAM9263-EK Evaluation Kit. + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4057> +@@ -350,6 +355,7 @@ + config MACH_AT91SAM9RLEK + bool "Atmel AT91SAM9RL-EK Evaluation Kit" + depends on ARCH_AT91SAM9RL ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91SAM9RL-EK Evaluation Kit. + +@@ -364,6 +370,7 @@ + config MACH_AT91SAM9G20EK + bool "Atmel AT91SAM9G20-EK Evaluation Kit" + depends on ARCH_AT91SAM9G20 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91SAM9G20-EK Evaluation Kit + that embeds only one SD/MMC slot. +@@ -371,6 +378,7 @@ + config MACH_AT91SAM9G20EK_2MMC + bool "Atmel AT91SAM9G20-EK Evaluation Kit with 2 SD/MMC Slots" + depends on ARCH_AT91SAM9G20 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using an Atmel AT91SAM9G20-EK Evaluation Kit + with 2 SD/MMC Slots. This is the case for AT91SAM9G20-EK rev. C and +@@ -408,6 +416,7 @@ + config MACH_AT91SAM9G45EKES + bool "Atmel AT91SAM9G45-EKES Evaluation Kit" + depends on ARCH_AT91SAM9G45 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91SAM9G45-EKES Evaluation Kit. + "ES" at the end of the name means that this board is an +@@ -424,6 +433,7 @@ + config MACH_AT91SAM9M10EKES + bool "Atmel AT91SAM9M10-EKES Evaluation Kit" + depends on ARCH_AT91SAM9M10 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91SAM9M10-EKES Evaluation Kit. + "ES" at the end of the name means that this board is an +@@ -440,6 +450,7 @@ + config MACH_AT91CAP9ADK + bool "Atmel AT91CAP9A-DK Evaluation Kit" + depends on ARCH_AT91CAP9 ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT91CAP9A-DK Evaluation Kit. + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4138> +@@ -455,6 +466,7 @@ + config MACH_AT572D940HFEB + bool "AT572D940HF-EK" + depends on ARCH_AT572D940HF ++ select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE + help + Select this if you are using Atmel's AT572D940HF-EK evaluation kit. + <http://www.atmel.com/products/diopsis/default.asp> +@@ -494,6 +506,24 @@ + On AT91SAM926x boards both types of NAND flash can be present + (8 and 16 bit data bus width). + ++config MTD_NAND_ATMEL_ROOTFS_SIZE ++ int "Size NAND rootfs in MB" ++ range 8 250 ++ depends on MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE ++ default "124" ++ help ++ Many Atmel development boards has a NAND Flash, ++ divided into three partitions. ++ 1) Boot partition (4 MB) ++ 2) Root FS ++ 3) Data partition ++ This allows you to configure the size of the root fs ++ with the remainder ending up in the data partition. ++ The legal values are between 8 and 250 ++ ++config MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE ++ bool ++ + # ---------------------------------------------------------- + + comment "AT91 Feature Selections"
recipes/linux/linux-2.6.30/at91/linux-2.6.30-002-mach-at91-Kconfig.patch new file +196 -0
196 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91/linux-2.6.30-003-sam9m10g45ek.patch new file +29 -0
@@ -0,0 +1,29 @@ +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c +--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c 2010-03-14 11:41:36.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c 2010-03-14 12:07:05.000000000 +0100 +@@ -432,9 +432,13 @@ + + #if defined(CONFIG_MACH_AT91SAM9G45EKES) + MACHINE_START(AT91SAM9G45EKES, "Atmel AT91SAM9G45-EKES") +-#else ++#endif ++#if defined(CONFIG_MACH_AT91SAM9M10EKES) + MACHINE_START(AT91SAM9M10EKES, "Atmel AT91SAM9M10-EKES") + #endif ++#if defined(CONFIG_MACH_AT91SAM9M10G45EK) ++MACHINE_START(AT91SAM9M10G45EK, "Atmel AT91SAM9M10G45-EK") ++#endif + /* Maintainer: Atmel */ + .phys_io = AT91_BASE_SYS, + .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, +diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/Makefile linux-2.6.30/arch/arm/mach-at91/Makefile +--- linux-2.6.30-0rig/arch/arm/mach-at91/Makefile 2010-03-14 11:13:34.000000000 +0100 ++++ linux-2.6.30/arch/arm/mach-at91/Makefile 2010-03-14 12:08:01.000000000 +0100 +@@ -74,6 +74,7 @@ + # AT91SAM9G45 board-specific support + obj-$(CONFIG_MACH_AT91SAM9G45EKES) += board-sam9m10g45ek.o + obj-$(CONFIG_MACH_AT91SAM9M10EKES) += board-sam9m10g45ek.o ++obj-$(CONFIG_MACH_AT91SAM9M10G45EK) += board-sam9m10g45ek.o + + # AT91CAP9 board-specific support + obj-$(CONFIG_MACH_AT91CAP9ADK) += board-cap9adk.o
recipes/linux/linux-2.6.30/at91sam9260ek/defconfig new file +1492 -0
1,492 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9261ek/defconfig new file +1531 -0
921 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9g10ek/defconfig new file +1528 -0
1,528 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9g20ek/defconfig new file +1563 -0
1,563 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9g20ek_2mmc/defconfig new file +1561 -0
1,561 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9g45ek/defconfig new file +1651 -0
1,651 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9g45ekes/defconfig new file +1618 -0
1,618 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9m10ekes/defconfig new file +1617 -0
1,617 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9rlek/defconfig new file +1378 -0
1,378 lines not on this page · raw message
recipes/linux/linux-2.6.30/at91sam9xeek/defconfig new file +1492 -0
1,492 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.3.3
Part of the diff is not shown here. View the raw message.
PATCH 3/5 Add u-boot-2009.11 support for AT91SAM9
From: Ulf Samuelsson <[email protected]>
Add support for dataflash for SAM9G45/M10
Add support for SD-Card
Add mmc/mux command
Workaround for problem with UBOOT_VERSION beeing overwritten Add CRC for dataflash environment
Add generic function for adding debug variables
--- ...port-running-ATSAM9G45-M10-from-dataflash.patch | 117 +++ ...-SAM9M10-G45-config-for-dataflash-support.patch | 110 +++ ...rt-selecting-SPI-mode-in-dataflash-driver.patch | 116 +++ ...replace-verbose-dataflash_mmc_mux-command.patch | 28 + ...ibarm-board.c-Gets-overwritten-workaround.patch | 34 + .../0007-fat.c-Add-DEBUG-currently-disabled.patch | 26 + ...0008-env_dataflash.c-More-robust-handling.patch | 148 ++++ ...g.c-Add-a-generic-function-for-debug-vars.patch | 168 +++++ ...10-debug.h-Add-header-for-debug-variables.patch | 60 ++ ...-common-Makefile-Add-cmd_debug.c-to-build.patch | 27 + ...mci.c-Support-writing-out-AT91-mci-config.patch | 100 +++ ...taflash.c-Status-printout-depend-on-DEBUG.patch | 59 ++ .../0014-AT91-MCI-Add-support-for-SD-Card.patch | 740 ++++++++++++++++++++ .../0015-sam9m10g45ek-Add-configuration-file.patch | 113 +++ recipes/u-boot/u-boot_2009.11.bb | 44 ++ 15 files changed, 1890 insertions(+), 0 deletions(-) create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0002-Support-running-ATSAM9G45-M10-from-dataflash.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0003-Update-SAM9M10-G45-config-for-dataflash-support.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0004-Support-selecting-SPI-mode-in-dataflash-driver.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0005-mux-replace-verbose-dataflash_mmc_mux-command.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0006-libarm-board.c-Gets-overwritten-workaround.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0007-fat.c-Add-DEBUG-currently-disabled.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0008-env_dataflash.c-More-robust-handling.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0009-cmd_debug.c-Add-a-generic-function-for-debug-vars.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0010-debug.h-Add-header-for-debug-variables.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0011-common-Makefile-Add-cmd_debug.c-to-build.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0012-cmd_mci.c-Support-writing-out-AT91-mci-config.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0013-atmel_dataflash.c-Status-printout-depend-on-DEBUG.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0014-AT91-MCI-Add-support-for-SD-Card.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0015-sam9m10g45ek-Add-configuration-file.patch create mode 100644 recipes/u-boot/u-boot_2009.11.bb
recipes/u-boot/u-boot-2009.11/at91/0002-Support-running-ATSAM9G45-M10-from-dataflash.patch new file +117 -0
@@ -0,0 +1,117 @@ +From 05c663921ff0fab52cafd2ff23848fa4bfabc5ec Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sat, 27 Feb 2010 08:58:44 +0100 +Subject: [PATCH] Support running ATSAM9G45/M10 from dataflash + +The current at91sam9g45 targets can build for dataflash +but the target will still use NAND flash for the environment. + +This patch will add the first hooks to allow use of dataflash. +The end result will use dataflash, but there are bit errors +during transmission, so the CRC check will always fail. +This will be fixed by later patches. + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + Makefile | 2 +- + board/atmel/at91sam9m10g45ek/Makefile | 1 + + board/atmel/at91sam9m10g45ek/partition.c | 40 +++++++++++++++++++++++++++ + cpu/arm926ejs/at91/at91sam9m10g45_devices.c | 3 +- + 4 files changed, 43 insertions(+), 3 deletions(-) + create mode 100644 board/atmel/at91sam9m10g45ek/partition.c + +diff --git a/Makefile b/Makefile +index f06a97c..0bfa61c 100644 +--- a/Makefile ++++ b/Makefile +@@ -2876,7 +2876,7 @@ at91sam9g45ekes_config : unconfig + echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ + $(XECHO) "... with environment variable in NAND FLASH" ; \ + else \ +- echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ ++ echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ + $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ + fi; + @$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 +diff --git a/board/atmel/at91sam9m10g45ek/Makefile b/board/atmel/at91sam9m10g45ek/Makefile +index 4caf1e4..914cc1a 100644 +--- a/board/atmel/at91sam9m10g45ek/Makefile ++++ b/board/atmel/at91sam9m10g45ek/Makefile +@@ -31,6 +31,7 @@ LIB = $(obj)lib$(BOARD).a + + COBJS-y += at91sam9m10g45ek.o + COBJS-y += led.o ++COBJS-$(CONFIG_HAS_DATAFLASH) += partition.o + + SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) + OBJS := $(addprefix $(obj),$(COBJS-y)) +diff --git a/board/atmel/at91sam9m10g45ek/partition.c b/board/atmel/at91sam9m10g45ek/partition.c +new file mode 100644 +index 0000000..2629c67 +--- /dev/null ++++ b/board/atmel/at91sam9m10g45ek/partition.c +@@ -0,0 +1,40 @@ ++/* ++ * (C) Copyright 2008 ++ * Ulf Samuelsson <[email protected]> ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License as ++ * published by the Free Software Foundation; either version 2 of ++ * the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, ++ * MA 02111-1307 USA ++ * ++ */ ++#include <common.h> ++#include <config.h> ++#include <asm/hardware.h> ++#include <dataflash.h> ++ ++AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS]; ++ ++struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = { ++ {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0}, /* Logical adress, CS */ ++ {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1, 1} ++}; ++ ++/*define the area offsets*/ ++dataflash_protect_t area_list[NB_DATAFLASH_AREA] = { ++ {0x00000000, 0x000041FF, FLAG_PROTECT_SET, 0, "Bootstrap"}, ++ {0x00004200, 0x000083FF, FLAG_PROTECT_CLEAR, 0, "Environment"}, ++ {0x00008400, 0x00041FFF, FLAG_PROTECT_SET, 0, "U-Boot"}, ++ {0x00042000, 0x00251FFF, FLAG_PROTECT_CLEAR, 0, "Kernel"}, ++ {0x00252000, 0xFFFFFFFF, FLAG_PROTECT_CLEAR, 0, "FS"}, ++}; +diff --git a/cpu/arm926ejs/at91/at91sam9m10g45_devices.c b/cpu/arm926ejs/at91/at91sam9m10g45_devices.c +index 98d90f2..07717ea 100644 +--- a/cpu/arm926ejs/at91/at91sam9m10g45_devices.c ++++ b/cpu/arm926ejs/at91/at91sam9m10g45_devices.c +@@ -75,7 +75,6 @@ void at91_serial_hw_init(void) + #endif + } + +-#ifdef CONFIG_ATMEL_SPI + void at91_spi0_hw_init(unsigned long cs_mask) + { + at91_set_A_periph(AT91_PIN_PB0, 0); /* SPI0_MISO */ +@@ -146,7 +145,7 @@ void at91_spi1_hw_init(unsigned long cs_mask) + } + + } +-#endif ++ + + #ifdef CONFIG_MACB + void at91_macb_hw_init(void) +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0003-Update-SAM9M10-G45-config-for-dataflash-support.patch new file +110 -0
110 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0004-Support-selecting-SPI-mode-in-dataflash-driver.patch new file +116 -0
116 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0005-mux-replace-verbose-dataflash_mmc_mux-command.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 600ddf4971206a6c653c23ddbce48253f1e07dd2 Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sat, 13 Mar 2010 13:25:26 +0100 +Subject: [PATCH] mux: replace verbose dataflash_mmc_mux command + +Replace verbose 17 character command with the original thing + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + common/cmd_dataflash_mmc_mux.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/common/cmd_dataflash_mmc_mux.c b/common/cmd_dataflash_mmc_mux.c +index 97e303e..2fc67d4 100644 +--- a/common/cmd_dataflash_mmc_mux.c ++++ b/common/cmd_dataflash_mmc_mux.c +@@ -59,7 +59,7 @@ static int mmc_nspi (const char *s) + + U_BOOT_CMD( + dataflash_mmc_mux, 2, 1, do_dataflash_mmc_mux, +- "dataflash_mmc_mux\t- enable or disable MMC or SPI\n", ++ "mux\t- enable or disable MMC or SPI\n", + "[mmc, spi]\n" + " - enable or disable MMC or SPI" + ); +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0006-libarm-board.c-Gets-overwritten-workaround.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 1c72f37cbea8c1bb98d438108558a4e222c5ce2b Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sat, 13 Mar 2010 13:29:34 +0100 +Subject: [PATCH] libarm/board.c: Gets overwritten - workaround! + +U_BOOT_VERSION gets overwritten by something. +Workaround, but no fix for the problem, by +adding another variable which can get overwritten +without problems. + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + lib_arm/board.c | 5 +++-- + 1 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/lib_arm/board.c b/lib_arm/board.c +index e148739..379e39b 100644 +--- a/lib_arm/board.c ++++ b/lib_arm/board.c +@@ -74,8 +74,9 @@ extern void dataflash_print_info(void); + #define CONFIG_IDENT_STRING "" + #endif + +-const char version_string[] = +- U_BOOT_VERSION" (" U_BOOT_DATE " - " U_BOOT_TIME ")"CONFIG_IDENT_STRING; ++const char dummy[] = "Is this overwritten ?"; ++const char version_string[] = ++ U_BOOT_VERSION " (" U_BOOT_DATE " - " U_BOOT_TIME ")"CONFIG_IDENT_STRING; + + #ifdef CONFIG_DRIVER_RTL8019 + extern void rtl8019_get_enetaddr (uchar * addr); +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0007-fat.c-Add-DEBUG-currently-disabled.patch new file +26 -0
@@ -0,0 +1,26 @@ +From db9c87b27153d55cd1818d2f1a2772b8070b3715 Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sat, 13 Mar 2010 13:32:40 +0100 +Subject: [PATCH] fat.c: Add DEBUG (currently disabled) + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + fs/fat/fat.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/fs/fat/fat.c b/fs/fat/fat.c +index 2445f1e..87e7f08 100644 +--- a/fs/fat/fat.c ++++ b/fs/fat/fat.c +@@ -24,7 +24,7 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ +- ++//#define DEBUG + #include <common.h> + #include <config.h> + #include <fat.h> +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0008-env_dataflash.c-More-robust-handling.patch new file +148 -0
148 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0009-cmd_debug.c-Add-a-generic-function-for-debug-vars.patch new file +168 -0
168 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0010-debug.h-Add-header-for-debug-variables.patch new file +60 -0
60 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0011-common-Makefile-Add-cmd_debug.c-to-build.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 81c5954a3932d46de7db92c7314060a491e20063 Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sun, 14 Mar 2010 00:12:35 +0100 +Subject: [PATCH] common/Makefile: Add cmd_debug.c to build + +Ensure cmd_debug.c is built if CONFIG_CMD_DEBUG is set + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + common/Makefile | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/common/Makefile b/common/Makefile +index 47f6a71..a827be8 100644 +--- a/common/Makefile ++++ b/common/Makefile +@@ -75,6 +75,7 @@ COBJS-$(CONFIG_CMD_CONSOLE) += cmd_console.o + COBJS-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o + COBJS-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o + COBJS-$(CONFIG_CMD_DATE) += cmd_date.o ++COBJS-$(CONFIG_CMD_DEBUG) += cmd_debug.o + ifdef CONFIG_4xx + COBJS-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o + endif +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0012-cmd_mci.c-Support-writing-out-AT91-mci-config.patch new file +100 -0
100 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0013-atmel_dataflash.c-Status-printout-depend-on-DEBUG.patch new file +59 -0
59 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0014-AT91-MCI-Add-support-for-SD-Card.patch new file +740 -0
740 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0015-sam9m10g45ek-Add-configuration-file.patch new file +113 -0
113 lines not on this page · raw message
recipes/u-boot/u-boot_2009.11.bb new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
1.6.3.3
PATCH 4/5 Add X-Windows support for AT91 LCD controller
From: Ulf Samuelsson <[email protected]>
--- .../xserver-kdrive-1.4.0.90/at91sam9-kmode.patch | 18 +++++++++++++++ .../xserver-kdrive-1.4.0.90/wvga-kmode.patch | 16 +++++++++++++ recipes/xorg-xserver/xserver-kdrive_1.4.0.90.bb | 2 + .../xserver-xorg-conf/at91sam9g45ek/xorg.conf | 23 ++++++++++++++++++++ 4 files changed, 59 insertions(+), 0 deletions(-) create mode 100644 recipes/xorg-xserver/xserver-kdrive-1.4.0.90/at91sam9-kmode.patch create mode 100644 recipes/xorg-xserver/xserver-kdrive-1.4.0.90/wvga-kmode.patch create mode 100644 recipes/xorg-xserver/xserver-xorg-conf/at91sam9g45ek/xorg.conf
recipes/xorg-xserver/xserver-kdrive-1.4.0.90/at91sam9-kmode.patch new file +18 -0
@@ -0,0 +1,18 @@ +diff -Nru xorg-server-1.4.0.90_orig/hw/kdrive/src/kmode.c xorg-server-1.4.0.90/hw/kdrive/src/kmode.c +--- xorg-server-1.4.0.90_orig/hw/kdrive/src/kmode.c ++++ xorg-server-1.4.0.90/hw/kdrive/src/kmode.c +@@ -69,6 +69,12 @@ + 0, 0, 0, KdSyncNegative, + }, + ++ /* at91sam9g45-ekes */ ++ { 480, 272, 60, 0, /* VESA */ ++ 0, 0, 0, KdSyncNegative, /* 31.469 */ ++ 0, 0, 0, KdSyncNegative, /* 59.940 */ ++ }, ++ + /* Other VESA modes */ + { 640, 350, 85, 31500, /* VESA */ + 32, 96, 192, KdSyncPositive, /* 26.413 */ + +
recipes/xorg-xserver/xserver-kdrive-1.4.0.90/wvga-kmode.patch new file +16 -0
@@ -0,0 +1,16 @@ +--- xorg-server-1.4.0.90/hw/kdrive/src/kmode.c.orig ++++ xorg-server-1.4.0.90/hw/kdrive/src/kmode.c +@@ -75,6 +75,13 @@ + 0, 0, 0, KdSyncNegative, /* 59.940 */ + }, + ++ /* at91sam9m10-ekes */ ++ { 800, 480, 60, 0, ++ 0, 0, 0, KdSyncNegative, ++ 0, 0, 0, KdSyncNegative, ++ }, ++ ++ + /* Other VESA modes */ + { 640, 350, 85, 31500, /* VESA */ + 32, 96, 192, KdSyncPositive, /* 26.413 */
recipes/xorg-xserver/xserver-kdrive_1.4.0.90.bb +2 -0
@@ -28,6 +28,8 @@ SRC_URI = "${XORG_MIRROR}/individual/xserver/xorg-server-${PV}.tar.bz2 \ file://xorg-1.4-kdrive-rotation.patch \ file://split_multiple_AC_SUBST.patch \ file://vm86_masks.patch \ + file://at91sam9-kmode.patch \ + file://wvga-kmode.patch \ " S = "${WORKDIR}/xorg-server-${PV}"
recipes/xorg-xserver/xserver-xorg-conf/at91sam9g45ek/xorg.conf new file +23 -0
@@ -0,0 +1,23 @@ +Section "ServerLayout" + Identifier "default" + InputDevice "atmel-tsadcc" "CorePointer" +EndSection + +Section "InputDevice" + Identifier "atmel-tsadcc" + Driver "evdev" + Option "Device" "/dev/input/touchscreen0" +EndSection + +Section "InputDevice" + Driver "mouse" + Identifier "Mouse[1]" + Option "Buttons" "10" + Option "Device" "/dev/input/mice" +EndSection + +Section "InputDevice" + Driver "kbd" + Identifier "Keyboard[0]" + Option "Protocol" "Standard" +EndSection
Signature · 1 line
1.6.3.3
PATCH 5/5 Add X11 images with more multimedia support (mplayer etc.)
From: Ulf Samuelsson <[email protected]>
--- recipes/images/console-audio-image.bb | 33 ++++++++++++++++++ recipes/images/x11-at91sam9-image.bb | 58 +++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 0 deletions(-) create mode 100644 recipes/images/console-audio-image.bb create mode 100644 recipes/images/x11-at91sam9-image.bb
recipes/images/console-audio-image.bb new file +33 -0
@@ -0,0 +1,33 @@ +# Angstrom bootstrap at91sam9 image +require console-base-image.bb + +export IMAGE_BASENAME = "console-at91sam9-image" + +IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp" + +DEPENDS = "task-base-extended \ + ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \ + " + +IMAGE_INSTALL = "task-base-extended \ + usbview \ + mplayer \ + thttpd \ + madplay \ + alsa-utils-aplay \ + alsa-utils-amixer \ + iperf \ + dosfstools \ + mtd-utils \ + ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \ + ${IMAGE_EXTRA_INSTALL} \ +# nbench-byte \ + " + +IMAGE_LINGUAS = "" + +#we dont need the kernel in the image +ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/*Image*; " + +inherit image +
recipes/images/x11-at91sam9-image.bb new file +58 -0
58 lines not on this page · raw message
Signature · 1 line
1.6.3.3
Re: [PATCH 5/5] Add X11 images with more multimedia support (mplayer etc.)
Dnia sobota, 16 października 2010 o 14:50:06 [email protected] napisał(a):
recipes/images/console-audio-image.bb line 4
Quoted 6 lines
+++ b/recipes/images/console-audio-image.bb
recipes/images/console-audio-image.bb new file +4
-0@@ -0,0 +1,33 @@ +# Angstrom bootstrap at91sam9 image +require console-base-image.bb + +export IMAGE_BASENAME = "console-at91sam9-image"
Please decide - is it audio-image or at91sam9-image... Looks more like second one because I do not see iperf being related to audio.
Review line 6
Quoted 2 lines
(quoted diff) +2
-0+#we dont need the kernel in the image +ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/*Image*; "
Who is we? I have some boards which needs it...
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Re: [PATCH 5/5] Add X11 images with more multimedia support (mplayer etc.)
Marcin Juszkiewicz skrev:
Quoted 10 lines
Dnia sobota, 16 października 2010 o 14:50:06 [email protected] napisał(a):
recipes/images/console-audio-image.bb line 4
Quoted 6 lines
+++ b/recipes/images/console-audio-image.bb
recipes/images/console-audio-image.bb new file +4
-0@@ -0,0 +1,33 @@ +# Angstrom bootstrap at91sam9 image +require console-base-image.bb + +export IMAGE_BASENAME = "console-at91sam9-image"Please decide - is it audio-image or at91sam9-image... Looks more like second one because I do not see iperf being related to audio.
OK, I'll have a look at this.
Quoted 6 lines
Review line 6
Quoted 3 lines
(quoted diff) +2
-0+#we dont need the kernel in the image +ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/*Image*; "Who is we? I have some boards which needs it...
Me an my lice ?
Actually, it is for people that need to create demo on a Windows machine.
The idea is to have an SD-Card with a FAT partition using maybe 128 MB of the SD-Card, and the rest is empty unpartitioned.
The kernel loads a simple RAMFS and runs a script which will partition the empty space on the SD-Card, and then extract the file system tarball from the FAT partition to the new partition.
Since the kernel is needed on the FAT partition, it is not needed on the Linux file system partition.
Each and every image is made to suit its author. If there is variation, then this can be easily handled by editing the file, or by creating a new image.
Quoted 1 line
Regards,
Best Regards
Ulf Samuelsson
Dnia sobota, 16 października 2010 o 14:50:02 [email protected] napisał(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.inc
Do you plan to duplicate that file with each kernel you will produce? Create include/at91-sam9.inc and put it there.
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Marcin Juszkiewicz skrev:
Quoted 8 lines
Dnia sobota, 16 października 2010 o 14:50:02 [email protected] napisał(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.
There are basically two choices.
1) versions in one file per kernel, and functions in a common include file.
2) versions and functions in one file per kernel
I do not see how a single include file will give me this flexibility, but I am open to suggestions.
Best Regards
Ulf Samuelsson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 16 lines · Ulf Samuelsson
Marcin Juszkiewicz skrev:
Quoted 10 lines
Dnia sobota, 16 października 2010 o 14:50:02 [email protected] napisał(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
Quoted 5 lines
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.
NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g. default_preference in the recipes or distro include files.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMvGmSMkyGM64RGpERAoEpAJwP7tGmHa9mq3bUhbc0WKfwRWJETgCgrd3l 3rfyCWSdNXlK4lIbgpZLMBA=
=2WQm
-----END PGP SIGNATURE-----
2010/10/18 Koen Kooi <[email protected]>:
Quoted 26 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 16 lines · Ulf Samuelsson
Marcin Juszkiewicz skrev:
Quoted 10 lines
Dnia sobota, 16 października 2010 o 14:50:02 [email protected] napisał(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
Quoted 5 lines
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.
Quoted 3 lines
NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.
Well machines are probably better capable to decide what u-boot and kernel version is best for them.
One alternative (which is probably by more yukky) is to create an kernel-at91 recipe and define PREFERRED_PROVIDER_virtual/kernel I don't feel that is a better scenario
Frans
Quoted 14 lines
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)iD8DBQFMvGmSMkyGM64RGpERAoEpAJwP7tGmHa9mq3bUhbc0WKfwRWJETgCgrd3l 3rfyCWSdNXlK4lIbgpZLMBA=
=2WQm
-----END PGP SIGNATURE-----_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Frans Meulenbroeks skrev:
Quoted 16 lines
2010/10/18 Koen Kooi <[email protected]>:
Quoted 14 lines · Ulf Samuelsson
Quoted 14 lines
Quoted 14 lines
Marcin Juszkiewicz skrev:
Quoted 9 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
Quoted 15 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.Quoted 5 lines
Well machines are probably better capable to decide what u-boot and kernel version is best for them.
One alternative (which is probably by more yukky) is to create an kernel-at91 recipe and define PREFERRED_PROVIDER_virtual/kernel I don't feel that is a better scenario
The advantage of putting the kernel/u-boot/at91bootstrap in the machine file, is that I can make a copy of a machine file to another file, change the version of the include file and build.
I dont have to change any files, so nothing existing breaks.
Once everything is tested, I can just replace the old machine file with the new file and check in.
Quoted 5 lines
Quoted 5 lines
Frans
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 6 lines
Quoted 1 line
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
BR
Ulf Samuelsson
Koen Kooi skrev:
Quoted 21 lines · Ulf Samuelsson
Quoted 14 lines
Marcin Juszkiewicz skrev:
Quoted 9 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
Quoted 5 lines
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.
Quoted 3 lines
NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.
If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
The patch will move the definition from the machine file to the include file for a few board, so reverting the patch will not solve the problem, just spread it out into multiple files.
The patch also adds some boards.
Having default preference in recipes is not going to make it easy to switch between version so I don't like that method at all.
Using the distro to select boot and kernel, seems flawed since none of the stuff will reside in the file system (my file system) but at least this is easily maintainable.
The best right now seems to be to make a new distro file for each kernel version, which just includes Angstrom and adds version info for kernel, u-boot and at91bootstrap.
Long term, I think that there should be something equivalent to DISTRO for the files outside the file system, and that you should be able to select between multiple variants like you select a DISTRO today, but I am not yet into bitbake, so I can't tell where to start.
Since the reversal of the patch, wont solve anything, I suggest we agree on how to proceed, and then do the fixes. Is including Angstrom from a kernel specific distro file OK?
If a distro file is to include another file, then
you have to be able to tell different kernels for
I guess we could do:
require conf/distro/include/$(SOC_FAMILY).inc
conf/distro/include/at91.inc would contain:
PREFERRED_VERSION_at91bootstrap = "2.13"
PREFERRED_VERSION_u-boot = "2009.11"
Not sure how to do machine dependent kernel version
PREFERRED_VERSION_linux_at91sam9g45ek = "2.6.30"
does not feel like it would work.
Ideas?
--------------------------------------------
ulf@bulwark:~/Skrivbord/home/projects/OE_atmel/openembedded/conf/machine$ grep PREFERRED_VERSION_linux * acern30.conf:PREFERRED_VERSION_linux ?= "2.6.14" at32stk1000.conf:PREFERRED_VERSION_linux = "2.6.28" at91cap9adk.conf:PREFERRED_VERSION_linux = "2.6.28" at91-l9260.conf:PREFERRED_VERSION_linux = "2.6.25" at91sam9260ek.conf:PREFERRED_VERSION_linux = "2.6.28" at91sam9261ek.conf:PREFERRED_VERSION_linux = "2.6.28" at91sam9263ek.conf:PREFERRED_VERSION_linux = "2.6.28" at91sam9rlek.conf:PREFERRED_VERSION_linux = "2.6.28" canyonlands.conf:PREFERRED_VERSION_linux = "2.6.26" ea3250.conf:PREFERRED_VERSION_linux-ea3250 = "2.6.27.8" eee701.conf:PREFERRED_VERSION_linux ?= "2.6.33" em-x270.conf:PREFERRED_VERSION_linux = "2.6.23" gesbc-9302.conf:PREFERRED_VERSION_linux ?= "2.6.24"
ghi270.conf:PREFERRED_VERSION_linux-handhelds-2.6 =
"2.6.21-hh11" jornada6xx.conf:PREFERRED_VERSION_linux-jlime-jornada6xx = "2.6.32" kixrp435.conf:PREFERRED_VERSION_linux = "2.6.30"
lsmipsel.conf:PREFERRED_VERSION_linux-lsmipsel = "2.6.23.17"
micro2440.conf:# PREFERRED_VERSION_linux = "2.6.29" n1200.conf:PREFERRED_VERSION_linux-n1200 = "2.6.27-rc9+git" n2100.conf:PREFERRED_VERSION_linux = "2.6.20" netvista.conf:PREFERRED_VERSION_linux = "2.6.23" rx1950.conf:PREFERRED_VERSION_linux = "2.6.35" sarge-at91.conf:PREFERRED_VERSION_linux = "2.6.21" stamp9g20evb.conf:PREFERRED_VERSION_linux = "2.6.29" storcenter.conf:PREFERRED_VERSION_linux-storcenter = "2.6.27.7" tx25.conf:PREFERRED_VERSION_linux = "2.6.29+2.6.30-rc4" tx27.conf:PREFERRED_VERSION_linux = "2.6.28"
ulf@bulwark:~/Skrivbord/home/projects/OE_atmel/openembedded/conf/machine$ grep "PREFERRED_PROVIDER_virtual/kernel" * acern30.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" adsp-bf537-stamp.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-bfin" adzs-bf538f-ezlite.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-bfin" adzs-bf548-ezlite.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-bfin" alix.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" am3517-evm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" am37x-evm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" amsdelta.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-amsdelta-2.6" archos5.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-archos" archos5it.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-archos" asus620.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" asus730.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" at2440evb.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at32stk1000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91cap9adk.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91-l9260.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91sam9260ek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91sam9261ek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91sam9263ek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91sam9rlek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" atngw100.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" aximx50.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" babbage.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" bd-neon.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" beagleboard.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" ben-nanonote.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-ben" boc01.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" bug20.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-hah" bug.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-bug" calamari.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" canyonlands.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" chumby.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" chumby-falconwing.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-imx" cm-x270.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" cm-x300.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" colinux.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-colinux" cs-e9302.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" d201gly2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" davinci-sffsdr.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-davinci" db1200.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" devkitidp-pxa255.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}" dht-walnut.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" dm37x-evm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" dockstar.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ea3250.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-ea3250" eee701.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" efika.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-rt" efikamx.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-efikamx" em-x270.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ep93xx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" epia.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-epia" er0100.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-er0100" eseries.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" eteng500.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" eten-m800.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-eten" fsg3be.conf:PREFERRED_PROVIDER_virtual/kernel ?= "fsg3-kernel" gamecube.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" geodegx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-geodegx" geodelx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-geodelx" gesbc-9302.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ghi270.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" guinness.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-x86" h1910.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h1940.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-h1940" h2200.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h3600.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h3900.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h4000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h5000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h6300.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-h6300-omap1" hipox.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" htcalpine.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcapache.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcblueangel.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcdream.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-leviathan" htchimalaya.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcsable.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htctornado.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-tornado-omap2" htcuniversal.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcwallaby.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" hx2000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-rp" hx4700.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" i586-generic.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" i686-generic.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" iei-nanogx-466.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" igep0020.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-igep2" imote2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-zigbee" ion.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" jornada56x.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" jornada6xx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-jornada6xx" jornada7xx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-jornada7xx" kb9202.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" kilauea.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" kixrp435.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ks8695.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" lite5200.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" logicpd-pxa270.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}" looxc550.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6"
lsmipsel.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-lsmipsel"
m8050.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" magicbox.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" magician.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" mainstone.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" mh355.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" micro2440.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mini2440" micro2440.conf:# PREFERRED_PROVIDER_virtual/kernel = "linux" mini2440.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mini2440" mini6410.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" mnci.conf:PREFERRED_PROVIDER_virtual/kernel = "mnci-ramses" mp900c.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-mobilepro900" mpc8313e-rdb.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mpc8315e-rdb.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mpc8323e-rdb.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mpc8544ds.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mpc8641-hpcn.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mtx-1.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mtx-1" mtx-2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mtx-2" mtx-3a.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mtx-3a" mtx-3.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mtx-3" mx21ads.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" mx27ads.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" mx31ads.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" mx31moboard.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" n1200.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-n1200" n2100.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" native.conf:PREFERRED_PROVIDER_virtual/kernel = "native-kernel" navman-icn330.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-navman" neek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-nios2" netbook-pro.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" netvista.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" neuros-osd2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-neuros" neuros-osd.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-neuros" nhk15.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" nokia770.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-nokia800" nokia800.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-nokia800" nokia900.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" om-3d7k.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-openmoko-2.6.29" omap1510inn.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-2.6" omap1610h2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-2.6" omap1710h3.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap1" omap2420h4.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap2" omap2430sdp.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap2" omap3evm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" omap3-pandora.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" omap3-touchbook.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" omap4430-panda.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap4" omap5912osk.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" omapzoom2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-zoomsync" omapzoom36x.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-zoomsync" omapzoom.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap" om-gta01.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-openmoko-2.6.29" om-gta02.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-openmoko-2.6.34" overo.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" p1020rdb.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" p2020ds.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" palmpre.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-palmpre" palmtt.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-palm-omap1" palmz71.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-palm-omap1" progear.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemuarm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemumips64.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemumips.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemumipsel.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemuppc.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemush4.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemux86.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" rb500.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-rb500" ronetix-pm9261.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ronetix-pm9263.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" rt3000.conf:PREFERRED_PROVIDER_virtual/kernel = "rt3000" rx1950.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" rx3000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" sarge-at91.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" sequoia.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" sgh-i900.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-sgh-i900" sh7785lcr.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" shark.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-z" simpad.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" smartq5.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" smartqv7.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" smdk2440.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-smdk2440" smdk2443.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-smdk2443" smdk6410.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" stamp9g20evb.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" stb225.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" storcenter.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-storcenter" sun4cdm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-sun4cdm" titan.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-titan-sh4" topas910.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" tqm8540.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" triton.conf:PREFERRED_PROVIDER_virtual/kernel = "triton-kernel" ts72xx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" tx25.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" tx27.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" wgt634u.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-brcm" vmware.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" vortex86sx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" wrap.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" wrt54.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-wrt" x86-32-nocona.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-x86" x86.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" x86-prescott.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-x86" x86-uml.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-uml" xilinx-ml403.conf:#PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx-slab" xilinx-ml410.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" xilinx-ml507.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx-ml507" xilinx-virtex4.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx" xilinx-virtex5.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx" xo.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xo" xxs1500.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xxs1500"
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 22 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 21 lines · Ulf Samuelsson
Quoted 19 lines
Marcin Juszkiewicz skrev:
Quoted 9 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.
Quoted 6 lines
Quoted 3 lines
NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Quoted 5 lines
The patch will move the definition from the machine file to the include file for a few board, so reverting the patch will not solve the problem, just spread it out into multiple files.
The patch also adds some boards.
it pins a kernel version thats not ok IMO. You should pin this in the kernel recipes
instead for the machines that should use it using PREFERRED_VERSIONS
Quoted 4 lines
Having default preference in recipes is not going to make it easy to switch between version so I don't like that method at all.
what do you mean by easy here ? Its not difficult to change two priority numbers. I think we should try to remain inline with our policies
whatever they are otherwise it will create confusion.
Quoted 5 lines
Using the distro to select boot and kernel, seems flawed since none of the stuff will reside in the file system (my file system) but at least this is easily maintainable.
usually in OE distros set policy with sufficient knowledge of machine characteristics
you can think of ways to use this approach. distro does not decide on which kernel or u-boot
these are machine specific recipes and you decide which one to feed for which machine in the recipe.
Quoted 22 lines
The best right now seems to be to make a new distro file for each kernel version, which just includes Angstrom and adds version info for kernel, u-boot and at91bootstrap.
Long term, I think that there should be something equivalent to DISTRO for the files outside the file system, and that you should be able to select between multiple variants like you select a DISTRO today, but I am not yet into bitbake, so I can't tell where to start.
Since the reversal of the patch, wont solve anything, I suggest we agree on how to proceed, and then do the fixes. Is including Angstrom from a kernel specific distro file OK?
If a distro file is to include another file, then
you have to be able to tell different kernels forI guess we could do:
Quoted 7 lines
require conf/distro/include/$(SOC_FAMILY).inc
conf/distro/include/at91.inc would contain:
PREFERRED_VERSION_at91bootstrap= "2.13"
PREFERRED_VERSION_u-boot = "2009.11"
why is all this needed ?
Quoted 270 lines
Not sure how to do machine dependent kernel version
PREFERRED_VERSION_linux_at91sam9g45ek= "2.6.30"
does not feel like it would work.
Ideas?--------------------------------------------
ulf@bulwark:~/Skrivbord/home/projects/OE_atmel/openembedded/conf/machine$ grep
PREFERRED_VERSION_linux* acern30.conf:PREFERRED_VERSION_linux ?= "2.6.14" at32stk1000.conf:PREFERRED_VERSION_linux = "2.6.28" at91cap9adk.conf:PREFERRED_VERSION_linux = "2.6.28" at91-l9260.conf:PREFERRED_VERSION_linux = "2.6.25" at91sam9260ek.conf:PREFERRED_VERSION_linux = "2.6.28" at91sam9261ek.conf:PREFERRED_VERSION_linux = "2.6.28" at91sam9263ek.conf:PREFERRED_VERSION_linux = "2.6.28" at91sam9rlek.conf:PREFERRED_VERSION_linux = "2.6.28" canyonlands.conf:PREFERRED_VERSION_linux = "2.6.26" ea3250.conf:PREFERRED_VERSION_linux-ea3250 = "2.6.27.8" eee701.conf:PREFERRED_VERSION_linux ?= "2.6.33" em-x270.conf:PREFERRED_VERSION_linux = "2.6.23" gesbc-9302.conf:PREFERRED_VERSION_linux ?= "2.6.24" ghi270.conf:PREFERRED_VERSION_linux-handhelds-2.6 = "2.6.21-hh11" jornada6xx.conf:PREFERRED_VERSION_linux-jlime-jornada6xx = "2.6.32" kixrp435.conf:PREFERRED_VERSION_linux = "2.6.30" lsmipsel.conf:PREFERRED_VERSION_linux-lsmipsel = "2.6.23.17" micro2440.conf:#PREFERRED_VERSION_linux= "2.6.29" n1200.conf:PREFERRED_VERSION_linux-n1200 = "2.6.27-rc9+git" n2100.conf:PREFERRED_VERSION_linux = "2.6.20" netvista.conf:PREFERRED_VERSION_linux = "2.6.23" rx1950.conf:PREFERRED_VERSION_linux = "2.6.35" sarge-at91.conf:PREFERRED_VERSION_linux = "2.6.21" stamp9g20evb.conf:PREFERRED_VERSION_linux = "2.6.29" storcenter.conf:PREFERRED_VERSION_linux-storcenter = "2.6.27.7" tx25.conf:PREFERRED_VERSION_linux = "2.6.29+2.6.30-rc4" tx27.conf:PREFERRED_VERSION_linux = "2.6.28"ulf@bulwark:~/Skrivbord/home/projects/OE_atmel/openembedded/conf/machine$ grep "PREFERRED_PROVIDER_virtual/kernel" * acern30.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" adsp-bf537-stamp.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-bfin" adzs-bf538f-ezlite.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-bfin" adzs-bf548-ezlite.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-bfin" alix.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" am3517-evm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" am37x-evm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" amsdelta.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-amsdelta-2.6" archos5.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-archos" archos5it.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-archos" asus620.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" asus730.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" at2440evb.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at32stk1000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91cap9adk.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91-l9260.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91sam9260ek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91sam9261ek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91sam9263ek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" at91sam9rlek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" atngw100.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" aximx50.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" babbage.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" bd-neon.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" beagleboard.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" ben-nanonote.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-ben" boc01.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" bug20.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-hah" bug.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-bug" calamari.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" canyonlands.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" chumby.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" chumby-falconwing.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-imx" cm-x270.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" cm-x300.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" colinux.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-colinux" cs-e9302.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" d201gly2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" davinci-sffsdr.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-davinci" db1200.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" devkitidp-pxa255.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}" dht-walnut.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" dm37x-evm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" dockstar.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ea3250.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-ea3250" eee701.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" efika.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-rt" efikamx.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-efikamx" em-x270.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ep93xx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" epia.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-epia" er0100.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-er0100" eseries.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" eteng500.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" eten-m800.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-eten" fsg3be.conf:PREFERRED_PROVIDER_virtual/kernel ?= "fsg3-kernel" gamecube.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" geodegx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-geodegx" geodelx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-geodelx" gesbc-9302.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ghi270.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" guinness.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-x86" h1910.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h1940.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-h1940" h2200.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h3600.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h3900.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h4000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h5000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" h6300.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-h6300-omap1" hipox.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" htcalpine.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcapache.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcblueangel.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcdream.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-leviathan" htchimalaya.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcsable.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htctornado.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-tornado-omap2" htcuniversal.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" htcwallaby.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" hx2000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-rp" hx4700.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" i586-generic.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" i686-generic.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" iei-nanogx-466.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" igep0020.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-igep2" imote2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-zigbee" ion.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" jornada56x.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" jornada6xx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-jornada6xx" jornada7xx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-jornada7xx" kb9202.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" kilauea.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" kixrp435.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ks8695.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" lite5200.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" logicpd-pxa270.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}" looxc550.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" lsmipsel.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-lsmipsel" m8050.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" magicbox.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" magician.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" mainstone.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" mh355.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" micro2440.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mini2440" micro2440.conf:# PREFERRED_PROVIDER_virtual/kernel = "linux" mini2440.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mini2440" mini6410.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" mnci.conf:PREFERRED_PROVIDER_virtual/kernel = "mnci-ramses" mp900c.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-mobilepro900" mpc8313e-rdb.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mpc8315e-rdb.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mpc8323e-rdb.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mpc8544ds.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mpc8641-hpcn.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" mtx-1.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mtx-1" mtx-2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mtx-2" mtx-3a.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mtx-3a" mtx-3.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-mtx-3" mx21ads.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" mx27ads.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" mx31ads.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" mx31moboard.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" n1200.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-n1200" n2100.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" native.conf:PREFERRED_PROVIDER_virtual/kernel = "native-kernel" navman-icn330.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-navman" neek.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-nios2" netbook-pro.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" netvista.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" neuros-osd2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-neuros" neuros-osd.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-neuros" nhk15.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" nokia770.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-nokia800" nokia800.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-nokia800" nokia900.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" om-3d7k.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-openmoko-2.6.29" omap1510inn.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-2.6" omap1610h2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-2.6" omap1710h3.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap1" omap2420h4.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap2" omap2430sdp.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap2" omap3evm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" omap3-pandora.conf:PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" omap3-touchbook.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" omap4430-panda.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap4" omap5912osk.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" omapzoom2.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-zoomsync" omapzoom36x.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-zoomsync" omapzoom.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap" om-gta01.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-openmoko-2.6.29" om-gta02.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux-openmoko-2.6.34" overo.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" p1020rdb.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" p2020ds.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" palmpre.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-palmpre" palmtt.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-palm-omap1" palmz71.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-palm-omap1" progear.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemuarm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemumips64.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemumips.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemumipsel.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemuppc.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemush4.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" qemux86.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" rb500.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-rb500" ronetix-pm9261.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" ronetix-pm9263.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" rt3000.conf:PREFERRED_PROVIDER_virtual/kernel = "rt3000" rx1950.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" rx3000.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6" sarge-at91.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" sequoia.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" sgh-i900.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-sgh-i900" sh7785lcr.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" shark.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-z" simpad.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" smartq5.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" smartqv7.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" smdk2440.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-smdk2440" smdk2443.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-smdk2443" smdk6410.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" stamp9g20evb.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" stb225.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" storcenter.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-storcenter" sun4cdm.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-sun4cdm" titan.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-titan-sh4" topas910.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" tqm8540.conf:PREFERRED_PROVIDER_virtual/kernel ?= "linux" triton.conf:PREFERRED_PROVIDER_virtual/kernel = "triton-kernel" ts72xx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" tx25.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" tx27.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" wgt634u.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-brcm" vmware.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" vortex86sx.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" wrap.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" wrt54.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-wrt" x86-32-nocona.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-x86" x86.conf:PREFERRED_PROVIDER_virtual/kernel = "linux" x86-prescott.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-x86" x86-uml.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-uml" xilinx-ml403.conf:#PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx-slab" xilinx-ml410.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" xilinx-ml507.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx-ml507" xilinx-virtex4.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx" xilinx-virtex5.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx" xo.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xo" xxs1500.conf:PREFERRED_PROVIDER_virtual/kernel = "linux-xxs1500"
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Khem Raj skrev:
Quoted 22 lines
Quoted 20 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 19 lines · Ulf Samuelsson
Quoted 18 lines
Marcin Juszkiewicz skrev:
Quoted 9 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.he
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.
We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.
If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
Any other problem?
BR
Ulf Samuelsson
Quoted 68 lines
Quoted 4 lines
The patch will move the definition from the machine file to the include file for a few board, so reverting the patch will not solve the problem, just spread it out into multiple files.
The patch also adds some boards.it pins a kernel version thats not ok IMO. You should pin this in the kernel recipes
instead for the machines that should use it usingPREFERRED_VERSIONSQuoted 3 lines
Having default preference in recipes is not going to make it easy to switch between version so I don't like that method at all.
what do you mean by easy here ? Its not difficult to change two priority numbers. I think we should try to remain inline with our policies
whatever they are otherwise it will create confusion.Quoted 4 lines
Using the distro to select boot and kernel, seems flawed since none of the stuff will reside in the file system (my file system) but at least this is easily maintainable.
usually in OE distros set policy with sufficient knowledge of machine characteristics
you can think of ways to use this approach. distro does not decide on which kernel or u-boot
these are machine specific recipes and you decide which one to feed for which machine in the recipe.Quoted 21 lines
The best right now seems to be to make a new distro file for each kernel version, which just includes Angstrom and adds version info for kernel, u-boot and at91bootstrap.
Long term, I think that there should be something equivalent to DISTRO for the files outside the file system, and that you should be able to select between multiple variants like you select a DISTRO today, but I am not yet into bitbake, so I can't tell where to start.
Since the reversal of the patch, wont solve anything, I suggest we agree on how to proceed, and then do the fixes. Is including Angstrom from a kernel specific distro file OK?
If a distro file is to include another file, then
you have to be able to tell different kernels forI guess we could do:
Quoted 7 lines
require conf/distro/include/$(SOC_FAMILY).inc
conf/distro/include/at91.inc would contain:
PREFERRED_VERSION_at91bootstrap= "2.13"
PREFERRED_VERSION_u-boot = "2009.11"why is all this needed ?
Quoted 7 lines
Not sure how to do machine dependent kernel version
PREFERRED_VERSION_linux_at91sam9g45ek= "2.6.30"
does not feel like it would work.
Ideas?
Quoted 29 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 28 lines
Quoted 25 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 19 lines · Ulf Samuelsson
Quoted 10 lines
Marcin Juszkiewicz skrev:
Quoted 9 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
Quoted 8 lines
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heQuoted 3 lines
NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
Quoted 6 lines
Quoted 2 lines
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.
Well we have distro which sets policies including which recipe versions to be pinned
machine configuration decides on various machine features. There are different ways to do it
but if we remain consistent in what we do, we can make it more understandable for others
If you feel strongly that your approach is good I think it should be decided if this is suitable
for majority of OE distro and machines, If it has technical merits over existing approaches
people will be interested in it.
Quoted 9 lines
We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
I dont think it will force any rebuild or anything. It will just not be the way other machines
do things. The machine configuration tend to be version agnostic as per current approach.
Quoted 2 lines
Any other problem?
what are the issues that you see in following approaches suggested in this thread so far ?
Quoted 79 lines
BR
Ulf SamuelssonQuoted 53 lines
Quoted 4 lines
The patch will move the definition from the machine file to the include file for a few board, so reverting the patch will not solve the problem, just spread it out into multiple files.
The patch also adds some boards.it pins a kernel version thats not ok IMO. You should pin this in the kernel recipes
instead for the machines that should use it usingPREFERRED_VERSIONSQuoted 3 lines
Having default preference in recipes is not going to make it easy to switch between version so I don't like that method at all.
what do you mean by easy here ? Its not difficult to change two priority numbers. I think we should try to remain inline with our policies
whatever they are otherwise it will create confusion.Quoted 4 lines
Using the distro to select boot and kernel, seems flawed since none of the stuff will reside in the file system (my file system) but at least this is easily maintainable.
usually in OE distros set policy with sufficient knowledge of machine characteristics
you can think of ways to use this approach. distro does not decide on which kernel or u-boot
these are machine specific recipes and you decide which one to feed for which machine in the recipe.Quoted 23 lines
The best right now seems to be to make a new distro file for each kernel version, which just includes Angstrom and adds version info for kernel, u-boot and at91bootstrap.
Long term, I think that there should be something equivalent to DISTRO for the files outside the file system, and that you should be able to select between multiple variants like you select a DISTRO today, but I am not yet into bitbake, so I can't tell where to start.
Since the reversal of the patch, wont solve anything, I suggest we agree on how to proceed, and then do the fixes. Is including Angstrom from a kernel specific distro file OK?
If a distro file is to include another file, then
you have to be able to tell different kernels forI guess we could do:
require conf/distro/include/$(SOC_FAMILY).inc
Quoted 15 lines
Quoted 5 lines
conf/distro/include/at91.inc would contain:
PREFERRED_VERSION_at91bootstrap= "2.13"
PREFERRED_VERSION_u-boot = "2009.11"why is all this needed ?
Quoted 7 lines
Not sure how to do machine dependent kernel version
PREFERRED_VERSION_linux_at91sam9g45ek= "2.6.30"
does not feel like it would work.
Ideas?_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Khem Raj skrev:
Quoted 63 lines
Quoted 26 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 25 lines
Quoted 23 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 22 lines · Ulf Samuelsson
Quoted 10 lines
Marcin Juszkiewicz skrev:
Quoted 9 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
Quoted 8 lines
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heNAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.Well we have distro which sets policies including which recipe versions to be pinned
machine configuration decides on various machine features. There are different ways to do it
but if we remain consistent in what we do, we can make it more understandable for othersIf you feel strongly that your approach is good I think it should be decided if this is suitable
for majority of OE distro and machines, If it has technical merits over existing approaches
people will be interested in it.Quoted 8 lines
We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
I dont think it will force any rebuild or anything. It will just not be the way other machines
do things. The machine configuration tend to be version agnostic as per current approach.
Quoted 5 lines
Quoted 2 lines
Any other problem?
what are the issues that you see in following approaches suggested in this thread so far ?
1) Many boards do put kernel version in the machine conf file. The patch was created to collect common stuff in an include file to make maintenance easier.
2) I cannot assume that all Atmel chips should use the same kernel, so a single include file will not make it.
3) I want to be able to work with two kernel versions for the same chip. This is to have one stable kernel, and one development kernel. The use of the develoment kernel, should not make the stable version unbuildable.
If I put the preferred version in the recipe, then I can only work with one kernel.
If I try to use the preferred version in the recipe, then I have to have two machine files.
I.E:
at91sam9g45ek
at91sam9g45ek-devel
and I have to support both machines in the recipe.
Once I have come to a point, where the development kernel is to become the stable version, then I have to edit the recipe again to make this the official.
I have to remove all references to "sam9g45ek",
then I have to modify the "sam9g45ek-devel" settings to refer to "sam9g45ek", remove the sam9g45ek.conf and rename the sam9g45ek-devel.conf to sam9g45ek.conf.
I then have to retest everything!
As I see it, the kernel/u-boot/at91bootstrap hangs together, and it is easier to maintain a single include file with versions for this, than to maintain the three recipes.
If I maintain in the recipes, I have to create a lot of preferred_version_<machine>) in multiple kernel recipes, and with my method, I include a single file in the machine configuration.
If I want to change kernel version, I edit a few characters.
4. This points to another weakness.
You can only build a certain machine in one way.
Today, when we specify a MACHINE, we use "$MACHINE.conf"
It would be better, if you could have several machine configuration files referring to the same MACHINE, and specifying the MACHINE in the configuration file.
local.conf would then contain
MACHINE_CONFIG = at91sam9g45ek-2.6.30.conf
"at91sam9g45ek-2.6.30.conf" would contain
MACHINE = at91sam9g45ek
This would allow several configuration files referring to the same machine.
The machine configuration must support selecting separate
* linux ".config"
* uboot configuration
* boot monitor configuration.
Possibly, then machine configuration should support downloading such stuff from internet.
(I don't expect the mainline OE to contain more than one "stable"
version)
BR
Ulf
Quoted 89 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 78 lines
Quoted 39 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 37 lines
Quoted 34 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 31 lines · Ulf Samuelsson
Quoted 16 lines
Marcin Juszkiewicz skrev:
Quoted 5 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02
[email protected]
napisaB(a):Quoted 8 lines
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce?
Createinclude/at91-sam9.incand put it there.Regards,
Quoted 8 lines
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heNAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or
distro include files.Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.Well we have distro which sets policies including which recipe versions to be pinned
machine configuration decides on various machine features. There are different ways to do it
but if we remain consistent in what we do, we can make it more understandable for othersIf you feel strongly that your approach is good I think it should be decided if this is suitable
for majority of OE distro and machines, If it has technical merits over existing approaches
people will be interested in it.Quoted 8 lines
We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
I dont think it will force any rebuild or anything. It will just not be the way other machines
do things. The machine configuration tend to be version agnostic as per current approach.Quoted 5 lines
Quoted 2 lines
Any other problem?
what are the issues that you see in following approaches suggested in this thread so far ?
1) Many boards do put kernel version in the machine conf file. The patch was created to collect common stuff in an include file to make maintenance easier.
Quoted 7 lines
2) I cannot assume that all Atmel chips should use the same kernel, so a single include file will not make it.
3) I want to be able to work with two kernel versions for the same chip. This is to have one stable kernel, and one development kernel. The use of the develoment kernel, should not make the stable version unbuildable.
you want to ship with two kernel or you want to work with two kernel versions? if you just want to develop then you can have the stable kernel version as preferred version
and override that in local.conf with yout dev kernel for development purposes. Once you are
done with it and it is your next stable just add DEFAULT_PREFERENCE_<machine> = "1" in that recipe
and it should become new default for this machine.
for release you can create your own pinned config file and call it inside distro config you have
and have two distros one for dev and one for stable
Quoted 47 lines
If I put the preferred version in the recipe, then I can only work with one kernel.
If I try to use the preferred version in the recipe, then I have to have two machine files.
I.E:
at91sam9g45ek
at91sam9g45ek-develand I have to support both machines in the recipe.
Once I have come to a point, where the development kernel is to become the stable version, then I have to edit the recipe again to make this the official.
I have to remove all references to "sam9g45ek",
then I have to modify the "sam9g45ek-devel" settings to refer to "sam9g45ek", remove the sam9g45ek.conf and rename the sam9g45ek-devel.conf to sam9g45ek.conf.I then have to retest everything!
As I see it, the
kernel/u-boot/at91bootstraphangs together, and it is easier to maintain a single include file with versions for this, than to maintain the three recipes.If I maintain in the recipes, I have to create a lot of preferred_version_<machine>) in multiple kernel recipes, and with my method, I include a single file in the machine configuration.
If I want to change kernel version, I edit a few characters.4. This points to another weakness.
You can only build a certain machine in one way.Today, when we specify a MACHINE, we use "$MACHINE.conf"
It would be better, if you could have several machine configuration files referring to the same MACHINE, and specifying the MACHINE in the configuration file.
local.conf would then contain
MACHINE_CONFIG= at91sam9g45ek-2.6.30.conf"at91sam9g45ek-2.6.30.conf" would contain
Quoted 8 lines
MACHINE = at91sam9g45ek
This would allow several configuration files referring to the same machine.
The machine configuration must support selecting separate
* linux ".config"
* uboot configuration
* boot monitor configuration.
why not use existing MACHINE_FEATURES to steer the features you would like to change in .config files.
Quoted 17 lines
Possibly, then machine configuration should support downloading such stuff from internet.
(I don't expect the mainline OE to contain more than one "stable" version)
BR
Ulf_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Khem Raj skrev:
Quoted 83 lines
Quoted 73 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 64 lines
Quoted 29 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 28 lines
Quoted 26 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 25 lines · Ulf Samuelsson
Quoted 12 lines
Marcin Juszkiewicz skrev:
Quoted 11 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02
[email protected]
napisaB(a):Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce?
Createinclude/at91-sam9.incand put it there.Regards,
Quoted 8 lines
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heNAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or
distro include files.Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.Well we have distro which sets policies including which recipe versions to be pinned
machine configuration decides on various machine features. There are different ways to do it
but if we remain consistent in what we do, we can make it more understandable for othersIf you feel strongly that your approach is good I think it should be decided if this is suitable
for majority of OE distro and machines, If it has technical merits over existing approaches
people will be interested in it.Quoted 8 lines
We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
I dont think it will force any rebuild or anything. It will just not be the way other machines
do things. The machine configuration tend to be version agnostic as per current approach.Quoted 4 lines
Quoted 2 lines
Any other problem?
what are the issues that you see in following approaches suggested in this thread so far ?
1) Many boards do put kernel version in the machine conf file. The patch was created to collect common stuff in an include file to make maintenance easier.
Quoted 7 lines
2) I cannot assume that all Atmel chips should use the same kernel, so a single include file will not make it.
3) I want to be able to work with two kernel versions for the same chip. This is to have one stable kernel, and one development kernel. The use of the develoment kernel, should not make the stable version unbuildable.
Quoted 9 lines
you want to ship with two kernel or you want to work with two kernel versions? if you just want to develop then you can have the stable kernel version as preferred version
and override that in local.conf with yout dev kernel for development purposes. Once you are
done with it and it is your next stable just add DEFAULT_PREFERENCE_<machine> = "1" in that recipe
and it should become new default for this machine.
I would like to ship with two kernels.
one "stable" kernel, and another "development" kernel which is accessible to others to allow shared responsibility for testing purposes.
Preferably, it should be possible to build both, without having to rebuild the complete root fs.
Quoted 59 lines
for release you can create your own pinned config file and call it inside distro config you have
and have two distros one for dev and one for stableQuoted 46 lines
If I put the preferred version in the recipe, then I can only work with one kernel.
If I try to use the preferred version in the recipe, then I have to have two machine files.
I.E:
at91sam9g45ek
at91sam9g45ek-develand I have to support both machines in the recipe.
Once I have come to a point, where the development kernel is to become the stable version, then I have to edit the recipe again to make this the official.
I have to remove all references to "sam9g45ek",
then I have to modify the "sam9g45ek-devel" settings to refer to "sam9g45ek", remove the sam9g45ek.conf and rename the sam9g45ek-devel.conf to sam9g45ek.conf.I then have to retest everything!
As I see it, the
kernel/u-boot/at91bootstraphangs together, and it is easier to maintain a single include file with versions for this, than to maintain the three recipes.If I maintain in the recipes, I have to create a lot of preferred_version_<machine>) in multiple kernel recipes, and with my method, I include a single file in the machine configuration.
If I want to change kernel version, I edit a few characters.4. This points to another weakness.
You can only build a certain machine in one way.Today, when we specify a MACHINE, we use "$MACHINE.conf"
It would be better, if you could have several machine configuration files referring to the same MACHINE, and specifying the MACHINE in the configuration file.
local.conf would then contain
MACHINE_CONFIG= at91sam9g45ek-2.6.30.conf"at91sam9g45ek-2.6.30.conf" would contain
Quoted 8 lines
MACHINE = at91sam9g45ek
This would allow several configuration files referring to the same machine.
The machine configuration must support selecting separate
* linux ".config"
* uboot configuration
* boot monitor configuration.
Quoted 11 lines
why not use existing
MACHINE_FEATURESto steer the features you would like to change in .config files.Quoted 7 lines
Possibly, then machine configuration should support downloading such stuff from internet.
(I don't expect the mainline OE to contain more than one "stable"
version)
BR
Ulf
Quoted 98 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 86 lines
Quoted 76 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 67 lines
Quoted 32 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 31 lines
Quoted 29 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 28 lines · Ulf Samuelsson
Quoted 12 lines
Marcin Juszkiewicz skrev:
Quoted 11 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02
[email protected]
napisaB(a):Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce?
Createinclude/at91-sam9.incand put it there.Regards,
Quoted 9 lines
This is to allow different kernel versions for different AT91 chips.
This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heNAK! Machines don't get to decide versions! Please revert that commit
and come up with a better way, e.g.default_preferencein the recipes
or
distro include files.Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.Well we have distro which sets policies including which recipe versions to be pinned
machine configuration decides on various machine features. There are different ways to do it
but if we remain consistent in what we do, we can make it more understandable for othersIf you feel strongly that your approach is good I think it should be decided if this is suitable
for majority of OE distro and machines, If it has technical merits over existing approaches
people will be interested in it.Quoted 8 lines
We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
I dont think it will force any rebuild or anything. It will just not be the way other machines
do things. The machine configuration tend to be version agnostic as per current approach.Quoted 4 lines
Quoted 2 lines
Any other problem?
what are the issues that you see in following approaches suggested in this thread so far ?
1) Many boards do put kernel version in the machine conf file. The patch was created to collect common stuff in an include file to make maintenance easier.
Quoted 7 lines
2) I cannot assume that all Atmel chips should use the same kernel, so a single include file will not make it.
3) I want to be able to work with two kernel versions for the same chip. This is to have one stable kernel, and one development kernel. The use of the develoment kernel, should not make the stable version unbuildable.
Quoted 10 lines
you want to ship with two kernel or you want to work with two kernel versions?
if you just want to develop then you can have the stable kernel version as preferred version
and override that in local.conf with yout dev kernel for development purposes. Once you are
done with it and it is your next stable just add DEFAULT_PREFERENCE_<machine> = "1" in that recipe
and it should become new default for this machine.
Quoted 5 lines
I would like to ship with two kernels.
one "stable" kernel, and another "development" kernel which is accessible to others to allow shared responsibility for testing purposes.
you can either use different version of different recipe name with different name you can just override the virtual/kernel PREFERRED_PROVIDER_virtual/kernel = "/whatever/"
Quoted 3 lines
Preferably, it should be possible to build both, without having to rebuild the complete root fs.
yes why not. One just needs to flip the PREFERRED_VERSION in local.conf file and he should not get the kernel version he chose. and no rebuild of rfs is needed.
Quoted 81 lines
Quoted 61 lines
for release you can create your own pinned config file and call it inside distro config you have
and have two distros one for dev and one for stableQuoted 46 lines
If I put the preferred version in the recipe, then I can only work with one kernel.
If I try to use the preferred version in the recipe, then I have to have two machine files.
I.E:
at91sam9g45ek
at91sam9g45ek-develand I have to support both machines in the recipe.
Once I have come to a point, where the development kernel is to become the stable version, then I have to edit the recipe again to make this the official.
I have to remove all references to "sam9g45ek",
then I have to modify the "sam9g45ek-devel" settings to refer to "sam9g45ek", remove the sam9g45ek.conf and rename the sam9g45ek-devel.conf to sam9g45ek.conf.I then have to retest everything!
As I see it, the
kernel/u-boot/at91bootstraphangs together, and it is easier to maintain a single include file with versions for this, than to maintain the three recipes.If I maintain in the recipes, I have to create a lot of preferred_version_<machine>) in multiple kernel recipes, and with my method, I include a single file in the machine configuration.
If I want to change kernel version, I edit a few characters.4. This points to another weakness.
You can only build a certain machine in one way.Today, when we specify a MACHINE, we use "$MACHINE.conf"
It would be better, if you could have several machine configuration files referring to the same MACHINE, and specifying the MACHINE in the configuration file.
local.conf would then contain
MACHINE_CONFIG= at91sam9g45ek-2.6.30.conf"at91sam9g45ek-2.6.30.conf" would contain
Quoted 8 lines
MACHINE = at91sam9g45ek
This would allow several configuration files referring to the same machine.
The machine configuration must support selecting separate
* linux ".config"
* uboot configuration
* boot monitor configuration.Quoted 11 lines
why not use existing
MACHINE_FEATURESto steer the features you would like to change in .config files.Quoted 7 lines
Possibly, then machine configuration should support downloading such stuff from internet.
(I don't expect the mainline OE to contain more than one "stable"
version)BR
Ulf_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
Khem Raj skrev:
Quoted 107 lines · Ulf Samuelsson
Quoted 96 lines
Khem Raj skrev:
Quoted 85 lines
Quoted 76 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 67 lines
Quoted 32 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 31 lines
Quoted 29 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 28 lines · Ulf Samuelsson
Quoted 12 lines
Marcin Juszkiewicz skrev:
Quoted 11 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02
[email protected]
napisaB(a):Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce?
Createinclude/at91-sam9.incand put it there.Regards,
Quoted 9 lines
This is to allow different kernel versions for different AT91 chips.
This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heNAK! Machines don't get to decide versions! Please revert that commit
and come up with a better way, e.g.default_preferencein the recipes
or
distro include files.Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.Well we have distro which sets policies including which recipe versions to be pinned
machine configuration decides on various machine features. There are different ways to do it
but if we remain consistent in what we do, we can make it more understandable for othersIf you feel strongly that your approach is good I think it should be decided if this is suitable
for majority of OE distro and machines, If it has technical merits over existing approaches
people will be interested in it.Quoted 8 lines
We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
I dont think it will force any rebuild or anything. It will just not be the way other machines
do things. The machine configuration tend to be version agnostic as per current approach.Quoted 4 lines
Quoted 2 lines
Any other problem?
what are the issues that you see in following approaches suggested in this thread so far ?
1) Many boards do put kernel version in the machine conf file. The patch was created to collect common stuff in an include file to make maintenance easier.
Quoted 7 lines
2) I cannot assume that all Atmel chips should use the same kernel, so a single include file will not make it.
3) I want to be able to work with two kernel versions for the same chip. This is to have one stable kernel, and one development kernel. The use of the develoment kernel, should not make the stable version unbuildable.
Quoted 10 lines
you want to ship with two kernel or you want to work with two kernel versions?
if you just want to develop then you can have the stable kernel version as preferred version
and override that in local.conf with yout dev kernel for development purposes. Once you are
done with it and it is your next stable just add DEFAULT_PREFERENCE_<machine> = "1" in that recipe
and it should become new default for this machine.Quoted 5 lines
I would like to ship with two kernels.
one "stable" kernel, and another "development" kernel which is accessible to others to allow shared responsibility for testing purposes.you can either use different version of different recipe name with different name you can just override the virtual/kernel PREFERRED_PROVIDER_virtual/kernel = "/whatever/"
Quoted 7 lines
Quoted 3 lines
Preferably, it should be possible to build both, without having to rebuild the complete root fs.
yes why not. One just needs to flip the
PREFERRED_VERSIONin local.conf file and he should not get the kernel version he chose. and no rebuild of rfs is needed.
Except it is not obvious.
How does anyone know which kernel version is the stable
and which is the experimental.
Indeed, how does anyone know that there is an experimental kernel version at all.
Quoted 80 lines
Quoted 78 lines
Quoted 53 lines
for release you can create your own pinned config file and call it inside distro config you have
and have two distros one for dev and one for stableQuoted 48 lines
If I put the preferred version in the recipe, then I can only work with one kernel.
If I try to use the preferred version in the recipe, then I have to have two machine files.
I.E:
at91sam9g45ek
at91sam9g45ek-develand I have to support both machines in the recipe.
Once I have come to a point, where the development kernel is to become the stable version, then I have to edit the recipe again to make this the official.
I have to remove all references to "sam9g45ek",
then I have to modify the "sam9g45ek-devel" settings to refer to "sam9g45ek", remove the sam9g45ek.conf and rename the sam9g45ek-devel.conf to sam9g45ek.conf.I then have to retest everything!
As I see it, the
kernel/u-boot/at91bootstraphangs together, and it is easier to maintain a single include file with versions for this, than to maintain the three recipes.If I maintain in the recipes, I have to create a lot of preferred_version_<machine>) in multiple kernel recipes, and with my method, I include a single file in the machine configuration.
If I want to change kernel version, I edit a few characters.4. This points to another weakness.
You can only build a certain machine in one way.Today, when we specify a MACHINE, we use "$MACHINE.conf"
It would be better, if you could have several machine configuration files referring to the same MACHINE, and specifying the MACHINE in the configuration file.
local.conf would then contain
MACHINE_CONFIG= at91sam9g45ek-2.6.30.conf"at91sam9g45ek-2.6.30.conf" would contain
MACHINE = at91sam9g45ek
Quoted 17 lines
Quoted 6 lines
This would allow several configuration files referring to the same machine.
The machine configuration must support selecting separate
* linux ".config"
* uboot configuration
* boot monitor configuration.why not use existing
MACHINE_FEATURESto steer the features you would like to change in .config files.Quoted 7 lines
Possibly, then machine configuration should support downloading such stuff from internet.
(I don't expect the mainline OE to contain more than one "stable"
version)BR
Ulf_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
2010/10/25 Ulf Samuelsson <[email protected]>:
Quoted 7 lines
Except it is not obvious.
How does anyone know which kernel version is the stable
and which is the experimental.
Indeed, how does anyone know that there is an experimental kernel version at all.
Make two recipes (e.g. in an overlay)
linux-stable and linux-experimental
they can have their own defconfigs etc
and you can just include the base bb file.
if you want to you can even get both kernels in a single rfs so you can boot from either.
Have fun! Frans
Frans Meulenbroeks skrev:
Quoted 8 lines
2010/10/25 Ulf Samuelsson <[email protected]>:
Quoted 6 lines
Except it is not obvious.
How does anyone know which kernel version is the stable
and which is the experimental.
Indeed, how does anyone know that there is an experimental kernel version at all.
Quoted 6 lines
Make two recipes (e.g. in an overlay)
linux-stable and linux-experimental
they can have their own defconfigs etc
and you can just include the base bb file.
if you want to you can even get both kernels in a single rfs so you can boot from either.
Well the plan *is* to use two recipes, "linux-2.6.30.bb" and "linux-2.6.32.bb" as an example.
I am not sure what you mean by overlay.
Also not sure what you mean by includeing the base bb file. Which file would be the base?
Which file would include the base?
Quoted 7 lines
Have fun! Frans
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 1 line · Ulf Samuelsson
1) Many boards do put kernel version in the machine conf file.
And they all shouldn't be doing that. I'll remove everyone of those later today.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMv/WWMkyGM64RGpERAgr5AJsH+AY+hkvd0feTxYW+Ce2rAe77DgCdE87U A5KFOyS45+AIPlC3oNO50w0=
=iQY+
-----END PGP SIGNATURE-----
2010/10/21 Koen Kooi <[email protected]>:
Quoted 9 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 1 line · Ulf Samuelsson
1) Many boards do put kernel version in the machine conf file.
And they all shouldn't be doing that. I'll remove everyone of those later today.
I don't think you can do that without consulting the machine maintainers.
From the commit policy:
* Machine configs are less sensitive but machine maintainers should be consulted where present and known
Also i feel a review and some time to let people adapt to it is useful. Some distro's might (right or wrong) rely on the pinning that is done by the machine, so removing the pinnings without any notice could seriously break stuff for others.
From someone who complained before about others removing things or touching "his" recipe, I expect also respect for the work and position of others.
Frans.
PS: my opinion is that machine maintainers generally know better what kernel works best for their machines than distro owners; they also "own" the defconfig file
We have linux*/${MACHINE}/defconfig files, but not linux*/${DISTRO}/defconfig files.
PPS: what's next? removing the PREFERRED_PROVIDER_virtual/kernel from the machine configs because you feel you know better ?
Thinking of it: why not allow a machine to set its PREFERRED version and provider and override that within the distro, should a distro decide it wants something else?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 2 lines · Frans Meulenbroeks
PS: my opinion is that machine maintainers generally know better what kernel works best for their machines than distro owners;
And what's stopping them to put DEFAULT_PREFERENCE_machine and COMPATIBLE_MACHINE in the kernel recipes?
There is no technical reason for setting it in machine.conf, so why should we break the orthogonality for that?
Quoted 2 lines
PPS: what's next? removing the PREFERRED_PROVIDER_virtual/kernel from the machine configs because you feel you know better ?
That is actually an option these days since most kernel recipes set COMPATIBLE_MACHINE correctly :)
But seriously, there are use cases for one distro to use a different kernel for a given machine for whatever reasons.
This whole situation is a mess because recipes/linux is a mess. It would be a nice topic for OEDEM to see if we should switch to a poky BSP model. It would boils down to:
1 bblayer per machine or SOC_FAMILY containing:
* machine.conf
* first and second stage bootloaders
* kernel
I can see some serious issues with that, but that's for another thread to discuss.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMwAb7MkyGM64RGpERAuYSAKCaGnOasoXFk0Cb9xvcASP211PU0gCfaacw 850xksIBon0+M5P9rbt4mOo=
=5mO/
-----END PGP SIGNATURE-----
2010/10/21 Koen Kooi <[email protected]>:
Quoted 5 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On 21-10-10 10:43, Frans Meulenbroeks wrote:
Quoted 7 lines
Quoted 2 lines
PS: my opinion is that machine maintainers generally know better what kernel works best for their machines than distro owners;
And what's stopping them to put
DEFAULT_PREFERENCE_machineandCOMPATIBLE_MACHINEin the kernel recipes?
There is no technical reason for setting it in machine.conf, so why should we break the orthogonality for that?
I have no problems with that. We could start a migration process to achieve that. Guess the machine maintainers should be involved (and if no maintainer is known, i feel the machine should either get a new maintainer otherwise we should seriously consider whether we want to keep the machine).
Then again on the other hand it would be nice to have all machine specifics in one place (which is an argument for machine.conf), but of course the distro should be able to override that.
Quoted 8 lines
Quoted 3 lines
PPS: what's next? removing the PREFERRED_PROVIDER_virtual/kernel from the machine configs because you feel you know better ?
That is actually an option these days since most kernel recipes set
COMPATIBLE_MACHINEcorrectly :)
But seriously, there are use cases for one distro to use a different kernel for a given machine for whatever reasons.
Agree. I am not saying the distro should blindly follow the machine, the distro should have the ultimate control of what goes in the distro, but I feel it is up to the machine maintainer to come with a set of sensible defaults for that machine (which are applied if the distro uses the default setting)
Quoted 2 lines
This whole situation is a mess because recipes/linux is a mess. It would
Agree!
In a lesser case it also applies for u-boot (where some of the messiness is hidden in the uboot-git recipe)
Quoted 8 lines
be a nice topic for OEDEM to see if we should switch to a poky BSP model. It would boils down to:
1 bblayer per machine or
SOC_FAMILYcontaining:
* machine.conf
* first and second stage bootloaders
* kernel
Quoted 6 lines
I can see some serious issues with that, but that's for another thread to discuss.
regards,
Koen
Enjoy, Frans.
Koen Kooi skrev:
Quoted 21 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 2 lines · Frans Meulenbroeks
PS: my opinion is that machine maintainers generally know better what kernel works best for their machines than distro owners;
And what's stopping them to put
DEFAULT_PREFERENCE_machineandCOMPATIBLE_MACHINEin the kernel recipes?
There is no technical reason for setting it in machine.conf, so why should we break the orthogonality for that?Quoted 2 lines
PPS: what's next? removing the PREFERRED_PROVIDER_virtual/kernel from the machine configs because you feel you know better ?
That is actually an option these days since most kernel recipes set
COMPATIBLE_MACHINEcorrectly :)
But seriously, there are use cases for one distro to use a different kernel for a given machine for whatever reasons.
Quoted 8 lines
This whole situation is a mess because recipes/linux is a mess. It would be a nice topic for OEDEM to see if we should switch to a poky BSP model. It would boils down to:
1 bblayer per machine or
SOC_FAMILYcontaining:
* machine.conf
* first and second stage bootloaders
* kernel
I have already come to the conclusion that we could have a single linux.bb recipe.
This assumes that you define things like KERNEL_VERSION, SOC_FAMILY etc. outside the recipe and then include files with include filenames containing approproate ENVIRONMENT variables.
I.E:
include $(KERNEL_VERSION)/kernel_source
include $(SOC_FAMILY)/$(KERNEL_VERSION)/kernel_patch
etc.
Quoted 16 lines
I can see some serious issues with that, but that's for another thread to discuss.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)iD8DBQFMwAb7MkyGM64RGpERAuYSAKCaGnOasoXFk0Cb9xvcASP211PU0gCfaacw 850xksIBon0+M5P9rbt4mOo=
=5mO/
-----END PGP SIGNATURE-----
Quoted 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
BR
Ulf Samuelsson
2010/10/22 Ulf Samuelsson <[email protected]>:
Quoted 39 lines
Koen Kooi skrev:
Quoted 22 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 2 lines · Frans Meulenbroeks
PS: my opinion is that machine maintainers generally know better what kernel works best for their machines than distro owners;
And what's stopping them to put
DEFAULT_PREFERENCE_machineandCOMPATIBLE_MACHINEin the kernel recipes?
There is no technical reason for setting it in machine.conf, so why should we break the orthogonality for that?Quoted 2 lines
PPS: what's next? removing the PREFERRED_PROVIDER_virtual/kernel from the machine configs because you feel you know better ?
That is actually an option these days since most kernel recipes set
COMPATIBLE_MACHINEcorrectly :)
But seriously, there are use cases for one distro to use a different kernel for a given machine for whatever reasons.Quoted 8 lines
This whole situation is a mess because recipes/linux is a mess. It would be a nice topic for OEDEM to see if we should switch to a poky BSP model. It would boils down to:
1 bblayer per machine or
SOC_FAMILYcontaining:
* machine.conf
* first and second stage bootloaders
* kernelI have already come to the conclusion that we could have a single linux.bb recipe.
This assumes that you define things like
KERNEL_VERSION,SOC_FAMILYetc. outside the recipe and then include files with include filenames containing approproate ENVIRONMENT variables.
Quoted 6 lines
I.E:
include $(KERNEL_VERSION)/kernel_source include $(SOC_FAMILY)/$(KERNEL_VERSION)/kernel_patchetc.
Isn't that what kernel.bbclass is about ?
Wrt your example:
instead of
include $(KERNEL_VERSION)/kernel_source
you could say:
at the place where you define kernel_source:SRC_URI = "..."
Basically what you propose is kind of a template.
Frans
Frans Meulenbroeks skrev:
Quoted 45 lines
2010/10/22 Ulf Samuelsson <[email protected]>:
Quoted 35 lines
Koen Kooi skrev:
Quoted 19 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 2 lines · Frans Meulenbroeks
PS: my opinion is that machine maintainers generally know better what kernel works best for their machines than distro owners;
And what's stopping them to put
DEFAULT_PREFERENCE_machineandCOMPATIBLE_MACHINEin the kernel recipes?
There is no technical reason for setting it in machine.conf, so why should we break the orthogonality for that?Quoted 2 lines
PPS: what's next? removing the PREFERRED_PROVIDER_virtual/kernel from the machine configs because you feel you know better ?
That is actually an option these days since most kernel recipes set
COMPATIBLE_MACHINEcorrectly :)
But seriously, there are use cases for one distro to use a different kernel for a given machine for whatever reasons.Quoted 8 lines
This whole situation is a mess because recipes/linux is a mess. It would be a nice topic for OEDEM to see if we should switch to a poky BSP model. It would boils down to:
1 bblayer per machine or
SOC_FAMILYcontaining:
* machine.conf
* first and second stage bootloaders
* kernelI have already come to the conclusion that we could have a single linux.bb recipe.
This assumes that you define things like
KERNEL_VERSION,SOC_FAMILYetc. outside the recipe and then include files with include filenames containing approproate ENVIRONMENT variables.Quoted 6 lines
I.E:
include $(KERNEL_VERSION)/kernel_source include $(SOC_FAMILY)/$(KERNEL_VERSION)/kernel_patchetc.
Isn't that what kernel.bbclass is about ?
Quoted 9 lines
Wrt your example:
instead of
include $(KERNEL_VERSION)/kernel_source
you could say:
at the place where you definekernel_source:SRC_URI= "..."Basically what you propose is kind of a template.
Didn't study kernel.bbclass.
A problem with this approach, is that different kernel version are located in different directories.
http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.36-rc8.tar.gz
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.tar.bz2
If we want to have a single linux.bb file, then it
seems to be cleaner to have an include file per kernel version which specifies both the directory and the file name.
$(KERNEL_VERSION)/kernel_source would then contain
SRC_URI = "http://www.kernel.org/pub/linux/kernel/v2.6/linux-$(KERNEL_VERSION).tar.bz2"
for a stable kernel, and
SRC_URI = "http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-$(KERNEL_VERSION).tar.bz2" for a release candidate.
One this file is created for a kernel version, it would require little or no maintenance.
Similar files in the SOC_FAMILY directory structure would control which minor patch as well as other architecture specific patches to be added.
Quoted 6 lines
Frans
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 41 lines · Ulf Samuelsson
Khem Raj skrev:
Quoted 22 lines
Quoted 20 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 19 lines · Ulf Samuelsson
Quoted 18 lines
Marcin Juszkiewicz skrev:
Quoted 9 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heQuoted 8 lines
Quoted 5 lines
Quoted 3 lines
NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.
Quoted 4 lines
If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
Any other problem?
In general, if you pin a version in a machine file, consider what happens in the case of a distro that supports many machines. Your machine build one version of something and the other machines build another.
now do an update, upgrade on a package the version you chose may change, or it may change on the other machines. There are likely some packages you can pin version in machine files, but in general, it will cause problems for distros that support more than just one machine at a time.
Philip
Quoted 80 lines
BR
Ulf SamuelssonQuoted 53 lines
Quoted 4 lines
The patch will move the definition from the machine file to the include file for a few board, so reverting the patch will not solve the problem, just spread it out into multiple files.
The patch also adds some boards.it pins a kernel version thats not ok IMO. You should pin this in the kernel recipes
instead for the machines that should use it usingPREFERRED_VERSIONSQuoted 3 lines
Having default preference in recipes is not going to make it easy to switch between version so I don't like that method at all.
what do you mean by easy here ? Its not difficult to change two priority numbers. I think we should try to remain inline with our policies
whatever they are otherwise it will create confusion.Quoted 4 lines
Using the distro to select boot and kernel, seems flawed since none of the stuff will reside in the file system (my file system) but at least this is easily maintainable.
usually in OE distros set policy with sufficient knowledge of machine characteristics
you can think of ways to use this approach. distro does not decide on which kernel or u-boot
these are machine specific recipes and you decide which one to feed for which machine in the recipe.Quoted 23 lines
The best right now seems to be to make a new distro file for each kernel version, which just includes Angstrom and adds version info for kernel, u-boot and at91bootstrap.
Long term, I think that there should be something equivalent to DISTRO for the files outside the file system, and that you should be able to select between multiple variants like you select a DISTRO today, but I am not yet into bitbake, so I can't tell where to start.
Since the reversal of the patch, wont solve anything, I suggest we agree on how to proceed, and then do the fixes. Is including Angstrom from a kernel specific distro file OK?
If a distro file is to include another file, then
you have to be able to tell different kernels forI guess we could do:
require conf/distro/include/$(SOC_FAMILY).inc
Quoted 15 lines
Quoted 5 lines
conf/distro/include/at91.inc would contain:
PREFERRED_VERSION_at91bootstrap= "2.13"
PREFERRED_VERSION_u-boot = "2009.11"why is all this needed ?
Quoted 7 lines
Not sure how to do machine dependent kernel version
PREFERRED_VERSION_linux_at91sam9g45ek= "2.6.30"
does not feel like it would work.
Ideas?_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
2010/10/19 Philip Balister <[email protected]>:
Quoted 62 lines · Ulf Samuelsson
Quoted 52 lines
Khem Raj skrev:
Quoted 35 lines
Quoted 32 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 29 lines · Ulf Samuelsson
Quoted 14 lines
Marcin Juszkiewicz skrev:
Quoted 11 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
Quoted 8 lines
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heNAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or
distro include files.Quoted 5 lines
Quoted 2 lines
If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.Quoted 4 lines
If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
Any other problem?
In general, if you pin a version in a machine file, consider what happens in the case of a distro that supports many machines. Your machine build one version of something and the other machines build another.
Quoted 7 lines
now do an update, upgrade on a package the version you chose may change, or it may change on the other machines. There are likely some packages you can pin version in machine files, but in general, it will cause problems for distros that support more than just one machine at a time.
Philip
It does not cause a problem if it are machine specific recipes (things like linux, u-boot etc. those which end up in tmp/work/${MACHINE}... (and actually it seems logical to let the machine decide for those)
It may (and most likely will) cause problems in the way you describe for the recipes that are arch specific and not machine specific. One exception: if a pinning applies for *all* systems in the arch. E.g. for nios2 gcc 4.1.2 is still the only option so pinning it would cause no damage (but there it has been resolved in a different way)
Frans.
Philip Balister skrev:
Quoted 45 lines · Ulf Samuelsson
Quoted 44 lines
Khem Raj skrev:
Quoted 22 lines
Quoted 20 lines · Ulf Samuelsson
Koen Kooi skrev:
Quoted 19 lines · Ulf Samuelsson
Quoted 18 lines
Marcin Juszkiewicz skrev:
Quoted 9 lines
Dnia sobota, 16 pazdziernika 2010 o 14:50:02 [email protected] napisaB(a):
Quoted 2 lines
+++ b/conf/machine/include/at91-2.6.30.inc
+++ b/conf/machine/include/at91-2.6.32.incDo you plan to duplicate that file with each kernel you will produce? Create
include/at91-sam9.incand put it there.Regards,
This is to allow different kernel versions for different AT91 chips. This allows both a "stable" version, and a development kernel to be easily handled.
The file defines (amongst other things) the
* kernel version,
* u-boot version
* at91bootstrap version
so you need one file per version.heQuoted 8 lines
Quoted 5 lines
Quoted 3 lines
NAK! Machines don't get to decide versions! Please revert that commit and come up with a better way, e.g.
default_preferencein the recipes or distro include files.If I look at the machine files, almost all of them provide a preferred kernel / u-boot. Some also provide version.
we should avoid pinning versions there. Choosing a type is fine.
Why ?
Is it because it affect rebuild time?
It would be good to understand what problems people see with this.We are pinning the version to a specific machine, in the kernel recipe. If we add a new recipe, then we can, by increasing the priority force a different kernel to be built.
This will not affect anything else.If the version is in the machine configuration, then a change of kernel version could force a total rebuild, or?
Quoted 7 lines
Quoted 1 line
Any other problem?
In general, if you pin a version in a machine file, consider what happens in the case of a distro that supports many machines. Your machine build one version of something and the other machines build another.
now do an update, upgrade on a package the version you chose may change, or it may change on the other machines. There are likely some packages you can pin version in machine files, but in general, it will cause problems for distros that support more than just one machine at a time.
Philip
We are only talking about the kernel/u-boot/at91bootstrap.
Not any arbitrary applications.
I do agree that the distro should handle versioning for the normal file system.
BR
Ulf Samuelsson