Ticket #2054: sh775x_r10023.diff

File sh775x_r10023.diff, 23.1 KB (added by wigyori@…, 8 years ago)

Patchset for r10023.

  • toolchain/uClibc/config/sh4eb

     
     1# 
     2# Automatically generated make config: don't edit 
     3# Sat Dec 29 19:26:30 2007 
     4# 
     5# TARGET_alpha is not set 
     6# TARGET_arm is not set 
     7# TARGET_avr32 is not set 
     8# TARGET_bfin is not set 
     9# TARGET_cris is not set 
     10# TARGET_e1 is not set 
     11# TARGET_frv is not set 
     12# TARGET_h8300 is not set 
     13# TARGET_hppa is not set 
     14# TARGET_i386 is not set 
     15# TARGET_i960 is not set 
     16# TARGET_ia64 is not set 
     17# TARGET_m68k is not set 
     18# TARGET_microblaze is not set 
     19# TARGET_mips is not set 
     20# TARGET_nios is not set 
     21# TARGET_nios2 is not set 
     22# TARGET_powerpc is not set 
     23TARGET_sh=y 
     24# TARGET_sh64 is not set 
     25# TARGET_sparc is not set 
     26# TARGET_v850 is not set 
     27# TARGET_vax is not set 
     28# TARGET_x86_64 is not set 
     29 
     30# 
     31# Target Architecture Features and Options 
     32# 
     33TARGET_ARCH="sh" 
     34FORCE_OPTIONS_FOR_ARCH=y 
     35# CONFIG_SH2A is not set 
     36# CONFIG_SH2 is not set 
     37# CONFIG_SH3 is not set 
     38CONFIG_SH4=y 
     39TARGET_SUBARCH="" 
     40 
     41# 
     42# Using ELF file format 
     43# 
     44ARCH_ANY_ENDIAN=y 
     45ARCH_BIG_ENDIAN=y 
     46ARCH_WANTS_BIG_ENDIAN=y 
     47# ARCH_WANTS_LITTLE_ENDIAN is not set 
     48ARCH_HAS_MMU=y 
     49ARCH_USE_MMU=y 
     50UCLIBC_HAS_FLOATS=y 
     51UCLIBC_HAS_FPU=y 
     52# DO_C99_MATH is not set 
     53KERNEL_HEADERS="./toolchain_build_sh4/linux/include" 
     54HAVE_DOT_CONFIG=y 
     55 
     56# 
     57# General Library Settings 
     58# 
     59# HAVE_NO_PIC is not set 
     60DOPIC=y 
     61# HAVE_NO_SHARED is not set 
     62# ARCH_HAS_NO_LDSO is not set 
     63HAVE_SHARED=y 
     64FORCE_SHAREABLE_TEXT_SEGMENTS=y 
     65LDSO_LDD_SUPPORT=y 
     66LDSO_CACHE_SUPPORT=y 
     67# LDSO_PRELOAD_FILE_SUPPORT is not set 
     68LDSO_BASE_FILENAME="ld.so" 
     69# UCLIBC_STATIC_LDCONFIG is not set 
     70LDSO_RUNPATH=y 
     71UCLIBC_CTOR_DTOR=y 
     72# HAS_NO_THREADS is not set 
     73UCLIBC_HAS_THREADS=y 
     74# PTHREADS_DEBUG_SUPPORT is not set 
     75LINUXTHREADS_OLD=y 
     76UCLIBC_HAS_LFS=y 
     77# MALLOC is not set 
     78# MALLOC_SIMPLE is not set 
     79MALLOC_STANDARD=y 
     80MALLOC_GLIBC_COMPAT=y 
     81UCLIBC_DYNAMIC_ATEXIT=y 
     82COMPAT_ATEXIT=y 
     83# UCLIBC_SUSV3_LEGACY is not set 
     84# UCLIBC_SUSV3_LEGACY_MACROS is not set 
     85# UCLIBC_HAS_SHADOW is not set 
     86# UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set 
     87UCLIBC_HAS___PROGNAME=y 
     88# UNIX98PTY_ONLY is not set 
     89ASSUME_DEVPTS=y 
     90UCLIBC_HAS_TM_EXTENSIONS=y 
     91UCLIBC_HAS_TZ_CACHING=y 
     92UCLIBC_HAS_TZ_FILE=y 
     93UCLIBC_HAS_TZ_FILE_READ_MANY=y 
     94UCLIBC_TZ_FILE_PATH="/etc/TZ" 
     95 
     96# 
     97# Advanced Library Settings 
     98# 
     99UCLIBC_PWD_BUFFER_SIZE=256 
     100UCLIBC_GRP_BUFFER_SIZE=256 
     101 
     102# 
     103# Networking Support 
     104# 
     105UCLIBC_HAS_IPV6=y 
     106UCLIBC_HAS_RPC=y 
     107UCLIBC_HAS_FULL_RPC=y 
     108# UCLIBC_HAS_REENTRANT_RPC is not set 
     109# UCLIBC_USE_NETLINK is not set 
     110# UCLIBC_HAS_BSD_RES_CLOSE is not set 
     111 
     112# 
     113# String and Stdio Support 
     114# 
     115UCLIBC_HAS_STRING_GENERIC_OPT=y 
     116UCLIBC_HAS_STRING_ARCH_OPT=y 
     117UCLIBC_HAS_CTYPE_TABLES=y 
     118UCLIBC_HAS_CTYPE_SIGNED=y 
     119# UCLIBC_HAS_CTYPE_UNSAFE is not set 
     120UCLIBC_HAS_CTYPE_CHECKED=y 
     121# UCLIBC_HAS_CTYPE_ENFORCED is not set 
     122UCLIBC_HAS_WCHAR=y 
     123# UCLIBC_HAS_LOCALE is not set 
     124UCLIBC_HAS_HEXADECIMAL_FLOATS=y 
     125UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y 
     126UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 
     127UCLIBC_HAS_SCANF_GLIBC_A_FLAG=y 
     128# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set 
     129# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set 
     130# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set 
     131# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set 
     132# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set 
     133UCLIBC_HAS_STDIO_BUFSIZ_4096=y 
     134# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set 
     135UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y 
     136# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set 
     137# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set 
     138# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set 
     139UCLIBC_HAS_STDIO_GETC_MACRO=y 
     140UCLIBC_HAS_STDIO_PUTC_MACRO=y 
     141UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y 
     142# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set 
     143UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y 
     144UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y 
     145UCLIBC_HAS_PRINTF_M_SPEC=y 
     146UCLIBC_HAS_ERRNO_MESSAGES=y 
     147# UCLIBC_HAS_SYS_ERRLIST is not set 
     148UCLIBC_HAS_SIGNUM_MESSAGES=y 
     149# UCLIBC_HAS_SYS_SIGLIST is not set 
     150UCLIBC_HAS_GNU_GETOPT=y 
     151UCLIBC_HAS_GNU_GETSUBOPT=y 
     152 
     153# 
     154# Big and Tall 
     155# 
     156UCLIBC_HAS_REGEX=y 
     157UCLIBC_HAS_REGEX_OLD=y 
     158UCLIBC_HAS_FNMATCH=y 
     159UCLIBC_HAS_FNMATCH_OLD=y 
     160UCLIBC_HAS_WORDEXP=y 
     161UCLIBC_HAS_FTW=y 
     162UCLIBC_HAS_GLOB=y 
     163# UCLIBC_HAS_GNU_GLOB is not set 
     164 
     165# 
     166# Library Installation Options 
     167# 
     168SHARED_LIB_LOADER_PREFIX="/lib" 
     169RUNTIME_PREFIX="/" 
     170DEVEL_PREFIX="/usr/" 
     171 
     172# 
     173# Security options 
     174# 
     175# UCLIBC_HAS_ARC4RANDOM is not set 
     176# HAVE_NO_SSP is not set 
     177# UCLIBC_HAS_SSP is not set 
     178UCLIBC_BUILD_RELRO=y 
     179# UCLIBC_BUILD_NOW is not set 
     180UCLIBC_BUILD_NOEXECSTACK=y 
     181 
     182# 
     183# uClibc development/debugging options 
     184# 
     185CROSS_COMPILER_PREFIX="" 
     186UCLIBC_EXTRA_CFLAGS="" 
     187# DODEBUG is not set 
     188# DODEBUG_PT is not set 
     189DOSTRIP=y 
     190# DOASSERTS is not set 
     191# SUPPORT_LD_DEBUG is not set 
     192# SUPPORT_LD_DEBUG_EARLY is not set 
     193# UCLIBC_MALLOC_DEBUGGING is not set 
     194WARNINGS="-Wall" 
     195# EXTRA_WARNINGS is not set 
     196# DOMULTI is not set 
     197# UCLIBC_MJN3_ONLY is not set 
  • toolchain/uClibc/config/sh4

     
     1# 
     2# Automatically generated make config: don't edit 
     3# Sat Dec 29 19:25:23 2007 
     4# 
     5# TARGET_alpha is not set 
     6# TARGET_arm is not set 
     7# TARGET_avr32 is not set 
     8# TARGET_bfin is not set 
     9# TARGET_cris is not set 
     10# TARGET_e1 is not set 
     11# TARGET_frv is not set 
     12# TARGET_h8300 is not set 
     13# TARGET_hppa is not set 
     14# TARGET_i386 is not set 
     15# TARGET_i960 is not set 
     16# TARGET_ia64 is not set 
     17# TARGET_m68k is not set 
     18# TARGET_microblaze is not set 
     19# TARGET_mips is not set 
     20# TARGET_nios is not set 
     21# TARGET_nios2 is not set 
     22# TARGET_powerpc is not set 
     23TARGET_sh=y 
     24# TARGET_sh64 is not set 
     25# TARGET_sparc is not set 
     26# TARGET_v850 is not set 
     27# TARGET_vax is not set 
     28# TARGET_x86_64 is not set 
     29 
     30# 
     31# Target Architecture Features and Options 
     32# 
     33TARGET_ARCH="sh" 
     34FORCE_OPTIONS_FOR_ARCH=y 
     35# CONFIG_MIPS_O32_ABI is not set 
     36# CONFIG_MIPS_N32_ABI is not set 
     37# CONFIG_MIPS_N64_ABI is not set 
     38# CONFIG_MIPS_ISA_1 is not set 
     39# CONFIG_MIPS_ISA_2 is not set 
     40# CONFIG_MIPS_ISA_3 is not set 
     41# CONFIG_MIPS_ISA_4 is not set 
     42# CONFIG_MIPS_ISA_MIPS32 is not set 
     43# CONFIG_MIPS_ISA_MIPS64 is not set 
     44# CONFIG_SH2A is not set 
     45# CONFIG_SH2 is not set 
     46# CONFIG_SH3 is not set 
     47CONFIG_SH4=y 
     48TARGET_SUBARCH="" 
     49 
     50# 
     51# Using ELF file format 
     52# 
     53ARCH_ANY_ENDIAN=y 
     54ARCH_LITTLE_ENDIAN=y 
     55# ARCH_WANTS_BIG_ENDIAN is not set 
     56ARCH_WANTS_LITTLE_ENDIAN=y 
     57ARCH_HAS_MMU=y 
     58ARCH_USE_MMU=y 
     59UCLIBC_HAS_FLOATS=y 
     60UCLIBC_HAS_FPU=y 
     61# DO_C99_MATH is not set 
     62KERNEL_HEADERS="./toolchain_build_sh4/linux/include" 
     63HAVE_DOT_CONFIG=y 
     64 
     65# 
     66# General Library Settings 
     67# 
     68# HAVE_NO_PIC is not set 
     69DOPIC=y 
     70# HAVE_NO_SHARED is not set 
     71# ARCH_HAS_NO_LDSO is not set 
     72HAVE_SHARED=y 
     73FORCE_SHAREABLE_TEXT_SEGMENTS=y 
     74LDSO_LDD_SUPPORT=y 
     75LDSO_CACHE_SUPPORT=y 
     76# LDSO_PRELOAD_FILE_SUPPORT is not set 
     77LDSO_BASE_FILENAME="ld.so" 
     78# UCLIBC_STATIC_LDCONFIG is not set 
     79LDSO_RUNPATH=y 
     80UCLIBC_CTOR_DTOR=y 
     81# HAS_NO_THREADS is not set 
     82UCLIBC_HAS_THREADS=y 
     83# PTHREADS_DEBUG_SUPPORT is not set 
     84LINUXTHREADS_OLD=y 
     85UCLIBC_HAS_LFS=y 
     86# MALLOC is not set 
     87# MALLOC_SIMPLE is not set 
     88MALLOC_STANDARD=y 
     89MALLOC_GLIBC_COMPAT=y 
     90UCLIBC_DYNAMIC_ATEXIT=y 
     91COMPAT_ATEXIT=y 
     92# UCLIBC_SUSV3_LEGACY is not set 
     93# UCLIBC_SUSV3_LEGACY_MACROS is not set 
     94# UCLIBC_HAS_SHADOW is not set 
     95# UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set 
     96UCLIBC_HAS___PROGNAME=y 
     97# UNIX98PTY_ONLY is not set 
     98ASSUME_DEVPTS=y 
     99UCLIBC_HAS_TM_EXTENSIONS=y 
     100UCLIBC_HAS_TZ_CACHING=y 
     101UCLIBC_HAS_TZ_FILE=y 
     102UCLIBC_HAS_TZ_FILE_READ_MANY=y 
     103UCLIBC_TZ_FILE_PATH="/etc/TZ" 
     104 
     105# 
     106# Advanced Library Settings 
     107# 
     108UCLIBC_PWD_BUFFER_SIZE=256 
     109UCLIBC_GRP_BUFFER_SIZE=256 
     110 
     111# 
     112# Networking Support 
     113# 
     114UCLIBC_HAS_IPV6=y 
     115UCLIBC_HAS_RPC=y 
     116UCLIBC_HAS_FULL_RPC=y 
     117# UCLIBC_HAS_REENTRANT_RPC is not set 
     118# UCLIBC_USE_NETLINK is not set 
     119# UCLIBC_HAS_BSD_RES_CLOSE is not set 
     120 
     121# 
     122# String and Stdio Support 
     123# 
     124UCLIBC_HAS_STRING_GENERIC_OPT=y 
     125UCLIBC_HAS_STRING_ARCH_OPT=y 
     126UCLIBC_HAS_CTYPE_TABLES=y 
     127UCLIBC_HAS_CTYPE_SIGNED=y 
     128# UCLIBC_HAS_CTYPE_UNSAFE is not set 
     129UCLIBC_HAS_CTYPE_CHECKED=y 
     130# UCLIBC_HAS_CTYPE_ENFORCED is not set 
     131UCLIBC_HAS_WCHAR=y 
     132# UCLIBC_HAS_LOCALE is not set 
     133UCLIBC_HAS_HEXADECIMAL_FLOATS=y 
     134UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y 
     135UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 
     136UCLIBC_HAS_SCANF_GLIBC_A_FLAG=y 
     137# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set 
     138# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set 
     139# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set 
     140# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set 
     141# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set 
     142UCLIBC_HAS_STDIO_BUFSIZ_4096=y 
     143# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set 
     144UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y 
     145# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set 
     146# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set 
     147# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set 
     148UCLIBC_HAS_STDIO_GETC_MACRO=y 
     149UCLIBC_HAS_STDIO_PUTC_MACRO=y 
     150UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y 
     151# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set 
     152UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y 
     153UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y 
     154UCLIBC_HAS_PRINTF_M_SPEC=y 
     155UCLIBC_HAS_ERRNO_MESSAGES=y 
     156# UCLIBC_HAS_SYS_ERRLIST is not set 
     157UCLIBC_HAS_SIGNUM_MESSAGES=y 
     158# UCLIBC_HAS_SYS_SIGLIST is not set 
     159UCLIBC_HAS_GNU_GETOPT=y 
     160UCLIBC_HAS_GNU_GETSUBOPT=y 
     161 
     162# 
     163# Big and Tall 
     164# 
     165UCLIBC_HAS_REGEX=y 
     166UCLIBC_HAS_REGEX_OLD=y 
     167UCLIBC_HAS_FNMATCH=y 
     168UCLIBC_HAS_FNMATCH_OLD=y 
     169UCLIBC_HAS_WORDEXP=y 
     170UCLIBC_HAS_FTW=y 
     171UCLIBC_HAS_GLOB=y 
     172# UCLIBC_HAS_GNU_GLOB is not set 
     173 
     174# 
     175# Library Installation Options 
     176# 
     177SHARED_LIB_LOADER_PREFIX="/lib" 
     178RUNTIME_PREFIX="/" 
     179DEVEL_PREFIX="/usr/" 
     180 
     181# 
     182# Security options 
     183# 
     184# UCLIBC_HAS_ARC4RANDOM is not set 
     185# HAVE_NO_SSP is not set 
     186# UCLIBC_HAS_SSP is not set 
     187UCLIBC_BUILD_RELRO=y 
     188# UCLIBC_BUILD_NOW is not set 
     189UCLIBC_BUILD_NOEXECSTACK=y 
     190 
     191# 
     192# uClibc development/debugging options 
     193# 
     194CROSS_COMPILER_PREFIX="" 
     195UCLIBC_EXTRA_CFLAGS="" 
     196# DODEBUG is not set 
     197# DODEBUG_PT is not set 
     198DOSTRIP=y 
     199# DOASSERTS is not set 
     200# SUPPORT_LD_DEBUG is not set 
     201# SUPPORT_LD_DEBUG_EARLY is not set 
     202# UCLIBC_MALLOC_DEBUGGING is not set 
     203WARNINGS="-Wall" 
     204# EXTRA_WARNINGS is not set 
     205# DOMULTI is not set 
     206# UCLIBC_MJN3_ONLY is not set 
  • toolchain/kernel-headers/Makefile

     
    3535        ln -sf arch-v10 $(PKG_BUILD_DIR)/arch/cris/arch 
    3636endef 
    3737 
     38define Build/Prepare/sh4 
     39        mkdir -p $(BUILD_DIR_TOOLCHAIN) 
     40        bzcat $(DL_DIR)/$(PKG_SOURCE) | $(HOST_TAR) -C $(BUILD_DIR_TOOLCHAIN) $(TAR_OPTIONS) 
     41        ln -sf $(PKG_BUILD_DIR)/include/asm-sh $(PKG_BUILD_DIR)/include/asm 
     42        $(SED) 's/@expr length/@-expr length/' $(PKG_BUILD_DIR)/Makefile 
     43        ln -sf $(PKG_BUILD_DIR) $(LINUX_HEADERS_DIR) 
     44        $(KMAKE) landisk_defconfig 
     45endef 
     46 
    3847define Build/Configure/powerpc 
    3948        $(CP) $(PKG_BUILD_DIR)/include/asm-ppc/* $(PKG_BUILD_DIR)/include/asm-powerpc/ 
    4049        rm -rf $(PKG_BUILD_DIR)/include/asm-ppc 
  • toolchain/gcc/Config.version

     
    99 
    1010if !TOOLCHAINOPTS 
    1111        config GCC_VERSION_3_4_6 
    12                 default y if LINUX_2_4 
     12                default y if LINUX_2_4 || LINUX_2_6_SH775X 
    1313 
    1414        config GCC_VERSION_4_2_0 
    1515                default y if LINUX_2_6_MAGICBOX 
  • toolchain/gcc/Config.in

     
    22 
    33choice 
    44        prompt "GCC compiler Version" if TOOLCHAINOPTS 
    5         default GCC_VERSION_3_4_6 if LINUX_2_4 
     5        default GCC_VERSION_3_4_6 if LINUX_2_4 || LINUX_2_6_SH775X 
    66        default GCC_VERSION_4_2_0 if LINUX_2_6_MAGICBOX 
    77        default GCC_VERSION_4_1_2 
    88        help 
  • include/site/sh4-linux-uclibc

     
     1#!/bin/sh 
     2 
     3ac_cv_c_littleendian=${ac_cv_c_littleendian=no} 
     4ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} 
     5 
     6ac_cv_sizeof___int64=0 
     7ac_cv_sizeof_char=1 
     8ac_cv_sizeof_int=4 
     9ac_cv_sizeof_int16_t=2 
     10ac_cv_sizeof_int32_t=4 
     11ac_cv_sizeof_int64_t=8 
     12ac_cv_sizeof_long_int=4 
     13ac_cv_sizeof_long_long=8 
     14ac_cv_sizeof_long=4 
     15ac_cv_sizeof_off_t=4 
     16ac_cv_sizeof_short_int=2 
     17ac_cv_sizeof_short=2 
     18ac_cv_sizeof_size_t=4 
     19ac_cv_sizeof_u_int16_t=2 
     20ac_cv_sizeof_u_int32_t=4 
     21ac_cv_sizeof_u_int64_t=8 
     22ac_cv_sizeof_uint16_t=2 
     23ac_cv_sizeof_uint32_t=4 
     24ac_cv_sizeof_uint64_t=8 
     25ac_cv_sizeof_unsigned_int=4 
     26ac_cv_sizeof_unsigned_long=4 
     27ac_cv_sizeof_unsigned_short=2 
     28ac_cv_sizeof_void_p=4 
     29 
     30. $TOPDIR/include/site/linux-uclibc 
     31 
  • target/linux/sh775x/image/Makefile

     
     1#  
     2# Copyright (C) 2007 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7include $(TOPDIR)/rules.mk 
     8include $(INCLUDE_DIR)/image.mk 
     9 
     10define Image/Prepare 
     11        cp $(LINUX_DIR)/arch/sh/boot/zImage $(KDIR)/zImage 
     12endef 
     13 
     14define Image/BuildKernel 
     15        cp $(KDIR)/zImage $(BIN_DIR)/openwrt-$(BOARD)-zImage 
     16endef 
     17 
     18define Image/Build 
     19        $(call Image/Build/$(1),$(1)) 
     20endef 
     21 
     22$(eval $(call BuildImage)) 
  • target/linux/sh775x/patches/102-pata_artop-landisk_fix.diff

     
     1Binary files linux-2.6.22-rc4.dist/arch/sh/kernel/vsyscall/vsyscall-trapa.so and linux-2.6.22-rc4/arch/sh/kernel/vsyscall/vsyscall-trapa.so differ 
     2diff -ruN linux-2.6.22-rc4.dist/drivers/ata/pata_artop.c linux-2.6.22-rc4/drivers/ata/pata_artop.c 
     3--- linux-2.6.22-rc4.dist/drivers/ata/pata_artop.c      2007-06-07 10:44:21.783037000 +0200 
     4+++ linux-2.6.22-rc4/drivers/ata/pata_artop.c   2007-06-07 11:11:39.563037000 +0200 
     5@@ -107,7 +107,12 @@ 
     6        pci_read_config_byte(pdev, 0x49, &tmp); 
     7        if (tmp & (1 << ap->port_no)) 
     8                return ATA_CBL_PATA40; 
     9+#ifdef CONFIG_SH_LANDISK 
     10+       return ATA_CBL_PATA40_SHORT; 
     11+#else 
     12        return ATA_CBL_PATA80; 
     13+#endif 
     14+ 
     15 } 
     16  
     17 /** 
     18@@ -438,6 +443,14 @@ 
     19                .udma_mask      = ATA_UDMA5, 
     20                .port_ops       = &artop6260_ops, 
     21        }; 
     22+       static const struct ata_port_info info_626x_fast_fast = { 
     23+               .sht            = &artop_sht, 
     24+               .flags          = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, 
     25+               .pio_mask       = 0x1f, /* pio0-4 */ 
     26+               .mwdma_mask     = 0x07, /* mwdma0-2 */ 
     27+               .udma_mask      = ATA_UDMA6, 
     28+               .port_ops       = &artop6260_ops, 
     29+       }; 
     30        const struct ata_port_info *ppi[] = { NULL, NULL }; 
     31  
     32        if (!printed_version++) 
     33@@ -462,6 +475,8 @@ 
     34                ppi[0] = &info_626x; 
     35                if (inb(io) & 0x10) 
     36                        ppi[0] = &info_626x_fast; 
     37+               else if (inb(io+2) & 0x10) 
     38+                       ppi[0] = &info_626x_fast_fast; 
     39                /* Mac systems come up with some registers not set as we 
     40                   will need them */ 
     41  
  • target/linux/sh775x/base-files/etc/inittab

     
     1::sysinit:/etc/init.d/rcS S boot 
     2::shutdown:/etc/init.d/rcS K stop 
     3tts/0::askfirst:/bin/ash --login 
     4ttyS1::askfirst:/bin/ash --login 
     5tty1::askfirst:/bin/ash --login 
  • target/linux/sh775x/config-2.6.22

     
     1CONFIG_8139CP=y 
     2# CONFIG_8139TOO is not set 
     3# CONFIG_AF_RXRPC is not set 
     4CONFIG_ANON_INODES=y 
     5# CONFIG_ARCH_HAS_ILOG2_U32 is not set 
     6# CONFIG_ARCH_HAS_ILOG2_U64 is not set 
     7CONFIG_ARCH_POPULATES_NODE_MAP=y 
     8# CONFIG_ARCH_SUPPORTS_MSI is not set 
     9CONFIG_ATA=y 
     10# CONFIG_ATA_GENERIC is not set 
     11# CONFIG_ATA_NONSTANDARD is not set 
     12# CONFIG_ATA_PIIX is not set 
     13# CONFIG_ATM is not set 
     14CONFIG_BASE_SMALL=0 
     15CONFIG_BITREVERSE=y 
     16# CONFIG_BLINK is not set 
     17CONFIG_BLK_DEV_SD=y 
     18CONFIG_BOOT_LINK_OFFSET=0x00800000 
     19CONFIG_CFG80211=m 
     20CONFIG_CMDLINE="console=ttySC1,9600 mem=64M init=/etc/preinit root=/dev/sda1" 
     21CONFIG_CMDLINE_BOOL=y 
     22# CONFIG_CPU_BIG_ENDIAN is not set 
     23# CONFIG_CPU_FREQ is not set 
     24CONFIG_CPU_HAS_INTEVT=y 
     25CONFIG_CPU_HAS_IPR_IRQ=y 
     26CONFIG_CPU_HAS_PTEA=y 
     27CONFIG_CPU_HAS_SR_RB=y 
     28CONFIG_CPU_LITTLE_ENDIAN=y 
     29CONFIG_CPU_SH4=y 
     30# CONFIG_CPU_SUBTYPE_SH4_202 is not set 
     31# CONFIG_CPU_SUBTYPE_SH7091 is not set 
     32# CONFIG_CPU_SUBTYPE_SH7206 is not set 
     33# CONFIG_CPU_SUBTYPE_SH7300 is not set 
     34# CONFIG_CPU_SUBTYPE_SH73180 is not set 
     35# CONFIG_CPU_SUBTYPE_SH7343 is not set 
     36# CONFIG_CPU_SUBTYPE_SH7604 is not set 
     37# CONFIG_CPU_SUBTYPE_SH7619 is not set 
     38# CONFIG_CPU_SUBTYPE_SH7705 is not set 
     39# CONFIG_CPU_SUBTYPE_SH7706 is not set 
     40# CONFIG_CPU_SUBTYPE_SH7707 is not set 
     41# CONFIG_CPU_SUBTYPE_SH7708 is not set 
     42# CONFIG_CPU_SUBTYPE_SH7709 is not set 
     43# CONFIG_CPU_SUBTYPE_SH7710 is not set 
     44# CONFIG_CPU_SUBTYPE_SH7712 is not set 
     45# CONFIG_CPU_SUBTYPE_SH7722 is not set 
     46# CONFIG_CPU_SUBTYPE_SH7750 is not set 
     47# CONFIG_CPU_SUBTYPE_SH7750R is not set 
     48# CONFIG_CPU_SUBTYPE_SH7750S is not set 
     49CONFIG_CPU_SUBTYPE_SH7751=y 
     50CONFIG_CPU_SUBTYPE_SH7751R=y 
     51# CONFIG_CPU_SUBTYPE_SH7760 is not set 
     52# CONFIG_CPU_SUBTYPE_SH7770 is not set 
     53# CONFIG_CPU_SUBTYPE_SH7780 is not set 
     54# CONFIG_CPU_SUBTYPE_SH7785 is not set 
     55# CONFIG_CPU_SUBTYPE_ST40GX1 is not set 
     56# CONFIG_CPU_SUBTYPE_ST40STB1 is not set 
     57# CONFIG_CRASH_DUMP is not set 
     58# CONFIG_CRC_ITU_T is not set 
     59# CONFIG_CRYPTO_CRYPTD is not set 
     60# CONFIG_DAB is not set 
     61# CONFIG_DEBUG_BUGVERBOSE is not set 
     62CONFIG_DEVPORT=y 
     63# CONFIG_DISPLAY_SUPPORT is not set 
     64# CONFIG_DVB_CORE is not set 
     65# CONFIG_EARLY_PRINTK is not set 
     66# CONFIG_EARLY_SCIF_CONSOLE is not set 
     67CONFIG_EVENTFD=y 
     68CONFIG_EXT3_FS=y 
     69# CONFIG_EXT3_FS_POSIX_ACL is not set 
     70# CONFIG_EXT3_FS_SECURITY is not set 
     71CONFIG_EXT3_FS_XATTR=y 
     72# CONFIG_FIREWIRE is not set 
     73CONFIG_FS_MBCACHE=y 
     74CONFIG_FS_POSIX_ACL=y 
     75CONFIG_GENERIC_BUG=y 
     76CONFIG_GENERIC_CLOCKEVENTS=y 
     77CONFIG_GENERIC_FIND_NEXT_BIT=y 
     78CONFIG_HAS_DMA=y 
     79CONFIG_HAS_IOMEM=y 
     80CONFIG_HAS_IOPORT=y 
     81# CONFIG_HD6446X_SERIES is not set 
     82CONFIG_HEARTBEAT=y 
     83# CONFIG_HIGH_RES_TIMERS is not set 
     84# CONFIG_HUGETLBFS is not set 
     85# CONFIG_HW_RANDOM is not set 
     86# CONFIG_I2C is not set 
     87# CONFIG_IDE is not set 
     88CONFIG_INITRAMFS_SOURCE="" 
     89# CONFIG_IPV6_OPTIMISTIC_DAD is not set 
     90CONFIG_JBD=y 
     91CONFIG_KMOD=y 
     92CONFIG_LEDS_CLASS=m 
     93CONFIG_LEDS_TRIGGER_HEARTBEAT=m 
     94CONFIG_LEDS_TRIGGER_TIMER=m 
     95CONFIG_MAC80211=m 
     96# CONFIG_MAC80211_DEBUG is not set 
     97# CONFIG_MAC80211_LEDS is not set 
     98CONFIG_MAX_ACTIVE_REGIONS=1 
     99CONFIG_MEMORY_SIZE=0x04000000 
     100CONFIG_MEMORY_START=0x0c000000 
     101# CONFIG_MTD is not set 
     102# CONFIG_NATSEMI is not set 
     103# CONFIG_NE2K_PCI is not set 
     104# CONFIG_NETDEV_1000 is not set 
     105# CONFIG_NETDEV_10000 is not set 
     106CONFIG_NET_SCH_FIFO=y 
     107# CONFIG_NET_VENDOR_3COM is not set 
     108# CONFIG_NO_HZ is not set 
     109# CONFIG_NR_DMA_CHANNELS_BOOL is not set 
     110CONFIG_NR_ONCHIP_DMA_CHANNELS=8 
     111CONFIG_NR_QUICK=2 
     112CONFIG_PAGE_OFFSET=0x80000000 
     113CONFIG_PAGE_SIZE_4KB=y 
     114# CONFIG_PAGE_SIZE_64KB is not set 
     115# CONFIG_PAGE_SIZE_8KB is not set 
     116# CONFIG_PATA_CMD640_PCI is not set 
     117CONFIG_PATA_PLATFORM=y 
     118CONFIG_PCI_AUTO=y 
     119CONFIG_PCI_AUTO_UPDATE_RESOURCES=y 
     120# CONFIG_PDC_ADMA is not set 
     121# CONFIG_PHANTOM is not set 
     122# CONFIG_PNPACPI is not set 
     123CONFIG_PRINTK_TIME=y 
     124CONFIG_PUSH_SWITCH=y 
     125CONFIG_QUICKLIST=y 
     126# CONFIG_RADIO_ADAPTERS is not set 
     127# CONFIG_RFKILL is not set 
     128CONFIG_RTC_CLASS=m 
     129# CONFIG_RTC_DRV_DS1553 is not set 
     130# CONFIG_RTC_DRV_DS1742 is not set 
     131# CONFIG_RTC_DRV_M48T86 is not set 
     132CONFIG_RTC_DRV_RS5C313=m 
     133# CONFIG_RTC_DRV_SH is not set 
     134# CONFIG_RTC_DRV_TEST is not set 
     135# CONFIG_RTC_DRV_V3020 is not set 
     136CONFIG_RTC_INTF_DEV=y 
     137# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set 
     138CONFIG_RTC_INTF_PROC=y 
     139CONFIG_RTC_INTF_SYSFS=y 
     140CONFIG_RTC_LIB=m 
     141CONFIG_RWSEM_GENERIC_SPINLOCK=y 
     142# CONFIG_SATA_AHCI is not set 
     143CONFIG_SCSI=y 
     144CONFIG_SCSI_WAIT_SCAN=m 
     145# CONFIG_SERIAL_8250_EXTENDED is not set 
     146CONFIG_SERIAL_SH_SCI=y 
     147CONFIG_SERIAL_SH_SCI_CONSOLE=y 
     148CONFIG_SERIAL_SH_SCI_NR_UARTS=2 
     149# CONFIG_SH_7206_SOLUTION_ENGINE is not set 
     150# CONFIG_SH_7300_SOLUTION_ENGINE is not set 
     151# CONFIG_SH_73180_SOLUTION_ENGINE is not set 
     152# CONFIG_SH_7343_SOLUTION_ENGINE is not set 
     153# CONFIG_SH_7619_SOLUTION_ENGINE is not set 
     154# CONFIG_SH_7710VOIPGW is not set 
     155# CONFIG_SH_7722_SOLUTION_ENGINE is not set 
     156# CONFIG_SH_7751_SOLUTION_ENGINE is not set 
     157# CONFIG_SH_7751_SYSTEMH is not set 
     158# CONFIG_SH_7780_SOLUTION_ENGINE is not set 
     159# CONFIG_SH_DIRECT_MAPPED is not set 
     160CONFIG_SH_DMA=y 
     161CONFIG_SH_DMA_API=y 
     162# CONFIG_SH_DREAMCAST is not set 
     163# CONFIG_SH_DSP is not set 
     164# CONFIG_SH_EDOSK7705 is not set 
     165CONFIG_SH_FPU=y 
     166# CONFIG_SH_HIGHLANDER is not set 
     167# CONFIG_SH_HP6XX is not set 
     168# CONFIG_SH_HS7751RVOIP is not set 
     169# CONFIG_SH_KGDB is not set 
     170CONFIG_SH_LANDISK=y 
     171# CONFIG_SH_LBOX_RE2 is not set 
     172# CONFIG_SH_MPC1211 is not set 
     173# CONFIG_SH_OCRAM is not set 
     174CONFIG_SH_PCIDMA_NONCOHERENT=y 
     175CONFIG_SH_PCLK_FREQ=33333333 
     176# CONFIG_SH_RTS7751R2D is not set 
     177# CONFIG_SH_SATURN is not set 
     178# CONFIG_SH_SECUREEDGE5410 is not set 
     179# CONFIG_SH_SH03 is not set 
     180# CONFIG_SH_SH4202_MICRODEV is not set 
     181# CONFIG_SH_SHMIN is not set 
     182# CONFIG_SH_SOLUTION_ENGINE is not set 
     183CONFIG_SH_STANDARD_BIOS=y 
     184# CONFIG_SH_STORE_QUEUES is not set 
     185CONFIG_SH_TIMER_IRQ=16 
     186# CONFIG_SH_TITAN is not set 
     187CONFIG_SH_TMU=y 
     188# CONFIG_SH_UNKNOWN is not set 
     189# CONFIG_SH_WRITETHROUGH is not set 
     190CONFIG_SIGNALFD=y 
     191# CONFIG_SLUB is not set 
     192# CONFIG_SMC91X is not set 
     193# CONFIG_SMP is not set 
     194# CONFIG_SND_USB_AUDIO is not set 
     195# CONFIG_SND_USB_CAIAQ is not set 
     196# CONFIG_SPARSEMEM_STATIC is not set 
     197# CONFIG_STNIC is not set 
     198# CONFIG_SUNRPC_BIND34 is not set 
     199CONFIG_SUPERH=y 
     200# CONFIG_SYSV68_PARTITION is not set 
     201CONFIG_SYSVIPC_SYSCTL=y 
     202# CONFIG_TCP_CONG_ILLINOIS is not set 
     203# CONFIG_TCP_CONG_YEAH is not set 
     204# CONFIG_TICK_ONESHOT is not set 
     205CONFIG_TIMERFD=y 
     206# CONFIG_UBC_WAKEUP is not set 
     207CONFIG_UID16=y 
     208# CONFIG_UNUSED_SYMBOLS is not set 
     209# CONFIG_USB_DEVICE_CLASS is not set 
     210# CONFIG_USB_EHCI_BIG_ENDIAN_MMIO is not set 
     211CONFIG_USB_EHCI_HCD=m 
     212# CONFIG_USB_EHCI_ROOT_HUB_TT is not set 
     213# CONFIG_USB_EHCI_SPLIT_ISO is not set 
     214# CONFIG_USB_EHCI_TT_NEWSCHED is not set 
     215# CONFIG_USB_UHCI_HCD is not set 
     216# CONFIG_VGASTATE is not set 
     217# CONFIG_VIA_RHINE is not set 
     218# CONFIG_VIDEO_CAPTURE_DRIVERS is not set 
     219CONFIG_VSYSCALL=y 
     220# CONFIG_WATCHDOG is not set 
     221# CONFIG_WLAN_80211 is not set 
     222# CONFIG_WLAN_PRE80211 is not set 
     223CONFIG_ZERO_PAGE_OFFSET=0x00001000 
     224CONFIG_ZLIB_DEFLATE=m 
     225CONFIG_ZONE_DMA_FLAG=0 
  • target/linux/sh775x/Makefile

     
     1#  
     2# Copyright (C) 2007 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7include $(TOPDIR)/rules.mk 
     8 
     9ARCH:=sh4 
     10BOARD:=sh775x 
     11BOARDNAME:=SH775x-based 
     12FEATURES:=tgz 
     13 
     14LINUX_VERSION:=2.6.22.4 
     15LINUX_KARCH:=sh 
     16 
     17include $(INCLUDE_DIR)/target.mk 
     18 
     19define Target/Description 
     20        Build firmware images for SH775x-based boards 
     21        (currently only for IO-DATA USL-5P) 
     22endef 
     23 
     24$(eval $(call BuildTarget))