[Angstrom-devel] Automatic network device configuration
Hi, I have a general question about network configuration in Angstrom, Reading: http://www.linuxtogo.org/gowiki/AngstromManual#Communications.26Networking I have made entries in /etc/network/interfaces But what is the right way for the usb0 interface to be automatically configured (i.e. no need to manually run ifup)? I believe this could be done from a udev rule, but was wondering if there is another configuration or daemon that can be asked to run ifup or ifconfig when the usb0 device is created. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH meta-ti] sdcard_image: Copy user.txt/uEnv.txt if it exists in /boot
On Thu, Oct 20, 2011 at 12:40 AM, Koen Kooi k...@dominion.thruhere.net wrote: [added meta-ti list] Op 20 okt. 2011, om 05:52 heeft Joel A Fernandes het volgende geschreven: Pick up uEnv.txt/user.txt U-boot environment files installed in /boot This doesn't match what the patch does :/ Yes it does Signed-off-by: Joel A Fernandes joelag...@ti.com --- classes/sdcard_image.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass index ed9d779..c535ad2 100644 --- a/classes/sdcard_image.bbclass +++ b/classes/sdcard_image.bbclass @@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () { suffix=bin fi + cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then - cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true Your patch is effectively a noop, I don't see the value in applying it. There is quite a lot of value in applying it. I suggest you try to build an image (cloud9 / ti-hw-bringup) and notice that there is no uEnv.txt in the boot partition. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH meta-ti] sdcard_image: Copy user.txt/uEnv.txt if it exists in /boot
Signed-off-by: Joel A Fernandes joelag...@ti.com --- classes/sdcard_image.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass index ed9d779..c535ad2 100644 --- a/classes/sdcard_image.bbclass +++ b/classes/sdcard_image.bbclass @@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () { suffix=bin fi + cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then - cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true Your patch is effectively a noop, I don't see the value in applying it. There is quite a lot of value in applying it. I suggest you try to build an image (cloud9 / ti-hw-bringup) and notice that there is no uEnv.txt in the boot partition. If you're fixing the bug that {1,2,3} will only pick 1, but forget 2,3 then user.txt is still broken. If you're saying uboot.suffix is not in /boot, we need to fix that. Either way, I'm not supposed to be guessing that, you should explain that in the commit message or with comments in the code or both. Please let the sdcard class copy the U-boot environment files (as it originally was) from /boot to the boot partition and not make it conditional on the presence of anything else. Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH v3 meta-ti] linux-ti33x-psp 3.1rc8: Add pin mux and init for beaglebone specific devices
Updated the USER LED patch to include BeagleBone tester specific initialization/code. Build and run time tested. Signed-off-by: Joel A Fernandes joelag...@ti.com --- v3: * formatted patch with -B -C * Modified commit summary ...in-mux-and-init-for-beaglebone-specific-.patch} | 63 +-- recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb |4 +- 2 files changed, 45 insertions(+), 22 deletions(-) rename recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/{0001-am335x-evm-hack-in-LED-support-for-beaglebone.patch = 0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch} (58%) diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-evm-hack-in-LED-support-for-beaglebone.patch b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch similarity index 58% rename from recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-evm-hack-in-LED-support-for-beaglebone.patch rename to recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch index b043ce9..a501c8a 100644 --- a/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-evm-hack-in-LED-support-for-beaglebone.patch +++ b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch @@ -1,16 +1,20 @@ -From f658d7975f2e7232786190002ddd24d6b92ba965 Mon Sep 17 00:00:00 2001 -From: Denys Dmytriyenko de...@ti.com +From 5be793dc9de7e694d9256396aecfdc136c8e2cf6 Mon Sep 17 00:00:00 2001 +From: Joel A Fernandes joelag...@ti.com Date: Mon, 17 Oct 2011 02:00:39 -0400 -Subject: [PATCH] am335x-evm: hack in LED support for beaglebone +Subject: [PATCH] am335x: Add pin mux and init for beaglebone specific devices -Signed-off-by: Koen Kooi k...@dominion.thruhere.net -Signed-off-by: Denys Dmytriyenko de...@ti.com +Currently added for following: + * User LEDs (added by Koen Kooi k-k...@ti.com) + * BeagleBone tester + +Signed-off-by: Joel A Fernandes joelag...@ti.com --- - arch/arm/mach-omap2/board-am335xevm.c | 63 + - 1 files changed, 63 insertions(+), 0 deletions(-) + arch/arm/mach-omap2/board-am335xevm.c | 69 + + arch/arm/mach-omap2/mux33xx.c |2 +- + 2 files changed, 70 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c -index 87eec7b..3a3c55b 100644 +index f625510..6beaa23 100644 --- a/arch/arm/mach-omap2/board-am335xevm.c +++ b/arch/arm/mach-omap2/board-am335xevm.c @@ -17,6 +17,7 @@ @@ -21,7 +25,7 @@ index 87eec7b..3a3c55b 100644 #include linux/spi/spi.h #include linux/spi/flash.h #include linux/mtd/mtd.h -@@ -588,6 +589,58 @@ static struct pinmux_config usb1_pin_mux[] = { +@@ -590,6 +591,61 @@ static struct pinmux_config usb1_pin_mux[] = { {NULL, 0}, }; @@ -70,24 +74,30 @@ index 87eec7b..3a3c55b 100644 + leds_gpio, +}; + -+static struct pinmux_config boneled_pin_mux[] = { -+{gpmc_a5.rgmii2_td0, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // gpio 21 -+{gpmc_a6.rgmii2_tclk, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // gpio22 -+{gpmc_a7.rgmii2_rclk, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // gpio23 -+{gpmc_a8.rgmii2_rd3, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // gpio 24 ++static struct pinmux_config bone_pin_mux[] = { ++ /* User LED gpios (gpio1_21 to gpio1_24) */ ++{gpmc_a5.rgmii2_td0, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, ++{gpmc_a6.rgmii2_tclk, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, ++{gpmc_a7.rgmii2_rclk, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, ++{gpmc_a8.rgmii2_rd3, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, ++/* Grounding gpio1_6 (pin 3 Conn A) signals bone tester to start diag tests */ ++{gpmc_ad6.gpio1_6, OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP}, +}; + /* Module pin mux for eCAP0 */ static struct pinmux_config ecap0_pin_mux[] = { {ecap0_in_pwm0_out.gpio0_7, AM33XX_PIN_OUTPUT}, -@@ -696,6 +749,15 @@ static void tsc_init(int evm_id, int profile) +@@ -698,6 +754,18 @@ static void tsc_init(int evm_id, int profile) pr_err(failed to register touchscreen device\n); } -+static void bone_leds_init(int evm_id, int profil ) ++/* ++ * Initialization of BeagleBone specific devices ++ */ ++static void bone_init(int evm_id, int profil ) +{ + int err; -+ setup_pin_mux(boneled_pin_mux); ++ setup_pin_mux(bone_pin_mux); + err = platform_add_devices(bone_devices, ARRAY_SIZE(bone_devices)); + if (err) + pr_err(failed to register LEDS\n); @@ -96,14 +106,27 @@ index 87eec7b..3a3c55b 100644 static void rgmii1_init(int evm_id, int profile) { setup_pin_mux(rgmii1_pin_mux); -@@ -1101,6 +1163,7 @@ static struct evm_dev_cfg beaglebone_dev_cfg[] = { +@@ -1103,6 +1171,7 @@ static struct evm_dev_cfg beaglebone_dev_cfg[] = { {usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE
[Angstrom-devel] [PATCH v2 meta-ti] sdcard_image: Copy user.txt/uEnv.txt if it exists in /boot
Fixed a bug where the U-boot environment files are not copied to the boot partition if they were installed in /boot by other recipes. We should copy the uEnv.txt and user.txt always without placing a condition for the presence of anything else in /boot. This is the original behavior of sdcard_image before the recent wave of changes to it. Signed-off-by: Joel A Fernandes joelag...@ti.com --- v2: Updated commit summary classes/sdcard_image.bbclass |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass index ed9d779..c535ad2 100644 --- a/classes/sdcard_image.bbclass +++ b/classes/sdcard_image.bbclass @@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () { suffix=bin fi + cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then - cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true else cp -v ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.$suffix ${WORKDIR}/tmp-mnt-boot/u-boot.$suffix fi -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH meta-ti 2/2] u-boot 2011.10rc: Read EEPROM header correctly for BeagleBone board detection
This patch fixes the case where the EEPROM is programmed but we still use the fall back case to detect the bone board. Now that EEPROMs are programmed, we should correctly detect the bone board instead of relying on fall back to bone mode. PR bumped Signed-off-by: Joel A Fernandes joelag...@ti.com --- * Build and run time tested * This also verifies Jason's 8 bit EEPROM read patch ...Read-name-field-in-EEPROM-header-for-Beag.patch | 28 recipes-bsp/u-boot/u-boot_2011.10rc.bb |3 +- 2 files changed, 30 insertions(+), 1 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch diff --git a/recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch b/recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch new file mode 100644 index 000..ef901a9 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch @@ -0,0 +1,28 @@ +From 186250ee6abca3f080b5321504a1c5881ffbf7c6 Mon Sep 17 00:00:00 2001 +From: Joel A Fernandes joelag...@ti.com +Date: Thu, 20 Oct 2011 19:46:53 -0500 +Subject: [PATCH] am335x-evm: Read name field in EEPROM header for BeagleBoard bone detection + +Signed-off-by: Joel A Fernandes joelag...@ti.com +--- + board/ti/am335x/evm.c |4 + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c +index 37e348f..b63dcbe 100755 +--- a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c +@@ -501,6 +501,10 @@ int board_init(void) + detect_daughter_board_profile(); + } else if (!strncmp(SKU#03, header.config, 6)) { + board_id = IPP_BOARD; ++ } else if (!strncmp(A335BONE, header.name, 8)) { ++ board_id = BONE_BOARD; ++ profile = 1;/* profile 0 is internally considered as 1 */ ++ daughter_board_connected = 0; + } else { + printf(Did not find a recognized configuration, + assuming BeagleBone\n); +-- +1.7.1 + diff --git a/recipes-bsp/u-boot/u-boot_2011.10rc.bb b/recipes-bsp/u-boot/u-boot_2011.10rc.bb index 35c84da..7054c11 100644 --- a/recipes-bsp/u-boot/u-boot_2011.10rc.bb +++ b/recipes-bsp/u-boot/u-boot_2011.10rc.bb @@ -4,7 +4,7 @@ require u-boot.inc COMPATIBLE_MACHINE = (ti33x) DEFAULT_PREFERENCE_ti33x = 99 PV = 2011.09+git -PR = r12 +PR = r13 # SPL build UBOOT_BINARY = u-boot.img @@ -17,6 +17,7 @@ SRC_URI = git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;br file://2011.09git/0003-am335x-evm-make-rootfs-RO-on-boot.patch \ file://2011.09git/0003-am335x_evm-single-byte-address-EEPROM-for-board-iden.patch \ file://2011.09git/0004-am335x-evm-fall-back-to-bone-if-header.config-is-emp.patch \ + file://2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch \ SRCREV = 066e4c106677e9243bd7ae26e638f8d98e1f0606 -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH meta-ti 1/2] u-boot 2011.10rc: Fix kernel hang due to machine ID patches
As we're not going to be allocating a new machine ID for BeagleBone, and as these patches have been verified to cause the kernel to hang and thus make newer images unbootable, lets drop it from the recipe but lets optionally leave the patches itself undeleted for now. Signed-off-by: Joel A Fernandes joelag...@ti.com --- Build and run time tested recipes-bsp/u-boot/u-boot_2011.10rc.bb |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/recipes-bsp/u-boot/u-boot_2011.10rc.bb b/recipes-bsp/u-boot/u-boot_2011.10rc.bb index 3f6e570..35c84da 100644 --- a/recipes-bsp/u-boot/u-boot_2011.10rc.bb +++ b/recipes-bsp/u-boot/u-boot_2011.10rc.bb @@ -15,8 +15,6 @@ SRC_URI = git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;br file://2011.09git/0001-am335x_evm-boot-kernel-from-ext2-3-filesystem.patch \ file://2011.09git/0002-am335x_evm-set-bootdelay-to-0.patch \ file://2011.09git/0003-am335x-evm-make-rootfs-RO-on-boot.patch \ - file://2011.09git/0001-mach-types-Add-new-beaglebone-machine-type.patch \ - file://2011.09git/0002-evm-If-beaglebone-is-detected-pass-the-MACH_TYPE_BEA.patch \ file://2011.09git/0003-am335x_evm-single-byte-address-EEPROM-for-board-iden.patch \ file://2011.09git/0004-am335x-evm-fall-back-to-bone-if-header.config-is-emp.patch \ -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH meta-ti] linux-ti33x-psp 3.1rc8: Add pin mux and init for beaglebone specific devices
Currently added for following: * User LEDs (added by Koen Kooi k-k...@ti.com) * BeagleBone tester Build and run time tested. Signed-off-by: Joel A Fernandes joelag...@ti.com --- ...pin-mux-and-init-for-beaglebone-specific-.patch | 109 ...5x-evm-hack-in-LED-support-for-beaglebone.patch | 109 recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb |4 +- 3 files changed, 111 insertions(+), 111 deletions(-) create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch delete mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-evm-hack-in-LED-support-for-beaglebone.patch diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch new file mode 100644 index 000..b043ce9 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch @@ -0,0 +1,109 @@ +From f658d7975f2e7232786190002ddd24d6b92ba965 Mon Sep 17 00:00:00 2001 +From: Denys Dmytriyenko de...@ti.com +Date: Mon, 17 Oct 2011 02:00:39 -0400 +Subject: [PATCH] am335x-evm: hack in LED support for beaglebone + +Signed-off-by: Koen Kooi k...@dominion.thruhere.net +Signed-off-by: Denys Dmytriyenko de...@ti.com +--- + arch/arm/mach-omap2/board-am335xevm.c | 63 + + 1 files changed, 63 insertions(+), 0 deletions(-) + +diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c +index 87eec7b..3a3c55b 100644 +--- a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c +@@ -17,6 +17,7 @@ + #include linux/i2c.h + #include linux/i2c/at24.h + #include linux/gpio.h ++#include linux/leds.h + #include linux/spi/spi.h + #include linux/spi/flash.h + #include linux/mtd/mtd.h +@@ -588,6 +589,58 @@ static struct pinmux_config usb1_pin_mux[] = { + {NULL, 0}, + }; + ++/* LEDS - gpio1_21 - gpio1_24 */ ++ ++#define BEAGLEBONE_USR1_LED GPIO_TO_PIN(1, 21) ++#define BEAGLEBONE_USR2_LED GPIO_TO_PIN(1, 22) ++#define BEAGLEBONE_USR3_LED GPIO_TO_PIN(1, 23) ++#define BEAGLEBONE_USR4_LED GPIO_TO_PIN(1, 24) ++ ++static struct gpio_led gpio_leds[] = { ++ { ++ .name = beaglebone::usr0, ++ .default_trigger= heartbeat, ++ .gpio = BEAGLEBONE_USR1_LED, ++ }, ++ { ++ .name = beaglebone::usr1, ++ .default_trigger= mmc0, ++ .gpio = BEAGLEBONE_USR2_LED, ++ }, ++ { ++ .name = beaglebone::usr2, ++ .gpio = BEAGLEBONE_USR3_LED, ++ }, ++ { ++ .name = beaglebone::usr3, ++ .gpio = BEAGLEBONE_USR4_LED, ++ }, ++}; ++ ++static struct gpio_led_platform_data gpio_led_info = { ++ .leds = gpio_leds, ++ .num_leds = ARRAY_SIZE(gpio_leds), ++}; ++ ++static struct platform_device leds_gpio = { ++ .name = leds-gpio, ++ .id = -1, ++ .dev= { ++ .platform_data = gpio_led_info, ++ }, ++}; ++ ++static struct platform_device *bone_devices[] __initdata = { ++ leds_gpio, ++}; ++ ++static struct pinmux_config boneled_pin_mux[] = { ++{gpmc_a5.rgmii2_td0, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // gpio 21 ++{gpmc_a6.rgmii2_tclk, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // gpio22 ++{gpmc_a7.rgmii2_rclk, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // gpio23 ++{gpmc_a8.rgmii2_rd3, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, // gpio 24 ++}; ++ + /* Module pin mux for eCAP0 */ + static struct pinmux_config ecap0_pin_mux[] = { + {ecap0_in_pwm0_out.gpio0_7, AM33XX_PIN_OUTPUT}, +@@ -696,6 +749,15 @@ static void tsc_init(int evm_id, int profile) + pr_err(failed to register touchscreen device\n); + } + ++static void bone_leds_init(int evm_id, int profil ) ++{ ++ int err; ++ setup_pin_mux(boneled_pin_mux); ++ err = platform_add_devices(bone_devices, ARRAY_SIZE(bone_devices)); ++ if (err) ++ pr_err(failed to register LEDS\n); ++} ++ + static void rgmii1_init(int evm_id, int profile) + { + setup_pin_mux(rgmii1_pin_mux); +@@ -1101,6 +1163,7 @@ static struct evm_dev_cfg beaglebone_dev_cfg[] = { + {usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, + {usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, + {mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, ++ {bone_leds_init, DEV_ON_BASEBOARD, PROFILE_ALL}, + {NULL, 0, 0}, + }; + +-- +1.7.0.4 + diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-evm-hack-in-LED-support-for-beaglebone.patch b/recipes-kernel/linux
[Angstrom-devel] [PATCH v2 meta-ti] linux-ti33x-psp 3.1rc8: Add pin mux and init for beaglebone specific devices
Currently added for following: * User LEDs (added by Koen Kooi k-k...@ti.com) * BeagleBone tester Build and run time tested. Signed-off-by: Joel A Fernandes joelag...@ti.com --- v2 changes: Replaced correct patch ...pin-mux-and-init-for-beaglebone-specific-.patch | 132 ...5x-evm-hack-in-LED-support-for-beaglebone.patch | 109 recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb |4 +- 3 files changed, 134 insertions(+), 111 deletions(-) create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch delete mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-evm-hack-in-LED-support-for-beaglebone.patch diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch new file mode 100644 index 000..a501c8a --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/0001-am335x-Add-pin-mux-and-init-for-beaglebone-specific-.patch @@ -0,0 +1,132 @@ +From 5be793dc9de7e694d9256396aecfdc136c8e2cf6 Mon Sep 17 00:00:00 2001 +From: Joel A Fernandes joelag...@ti.com +Date: Mon, 17 Oct 2011 02:00:39 -0400 +Subject: [PATCH] am335x: Add pin mux and init for beaglebone specific devices + +Currently added for following: + * User LEDs (added by Koen Kooi k-k...@ti.com) + * BeagleBone tester + +Signed-off-by: Joel A Fernandes joelag...@ti.com +--- + arch/arm/mach-omap2/board-am335xevm.c | 69 + + arch/arm/mach-omap2/mux33xx.c |2 +- + 2 files changed, 70 insertions(+), 1 deletions(-) + +diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c +index f625510..6beaa23 100644 +--- a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c +@@ -17,6 +17,7 @@ + #include linux/i2c.h + #include linux/i2c/at24.h + #include linux/gpio.h ++#include linux/leds.h + #include linux/spi/spi.h + #include linux/spi/flash.h + #include linux/mtd/mtd.h +@@ -590,6 +591,61 @@ static struct pinmux_config usb1_pin_mux[] = { + {NULL, 0}, + }; + ++/* LEDS - gpio1_21 - gpio1_24 */ ++ ++#define BEAGLEBONE_USR1_LED GPIO_TO_PIN(1, 21) ++#define BEAGLEBONE_USR2_LED GPIO_TO_PIN(1, 22) ++#define BEAGLEBONE_USR3_LED GPIO_TO_PIN(1, 23) ++#define BEAGLEBONE_USR4_LED GPIO_TO_PIN(1, 24) ++ ++static struct gpio_led gpio_leds[] = { ++ { ++ .name = beaglebone::usr0, ++ .default_trigger= heartbeat, ++ .gpio = BEAGLEBONE_USR1_LED, ++ }, ++ { ++ .name = beaglebone::usr1, ++ .default_trigger= mmc0, ++ .gpio = BEAGLEBONE_USR2_LED, ++ }, ++ { ++ .name = beaglebone::usr2, ++ .gpio = BEAGLEBONE_USR3_LED, ++ }, ++ { ++ .name = beaglebone::usr3, ++ .gpio = BEAGLEBONE_USR4_LED, ++ }, ++}; ++ ++static struct gpio_led_platform_data gpio_led_info = { ++ .leds = gpio_leds, ++ .num_leds = ARRAY_SIZE(gpio_leds), ++}; ++ ++static struct platform_device leds_gpio = { ++ .name = leds-gpio, ++ .id = -1, ++ .dev= { ++ .platform_data = gpio_led_info, ++ }, ++}; ++ ++static struct platform_device *bone_devices[] __initdata = { ++ leds_gpio, ++}; ++ ++static struct pinmux_config bone_pin_mux[] = { ++ /* User LED gpios (gpio1_21 to gpio1_24) */ ++{gpmc_a5.rgmii2_td0, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, ++{gpmc_a6.rgmii2_tclk, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, ++{gpmc_a7.rgmii2_rclk, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, ++{gpmc_a8.rgmii2_rd3, OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, ++/* Grounding gpio1_6 (pin 3 Conn A) signals bone tester to start diag tests */ ++{gpmc_ad6.gpio1_6, OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP}, ++}; ++ + /* Module pin mux for eCAP0 */ + static struct pinmux_config ecap0_pin_mux[] = { + {ecap0_in_pwm0_out.gpio0_7, AM33XX_PIN_OUTPUT}, +@@ -698,6 +754,18 @@ static void tsc_init(int evm_id, int profile) + pr_err(failed to register touchscreen device\n); + } + ++/* ++ * Initialization of BeagleBone specific devices ++ */ ++static void bone_init(int evm_id, int profil ) ++{ ++ int err; ++ setup_pin_mux(bone_pin_mux); ++ err = platform_add_devices(bone_devices, ARRAY_SIZE(bone_devices)); ++ if (err) ++ pr_err(failed to register LEDS\n); ++} ++ + static void rgmii1_init(int evm_id, int profile) + { + setup_pin_mux(rgmii1_pin_mux); +@@ -1103,6 +1171,7 @@ static struct evm_dev_cfg beaglebone_dev_cfg[] = { + {usb0_init, DEV_ON_BASEBOARD
[Angstrom-devel] [PATCH meta-ti] sdcard_image: Copy user.txt/uEnv.txt if it exists in /boot
Pick up uEnv.txt/user.txt U-boot environment files installed in /boot Signed-off-by: Joel A Fernandes joelag...@ti.com --- classes/sdcard_image.bbclass |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass index ed9d779..c535ad2 100644 --- a/classes/sdcard_image.bbclass +++ b/classes/sdcard_image.bbclass @@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () { suffix=bin fi + cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then - cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true else cp -v ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.$suffix ${WORKDIR}/tmp-mnt-boot/u-boot.$suffix fi -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [meta-ti] Pull request: beaglebone-tester add
On Fri, Oct 14, 2011 at 2:35 AM, Koen Kooi k...@dominion.thruhere.net wrote: Op 14 okt. 2011, om 01:56 heeft Fernandes, Joel A het volgende geschreven: Hi Koen, Could you pull the first 5 patches against meta-ti master branch from: git://github.com/joelagnel/meta-texasinstruments.git (branch for-koen) Joel A Fernandes (5): beaglebone-tester: A component-based test framework for BeagleBone This is missing dependencies on e.g. iputils. Also, kerner-module-foo must never be in RDEPENS, only in RRECOMMENDS. Style related: variables are set in recipes in the order they are used so packaging variables like RDEPENDS and FILES go below do_install Will do, thanks. ti-hw-bringup-image: Add iputils See above ti-hw-bringup-image: Add beaglebone-tester That should go into the cloud9 image, not the regular hardware bringup one Ok, then I'll add iputils and kernel-modules to the cloud9 image as well unless they already are. ti-hw-bringup-image: Add kernel-modules package Applied, thanks linux-am335x-joel: Enable g_file_storage kernel module CONFIG_USB_FILE_STORAGE is deprecated, CONFIG_USB_MASS_STORAGE should be used instead and is already turned on in the defconfig. Can we please include this, I have seen kernel panics and other instabilities with mass_storage. I'd say no harm in including it in as a module. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] gcc-runtime build errors
Hi, I currently get a whole bunch of errors when trying to cleanly build angstrom: Anyone seen this before? | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/node.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/debug_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/erase_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/split_join_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/constructors_destructor_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/insert_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/splay_tree_.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/traits.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/info_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/find_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_/splay_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /splay_tree_': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /debug_map_base.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /rb_tree_map_/node.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /rb_tree_map_/debug_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /rb_tree_map_/erase_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /rb_tree_map_/split_join_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /rb_tree_map_/constructors_destructor_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail /rb_tree_map_/insert_fn_imps.hpp': Operation not permitted | chown: changing ownership of `/home/joel/angstrom-oe/setup-scripts-core/tmp-eglibc/work/armv7a-angstrom-linux-gnueabi/gcc-runtime-4.5-r43+svnr178923/image/usr/include/c++/ext/pb_ds/detail
[Angstrom-devel] [PATCH v2 meta-ti] u-boot: added version 2011.09-rc1
From: Jason Kridner j...@ti.com There is a v2011.09 tag on the mainline, but I haven't seen a release notice go out. It didn't make sense to me to try to carry-forward those all patches since the release tag, so I simply picked the latest tag in the maineline. Patched and tested on BeagleBoard-xM revision C. USB Ethernet was tested with: setenv usbethaddr de:ad:be:ef:00:01 usb start dhcp^C setenv ipaddr 10.0.1.2 ping 10.0.1.1 USB Storage was tested with: above usb part fatls usb 0 led command was tested with: led all off led all on led 1 on led 1 off gpio command tested with: gpio input 4 hold USER button gpio input 4 release USER button Also performed boot test. Signed-off-by: Jason Kridner j...@ti.com Signed-off-by: Joel A Fernandes joelag...@ti.com --- v2 changes: * Dropped PV * Leave L2 cache enabled ...-beagleboard-config-disable-cache-for-USB.patch | 33 + ...02-beagleboard-config-enable-gpio-command.patch | 25 + ...d-some-timeout-durations-for-MMC-and-EHCI.patch | 39 recipes-bsp/u-boot/u-boot_2011.09.bb | 21 +++ 4 files changed, 118 insertions(+), 0 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch create mode 100644 recipes-bsp/u-boot/u-boot_2011.09.bb diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch b/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch new file mode 100644 index 000..a2776e9 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch @@ -0,0 +1,33 @@ +From 03b9bca863257cb24d8f11bb773ad2b8dff820c6 Mon Sep 17 00:00:00 2001 +From: Jason Kridner j...@ti.com +Date: Sun, 18 Sep 2011 12:16:31 -0400 +Subject: [PATCH 1/3] HACK: beagleboard: config: disable cache for USB + +There is currently a bug in the USB code for the BeagleBoard that is +worked-around by disabling the cache. + +See http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/108224 + +Signed-off-by: Jason Kridner j...@ti.com +--- + include/configs/omap3_beagle.h |5 + + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index 1369c89..8a84d7a 100644 +--- a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +@@ -36,6 +36,10 @@ + #define CONFIG_OMAP3430 1 /* which is in a 3430 */ + #define CONFIG_OMAP3_BEAGLE 1 /* working with BEAGLE */ + ++/* TODO: WORK-AROUND for bug in BeagleBoard-specific USB */ ++#define CONFIG_SYS_ICACHE_OFF ++#define CONFIG_SYS_DCACHE_OFF ++ + #define CONFIG_SDRC /* The chip has SDRC controller */ + + #include asm/arch/cpu.h /* get chip and board defs */ +-- +1.7.4.1 + diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch b/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch new file mode 100644 index 000..096a1ce --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch @@ -0,0 +1,25 @@ +From 79e8280783d445f7630b8a9830f8db73f2e04828 Mon Sep 17 00:00:00 2001 +From: Jason Kridner j...@ti.com +Date: Tue, 6 Sep 2011 18:56:11 -0400 +Subject: [PATCH 2/3] beagleboard: config: enable gpio command + +Now that we are using the generic GPIO framework, enable the command. +--- + include/configs/omap3_beagle.h |1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index 8a84d7a..43dc94a 100644 +--- a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +@@ -169,6 +169,7 @@ + #define CONFIG_CMD_PING + #define CONFIG_CMD_DHCP + #define CONFIG_CMD_SETEXPR/* Evaluate expressions */ ++#define CONFIG_CMD_GPIO + + #undef CONFIG_CMD_FLASH /* flinfo, erase, protect */ + #undef CONFIG_CMD_FPGA/* FPGA configuration Support */ +-- +1.7.4.1 + diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch b/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch new file mode 100644 index 000..c3ebf1b --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch @@ -0,0 +1,39 @@ +From 316e3a4573bdbbbc395baeca4f7b2208707e30fa Mon Sep 17 00:00:00 2001 +From: Jason Kridner j...@ti.com +Date: Wed, 7 Sep 2011 08:56:48 -0400 +Subject: [PATCH 3/3] Increased some timeout durations for MMC and EHCI + +--- + drivers/mmc/omap_hsmmc.c
Re: [Angstrom-devel] [PATCH] beagleboard images: Initial recipes for BeagleBoard release images
Hi, Can this patch be applied please? If not, can a conclusion be made on where this recipe should go? I would vote for meta-angstrom (same as original patch). If everyone is agreement, please apply this patch so that I could make a normal BeagleBoard image release instead of a pre-release with a modified layers.txt pointing to my tree. Thanks, Joel On Wed, Sep 7, 2011 at 10:26 PM, Fernandes, Joel A joelag...@ti.com wrote: These recipes are used to build release images for the BeagleBoard community using the sdcard_image class in meta-ti Signed-off-by: Joel A Fernandes joelag...@ti.com --- recipes-angstrom/images/beagleboard-gnome-image.bb | 14 recipes-angstrom/images/beagleboard-image.bb | 34 2 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 recipes-angstrom/images/beagleboard-gnome-image.bb create mode 100644 recipes-angstrom/images/beagleboard-image.bb diff --git a/recipes-angstrom/images/beagleboard-gnome-image.bb b/recipes-angstrom/images/beagleboard-gnome-image.bb new file mode 100644 index 000..ff7d225 --- /dev/null +++ b/recipes-angstrom/images/beagleboard-gnome-image.bb @@ -0,0 +1,14 @@ +require beagleboard-image.bb + +PR = r2 + +IMAGE_INSTALL += \ + angstrom-task-gnome \ + task-xserver \ + vim \ + alsa-tools \ + alsa-utils \ + + +export IMAGE_BASENAME = beagleboard-gnome-image + diff --git a/recipes-angstrom/images/beagleboard-image.bb b/recipes-angstrom/images/beagleboard-image.bb new file mode 100644 index 000..319cf8b --- /dev/null +++ b/recipes-angstrom/images/beagleboard-image.bb @@ -0,0 +1,34 @@ +LICENSE = MIT +LIC_FILES_CHKSUM = file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 + +IMAGE_PREPROCESS_COMMAND = rootfs_update_timestamp + +IMAGE_INSTALL += \ + angstrom-task-boot \ + angstrom-zeroconf-audio \ + rsyslog \ + dropbear-systemd openssh-sftp \ + e2fsprogs-e2fsck e2fsprogs-blkid \ + avahi-daemon avahi-utils avahi-systemd \ + ${CONMANPKGS} \ + systemd-compat-units \ + cpufrequtils \ + beagleboard-test-scripts \ + gstreamer-ti \ + ti-dmai-apps \ + u-boot \ + x-load \ + htop \ + + +CONMANPKGS = connman connman-plugin-loopback connman-plugin-ethernet connman-plugin-wifi connman-systemd +CONMANPKGS_libc-uclibc = + +IMAGE_DEV_MANAGER = udev +IMAGE_INITSCRIPTS = +IMAGE_INIT_MANAGER = systemd +IMAGE_LOGIN_MANAGER = tinylogin shadow + +export IMAGE_BASENAME = beagleboard-image + +inherit sdcard_image -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH v2 meta-ti] u-boot: added version 2011.09-rc1
I see this patch is already applied so please ignore it, thanks. On Fri, Sep 23, 2011 at 11:26 AM, Fernandes, Joel A joelag...@ti.com wrote: From: Jason Kridner j...@ti.com There is a v2011.09 tag on the mainline, but I haven't seen a release notice go out. It didn't make sense to me to try to carry-forward those all patches since the release tag, so I simply picked the latest tag in the maineline. Patched and tested on BeagleBoard-xM revision C. USB Ethernet was tested with: setenv usbethaddr de:ad:be:ef:00:01 usb start dhcp^C setenv ipaddr 10.0.1.2 ping 10.0.1.1 USB Storage was tested with: above usb part fatls usb 0 led command was tested with: led all off led all on led 1 on led 1 off gpio command tested with: gpio input 4 hold USER button gpio input 4 release USER button Also performed boot test. Signed-off-by: Jason Kridner j...@ti.com Signed-off-by: Joel A Fernandes joelag...@ti.com --- v2 changes: * Dropped PV * Leave L2 cache enabled ...-beagleboard-config-disable-cache-for-USB.patch | 33 + ...02-beagleboard-config-enable-gpio-command.patch | 25 + ...d-some-timeout-durations-for-MMC-and-EHCI.patch | 39 recipes-bsp/u-boot/u-boot_2011.09.bb | 21 +++ 4 files changed, 118 insertions(+), 0 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch create mode 100644 recipes-bsp/u-boot/u-boot_2011.09.bb diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch b/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch new file mode 100644 index 000..a2776e9 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch @@ -0,0 +1,33 @@ +From 03b9bca863257cb24d8f11bb773ad2b8dff820c6 Mon Sep 17 00:00:00 2001 +From: Jason Kridner j...@ti.com +Date: Sun, 18 Sep 2011 12:16:31 -0400 +Subject: [PATCH 1/3] HACK: beagleboard: config: disable cache for USB + +There is currently a bug in the USB code for the BeagleBoard that is +worked-around by disabling the cache. + +See http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/108224 + +Signed-off-by: Jason Kridner j...@ti.com +--- + include/configs/omap3_beagle.h | 5 + + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index 1369c89..8a84d7a 100644 +--- a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +@@ -36,6 +36,10 @@ + #define CONFIG_OMAP3430 1 /* which is in a 3430 */ + #define CONFIG_OMAP3_BEAGLE 1 /* working with BEAGLE */ + ++/* TODO: WORK-AROUND for bug in BeagleBoard-specific USB */ ++#define CONFIG_SYS_ICACHE_OFF ++#define CONFIG_SYS_DCACHE_OFF ++ + #define CONFIG_SDRC /* The chip has SDRC controller */ + + #include asm/arch/cpu.h /* get chip and board defs */ +-- +1.7.4.1 + diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch b/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch new file mode 100644 index 000..096a1ce --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch @@ -0,0 +1,25 @@ +From 79e8280783d445f7630b8a9830f8db73f2e04828 Mon Sep 17 00:00:00 2001 +From: Jason Kridner j...@ti.com +Date: Tue, 6 Sep 2011 18:56:11 -0400 +Subject: [PATCH 2/3] beagleboard: config: enable gpio command + +Now that we are using the generic GPIO framework, enable the command. +--- + include/configs/omap3_beagle.h | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index 8a84d7a..43dc94a 100644 +--- a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +@@ -169,6 +169,7 @@ + #define CONFIG_CMD_PING + #define CONFIG_CMD_DHCP + #define CONFIG_CMD_SETEXPR /* Evaluate expressions */ ++#define CONFIG_CMD_GPIO + + #undef CONFIG_CMD_FLASH /* flinfo, erase, protect */ + #undef CONFIG_CMD_FPGA /* FPGA configuration Support */ +-- +1.7.4.1 + diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch b/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch new file mode 100644 index 000..c3ebf1b --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC
[Angstrom-devel] [PATCH v2 meta-ti] sdcard_image: Helper class to create SD Card images
Tested with 3 different beagleboard image release builds so far For ideas, referenced Narcissus image builder written by Koen Kooi k-k...@ti.com Signed-off-by: Joel A Fernandes joelag...@ti.com --- classes/sdcard_image.bbclass | 78 ++ 1 files changed, 78 insertions(+), 0 deletions(-) create mode 100644 classes/sdcard_image.bbclass diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass new file mode 100644 index 000..b3885df --- /dev/null +++ b/classes/sdcard_image.bbclass @@ -0,0 +1,78 @@ +inherit image + +IMAGE_CMD_sdimg () { + SDIMG=${WORKDIR}/sd.img + + # cleanup loops + for loop in $(losetup -j ${SDIMG}); do + loop_dev=$(echo $loop|cut -d : -f 1) + umount $loop_dev || true + losetup -d $loop_dev || true + done + + dd if=/dev/zero of=${SDIMG} bs=4k seek=$(echo '256 * 1024' | bc) count=1 + losetup -f ${SDIMG} + LOOPDEV=$(losetup -j ${SDIMG} -o 0 | cut -d : -f 1) + + # Create partition table + dd if=/dev/zero of=${LOOPDEV} bs=1024 count=1024 + SIZE=`fdisk -l ${LOOPDEV} | grep Disk | grep bytes | awk '{print $5}'` + CYLINDERS=`echo $SIZE/255/63/512 | bc` + { + echo ,9,0x0C,* + echo ,,,- + } | sfdisk -D -H 255 -S 63 -C ${CYLINDERS} ${LOOPDEV} + + # Prepare loop devices for boot and filesystem partitions + BOOT_OFFSET=32256 + FS_OFFSET_SECT=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep Linux | perl -p -i -e s/\s+/ /|cut -d -f 2) + FS_OFFSET=$(echo $FS_OFFSET_SECT * 512 | bc) + FS_SIZE_BLOCKS=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep Linux | perl -p -i -e s/\s+/ /g \ + |cut -d -f 4 | cut -d + -f 1) + + LOOPDEV_BLOCKS=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep FAT | perl -p -i -e s/\s+/ /g|cut -d -f 5) + LOOPDEV_BYTES=$(echo $LOOPDEV_BLOCKS * 1024 | bc) + + losetup -f ${SDIMG} -o ${BOOT_OFFSET} --sizelimit=$LOOPDEV_BYTES + + LOOPDEV_BOOT=$(losetup -j ${SDIMG} -o ${BOOT_OFFSET} | cut -d : -f 1) +mkfs.msdos ${LOOPDEV_BOOT} -n boot + + losetup -f ${SDIMG} -o ${FS_OFFSET} + LOOPDEV_FS=$(losetup -j ${SDIMG} -o ${FS_OFFSET} | cut -d : -f 1) + + # Prepare filesystem partition + # Copy ubi used by flashing scripts + if [ -e ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ] ; then + echo Copying UBIFS image to file system + cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${IMAGE_ROOTFS}/boot/fs.ubi + fi + ROOTFS_SIZE=$(du -ks ${IMAGE_ROOTFS} | awk '{print 65536 + $1}') + genext2fs -b ${FS_SIZE_BLOCKS} -d ${IMAGE_ROOTFS} ${LOOPDEV_FS} + tune2fs -j ${LOOPDEV_FS} + + # Prepare boot partion. First mount the boot partition, and copy the boot loader and supporting files + # from the root filesystem + + # sanity check fstab entry for boot partition mounting + if [ x$(cat /etc/fstab | grep $LOOPDEV_BOOT | grep ${WORKDIR}/tmp-mnt-boot | grep user || true) = x ]; then + echo /etc/fstab entries need to be created with the user flag for $LOOPDEV_BOOT like: + echo $LOOPDEV_BOOT ${WORKDIR}/tmp-mnt-boot msdos user 0 0 + false + fi + + mkdir -p ${WORKDIR}/tmp-mnt-boot + mount $LOOPDEV_BOOT + + echo Copying bootloaders into the boot partition + cp -v ${IMAGE_ROOTFS}/boot/MLO ${WORKDIR}/tmp-mnt-boot + cp -v ${IMAGE_ROOTFS}/boot/{u-boot.bin,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + + # cleanup + umount ${LOOPDEV_BOOT} + /sbin/losetup -d ${LOOPDEV} + /sbin/losetup -d ${LOOPDEV_BOOT} + /sbin/losetup -d ${LOOPDEV_FS} + + gzip -c ${WORKDIR}/sd.img ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-${PR}.img.gz +} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [beagleboard] [PATCH meta-ti] u-boot: added version 2011.09-rc1-00023
Call the recipe uboot_2011.09.bb, remove the PV assignment inside, but keep the comment about being a few commits ahead of the tag. Are you sure that's Uboot without the dash? I've kept the dash as other u-boot recipes have it. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH v2 meta-ti] u-boot: added version 2011.09-rc1
From: Jason Kridner j...@ti.com There is a v2011.09 tag on the mainline, but I haven't seen a release notice go out. It didn't make sense to me to try to carry-forward those all patches since the release tag, so I simply picked the latest tag in the maineline. Patched and tested on BeagleBoard-xM revision C. USB Ethernet was tested with: setenv usbethaddr de:ad:be:ef:00:01 usb start dhcp^C setenv ipaddr 10.0.1.2 ping 10.0.1.1 USB Storage was tested with: above usb part fatls usb 0 led command was tested with: led all off led all on led 1 on led 1 off gpio command tested with: gpio input 4 hold USER button gpio input 4 release USER button Also performed boot test. Signed-off-by: Jason Kridner j...@ti.com Signed-off-by: Joel A Fernandes joelag...@ti.com --- v2 changes: * Dropped PV * Leave L2 cache enabled ...-beagleboard-config-disable-cache-for-USB.patch | 33 + ...02-beagleboard-config-enable-gpio-command.patch | 25 + ...d-some-timeout-durations-for-MMC-and-EHCI.patch | 39 recipes-bsp/u-boot/u-boot_2011.09.bb | 21 +++ 4 files changed, 118 insertions(+), 0 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch create mode 100644 recipes-bsp/u-boot/u-boot_2011.09.bb diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch b/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch new file mode 100644 index 000..a2776e9 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0001-HACK-beagleboard-config-disable-cache-for-USB.patch @@ -0,0 +1,33 @@ +From 03b9bca863257cb24d8f11bb773ad2b8dff820c6 Mon Sep 17 00:00:00 2001 +From: Jason Kridner j...@ti.com +Date: Sun, 18 Sep 2011 12:16:31 -0400 +Subject: [PATCH 1/3] HACK: beagleboard: config: disable cache for USB + +There is currently a bug in the USB code for the BeagleBoard that is +worked-around by disabling the cache. + +See http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/108224 + +Signed-off-by: Jason Kridner j...@ti.com +--- + include/configs/omap3_beagle.h |5 + + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index 1369c89..8a84d7a 100644 +--- a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +@@ -36,6 +36,10 @@ + #define CONFIG_OMAP3430 1 /* which is in a 3430 */ + #define CONFIG_OMAP3_BEAGLE 1 /* working with BEAGLE */ + ++/* TODO: WORK-AROUND for bug in BeagleBoard-specific USB */ ++#define CONFIG_SYS_ICACHE_OFF ++#define CONFIG_SYS_DCACHE_OFF ++ + #define CONFIG_SDRC /* The chip has SDRC controller */ + + #include asm/arch/cpu.h /* get chip and board defs */ +-- +1.7.4.1 + diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch b/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch new file mode 100644 index 000..096a1ce --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0002-beagleboard-config-enable-gpio-command.patch @@ -0,0 +1,25 @@ +From 79e8280783d445f7630b8a9830f8db73f2e04828 Mon Sep 17 00:00:00 2001 +From: Jason Kridner j...@ti.com +Date: Tue, 6 Sep 2011 18:56:11 -0400 +Subject: [PATCH 2/3] beagleboard: config: enable gpio command + +Now that we are using the generic GPIO framework, enable the command. +--- + include/configs/omap3_beagle.h |1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index 8a84d7a..43dc94a 100644 +--- a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +@@ -169,6 +169,7 @@ + #define CONFIG_CMD_PING + #define CONFIG_CMD_DHCP + #define CONFIG_CMD_SETEXPR/* Evaluate expressions */ ++#define CONFIG_CMD_GPIO + + #undef CONFIG_CMD_FLASH /* flinfo, erase, protect */ + #undef CONFIG_CMD_FPGA/* FPGA configuration Support */ +-- +1.7.4.1 + diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch b/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch new file mode 100644 index 000..c3ebf1b --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0003-Increased-some-timeout-durations-for-MMC-and-EHCI.patch @@ -0,0 +1,39 @@ +From 316e3a4573bdbbbc395baeca4f7b2208707e30fa Mon Sep 17 00:00:00 2001 +From: Jason Kridner j...@ti.com +Date: Wed, 7 Sep 2011 08:56:48 -0400 +Subject: [PATCH 3/3] Increased some timeout durations for MMC and EHCI + +--- + drivers/mmc/omap_hsmmc.c
Re: [Angstrom-devel] Koen Kooi : angstrom-version: include some bits of layer info into /etc/ angstrom-build-info
This will be useful. Dank je wel! Regards, Joel On Sun, Sep 18, 2011 at 8:44 AM, Angstrom Git Repos ang-...@xora.vm.bytemark.co.uk wrote: Module: meta-angstrom Branch: master Commit: 9039f715810ca4d40944a6f369e605d1d75f0c9f Author: Koen Kooi k...@dominion.thruhere.net Date: Sun Sep 18 15:43:27 2011 +0200 angstrom-version: include some bits of layer info into /etc/angstrom-build-info only branch and revision, not remote URI Signed-off-by: Koen Kooi k...@dominion.thruhere.net --- recipes-angstrom/angstrom/angstrom-version.bb | 27 - 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/recipes-angstrom/angstrom/angstrom-version.bb b/recipes-angstrom/angstrom/angstrom-version.bb index cf0630a..eb3eade 100644 --- a/recipes-angstrom/angstrom/angstrom-version.bb +++ b/recipes-angstrom/angstrom/angstrom-version.bb @@ -2,7 +2,7 @@ LICENSE = MIT LIC_FILES_CHKSUM = file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 PV = ${DISTRO_VERSION} -PR = r9 +PR = r10 PE = 2 SRC_URI = file://lsb_release @@ -10,6 +10,29 @@ SRC_URI = file://lsb_release PACKAGES = ${PN} PACKAGE_ARCH = ${MACHINE_ARCH} +def get_layers(bb, d): + layers = (bb.data.getVar(BBLAYERS, d, 1) or ).split() + layers_branch_rev = [%-17s = \%s:%s\ % (os.path.basename(i), \ + base_get_metadata_git_branch(i, None).strip(), \ + base_get_metadata_git_revision(i, None)) \ + for i in layers] + i = len(layers_branch_rev)-1 + p1 = layers_branch_rev[i].find(=) + s1= layers_branch_rev[i][p1:] + while i 0: + p2 = layers_branch_rev[i-1].find(=) + s2= layers_branch_rev[i-1][p2:] + if s1 == s2: + layers_branch_rev[i-1] = layers_branch_rev[i-1][0:p2] + i -= 1 + else: + i -= 1 + p1 = layers_branch_rev[i].find(=) + s1= layers_branch_rev[i][p1:] + + layertext = Configured Openembedded layers:\n%s\n % '\n'.join(layers_branch_rev) + return layertext + do_install() { install -d ${D}${sysconfdir} echo Angstrom ${DISTRO_VERSION} (Core edition) ${D}${sysconfdir}/angstrom-version @@ -17,6 +40,8 @@ do_install() { echo Revision: ${METADATA_REVISION} ${D}${sysconfdir}/angstrom-version echo Target system: ${TARGET_SYS} ${D}${sysconfdir}/angstrom-version + echo ${@get_layers(bb, d)} ${D}${sysconfdir}/angstrom-build-info + echo NAME=Angstrom ${D}${sysconfdir}/os-release echo ID=angstrom ${D}${sysconfdir}/os-release echo PRETTY_NAME=The Ångström Distribution ${D}${sysconfdir}/os-release ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [beagleboard] [PATCH meta-ti] u-boot: added version 2011.09-rc1-00023
Hi Jason, Koen, On Sun, Sep 18, 2011 at 1:39 PM, Jason Kridner jkrid...@beagleboard.org wrote: On Sun, Sep 18, 2011 at 2:20 PM, Koen Kooi k...@beagleboard.org wrote: Op 18 sep 2011, om 19:45 heeft Jason Kridner het volgende geschreven: There is a v2011.09 tag on the mainline, but I haven't seen a release notice go out. It didn't make sense to me to try to carry-forward those all patches since the release tag, so I simply picked the latest tag in the maineline. Patched and tested on BeagleBoard-xM revision C. [..] ++/* TODO: WORK-AROUND for bug in BeagleBoard-specific USB */ ++#define CONFIG_SYS_ICACHE_OFF ++#define CONFIG_SYS_DCACHE_OFF ++#define CONFIG_SYS_L2CACHE_OFF Do all 3 needs to be off or only the d cache? I don't have time to test that variation right now, I was just pulling off of what Joel suggested. I can try to get to that later in the week. Joel, do you know? Disabling only D-cache hangs U-boot. Disabling both I and D while leaving L2 cache as is fixes it. I think you had some concerns about the questions my PV choice would make. I don't feel strongly about it. Do you want to fix it up or shall I submit a v2? I'll resubmit Jason's meta-ti patch with only I and D cache disabled, but I can't find a discussion about what the PV choice issue is? Let me know and I'll make both these changes and resubmit. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [beagleboard] [PATCH] beagleboard images: Initial recipes for BeagleBoard release images
On Thu, Sep 15, 2011 at 3:28 AM, Koen Kooi k...@beagleboard.org wrote: Op 8 sep. 2011, om 06:12 heeft Fernandes, Joel A het volgende geschreven: Please apply this patch to meta-angstrom, thanks. These would seem better in meta-ti, no? Probably, but then again it is derived from systemd-gnome-image from Angstrom and has a bunch of angstrom-tasks. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH] sdcard_image: Helper class to create SD Card images
On Thu, Sep 15, 2011 at 9:01 AM, Koen Kooi k...@dominion.thruhere.net wrote: Op 15 sep. 2011, om 15:17 heeft Joel A Fernandes het volgende geschreven: Hi Koen, On Thu, Sep 15, 2011 at 3:27 AM, Koen Kooi k...@dominion.thruhere.net wrote: Did you get permission to relicense it from GPLv2 to MIT?!?!? It is a complete rewrite. that would still make it a derivative work, no? Actually there are no commonalities in the code, I would rather give credit in the commit history or source file, but we could relicense it if you still insist. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH] sdcard_image: Helper class to create SD Card images
Used for a few weeks now with minor modification for BeagleBoard release images Signed-off-by: Joel A Fernandes joelag...@ti.com --- classes/sdcard_image.bbclass | 77 ++ 1 files changed, 77 insertions(+), 0 deletions(-) create mode 100644 classes/sdcard_image.bbclass diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass new file mode 100644 index 000..ec79290 --- /dev/null +++ b/classes/sdcard_image.bbclass @@ -0,0 +1,77 @@ +inherit image + +IMAGE_CMD_sdimg () { + SDIMG=${WORKDIR}/sd.img + + # cleanup loops + for loop in $(losetup -j ${SDIMG}); do + loop_dev=$(echo $loop|cut -d : -f 1) + umount $loop_dev || true + losetup -d $loop_dev || true + done + + dd if=/dev/zero of=${SDIMG} bs=4k seek=$(echo '256 * 1024' | bc) count=1 + losetup -f ${SDIMG} + LOOPDEV=$(losetup -j ${SDIMG} -o 0 | cut -d : -f 1) + + # Create partition table + dd if=/dev/zero of=${LOOPDEV} bs=1024 count=1024 + SIZE=`fdisk -l ${LOOPDEV} | grep Disk | grep bytes | awk '{print $5}'` + CYLINDERS=`echo $SIZE/255/63/512 | bc` + { + echo ,9,0x0C,* + echo ,,,- + } | sfdisk -D -H 255 -S 63 -C ${CYLINDERS} ${LOOPDEV} + + # Prepare loop devices for boot and filesystem partitions + BOOT_OFFSET=32256 + FS_OFFSET_SECT=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep Linux | perl -p -i -e s/\s+/ /|cut -d -f 2) + FS_OFFSET=$(echo $FS_OFFSET_SECT * 512 | bc) + FS_SIZE_BLOCKS=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep Linux | perl -p -i -e s/\s+/ /g|cut -d -f 4 | cut -d + -f 1) + + LOOPDEV_BLOCKS=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep FAT | perl -p -i -e s/\s+/ /g|cut -d -f 5) + LOOPDEV_BYTES=$(echo $LOOPDEV_BLOCKS * 1024 | bc) + + losetup -f ${SDIMG} -o ${BOOT_OFFSET} --sizelimit=$LOOPDEV_BYTES + + LOOPDEV_BOOT=$(losetup -j ${SDIMG} -o ${BOOT_OFFSET} | cut -d : -f 1) +mkfs.msdos ${LOOPDEV_BOOT} -n boot + + losetup -f ${SDIMG} -o ${FS_OFFSET} + LOOPDEV_FS=$(losetup -j ${SDIMG} -o ${FS_OFFSET} | cut -d : -f 1) + + # Prepare filesystem partition + # Copy ubi used by flashing scripts +if [ -e ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ] ; then + echo Copying UBIFS image to file system + cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${IMAGE_ROOTFS}/boot/fs.ubi +fi + ROOTFS_SIZE=$(du -ks ${IMAGE_ROOTFS} | awk '{print 65536 + $1}') + genext2fs -b ${FS_SIZE_BLOCKS} -d ${IMAGE_ROOTFS} ${LOOPDEV_FS} + tune2fs -j ${LOOPDEV_FS} + + # Prepare boot partion. First mount the boot partition, and copy the boot loader and supporting files + # from the root filesystem + +# sanity check fstab entry for boot partition mounting +if [ x$(cat /etc/fstab | grep $LOOPDEV_BOOT | grep ${WORKDIR}/tmp-mnt-boot | grep user || true) = x ]; then +echo /etc/fstab entries need to be created with the user flag for $LOOPDEV_BOOT like: +echo $LOOPDEV_BOOT ${WORKDIR}/tmp-mnt-boot msdos user 0 0 +false +fi + + mkdir -p ${WORKDIR}/tmp-mnt-boot + mount $LOOPDEV_BOOT + + echo Copying bootloaders into the boot partition + cp -v ${IMAGE_ROOTFS}/boot/MLO ${WORKDIR}/tmp-mnt-boot + cp -v ${IMAGE_ROOTFS}/boot/{u-boot.bin,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + + # cleanup +umount ${LOOPDEV_BOOT} +/sbin/losetup -d ${LOOPDEV} +/sbin/losetup -d ${LOOPDEV_BOOT} +/sbin/losetup -d ${LOOPDEV_FS} + +gzip -c ${WORKDIR}/sd.img ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-${PR}.img.gz +} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH] beagleboard images: Initial recipes for BeagleBoard release images
These recipes are used to build release images for the BeagleBoard community using the sdcard_image class in meta-ti Signed-off-by: Joel A Fernandes joelag...@ti.com --- recipes-angstrom/images/beagleboard-gnome-image.bb | 14 recipes-angstrom/images/beagleboard-image.bb | 34 2 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 recipes-angstrom/images/beagleboard-gnome-image.bb create mode 100644 recipes-angstrom/images/beagleboard-image.bb diff --git a/recipes-angstrom/images/beagleboard-gnome-image.bb b/recipes-angstrom/images/beagleboard-gnome-image.bb new file mode 100644 index 000..ff7d225 --- /dev/null +++ b/recipes-angstrom/images/beagleboard-gnome-image.bb @@ -0,0 +1,14 @@ +require beagleboard-image.bb + +PR = r2 + +IMAGE_INSTALL += \ + angstrom-task-gnome \ + task-xserver \ + vim \ + alsa-tools \ + alsa-utils \ + + +export IMAGE_BASENAME = beagleboard-gnome-image + diff --git a/recipes-angstrom/images/beagleboard-image.bb b/recipes-angstrom/images/beagleboard-image.bb new file mode 100644 index 000..319cf8b --- /dev/null +++ b/recipes-angstrom/images/beagleboard-image.bb @@ -0,0 +1,34 @@ +LICENSE = MIT +LIC_FILES_CHKSUM = file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 + +IMAGE_PREPROCESS_COMMAND = rootfs_update_timestamp + +IMAGE_INSTALL += \ + angstrom-task-boot \ + angstrom-zeroconf-audio \ + rsyslog \ + dropbear-systemd openssh-sftp \ + e2fsprogs-e2fsck e2fsprogs-blkid \ + avahi-daemon avahi-utils avahi-systemd \ + ${CONMANPKGS} \ + systemd-compat-units \ + cpufrequtils \ + beagleboard-test-scripts \ + gstreamer-ti \ + ti-dmai-apps \ + u-boot \ + x-load \ +htop \ + + +CONMANPKGS = connman connman-plugin-loopback connman-plugin-ethernet connman-plugin-wifi connman-systemd +CONMANPKGS_libc-uclibc = + +IMAGE_DEV_MANAGER = udev +IMAGE_INITSCRIPTS = +IMAGE_INIT_MANAGER = systemd +IMAGE_LOGIN_MANAGER = tinylogin shadow + +export IMAGE_BASENAME = beagleboard-image + +inherit sdcard_image -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH v2] sdcard_image: Helper class to create SD Card images
Used for a few weeks now with minor modification for BeagleBoard release images Signed-off-by: Joel A Fernandes joelag...@ti.com --- v2 Changes: Correct indentation classes/sdcard_image.bbclass | 78 ++ 1 files changed, 78 insertions(+), 0 deletions(-) create mode 100644 classes/sdcard_image.bbclass diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass new file mode 100644 index 000..b3885df --- /dev/null +++ b/classes/sdcard_image.bbclass @@ -0,0 +1,78 @@ +inherit image + +IMAGE_CMD_sdimg () { + SDIMG=${WORKDIR}/sd.img + + # cleanup loops + for loop in $(losetup -j ${SDIMG}); do + loop_dev=$(echo $loop|cut -d : -f 1) + umount $loop_dev || true + losetup -d $loop_dev || true + done + + dd if=/dev/zero of=${SDIMG} bs=4k seek=$(echo '256 * 1024' | bc) count=1 + losetup -f ${SDIMG} + LOOPDEV=$(losetup -j ${SDIMG} -o 0 | cut -d : -f 1) + + # Create partition table + dd if=/dev/zero of=${LOOPDEV} bs=1024 count=1024 + SIZE=`fdisk -l ${LOOPDEV} | grep Disk | grep bytes | awk '{print $5}'` + CYLINDERS=`echo $SIZE/255/63/512 | bc` + { + echo ,9,0x0C,* + echo ,,,- + } | sfdisk -D -H 255 -S 63 -C ${CYLINDERS} ${LOOPDEV} + + # Prepare loop devices for boot and filesystem partitions + BOOT_OFFSET=32256 + FS_OFFSET_SECT=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep Linux | perl -p -i -e s/\s+/ /|cut -d -f 2) + FS_OFFSET=$(echo $FS_OFFSET_SECT * 512 | bc) + FS_SIZE_BLOCKS=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep Linux | perl -p -i -e s/\s+/ /g \ + |cut -d -f 4 | cut -d + -f 1) + + LOOPDEV_BLOCKS=$(/sbin/fdisk -l -u $LOOPDEV 21 | grep FAT | perl -p -i -e s/\s+/ /g|cut -d -f 5) + LOOPDEV_BYTES=$(echo $LOOPDEV_BLOCKS * 1024 | bc) + + losetup -f ${SDIMG} -o ${BOOT_OFFSET} --sizelimit=$LOOPDEV_BYTES + + LOOPDEV_BOOT=$(losetup -j ${SDIMG} -o ${BOOT_OFFSET} | cut -d : -f 1) +mkfs.msdos ${LOOPDEV_BOOT} -n boot + + losetup -f ${SDIMG} -o ${FS_OFFSET} + LOOPDEV_FS=$(losetup -j ${SDIMG} -o ${FS_OFFSET} | cut -d : -f 1) + + # Prepare filesystem partition + # Copy ubi used by flashing scripts + if [ -e ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ] ; then + echo Copying UBIFS image to file system + cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${IMAGE_ROOTFS}/boot/fs.ubi + fi + ROOTFS_SIZE=$(du -ks ${IMAGE_ROOTFS} | awk '{print 65536 + $1}') + genext2fs -b ${FS_SIZE_BLOCKS} -d ${IMAGE_ROOTFS} ${LOOPDEV_FS} + tune2fs -j ${LOOPDEV_FS} + + # Prepare boot partion. First mount the boot partition, and copy the boot loader and supporting files + # from the root filesystem + + # sanity check fstab entry for boot partition mounting + if [ x$(cat /etc/fstab | grep $LOOPDEV_BOOT | grep ${WORKDIR}/tmp-mnt-boot | grep user || true) = x ]; then + echo /etc/fstab entries need to be created with the user flag for $LOOPDEV_BOOT like: + echo $LOOPDEV_BOOT ${WORKDIR}/tmp-mnt-boot msdos user 0 0 + false + fi + + mkdir -p ${WORKDIR}/tmp-mnt-boot + mount $LOOPDEV_BOOT + + echo Copying bootloaders into the boot partition + cp -v ${IMAGE_ROOTFS}/boot/MLO ${WORKDIR}/tmp-mnt-boot + cp -v ${IMAGE_ROOTFS}/boot/{u-boot.bin,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + + # cleanup + umount ${LOOPDEV_BOOT} + /sbin/losetup -d ${LOOPDEV} + /sbin/losetup -d ${LOOPDEV_BOOT} + /sbin/losetup -d ${LOOPDEV_FS} + + gzip -c ${WORKDIR}/sd.img ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-${PR}.img.gz +} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH] beagleboard conf: IMAGE_FSTYPES for sdcard_image class
Also not including tar as it slows down SDCard creation and can be added back if required Signed-off-by: Joel A Fernandes joelag...@ti.com --- conf/machine/beagleboard.conf |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/conf/machine/beagleboard.conf b/conf/machine/beagleboard.conf index 73483bc..94995ed 100644 --- a/conf/machine/beagleboard.conf +++ b/conf/machine/beagleboard.conf @@ -16,7 +16,7 @@ require conf/machine/include/omap3.inc PREFERRED_PROVIDER_virtual/kernel = linux -IMAGE_FSTYPES += tar.bz2 ubi +IMAGE_FSTYPES = ubi sdimg EXTRA_IMAGECMD_jffs2 = -lnp # Guesswork -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] Narcissus and device nodes
Doesn't Narcissus suffer from mknod errors as the following is run as non-root? http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/narcissus/tree/scripts/assemble-image.sh#n147 If so, what are the effects of not being able to create device nodes in an image and, does udev auto create them during startup? Is it ok to skip the tar stage and directly copy what's in TARGET_DIR into the fs loopback mount? It seems that, since tar -x is run as non-root anyway, then tarring and untarring is as good as copying in files directly. This would save a stage if a tar is not a desired output (for ex. just an sdcard image is desired) Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH meta-ti] genext2fs: Imported from poky
Poky Commit: 8bf2fce59bd78feed260b9465d77a4a3d4c34159 Will be used by SD Card creation command (IMAGE_CMD_sdimg) Signed-off-by: Joel A Fernandes joelag...@ti.com --- recipes-dev/genext2fs/genext2fs.inc | 16 recipes-dev/genext2fs/genext2fs_1.4.1.bb |6 ++ 2 files changed, 22 insertions(+), 0 deletions(-) create mode 100644 recipes-dev/genext2fs/genext2fs.inc create mode 100644 recipes-dev/genext2fs/genext2fs_1.4.1.bb diff --git a/recipes-dev/genext2fs/genext2fs.inc b/recipes-dev/genext2fs/genext2fs.inc new file mode 100644 index 000..5b5508f --- /dev/null +++ b/recipes-dev/genext2fs/genext2fs.inc @@ -0,0 +1,16 @@ +inherit native + +SUMMARY = Ext2 filesystem generation tool +DESCRIPTION = A tool to generate an ext2 filesystem \ +as a normal (non-root) user. +HOMEPAGE = http://genext2fs.sourceforge.net/; +SECTION = console/utils + +LICENSE = GPLv2 +LIC_FILES_CHKSUM = file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ + file://genext2fs.c;beginline=9;endline=17;md5=23ea077d1f7fbfd3a6fa573b415fa001 + +SRC_URI = ${DEBIAN_MIRROR}/main/g/genext2fs/genext2fs_${PV}.orig.tar.gz +S = ${WORKDIR}/genext2fs-${PV} + +inherit autotools diff --git a/recipes-dev/genext2fs/genext2fs_1.4.1.bb b/recipes-dev/genext2fs/genext2fs_1.4.1.bb new file mode 100644 index 000..9364bb8 --- /dev/null +++ b/recipes-dev/genext2fs/genext2fs_1.4.1.bb @@ -0,0 +1,6 @@ +require genext2fs.inc + +PR = r0 + +SRC_URI[md5sum] = b7b6361bcce2cedff1ae437fadafe53b +SRC_URI[sha256sum] = 404dbbfa7a86a6c3de8225c8da254d026b17fd288e05cec4df2cc7e1f4feecfc -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] systemd boot hang
Just posted this on the systemd mailing list. It seems that I didn't go through enough testing on the systemd-gnome-image built by OE. The success I reported with boot SD card instead of over NFS was just a got-lucky case. So SD Card and NFS alike, the boot still hangs. Koen and others, could you try my image? http://www.beagleboard.org/~joelf/images/Angstrom-systemd-GNOME-image-eglibc-ipk-v2011.08-core-beagleboard.rootfs.tar.bz2 This is built from meta-angstrom master HEAD (7c54f644aaf7a5cade2b405bd4a2a7316d3a9dfb). bitbake systemd-gnome-image. Also, Is there a simple way to switch to sysvinit so that I can atleast be able to boot an oe-core built image and use it as a baseline? I tried setting IMAGE_INIT_MANAGER = sysvinit and removing all systemd dependent packages, but the image failed to build at the opkg install sysvinit stage saying that certain directories such as /var/cache already exist. Note: every once in a while with 3.0.1 that's in this image, I get the power management lookup table kernel-panic. But I can live that for now. Thanks, Joel On Tue, Aug 9, 2011 at 1:28 PM, Joel A Fernandes agnel.j...@gmail.com wrote: Hi, I'm using kernel 3.0.1 and systemd, the boot process hangs. I am booting from an SD Card using the BeagleBoard. I am passing systemd.log_target=kmsg systemd.log_level=debug in my boot arguments but I don't see any debug messages. Could anyone help me out? Thanks Starting udev Coldplug all Devices... Starting udev Kernel Device Manager... Started Load Kernel Modules. Started Set Up Additional Binary Formats. [ 4.701141] udevd[52]: starting version 173 Started Apply Kernel Variables. Starting Syslog Kernel Log Buffer Bridge... Started Syslog Kernel Log Buffer Bridge. Starting /var/volatile... Starting /tmp... Starting Setup Virtual Console... Started Opkg first boot configure. Starting Remount API VFS... Starting File System Check on Root Device... Starting Lock Directory... Starting Media Directory... Started Runtime Directory. Started udev Kernel Device Manager. Started /var/volatile. [ 4.932647] systemd-fsck[61]: Root directory is writable, skipping check. Started /tmp. Started File System Check on Root Device. Started Lock Directory. Started Remount API VFS. Started Media Directory. Starting Remount Root FS... Starting /var/tmp... Started /var/tmp. Starting Stdio Syslog Bridge... [ 5.081146] systemd-vconsole-setup[57]: /usr/bin/loadkeys failed with error code 1. Started Stdio Syslog Bridge. [ 5.135314] systemd-vconsole-setup[57]: cannot open file us Started udev Coldplug all Devices. Started Setup Virtual Console. Started Remount Root FS. Starting Load Random Seed... Starting Recreate Volatile Files and Directories... Started Load Random Seed. Started Recreate Volatile Files and Directories. Starting Console System Startup Logging... Starting ntpd.service... Starting xinetd.service... Started SSH Key Generation. Starting D-Bus System Message Bus... Starting Login Service... Starting Permit User Sessions... Started Permit User Sessions. Starting ntpd: Started Console System Startup Logging. Started D-Bus System Message Bus. Starting internet superserver: xinetd. [ 5.773284] ntpd[137]: ntpd 4.2.6p3@1.2290 Fri Jul 29 17:35:18 UTC 2011 (2) done [ 5.809906] ntpd[154]: proto: precision = 30.517 usec [ 5.829437] ntpd[154]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 [ 5.849182] xinetd[156]: 156 {init_services} no services. Exiting... [ 5.864044] ntpd[154]: Listen and drop on 1 v6wildcard :: UDP 123 [ 5.882141] ntpd[154]: Listen normally on 2 lo 127.0.0.1 UDP 123 [ 5.906188] ntpd[154]: Listen normally on 3 lo ::1 UDP 123 [ 5.935424] ntpd[154]: peers refreshed [ 5.939361] ntpd[154]: Deferring DNS for pool.ntp.org 1 [ 6.385498] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0 [ 7.948211] ntpd_intres[162]: host name not found: pool.ntp.org ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [OE-core] systemd boot hang
On Tue, Aug 9, 2011 at 2:42 PM, Jason Kridner jkrid...@beagleboard.org wrote: On Tue, Aug 9, 2011 at 2:59 PM, Joel A Fernandes agnel.j...@gmail.com wrote: Just posted this on the systemd mailing list. Are these the right lists on this thread? Just not sure if some folks on the CC might consider this too off-topic. It seems that I didn't go through enough testing on the systemd-gnome-image built by OE. The success I reported with boot SD card instead of over NFS was just a got-lucky case. So SD Card and NFS alike, the boot still hangs. Koen and others, could you try my image? http://www.beagleboard.org/~joelf/images/Angstrom-systemd-GNOME-image-eglibc-ipk-v2011.08-core-beagleboard.rootfs.tar.bz2 Can you provide an SD card image as well? Running mkcard.txt or linaro-create-image is often error prone and time consuming. Could you untar the file I uploaded into the FS partition? You could use the image from here: http://circuitco.com/support/files/BeagleboardxM/xMc_4_25.zip [..] Starting Login Service... Starting Permit User Sessions... Started Permit User Sessions. Starting ntpd: Started Console System Startup Logging. Started D-Bus System Message Bus. Starting internet superserver: xinetd. [ 5.773284] ntpd[137]: ntpd 4.2.6p3@1.2290 Fri Jul 29 17:35:18 UTC 2011 (2) done [ 5.809906] ntpd[154]: proto: precision = 30.517 usec [ 5.829437] ntpd[154]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123 [ 5.849182] xinetd[156]: 156 {init_services} no services. Exiting... [ 5.864044] ntpd[154]: Listen and drop on 1 v6wildcard :: UDP 123 [ 5.882141] ntpd[154]: Listen normally on 2 lo 127.0.0.1 UDP 123 [ 5.906188] ntpd[154]: Listen normally on 3 lo ::1 UDP 123 [ 5.935424] ntpd[154]: peers refreshed [ 5.939361] ntpd[154]: Deferring DNS for pool.ntp.org 1 [ 6.385498] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0 [ 7.948211] ntpd_intres[162]: host name not found: pool.ntp.org How long did you wait here for a timeout of some kind? What happens here different when it works? Did you try SysRq? What is the state of the board and native console? I waited for 15 minutes. The MMC card LED doesn't glow indicating no activity. The console has hung with the messages above. I tried sysrq but there is no response. CONFIG_MAGIC_SYSRQ=y in my .config Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] systemd boot hang
On Tue, Aug 9, 2011 at 1:59 PM, Joel A Fernandes agnel.j...@gmail.com wrote: Just posted this on the systemd mailing list. It seems that I didn't go through enough testing on the systemd-gnome-image built by OE. The success I reported with boot SD card instead of over NFS was just a got-lucky case. So SD Card and NFS alike, the boot still hangs. Koen and others, could you try my image? http://www.beagleboard.org/~joelf/images/Angstrom-systemd-GNOME-image-eglibc-ipk-v2011.08-core-beagleboard.rootfs.tar.bz2 It seems the rtc twl patch was causing problems so I've removed it and uploaded a new image [1]. Could you try it? Steve has suggested to apply a newer version patch but for the purposes of debugging systemd so I will try that, but for now I've dropped it. Thanks, Joel [1] http://www.beagleboard.org/~joelf/images/Angstrom-systemd-GNOME-image-eglibc-ipk-v2011.08-core-beagleboard.rootfs-no-rtctwl.tar.bz2 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] systemd boot hang
On Tue, Aug 9, 2011 at 5:30 PM, Joel A Fernandes agnel.j...@gmail.com wrote: On Tue, Aug 9, 2011 at 1:59 PM, Joel A Fernandes agnel.j...@gmail.com wrote: Just posted this on the systemd mailing list. It seems that I didn't go through enough testing on the systemd-gnome-image built by OE. The success I reported with boot SD card instead of over NFS was just a got-lucky case. So SD Card and NFS alike, the boot still hangs. Koen and others, could you try my image? http://www.beagleboard.org/~joelf/images/Angstrom-systemd-GNOME-image-eglibc-ipk-v2011.08-core-beagleboard.rootfs.tar.bz2 It seems the rtc twl patch was causing problems so I've removed it and uploaded a new image [1]. Could you try it? Steve has suggested to apply a newer version patch but for the purposes of debugging systemd so I will try that, but for now I've dropped it. Sorry, I meant that for the purposes of debugging the boot hang issues we're seeing, I've dropped the patch from my tree for now. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] kernel 3.0.1 + meta-ti beagleboard patches
Looks like something broke in power management with the latest beagle 3.0 kernel [1], which happens once in 3 reboots. This is Kernel 3.0.1 with the meta-ti patches for beagleboard (PR=j). I haven't seen this issue with PR=i or PR=h. This is not NFS related: [..] [3.450714] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3 [3.458801] ThumbEE CPU extension supported. [3.464263] omap_voltage_get_voltdata: Unable to match the current voltage with the voltagetable for vdd_mpu_iva [3.477325] Unable to handle kernel paging request at virtual address 80200250 [3.484893] pgd = c0004000 [3.487731] [80200250] *pgd= [3.491485] Internal error: Oops: 5 [#1] [3.495574] Modules linked in: [3.498779] CPU: 0Not tainted (3.0.1+ #1) [3.503417] PC is at strcmp+0x0/0x34 [3.507171] LR is at _pwrdm_lookup+0x20/0x50 [3.511627] pc : [c0245344]lr : [c0058914]psr: 8013 [3.511627] sp : dec2df90 ip : fp : [3.523620] r10: r9 : r8 : [3.529083] r7 : c0010a3c r6 : 80200250 r5 : c0654978 r4 : c06553e8 [3.535888] r3 : c065542c r2 : r1 : c059857b r0 : 80200250 [3.542724] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [3.550354] Control: 10c5387d Table: 80004019 DAC: 0015 [3.556365] Process swapper (pid: 1, stack limit = 0xdec2c2f0) [3.562469] Stack: (0xdec2df90 to 0xdec2e000) [3.567016] df80: c06a6608 c0045d54 c0010d84 [3.575561] dfa0: c059736c c0032394 c00323f0 c0045d54 c0010a3c c004045c [3.584106] dfc0: c0010a3c c0597896 c06a5c60 c0032394 c00323f0 c0045d54 0013 [3.592651] dfe0: c000894c c00088c4 c0045d54 f77f ffeffbfe [3.601226] [c0245344] (strcmp+0x0/0x34) from [c0058914] (_pwrdm_lookup+0x20/0x50) [3.609527] [c0058914] (_pwrdm_lookup+0x20/0x50) from [c0010d84] (omap3_pm_init+0x348/0x52c) [3.618713] [c0010d84] (omap3_pm_init+0x348/0x52c) from [c004045c] (do_one_initcall+0x90/0x160) [3.628173] [c004045c] (do_one_initcall+0x90/0x160) from [c000894c] (kernel_init+0x88/0x130) [3.637359] [c000894c] (kernel_init+0x88/0x130) from [c0045d54] (kernel_thread_exit+0x0/0x8) [3.646545] Code: e35c e4c3c001 1af7 e8bd8010 (e4d03001) [3.652954] ---[ end trace ace7108ce2c51ff8 ]--- [3.659881] usb 1-2: new high speed USB device number 2 using ehci-omap Thanks, Joel [1] http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/commit/?id=f3cb989b626f19becdd221b51ee9229b2e7eb4ea ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [oe-core] gstreamer-ti, questions
On Thu, Aug 4, 2011 at 8:04 PM, Joel A Fernandes agnel.j...@gmail.com wrote: On Thu, Aug 4, 2011 at 2:44 AM, Koen Kooi k...@dominion.thruhere.net wrote: Op 3 aug. 2011, om 18:28 heeft Enrico Butera het volgende geschreven: I've started importing bb files from oe classic into meta-texasinstruments, i still not have a clean build of everything but here are some basic questions: - cross compiler binaries: in classic oe there were sysroots/i686-linux/usr/armv7a/bin/arm-angstrom-linux-gnueabi-[gcc,ld...] and sysroots/i686-linux/usr/armv7a/arm-angstrom-linux-gnueabi/bin/[gcc,ld...], some ti tools use one, some the other. Now there is only usr/bin/armv7a. and this confuses some ti tools. The question is: what is the proper way to handle this? patch gcc install to have a similar layout to classic oe? patch ti tools to fix them? Joel was running into similar problems with https://github.com/joelagnel/meta-texasinstruments/commits/master can you guys have a look at it together? I think its cleaner to have the toolchain to define symlinks in /bin I've done this in the gcc-cross recipe in do_install (which is hopefully the right place to do it) http://www.hackerbliss.org/joel/cgit/cgit.cgi/oe-core/commit/?id=2878a712aabf839cb4c6e84961b6e8deafacf824 Now ti-codec-engine codecs, extensions and server builds but the 'apps' fails to build with a linker error. Here's the compiler log: [..] # # lnkv5T bin/ti_platforms_evm3530/app_remote.xv5T ... /home/joel/angstrom-oe/setup-scripts-core/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -o bin/ti_platforms_evm3530/app_remote.xv5T package/cfg/bin/ti_platforms_evm3530/app_remote/main_native.ov5T package/cfg/bin/ti_platforms_evm3530/app_remote_xv5T.ov5T package/cfg/bin/ti_platforms_evm3530/app_remote/app.ov5T package/cfg/bin/ti_platforms_evm3530/app_remote_xv5T.xdl -L/home/joel/angstrom-oe/setup-scripts-core/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi/lib -lpthread Interestingly the path: /home/joel/angstrom-oe/setup-scripts-core/build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi/lib doesn't exist, which explains the symbol errors. libgcc contains the symbol `__aeabi_uidivmod' Does this point to another problem with the toolchain? How would we fix this? thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] gstreamer-ti package
On Wed, Jul 27, 2011 at 12:36 AM, Koen Kooi k...@dominion.thruhere.net wrote: Op 26 jul. 2011, om 23:09 heeft Joel A Fernandes het volgende geschreven: Hi, The gstreamer-ti plugin in Narcissus built images appears to have not been rebuilt when we updated the ti-dmai package. As a result gstreamer-ti in these images cannot render to display as it doesn't have the new display fixes. Does the auto-builder not rebuild dependent packages on such updates? for the tl;dr crowd: bump PR if you want a rebuild, longer version below. It only rebuild when versions change, which normally works well enough for shared libs, but for static linking you will need to bump PR manually. You need to do that anyway since a package manager can't sense that the 1.0.2-r2 in the feeds has become different from the 1.0.2-r2 already installed. To further protect from such mismatches the upload script will refuse to upload a .ipk if one with the same name/version/arch is already there. Thanks! I will send a patch to update gstreamer-ti SRCREV to OE then. Is this something we need to do for OE-core too? -Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [beagleboard] Re: simple GStreamer pipeline
Hi Koen and Vladimir, [..] /* * The RMS protocol version is used to ensure that the server and the codec * engine can communicate with eachother. In order for the Codec Engine to * operate with a given server, the RMS_VERSION_MAJOR must be the same, and * the RMS_VERSION_MINOR of the server must be = the RMS_VERSION_MINOR of * the Codec Engine. The RMS_VERSION_SOURCE is always left as 0, and is only * here for consistency with CE library versioning conventions. * * When commands are added to the RMS server, the RMS_VERSION_MINOR must * be updated. This will allow a server that supports more commands to work * with an older Codec Engine. * If compatibility is completely broken, then RMS_VERSION_MAJOR * must be updated. */ #define RMS_VERSION_MAJOR 1 #define RMS_VERSION_SOURCE 0 #define RMS_VERSION_MINOR 4 [..] So I think I will try using an older Code Engine. Any thoughts? Rebuilding the server doesn't help? Thanks, it worked for me now. Regards, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] simple GStreamer pipeline
Hi, I'm trying to run a simple GStreamer pipeline using the latest Angstrom images and a BeagleBoard-xM. My command line looks like: gst-launch -v videotestsrc ! TIVidenc1 codecName=mpeg4enc engineName=codecServer ! filesink location=output.m4v I got it to a point where it opens the codeengine and rserverOpen is called but things go south somewhere around getServerKey(0x1cb5170) protocol mismatch. Here is a complete debug log (CE_DEBUG=2): @0,321,143us: [+4 T:0x4016c000] OG - Global_init This program was built with the following packages: @0,321,326us: [+4 T:0x4016c000] OG - package gnu.targets.arm.rtsv5T (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-xdctools-tree/packages/gnu/targets/arm/rtsv5T/) [1, 0, 0, 0] @0,321,418us: [+4 T:0x4016c000] OG - package ti.c6accel (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-c6accel-tree/soc/packages/ti/c6accel/) [1, 0, 0] @0,321,448us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.aachedec (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/aachedec/) [1, 0, 0] @0,321,479us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.deinterlacer (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/deinterlacer/) [1, 0, 0] @0,321,479us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.g711dec (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/g711dec/) [1, 0, 0] @0,321,509us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.g711enc (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/g711enc/) [1, 0, 0] @0,321,540us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.h264dec (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/h264dec/) [1, 0, 0] @0,321,570us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.h264enc (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/h264enc/) [1, 0, 0] @0,321,601us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.jpegdec (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/jpegdec/) [1, 0, 0] @0,321,631us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.jpegenc (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/jpegenc/) [1, 0, 0] @0,321,662us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.mpeg2dec (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/mpeg2dec/) [1, 0, 0] @0,321,692us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.mpeg4dec (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/mpeg4dec/) [1, 0, 0] @0,321,723us: [+4 T:0x4016c000] OG - package ti.sdo.codecs.mpeg4enc (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codecs-tree/packages/ti/sdo/codecs/mpeg4enc/) [1, 0, 0] @0,321,753us: [+4 T:0x4016c000] OG - package ti.sdo.linuxutils.sdma (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-linuxutils-tree/packages/ti/sdo/linuxutils/sdma/) [1, 0, 0] @0,321,784us: [+4 T:0x4016c000] OG - package ti.sdo.linuxutils.cmem (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-linuxutils-tree/packages/ti/sdo/linuxutils/cmem/) [2, 2, 0] @0,321,814us: [+4 T:0x4016c000] OG - package ti.sdo.fc.global (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-framework-components-tree/packages/ti/sdo/fc/global/) [1, 0, 0] @0,321,845us: [+4 T:0x4016c000] OG - package ti.sdo.fc.scpy (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-framework-components-tree/packages/ti/sdo/fc/scpy/) [1, 0, 0] @0,321,875us: [+4 T:0x4016c000] OG - package ti.sdo.ce.global (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-codec-engine-tree/packages/ti/sdo/ce/global/) [1, 0, 0] @0,321,936us: [+4 T:0x4016c000] OG - package ti.xdais.dm (/OE/angstrom-v2011/build/tmp-angstrom-v2011/sysroots/beagleboard-angstrom-linux-gnueabi/usr/share/ti/ti-xdais-tree/packages/ti/xdais/dm/) [1, 0, 5] @0,321,967us: [+4 T:0x4016c000] OG - package
Re: [Angstrom-devel] start X server
On Fri, Jul 22, 2011 at 5:13 AM, Michael Schnell mschn...@lumino.de wrote: xserver-xorg xf86-video-fbdev xf86-input-evdev Seemingly this did help to get a step further: root@da850-omapl138-evm:/etc/X11# Xorg -configure _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6 _XSERVTransOpen: transport open failed for inet6/da850-omapl138-evm:0 _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6 X.Org X Server 1.7.4 Release Date: 2010-01-08 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.33.2 x86_64 Current Operating System: Linux da850-omapl138-evm 2.6.33-rc4 #1 PREEMPT Thu Mar 25 15:06:29 IST 2010 armv5tejl Kernel command line: console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/mmcblk0p1 rootwait rootfstype=ext2 mem=32M Build Date: 22 September 2010 07:54:54AM Current version of pixman: 0.21.6 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: /var/log/Xorg.0.log, Time: Sat May 15 18:52:05 2010 List of video drivers: fbdev No devices to configure. Configuration failed. Now the fbdev device driver is found. I suppose I somehow need to supply the information that the framebuffer is found as /dev/fb. I did not yet find out how to do this. Maybe [1] will help you Thanks, Joel [1] http://www.x.org/archive/X11R6.8.0/doc/xorg.conf.5.html#toc7 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH] narcissus: Set max LEB count to 4097 to avoid mkfs.ubifs segmentation fault
On Thu, Jul 21, 2011 at 1:14 AM, Koen Kooi k...@dominion.thruhere.net wrote: Op 20 jul 2011, om 23:37 heeft Joel A Fernandes het volgende geschreven: Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- conf/beagleboard/machine-config | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/beagleboard/machine-config b/conf/beagleboard/machine-config index 6d44260..f9caa45 100644 --- a/conf/beagleboard/machine-config +++ b/conf/beagleboard/machine-config @@ -1,8 +1,8 @@ EXTRA_IMAGECMD_jffs2=-lnp # UBI: smallest flash I/O unit: 2048 # UBI: logical eraseblock size: 129024 bytes -# UBI device number 0, total 1996 LEBs -MKUBIFS_ARGS=-m 2048 -e 129024 -c 1996 +# UBI device number 0, total 4097 LEBs +MKUBIFS_ARGS=-m 2048 -e 129024 -c 4097 And how does that work for C4 and earlier? From what I understand, -c specifies the maximum LEB count, so if you meant devices with a smaller NAND, should it matter? mkfs.ubifs does segfault though , but I guess it works on your Narcissus server? I'm using mkfs.ubifs v1.3. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH] narcissus: Set max LEB count to 4097 to avoid mkfs.ubifs segmentation fault
On Thu, Jul 21, 2011 at 3:48 AM, Koen Kooi k...@dominion.thruhere.net wrote: Op 21 jul. 2011, om 09:23 heeft Joel A Fernandes het volgende geschreven: On Thu, Jul 21, 2011 at 1:14 AM, Koen Kooi k...@dominion.thruhere.net wrote: Op 20 jul 2011, om 23:37 heeft Joel A Fernandes het volgende geschreven: Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- conf/beagleboard/machine-config | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/beagleboard/machine-config b/conf/beagleboard/machine-config index 6d44260..f9caa45 100644 --- a/conf/beagleboard/machine-config +++ b/conf/beagleboard/machine-config @@ -1,8 +1,8 @@ EXTRA_IMAGECMD_jffs2=-lnp # UBI: smallest flash I/O unit: 2048 # UBI: logical eraseblock size: 129024 bytes -# UBI device number 0, total 1996 LEBs -MKUBIFS_ARGS=-m 2048 -e 129024 -c 1996 +# UBI device number 0, total 4097 LEBs +MKUBIFS_ARGS=-m 2048 -e 129024 -c 4097 And how does that work for C4 and earlier? From what I understand, -c specifies the maximum LEB count, so if you meant devices with a smaller NAND, should it matter? I'm pretty sure it matters, have you tested it on e.g. a C4? I don't have a C4 :\ ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH v2] narcissus: Create UBIFS image in a tmp directory and delete it later
On Tue, Jul 19, 2011 at 1:15 PM, Joel A Fernandes agnel.j...@gmail.com wrote: A UBIFS might be required more than once, so we keep it in a tmp directory and delete it later This fixes a bug introduced by commit at [1] discussed in [2] [1] http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/narcissus/commit/?id=912be148348a796f2613ebf97ee11f2a0e96530e [2] http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2011-July/004793.html Signed-off-by: Joel A Fernandes agnel.j...@gmail.com Just a gentle reminder, This is a critical patch that should go into to fix problems with UBIFS copy to SD Card image.Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] pulseaudio 0.9.22
Hi, I wanted to discuss my experience with pulseaudio 0.9.22 is on the latest angstrom and BeagleBoard images. I noticed in images built using both OE and another assembled by Narcissus that the permissions of root directory were not set properly, so I was getting a /root does not belong error message. chown'ing it fixed the problem. Then, when I start in session mode (both as root and regular user) Running in a session as: pulseaudio --start -DD W: main.c: This program is not intended to be run as root (unless --system is specified). E: module-gconf.c: Unable to read or parse data from client. E: module.c: Failed to load module module-gconf (argument: ): initialization failed. E: main.c: Module load failed. E: main.c: Failed to initialize daemon. Running in System mode. Loading module-udev-detect by editing /etc/system.pa, I get pulseaudio to open the sound devices and startup without problems: W: main.c: Running in system mode, but --disallow-exit not set! W: main.c: Running in system mode, but --disallow-module-loading not set! N: main.c: Running in system mode, forcibly disabling SHM mode! N: main.c: Running in system mode, forcibly disabling exit idle time! W: main.c: OK, so you are running PA in system mode. Please note that you most likely shouldn't be doing that. W: main.c: If you do it nonetheless then it's your own fault if things don't work as expected. W: main.c: Please read http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for an explanation why system mode is usually a bad idea. But, pactl list gives a Connection failed: Access Denied message. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH] narcissus: Set max LEB count to 4097 to avoid mkfs.ubifs segmentation fault
Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- conf/beagleboard/machine-config |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/beagleboard/machine-config b/conf/beagleboard/machine-config index 6d44260..f9caa45 100644 --- a/conf/beagleboard/machine-config +++ b/conf/beagleboard/machine-config @@ -1,8 +1,8 @@ EXTRA_IMAGECMD_jffs2=-lnp # UBI: smallest flash I/O unit:2048 # UBI: logical eraseblock size:129024 bytes -# UBI device number 0, total 1996 LEBs -MKUBIFS_ARGS=-m 2048 -e 129024 -c 1996 +# UBI device number 0, total 4097 LEBs +MKUBIFS_ARGS=-m 2048 -e 129024 -c 4097 # UBI: smallest flash I/O unit:2048 # UBI: physical eraseblock size: 131072 bytes (128 KiB) # UBI: sub-page size: 512 -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH] narcissus: Create UBIFS image in a tmp directory and delete it later
A UBIFS might be required more than once, so we keep it in a tmp directory and delete it later This fixes a bug introduced by commit at [1] discussed in [2] [1] http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/narcissus/commit/?id=912be148348a796f2613ebf97ee11f2a0e96530e [2] http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2011-July/004793.html Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- conf/host-config |2 ++ scripts/assemble-image.sh | 15 +-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/conf/host-config b/conf/host-config index ab60c30..f30c3af 100644 --- a/conf/host-config +++ b/conf/host-config @@ -15,6 +15,8 @@ export CACHEDIRIPK=${CACHEDIR}/ipk export TARGET_DIR=${WORKDIR}/work/${MACHINE}/${IMAGENAME} +export UBIFS_TMP_DIR=${TARGET_DIR}-ubi-tmp + # Choose between pseudo and fakeroot export PSEUDO_LOCALSTATEDIR=${TARGET_DIR}-pseudo export PSEUDO_BINDIR=${WORKDIR}/bin diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f136507..df9b4ed 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -146,9 +146,9 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + if [ -e ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ] ; then echo Copying UBIFS image to file system: - cp ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + cp ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi fi touch /mnt/narcissus/sd_image2/narcissus-was-here @@ -187,16 +187,19 @@ function do_tar() function do_ubifs() { echo creating ubi volume + mkdir -p ${UBIFS_TMP_DIR} ( cd ${TARGET_DIR}/../ echo \[ubifs\] ubinize.cfg echo mode=ubi ubinize.cfg - echo image=${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubifs ubinize.cfg + echo image=${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubifs ubinize.cfg echo vol_id=0 ubinize.cfg echo vol_type=dynamic ubinize.cfg echo vol_name=${MACHINE}-rootfs ubinize.cfg echo vol_flags=autoresize ubinize.cfg - echo running: ${FAKEROOT} mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubifs ${MKUBIFS_ARGS} ubinize -o ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ${UBINIZE_ARGS} ubinize.cfg - ${FAKEROOT} mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubifs ${MKUBIFS_ARGS} ubinize -o ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ${UBINIZE_ARGS} ubinize.cfg ) + echo running: ${FAKEROOT} mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubifs ${MKUBIFS_ARGS} ubinize -o ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ${UBINIZE_ARGS} ubinize.cfg + ${FAKEROOT} mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubifs ${MKUBIFS_ARGS} ubinize -o ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ${UBINIZE_ARGS} ubinize.cfg ) + echo running: cp ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi + cp ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi } function do_jffs2() @@ -452,7 +455,7 @@ case ${SDK} in esac echo removing target dir -rm -rf ${PSEUDO_LOCALSTATEDIR} ${OPKG_TMP_DIR} ${TARGET_DIR} +rm -rf ${PSEUDO_LOCALSTATEDIR} ${OPKG_TMP_DIR} ${UBIFS_TMP_DIR} ${TARGET_DIR} exit ${RETVAL} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH v2] narcissus: Create UBIFS image in a tmp directory and delete it later
A UBIFS might be required more than once, so we keep it in a tmp directory and delete it later This fixes a bug introduced by commit at [1] discussed in [2] [1] http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/narcissus/commit/?id=912be148348a796f2613ebf97ee11f2a0e96530e [2] http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2011-July/004793.html Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- * The old diff was against a different commit, please use this version of the patch. Thanks conf/host-config |2 ++ scripts/assemble-image.sh | 15 +-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/conf/host-config b/conf/host-config index ab60c30..f30c3af 100644 --- a/conf/host-config +++ b/conf/host-config @@ -15,6 +15,8 @@ export CACHEDIRIPK=${CACHEDIR}/ipk export TARGET_DIR=${WORKDIR}/work/${MACHINE}/${IMAGENAME} +export UBIFS_TMP_DIR=${TARGET_DIR}-ubi-tmp + # Choose between pseudo and fakeroot export PSEUDO_LOCALSTATEDIR=${TARGET_DIR}-pseudo export PSEUDO_BINDIR=${WORKDIR}/bin diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index 2940d9a..df9b4ed 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -146,9 +146,9 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + if [ -e ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ] ; then echo Copying UBIFS image to file system: - mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + cp ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi fi touch /mnt/narcissus/sd_image2/narcissus-was-here @@ -187,16 +187,19 @@ function do_tar() function do_ubifs() { echo creating ubi volume + mkdir -p ${UBIFS_TMP_DIR} ( cd ${TARGET_DIR}/../ echo \[ubifs\] ubinize.cfg echo mode=ubi ubinize.cfg - echo image=${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubifs ubinize.cfg + echo image=${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubifs ubinize.cfg echo vol_id=0 ubinize.cfg echo vol_type=dynamic ubinize.cfg echo vol_name=${MACHINE}-rootfs ubinize.cfg echo vol_flags=autoresize ubinize.cfg - echo running: ${FAKEROOT} mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubifs ${MKUBIFS_ARGS} ubinize -o ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ${UBINIZE_ARGS} ubinize.cfg - ${FAKEROOT} mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubifs ${MKUBIFS_ARGS} ubinize -o ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ${UBINIZE_ARGS} ubinize.cfg ) + echo running: ${FAKEROOT} mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubifs ${MKUBIFS_ARGS} ubinize -o ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ${UBINIZE_ARGS} ubinize.cfg + ${FAKEROOT} mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubifs ${MKUBIFS_ARGS} ubinize -o ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ${UBINIZE_ARGS} ubinize.cfg ) + echo running: cp ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi + cp ${UBIFS_TMP_DIR}/${IMAGENAME}-${MACHINE}.ubi ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi } function do_jffs2() @@ -452,7 +455,7 @@ case ${SDK} in esac echo removing target dir -rm -rf ${PSEUDO_LOCALSTATEDIR} ${OPKG_TMP_DIR} ${TARGET_DIR} +rm -rf ${PSEUDO_LOCALSTATEDIR} ${OPKG_TMP_DIR} ${UBIFS_TMP_DIR} ${TARGET_DIR} exit ${RETVAL} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] Bitbake build failure of Angstrom
Hi Koen, Nice to hear from you. On Mon, Jul 18, 2011 at 2:00 AM, Koen Kooi k...@dominion.thruhere.net wrote: Op 18 jul 2011, om 07:16 heeft Joel A Fernandes het volgende geschreven: Hi, I am attempting to manually rebuild the BeagleBoard validation image using bitbake. For this, I used the revision found in /etc/angstrom-version of an image I built with Narcissus. The OE revision I used referring to the above version file is: a1f31c757d2514e946737d60789c6f9f05ce38eb (Which happens to be my fix for GPIO) Now, when I run a bitbake beagleboard-validation-gnome-image -k Why are you using -k ? Not sure if it matters? Even if I don't pass -k, the errors still show up. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH 1/2] assemble_image: Copy U-boot environment files for flashing NAND (controlled by user button)
* Copy a user.txt and uEnv.txt if they exist in /boot in the root fs to the boot partition, When the user button is pressed, U-boot chooses between these 2 files, user.txt is used for flashing while uEnv.txt is for a regular boot Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- scripts/assemble-image.sh |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index 6043bde..d34b1c8 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -126,6 +126,14 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Using uImage from narcissus, no uImage found in rootfs fi + if [ -e ${TARGET_DIR}/boot/user.txt ]; then + cp -v ${TARGET_DIR}/boot/user.txt /mnt/narcissus/sd_image1/ + fi + + if [ -e ${TARGET_DIR}/boot/uEnv.txt ]; then + cp -v ${TARGET_DIR}/boot/uEnv.txt /mnt/narcissus/sd_image1/ + fi + echo Remounting ${LOOP_DEV} umount ${LOOP_DEV} mount ${LOOP_DEV} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
* For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- scripts/assemble-image.sh |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index d34b1c8..d0760b9 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,11 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -426,6 +429,7 @@ case ${IMAGETYPE} in do_ext2;; sdimg) do_tar + do_ubifs do_sdimg;; *) do_tar;; -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH v2 1/2] assemble_image: Copy U-boot environment files for flashing NAND (controlled by user button)
* Copy a user.txt and uEnv.txt if they exist in /boot in the root fs to the boot partition, When the user button is pressed, U-boot chooses between these 2 files, user.txt is used for flashing while uEnv.txt is for a regular boot Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v1: - Added spaces after if condition as requested scripts/assemble-image.sh |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index 6043bde..f54296d 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -126,6 +126,14 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Using uImage from narcissus, no uImage found in rootfs fi + if [ -e ${TARGET_DIR}/boot/user.txt ] ;then + cp -v ${TARGET_DIR}/boot/user.txt /mnt/narcissus/sd_image1/ + fi + + if [ -e ${TARGET_DIR}/boot/uEnv.txt ] ;then + cp -v ${TARGET_DIR}/boot/uEnv.txt /mnt/narcissus/sd_image1/ + fi + echo Remounting ${LOOP_DEV} umount ${LOOP_DEV} mount ${LOOP_DEV} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH v3 1/2] assemble_image: Copy U-boot environment files for flashing NAND (controlled by user button)
* Copy a user.txt and uEnv.txt if they exist in /boot in the root fs to the boot partition, When the user button is pressed, U-boot chooses between these 2 files, user.txt is used for flashing while uEnv.txt is for a regular boot Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v2: - Fixed spacing in if condition scripts/assemble-image.sh |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index 6043bde..f2a595a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -126,6 +126,14 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Using uImage from narcissus, no uImage found in rootfs fi + if [ -e ${TARGET_DIR}/boot/user.txt ] ; then + cp -v ${TARGET_DIR}/boot/user.txt /mnt/narcissus/sd_image1/ + fi + + if [ -e ${TARGET_DIR}/boot/uEnv.txt ] ; then + cp -v ${TARGET_DIR}/boot/uEnv.txt /mnt/narcissus/sd_image1/ + fi + echo Remounting ${LOOP_DEV} umount ${LOOP_DEV} mount ${LOOP_DEV} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH v3 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
* For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v2: - Fixed spacing in if condition scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + fi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -427,6 +432,10 @@ case ${IMAGETYPE} in sdimg) do_tar do_sdimg;; + sdimg-ubi) + do_tar + do_ubifs + do_sdimg;; *) do_tar;; esac -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH] Set imagesuffix to .tar.gz when imagetype is sdimg-ubi
Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- backend.php |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/backend.php b/backend.php index f35d096..d9c9edb 100644 --- a/backend.php +++ b/backend.php @@ -99,6 +99,9 @@ switch($imagetype) { case sdimg: $imagesuffix = tar.gz; break; + case sdimg-ubi: + $imagesuffix = tar.gz; + break; case ubifs: $imagesuffix = ubi; break; -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH v3 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
On Mon, Jul 18, 2011 at 1:35 PM, Koen Kooi k...@dominion.thruhere.net wrote: Op 18 jul 2011, om 19:54 heeft Joel A Fernandes het volgende geschreven: * For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v2: - Fixed spacing in if condition scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + fi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -427,6 +432,10 @@ case ${IMAGETYPE} in sdimg) do_tar do_sdimg;; + sdimg-ubi) + do_tar + do_ubifs + do_sdimg;; How does sdimg-ubi get called? Jason's patch passes it in the radio button element imagetype. Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] [PATCH v3 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
On Mon, Jul 18, 2011 at 2:19 PM, Koen Kooi k...@dominion.thruhere.net wrote: Op 18 jul 2011, om 21:18 heeft Joel A Fernandes het volgende geschreven: On Mon, Jul 18, 2011 at 1:35 PM, Koen Kooi k...@dominion.thruhere.net wrote: Op 18 jul 2011, om 19:54 heeft Joel A Fernandes het volgende geschreven: * For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- Changes since v2: - Fixed spacing in if condition scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + fi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -427,6 +432,10 @@ case ${IMAGETYPE} in sdimg) do_tar do_sdimg;; + sdimg-ubi) + do_tar + do_ubifs + do_sdimg;; How does sdimg-ubi get called? Jason's patch passes it in the radio button element imagetype. Can you please send all the related patches as a series please? I've lost track which version those what and which extra patches are needed. Sure Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH 2/4] assemble_image: Copy U-boot environment files for flashing NAND (controlled by user button)
* Copy a user.txt and uEnv.txt if they exist in /boot in the root fs to the boot partition, When the user button is pressed, U-boot chooses between these 2 files, user.txt is used for flashing while uEnv.txt is for a regular boot Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- scripts/assemble-image.sh |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index 6043bde..f2a595a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -126,6 +126,14 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Using uImage from narcissus, no uImage found in rootfs fi + if [ -e ${TARGET_DIR}/boot/user.txt ] ; then + cp -v ${TARGET_DIR}/boot/user.txt /mnt/narcissus/sd_image1/ + fi + + if [ -e ${TARGET_DIR}/boot/uEnv.txt ] ; then + cp -v ${TARGET_DIR}/boot/uEnv.txt /mnt/narcissus/sd_image1/ + fi + echo Remounting ${LOOP_DEV} umount ${LOOP_DEV} mount ${LOOP_DEV} -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH 1/4] Added sdimg-ubi selection to imagetypes
From: Jason Kridner jkrid...@beagleboard.org With a patch to assemble-image.sh[1], this change to the user interface enables a copy of the root file system to be built into a UBIFS image and stored on the SD card for use in flashing systems with the same root file system. It is possible to make this a checkbox that would show up when sdimg is selected, but that would complicate the logic quite a bit. There seems to be a reasonable amount of space on the line, so the simpler logic seemed like the better trade-off. [1] http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2011-July/004778.html --- index.html |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/index.html b/index.html index f45e12c..a7813ba 100644 --- a/index.html +++ b/index.html @@ -80,6 +80,7 @@ Select the type of image you want.br/font size=-2The 'tar.gz' option is the most versatile choice since it can be easily converted to other formats later on. The practicality of the other formats depends too much on the device in question to give meaningfull advice here, so we leave that up to you :)/fontbr/br/ input name=imagetype type=radio checked=checked value=tgztar.gz input name=imagetype type=radio value=sdimgOMAP SD image + input name=imagetype type=radio value=sdimg-ubiOMAP SD+UBI image input name=imagetype type=radio value=ext2ext2 input name=imagetype type=radio value=ubifsubifs input name=imagetype type=radio value=jffs2jffs2 -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
[Angstrom-devel] [PATCH 3/4] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
* For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com --- scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi + fi + + touch /mnt/narcissus/sd_image2/narcissus-was-here echo Remounting ${LOOP_DEV_FS} umount ${LOOP_DEV_FS} mount ${LOOP_DEV_FS} @@ -427,6 +432,10 @@ case ${IMAGETYPE} in sdimg) do_tar do_sdimg;; + sdimg-ubi) + do_tar + do_ubifs + do_sdimg;; *) do_tar;; esac -- 1.7.0.4 ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel
Re: [Angstrom-devel] Joel A Fernandes : assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
On Mon, Jul 18, 2011 at 3:29 PM, Angstrom Git Repos ang-...@xora.vm.bytemark.co.uk wrote: Module: narcissus Branch: master Commit: 912be148348a796f2613ebf97ee11f2a0e96530e Author: Joel A Fernandes agnel.j...@gmail.com Date: Mon Jul 18 14:27:17 2011 -0500 assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds * For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem This is used by the flashing script to ubiformat the NAND Signed-off-by: Joel A Fernandes agnel.j...@gmail.com Signed-off-by: Koen Kooi k...@dominion.thruhere.net --- scripts/assemble-image.sh | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh index f2a595a..2940d9a 100755 --- a/scripts/assemble-image.sh +++ b/scripts/assemble-image.sh @@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then echo Copying file system: echo tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2 - touch /mnt/narcissus/sd_image2/narcissus-was-here + if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then + echo Copying UBIFS image to file system: + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi There is a problem with my patch that causes the UBIFS to not be copied for a 4GB SDCard image, because it was already moved for a 1GB image. Changing the mv above to cp fixes it, but leaves the .ubi floating in the work directory after the build. What's the right way to fix this? Can we mkdir a tmp directory in work, keep the ubi there and delete the directory like we do to other temporary directories when we're done copying it for all images? Also, the UI doesn't show download links to SD Card images after a successful build ) I do see the images built and copied to conf/beagleboard/sd/). Is this a known issue? Thanks, Joel ___ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel