_update_help: fix script name
Subsystems (2)
PATCH 1/7 _update_help: fix script name
$0 is _update_help so update -h leads to : usage: /env/bin/_update_help so don't use $0 but hardcode update instead.
--- defaultenv/bin/_update_help | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
defaultenv/bin/_update_help +1 -1
@@ -1,6 +1,6 @@ #!/bin/sh -echo "usage: $0 -t <kernel|rootfs|barebox> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c" +echo "usage: update -t <kernel|rootfs|barebox> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c" echo "update tools." echo "" echo "options"
Signature · 7 lines
1.7.3.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/7 defaultenv/bin/boot: make ubi root's name configurable
all root are not named root so give the possibility to configure this in the config file.
--- defaultenv/bin/boot | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
defaultenv/bin/boot +4 -1
@@ -34,7 +34,10 @@ else fi if [ x$rootfs_type = xubifs ]; then - bootargs="$bootargs root=ubi0:root ubi.mtd=$rootfs_mtdblock" + if [ x$ubiroot = x ]; then + ubiroot = "root" + fi + bootargs="$bootargs root=ubi0:$ubiroot ubi.mtd=$rootfs_mtdblock" else bootargs="$bootargs root=/dev/mtdblock$rootfs_mtdblock" fi
Signature · 7 lines
1.7.3.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/7 defaultenv/bin/update: let /env/config set default values
In reply to Eric Bénardthis patch allows for example device_type to be fixed in /env/config (useful for configurations with only one memory type).
--- defaultenv/bin/update | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
defaultenv/bin/update +2 -2
@@ -1,12 +1,12 @@ #!/bin/sh -. /env/config - type="" device_type="" check=n mode=tftp +. /env/config + while getopt "ht:d:f:m:c" Option do if [ ${Option} = t ]; then
Signature · 7 lines
1.7.3.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/7 update: add bareboxenv update possibility
In reply to Eric Bénardthis is useful when building barebox without integrated env.
--- defaultenv/bin/_update_help | 3 ++- defaultenv/bin/update | 5 +++++ 2 files changed, 7 insertions(+), 1 deletions(-)
defaultenv/bin/_update_help +2 -1
@@ -1,6 +1,6 @@ #!/bin/sh -echo "usage: update -t <kernel|rootfs|barebox> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c" +echo "usage: update -t <kernel|rootfs|barebox|bareboxenv> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c" echo "update tools." echo "" echo "options"
@@ -10,3 +10,4 @@ echo "default mode is tftp" echo "type update -t kernel -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update kernel into flash" echo "type update -t rootfs -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update rootfs into flash" echo "type update -t barebox -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update barebox into flash" +echo "type update -t bareboxenv -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update bareboxenv into flash"
defaultenv/bin/update +5 -0
@@ -35,6 +35,11 @@ elif [ x${type} = xbarebox ]; then if [ x${image} = x ]; then image=barebox.bin fi +elif [ x${type} = xbareboxenv ]; then + image=$bareboxenvimage + if [ x${image} = x ]; then + image=bareboxenv.bin + fi else . /env/bin/_update_help exit 1
Signature · 7 lines
1.7.3.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 5/7 eukrea_cpuimx25: add led support
In reply to Eric Bénard--- arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c +13 -0
@@ -31,6 +31,7 @@#include <mach/gpio.h> #include <asm/io.h> #include <asm/mmu.h> +#include <led.h> #include <partition.h> #include <generated/mach-types.h>
@@ -132,6 +133,11 @@ static struct imx_fb_platform_data eukrea_cpuimx25_fb_data = { .dmacr = 0x80040060, }; +struct gpio_led led0 = { + .gpio =2 *32 +19 , + .active_low =1 , +}; +#ifdef CONFIG_USB static void imx25_usb_init (void ) {
@@ -243,6 +249,8 @@ static struct pad_desc eukrea_cpuimx25_pads[] = {MX25_PAD_SD1_DATA1__DAT1 ,MX25_PAD_SD1_DATA2__DAT2 ,MX25_PAD_SD1_DATA3__DAT3 , +/* LED */ + MX25_PAD_POWER_FAIL__GPIO19, };static int eukrea_cpuimx25_devices_init (void )
@@ -252,6 +260,8 @@ static int eukrea_cpuimx25_devices_init(void)mxc_iomux_v3_setup_multiple_pads (eukrea_cpuimx25_pads,ARRAY_SIZE (eukrea_cpuimx25_pads)); +led_gpio_register (&led0); +imx25_add_fec (&fec_info); nand_info.width =1 ;
@@ -271,6 +281,9 @@ static int eukrea_cpuimx25_devices_init(void)gpio_direction_output (26 ,1 );gpio_set_value (26 ,1 ); +/* LED : default OFF */ +gpio_direction_output (2 *32 +19 ,1 ); +imx25_add_fb (&eukrea_cpuimx25_fb_data);imx25_add_i2c0 (NULL );
Signature · 7 lines
1.7.3.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 6/7 eukrea_cpuimx25: switch to default environement
In reply to Eric Bénard--- arch/arm/boards/eukrea_cpuimx25/env/bin/_update | 36 ------------- arch/arm/boards/eukrea_cpuimx25/env/bin/boot | 53 -------------------- arch/arm/boards/eukrea_cpuimx25/env/bin/hush_hack | 1 - arch/arm/boards/eukrea_cpuimx25/env/bin/init | 43 ---------------- arch/arm/boards/eukrea_cpuimx25/env/bin/init_board | 18 +++++++ .../boards/eukrea_cpuimx25/env/bin/update_kernel | 8 --- .../arm/boards/eukrea_cpuimx25/env/bin/update_root | 8 --- arch/arm/boards/eukrea_cpuimx25/env/config | 53 ++++++++++++++------ 8 files changed, 55 insertions(+), 165 deletions(-) delete mode 100644 arch/arm/boards/eukrea_cpuimx25/env/bin/_update delete mode 100644 arch/arm/boards/eukrea_cpuimx25/env/bin/boot delete mode 100644 arch/arm/boards/eukrea_cpuimx25/env/bin/hush_hack delete mode 100644 arch/arm/boards/eukrea_cpuimx25/env/bin/init create mode 100644 arch/arm/boards/eukrea_cpuimx25/env/bin/init_board delete mode 100644 arch/arm/boards/eukrea_cpuimx25/env/bin/update_kernel delete mode 100644 arch/arm/boards/eukrea_cpuimx25/env/bin/update_root
arch/arm/boards/eukrea_cpuimx25/env/bin/_update deleted +0 -36
@@ -1,36 +0,0 @@ -#!/bin/sh - -if [ -z "$part" -o -z "$image" ]; then - echo "define \$part and \$image" - exit 1 -fi - -if [ ! -e "$part" ]; then - echo "Partition $part does not exist" - exit 1 -fi - -if [ $# = 1 ]; then - image=$1 -fi - -if [ x$ip = xdhcp ]; then - dhcp -fi - -ping $eth0.serverip -if [ $? -ne 0 ] ; then - echo "update aborted" - exit 1 -fi - -unprotect $part - -echo -echo "erasing partition $part" -erase $part - -echo -echo "flashing $image to $part" -echo -tftp $image $part
arch/arm/boards/eukrea_cpuimx25/env/bin/boot deleted +0 -53
53 lines not on this page · raw message
arch/arm/boards/eukrea_cpuimx25/env/bin/hush_hack deleted +0 -1
@@ -1 +0,0 @@ -nand -a /dev/nand0.*
arch/arm/boards/eukrea_cpuimx25/env/bin/init deleted +0 -43
43 lines not on this page · raw message
arch/arm/boards/eukrea_cpuimx25/env/bin/init_board new file +18 -0
@@ -0,0 +1,18 @@ +#!/bin/sh + +if [ -f /env/logo.bmp ]; then + bmp /env/logo.bmp + fb0.enable=1 +elif [ -f /env/logo.bmp.lzo ]; then + unlzo /env/logo.bmp.lzo /logo.bmp + bmp /logo.bmp + fb0.enable=1 +fi + +if [ -z $eth0.ethaddr ]; then + while [ -z $eth0.ethaddr ]; do + readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr + done + echo -a /env/config "eth0.ethaddr=$eth0.ethaddr" + saveenv +fi
arch/arm/boards/eukrea_cpuimx25/env/bin/update_kernel deleted +0 -8
@@ -1,8 +0,0 @@ -#!/bin/sh - -. /env/config - -image=$uimage -part=/dev/nand0.kernel.bb - -. /env/bin/_update $1
arch/arm/boards/eukrea_cpuimx25/env/bin/update_root deleted +0 -8
@@ -1,8 +0,0 @@ -#!/bin/sh - -. /env/config - -image=$rootfs -part=/dev/nand0.root.bb - -. /env/bin/_update $1
arch/arm/boards/eukrea_cpuimx25/env/config +37 -16
64 lines not on this page · raw message
Signature · 7 lines
1.7.3.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 7/7 eukrea_cpuimx25: update defconfig
In reply to Eric Bénard--- arch/arm/configs/eukrea_cpuimx25_defconfig | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-)
arch/arm/configs/eukrea_cpuimx25_defconfig +9 -4
@@ -9,10 +9,10 @@ CONFIG_LONGHELP=y CONFIG_GLOB=y CONFIG_PROMPT_HUSH_PS2="cpuimx25>" CONFIG_HUSH_FANCY_PROMPT=y -CONFIG_HUSH_GETOPT=y CONFIG_CMDLINE_EDITING=y CONFIG_AUTO_COMPLETE=y CONFIG_PARTITION=y +CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/eukrea_cpuimx25/env" CONFIG_CMD_EDIT=y CONFIG_CMD_SLEEP=y
@@ -22,9 +22,8 @@ CONFIG_CMD_EXPORT=y CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_ECHO_E=y +CONFIG_CMD_LOADB=y CONFIG_CMD_MEMINFO=y -CONFIG_CMD_CRC=y -CONFIG_CMD_CRC_CMP=y CONFIG_CMD_MTEST=y CONFIG_CMD_FLASH=y CONFIG_CMD_BOOTM_ZLIB=y
@@ -38,10 +37,14 @@ CONFIG_CMD_BMP=y CONFIG_CMD_GPIO=y CONFIG_CMD_UNLZO=y CONFIG_CMD_I2C=y +CONFIG_CMD_LED=y +CONFIG_CMD_LED_TRIGGER=y CONFIG_NET=y CONFIG_NET_DHCP=y +CONFIG_NET_NFS=y CONFIG_NET_PING=y CONFIG_NET_TFTP=y +CONFIG_NET_TFTP_PUSH=y CONFIG_DRIVER_NET_FEC_IMX=y # CONFIG_SPI is not set CONFIG_I2C=y
@@ -51,9 +54,11 @@ CONFIG_NAND=y CONFIG_NAND_IMX=y CONFIG_USB=y CONFIG_USB_EHCI=y -CONFIG_USB_GADGET=y CONFIG_VIDEO=y CONFIG_DRIVER_VIDEO_IMX=y CONFIG_MCI=y CONFIG_MCI_IMX_ESDHC=y CONFIG_MCI_IMX_ESDHC_PIO=y +CONFIG_LED=y +CONFIG_LED_GPIO=y +CONFIG_LED_TRIGGERS=y
Signature · 7 lines
1.7.3.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox