SBC6000 is good, but it seems that i do something wrong with the code

Discussion in 'Embedded Systems and Microcontrollers' started by Talors, Sep 28, 2011.

  1. Talors

    Thread Starter New Member

    Sep 24, 2011
    I have a SBC6000X board with 7"LCD, when I test, the problem is :
    when I try the patch in a dry-run - I get an error message:

    [dag@linux devkid-sbc6300x]$ patch --dry-run -p 1 -i linux-2.6.24_sbc63000_eeprom_rtc_touch.patch
    patching file linux-2.6.24/arch/arm/configs/sbc6300x_defconfig
    patching file linux-2.6.24/arch/arm/mach-at91/board-sam6300i.c
    patching file linux-2.6.24/drivers/i2c/i2c-core.c
    patching file linux-2.6.24/drivers/input/touchscreen/ads7846.c
    patching file linux-2.6.24/drivers/misc/eeprom/at24.c
    patching file linux-2.6.24/drivers/misc/eeprom/at25.c
    patching file linux-2.6.24/drivers/misc/eeprom/eeprom_93cx6.c
    patching file linux-2.6.24/drivers/misc/eeprom/eeprom.c
    patching file linux-2.6.24/drivers/misc/eeprom/Kconfig
    patching file linux-2.6.24/drivers/misc/eeprom/Makefile
    patching file linux-2.6.24/drivers/misc/Kconfig
    patching file linux-2.6.24/drivers/misc/Makefile
    patching file linux-2.6.24/drivers/rtc/Kconfig
    patching file linux-2.6.24/drivers/rtc/Makefile
    patching file linux-2.6.24/drivers/rtc/rtc-ds3231.c
    patching file linux-2.6.24/include/linux/i2c/at24.h
    patching file linux-2.6.24/include/linux/i2c.h
    patching file linux-2.6.24/include/linux/mod_devicetable.h
    patching file
    patch: **** malformed patch at line 2501:

    The file ends at line 2501, is there something missing at the end of the patch-file?

    Here are the last lines of the received patch file:

    diff -urN org/linux-2.6.24/ linux-2.6.24/
    --- org/linux-2.6.24/ 1970-01-01 08:00:00.000000000 +0800
    +++ linux-2.6.24/ 2011-07-01 09:33:21.000000000 +0800
    @@ -0,0 +1,12 @@
    + export PATH=/home/chengpg/bin/arm/gcc-3.4.5-glibc-2.3.6/arm-linux/bin:$PATH
    + #make sbc6300x_defconfig
    + make uImage -j 2
    + echo "uImage_sbc6300 -> ~/uImage_sbc6300"
    + #cp arch/arm/boot/uImage ~/uImage
    + cp arch/arm/boot/uImage /home/tftp/uImage_sbc6300

    Am I doing something wrong here?
  2. nerdegutta


    Dec 15, 2009
    Not sure but...

    Does the script have privileges to write in the /home/tftp directory....?
  3. Talors

    Thread Starter New Member

    Sep 24, 2011
    I don't know, it maybe not the reason.