add all files stil nit in svn

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2594 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-10-26 17:22:16 +00:00
parent e1816cc569
commit 683e138902
14 changed files with 3870 additions and 12 deletions

View File

@ -1,12 +1,107 @@
# generic installation stage specfile
# used to build a stage1, stage2, or stage3 installation tarball
# The subarch can be any of the supported catalyst subarches (like athlon-xp).
# Refer to the catalyst reference manual for suppurted subarches.
# http://www.gentoo.org/proj/en/releng/catalyst/
# example:
# subarch: athlon-xp
subarch: arm
# The version stamp is an identifier for the build. It can be anything you wish
# it to be, but it is usually a date.
# example:
# version_stamp: 2006.1
version_stamp: armv5tejl.0
# The target specifies what target we want catalyst to do. For stages, the
# supported targets are: stage1 stage2 stage3
# example:
# target: stage2
target: stage1
# The rel_type defines what kind of build we are doing. This is merely another
# identifier, but it useful for allowing multiple concurrent builds. Usually,
# default will suffice.
# example:
# rel_type: default
rel_type: default
profile: default-linux/arm/10.0
# This is the system profile to be used by catalyst to build this target. It is
# specified as a relative path from /usr/portage/profiles.
# example:
# profile: default-linux/x86/2006.1
profile: default-linux/arm/10.0/server
# This specifies which snapshot to use for building this target.
# example:
# snapshot: 2006.1
snapshot: armv5tejl.0
source_subpath: default/stage4-armv5tejl-genlink.10.0
# This specifies where the seed stage comes from for this target, The path is
# relative to $clst_sharedir/builds. The rel_type is also used as a path prefix
# for the seed.
# example:
# default/stage3-x86-2006.1
source_subpath: default/stage3-arm-armv5tejl.0
# These are the hosts used as distcc slaves when distcc is enabled in your
# catalyst.conf. It follows the same syntax as distcc-config --set-hosts and
# is entirely optional.
# example:
# distcc_hosts: 127.0.0.1 192.168.0.1
distcc_hosts:
# This is an optional directory containing portage configuration files. It
# follows the same syntax as /etc/portage and should be consistent across all
# targets to minimize problems.
# example:
# portage_confdir: /etc/portage
portage_confdir: /home/mario/mars/linamh/trunk/genlink/Documentation/ls_pro_live/portage/
# This option specifies the location to a portage overlay that you would like to
# have used when building this target.
# example:
# portage_overlay: /usr/local/portage
portage_overlay: /home/mario/mars/linamh/trunk/genlink
# This allows the optional directory containing the output packages for
# catalyst. Mainly used as a way for different spec files to access the same
# cache directory. Default behavior is for this location to be autogenerated
# by catalyst based on the spec file.
# example:
# pkgcache_path: /tmp/packages
# pkgcache_path:
# These options are only available when building a stage1 or stage2 target and
# are all optional. These allow for emulating the changes possible during ai
# bootstrap. Some possible uses of these would be building embedded stages
# requiring a different CHOST or building a stage2 with NPTL support from a
# stage1 tarball that is built without it.
# If left blank, then the catalyst defaults from arch.py are used.
# This option is used to change the CHOST from what is default in the profile
# to whatever you specify. This is useful for building NPTL, for example.
# example:
# chost: i686-pc-linux-gnu
chost: armv5tejl-softfloat-linux-gnueabi
cflags: -Os -pipe
cxxflags: -Os -pipe
# This option allows you to change the default CFLAGS that will be used in
# building this stage. This really should remain generic, as putting
# optimizations flags here will build a stage1 tarball that is no longer
# generic.
# example:
# cflags: -Os -pipe -fomit-frame-pointer -mcpu=i686
cflags: -march=armv5te -mtune=arm926ej-s -Os -fomit-frame-pointer -pipe
# This is for setting the CXXFLAGS. Generally, this would be set to the same
# as CFLAGS. In fact, it will mirror CFLAGS by default.
# example:
# cxxflags: -Os -pipe -fomit-frame-pointer -mcpu=i686
cxxflags: -march=armv5te -mtune=arm926ej-s -Os -fomit-frame-pointer -pipe
# Setting this option sets LDFLAGS in make.conf in your stage. This would be
# useful for setting up an embedded or hardened system.
# example:
# ldflags: -Wl,-O1 -Wl,-z,now
ldflags: -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed

View File

@ -1,12 +1,107 @@
# generic installation stage specfile
# used to build a stage1, stage2, or stage3 installation tarball
# The subarch can be any of the supported catalyst subarches (like athlon-xp).
# Refer to the catalyst reference manual for suppurted subarches.
# http://www.gentoo.org/proj/en/releng/catalyst/
# example:
# subarch: athlon-xp
subarch: arm
# The version stamp is an identifier for the build. It can be anything you wish
# it to be, but it is usually a date.
# example:
# version_stamp: 2006.1
version_stamp: armv5tejl.0
# The target specifies what target we want catalyst to do. For stages, the
# supported targets are: stage1 stage2 stage3
# example:
# target: stage2
target: stage2
# The rel_type defines what kind of build we are doing. This is merely another
# identifier, but it useful for allowing multiple concurrent builds. Usually,
# default will suffice.
# example:
# rel_type: default
rel_type: default
profile: default-linux/arm/10.0
# This is the system profile to be used by catalyst to build this target. It is
# specified as a relative path from /usr/portage/profiles.
# example:
# profile: default-linux/x86/2006.1
profile: default-linux/arm/10.0/server
# This specifies which snapshot to use for building this target.
# example:
# snapshot: 2006.1
snapshot: armv5tejl.0
# This specifies where the seed stage comes from for this target, The path is
# relative to $clst_sharedir/builds. The rel_type is also used as a path prefix
# for the seed.
# example:
# default/stage3-x86-2006.1
source_subpath: default/stage1-arm-armv5tejl.0
# These are the hosts used as distcc slaves when distcc is enabled in your
# catalyst.conf. It follows the same syntax as distcc-config --set-hosts and
# is entirely optional.
# example:
# distcc_hosts: 127.0.0.1 192.168.0.1
distcc_hosts:
# This is an optional directory containing portage configuration files. It
# follows the same syntax as /etc/portage and should be consistent across all
# targets to minimize problems.
# example:
# portage_confdir: /etc/portage
portage_confdir: /home/mario/mars/linamh/trunk/genlink/Documentation/ls_pro_live/portage/
# This option specifies the location to a portage overlay that you would like to
# have used when building this target.
# example:
# portage_overlay: /usr/local/portage
portage_overlay: /home/mario/mars/linamh/trunk/genlink
# This allows the optional directory containing the output packages for
# catalyst. Mainly used as a way for different spec files to access the same
# cache directory. Default behavior is for this location to be autogenerated
# by catalyst based on the spec file.
# example:
# pkgcache_path: /tmp/packages
pkgcache_path:
# These options are only available when building a stage1 or stage2 target and
# are all optional. These allow for emulating the changes possible during ai
# bootstrap. Some possible uses of these would be building embedded stages
# requiring a different CHOST or building a stage2 with NPTL support from a
# stage1 tarball that is built without it.
# If left blank, then the catalyst defaults from arch.py are used.
# This option is used to change the CHOST from what is default in the profile
# to whatever you specify. This is useful for building NPTL, for example.
# example:
# chost: i686-pc-linux-gnu
chost: armv5tejl-softfloat-linux-gnueabi
cflags: -Os -pipe
cxxflags: -Os -pipe
# This option allows you to change the default CFLAGS that will be used in
# building this stage. This really should remain generic, as putting
# optimizations flags here will build a stage1 tarball that is no longer
# generic.
# example:
# cflags: -Os -pipe -fomit-frame-pointer -mcpu=i686
cflags: -march=armv5te -mtune=arm926ej-s -Os -fomit-frame-pointer -pipe
# This is for setting the CXXFLAGS. Generally, this would be set to the same
# as CFLAGS. In fact, it will mirror CFLAGS by default.
# example:
# cxxflags: -Os -pipe -fomit-frame-pointer -mcpu=i686
cxxflags: -march=armv5te -mtune=arm926ej-s -Os -fomit-frame-pointer -pipe
# Setting this option sets LDFLAGS in make.conf in your stage. This would be
# useful for setting up an embedded or hardened system.
# example:
# ldflags: -Wl,-O1 -Wl,-z,now
ldflags: -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed

View File

@ -1,11 +1,107 @@
# generic installation stage specfile
# used to build a stage1, stage2, or stage3 installation tarball
# The subarch can be any of the supported catalyst subarches (like athlon-xp).
# Refer to the catalyst reference manual for suppurted subarches.
# http://www.gentoo.org/proj/en/releng/catalyst/
# example:
# subarch: athlon-xp
subarch: arm
# The version stamp is an identifier for the build. It can be anything you wish
# it to be, but it is usually a date.
# example:
# version_stamp: 2006.1
version_stamp: armv5tejl.0
# The target specifies what target we want catalyst to do. For stages, the
# supported targets are: stage1 stage2 stage3
# example:
# target: stage2
target: stage3
# The rel_type defines what kind of build we are doing. This is merely another
# identifier, but it useful for allowing multiple concurrent builds. Usually,
# default will suffice.
# example:
# rel_type: default
rel_type: default
profile: default-linux/arm/10.0
# This is the system profile to be used by catalyst to build this target. It is
# specified as a relative path from /usr/portage/profiles.
# example:
# profile: default-linux/x86/2006.1
profile: default-linux/arm/10.0/server
# This specifies which snapshot to use for building this target.
# example:
# snapshot: 2006.1
snapshot: armv5tejl.0
# This specifies where the seed stage comes from for this target, The path is
# relative to $clst_sharedir/builds. The rel_type is also used as a path prefix
# for the seed.
# example:
# default/stage3-x86-2006.1
source_subpath: default/stage2-arm-armv5tejl.0
# These are the hosts used as distcc slaves when distcc is enabled in your
# catalyst.conf. It follows the same syntax as distcc-config --set-hosts and
# is entirely optional.
# example:
# distcc_hosts: 127.0.0.1 192.168.0.1
distcc_hosts:
# This is an optional directory containing portage configuration files. It
# follows the same syntax as /etc/portage and should be consistent across all
# targets to minimize problems.
# example:
# portage_confdir: /etc/portage
portage_confdir: /home/mario/mars/linamh/trunk/genlink/Documentation/ls_pro_live/portage/
# This option specifies the location to a portage overlay that you would like to
# have used when building this target.
# example:
# portage_overlay: /usr/local/portage
portage_overlay: /home/mario/mars/linamh/trunk/genlink
cflags: -Os -pipe
cxxflags: -Os -pipe
# This allows the optional directory containing the output packages for
# catalyst. Mainly used as a way for different spec files to access the same
# cache directory. Default behavior is for this location to be autogenerated
# by catalyst based on the spec file.
# example:
# pkgcache_path: /tmp/packages
pkgcache_path:
# These options are only available when building a stage1 or stage2 target and
# are all optional. These allow for emulating the changes possible during ai
# bootstrap. Some possible uses of these would be building embedded stages
# requiring a different CHOST or building a stage2 with NPTL support from a
# stage1 tarball that is built without it.
# If left blank, then the catalyst defaults from arch.py are used.
# This option is used to change the CHOST from what is default in the profile
# to whatever you specify. This is useful for building NPTL, for example.
# example:
# chost: i686-pc-linux-gnu
# chost:
# This option allows you to change the default CFLAGS that will be used in
# building this stage. This really should remain generic, as putting
# optimizations flags here will build a stage1 tarball that is no longer
# generic.
# example:
# cflags: -Os -pipe -fomit-frame-pointer -mcpu=i686
cflags: -march=armv5te -mtune=arm926ej-s -Os -fomit-frame-pointer -pipe
# This is for setting the CXXFLAGS. Generally, this would be set to the same
# as CFLAGS. In fact, it will mirror CFLAGS by default.
# example:
# cxxflags: -Os -pipe -fomit-frame-pointer -mcpu=i686
cxxflags: -march=armv5te -mtune=arm926ej-s -Os -fomit-frame-pointer -pipe
# Setting this option sets LDFLAGS in make.conf in your stage. This would be
# useful for setting up an embedded or hardened system.
# example:
# ldflags: -Wl,-O1 -Wl,-z,now
ldflags: -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed

View File

@ -0,0 +1,258 @@
# stage4 example specfile
# used to build a stage4
# The subarch can be any of the supported catalyst subarches (like athlon-xp).
# Refer to the catalyst reference manual for suppurted subarches.
# http://www.gentoo.org/proj/en/releng/catalyst/
# example:
# subarch: athlon-xp
subarch: arm
# The version stamp is an identifier for the build. It can be anything you wish# it to be, but it is usually a date.
# example:
# version_stamp: 2006.1
version_stamp: armv5tejl-buffalo_ls_pro_live.0
# The target specifies what target we want catalyst to do. For building a CD,
# we start with stage4 as our target.
# example:
# target: stage4
target: stage4
# The rel_type defines what kind of build we are doing. This is merely another
# identifier, but it useful for allowing multiple concurrent builds. Usually,
# default will suffice.
# example:
# rel_type: default
rel_type: default
# This is the system profile to be used by catalyst to build this target. It is# specified as a relative path from /usr/portage/profiles.
# example:
# profile: default-linux/x86/2006.1
profile: default-linux/arm/10.0/server
# This specifies which snapshot to use for building this target.
# example:
# snapshot: 2006.1
snapshot: armv5tejl.0
# This specifies where the seed stage comes from for this target, The path is
# relative to $clst_sharedir/builds. The rel_type is also used as a path prefix# for the seed.
# example:
# default/stage3-x86-2006.1
source_subpath: default/stage3-arm-armv5tejl.0
# These are the hosts used as distcc slaves when distcc is enabled in your
# catalyst.conf. It follows the same syntax as distcc-config --set-hosts and
# is entirely optional.
# example:
# distcc_hosts: 127.0.0.1 192.168.0.1
distcc_hosts:
# This is an optional directory containing portage configuration files. It
# follows the same syntax as /etc/portage and should be consistent across all
# targets to minimize problems.
# example:
# portage_confdir: /etc/portage
portage_confdir: /home/mario/mars/linamh/trunk/genlink/Documentation/ls_pro_live/portage/
# This option specifies the location to a portage overlay that you would like to
# have used when building this target.
# example:
# portage_overlay: /usr/local/portage
portage_overlay: /home/mario/mars/linamh/trunk/genlink
# This allows the optional directory containing the output packages for
# catalyst. Mainly used as a way for different spec files to access the same
# cache directory. Default behavior is for this location to be autogenerated
# by catalyst based on the spec file.
# example:
# pkgcache_path: /tmp/packages
pkgcache_path:
# This allows the optional directory containing the output packages for kernel
# builds. Mainly used as a way for different spec files to access the same
# cache directory. Default behavior is for this location to be autogenerated
# by catalyst based on the spec file.
# example:
# kerncache_path: /tmp/kernel
kerncache_path:
# The stage4 target is where you will build packages for basically updated
# stage3. These packages can be built with customized USE settings. The
# settings here are additive to the default USE configured by the profile.
# Leaving this blank will default to the system use flags
# example:
# stage4/use: ipv6 socks5 fbcon ncurses readline ssl
stage4/use:
# This is the set of packages that we will merge into the stage4 tarball. They
# will be built with the USE flags configured above. These packages must not
# depend on a configured kernel. If the package requires a configured kernel,
# then it will be defined elsewhere.
# example:
# stage4/packages: livecd-tools dhcpcd acpid apmd gentoo-sources coldplug fxload irssi gpm syslog-ng parted links raidtools dosfstools nfs-utils jfsutils xfsprogs e2fsprogs reiserfsprogs ntfsprogs pwgen rp-pppoe screen mirrorselect penggy iputils hwdata-knoppix hwsetup lvm2 evms vim pptpclient mdadm ethtool wireless-tools prism54-firmware wpa_supplicant
stage4/packages: openssh dhcpcd micro_evtd linux-buffalo_ls_pro_live buffalo_ls_pro_live-sources sim_buffalo gpm syslog-ng gdisk parted links raidtools dosfstools nfs-utils jfsutils xfsprogs e2fsprogs reiserfsprogs reiser4progs ntfsprogs pwgen rp-pppoe screen mirrorselect iputils lvm2 evms vim pptpclient mdadm ethtool ntp smartmontools hddtemp
# A fsscript is simply a shell script that is copied into the chroot of the stage4
# after the kernel(s) and any external modules have been compiled and is
# executed within the chroot. It can contain any commands that are available
# via the packages installed by our stages or by the packages installed during
# the stage4-stage1 build. We do not use one for the official release media, so
# there will not be one listed below. The syntax is simply the full path and
# filename to the shell script that you wish to execute. The script is copied
# into the chroot by catalyst automatically.
# example:
# stage4/fsscript:
stage4/fsscript: /home/mario/mars/linamh/trunk/genlink/Documentation/ls_pro_live/fsscript
# This is where you set the splash theme. This theme must be present in
# /etc/splash, before the kernel has completed building.
# example:
# stage4/splash_theme: livecd-2006.1
stage4/splash_theme:
# This is a set of arguments that will be passed to genkernel for all kernels
# defined in this target. It is useful for passing arguments to genkernel that
# are not otherwise available via the stage4-stage2 spec file.
# example:
# stage4/gk_mainargs: --lvm --dmraid
stage4/gk_mainargs:
# This option allows you to specify your own linuxrc script for genkernel to use# when building your CD. This is not checked for functionality, so it is up to
# you to debug your own script. We do not use one for the official release
# media, so there will not be one listed below.
# example:
# stage4/linuxrc:
stage4/linuxrc:
# This is for the message of the day. It is not required
# release media, as catalyst builds a default motd when the stage4/type is set
# to one of the gentoo-* options. This setting overrides the default motd even
# on official media. Since we do not use this for the official releases, it is
# left blank below.
# example:
# stage4/motd:
stage4/motd:
# This is for blacklisting modules from being hotplugged that are known to cause
# problems. Putting a module name here will keep it from being auto-loaded,
# even if ti is detected by hotplug.
# example:
# stage4/modblacklist: 8139cp
stage4/modblacklist:
# This is for adding init scripts to runlevels. The syntax for the init script
# is the script name, followed by a pipe, followed by the runlevel in which you
# want the script to run. It looks like spind|default and is space delimited.
# We do not use this on the official media, as catalyst sets up the runlevels
# correctly for us. Since we do not use this, it is left blank below.
# example:
# stage4/rcadd:
stage4/rcadd: micro_evtd|boot hwclock|boot syslog-ng|boot sysfs|boot net.eth0|boot dbus|default linux-logo|default ntpd|default ntp-client|default smartd|default hddtemp|default sshd|default
# This is for removing init script from runlevels. It is executed after the
# defaults shipped with catalyst, so it is possible to remove the defaults using
# this option. It can follow the same syntax as livcd/rcadd, or you can leave
# the runlevel off to remove the script from any runlevels detected. We do not
# use this on the official media, so it is left blank.
# example:
# stage4/rcdel:
stage4/rcdel:
# This overlay is dropped onto the filesystem within the loop. This can be used
# for such things as updating configuration files or adding anything else you
# would want within your stage4 filesystem. Files added here are available when
# docache is used. We do not use this on the official media, so we will leave
# it blank below.
# example:
# stage4/root_overlay:
stage4/root_overlay: /home/mario/mars/linamh/trunk/genlink/Documentation/ls_pro_live/root_overlay
# This is used by catalyst to copy the specified file to /etc/X11/xinit/xinitrc
# and is used by the stage4/type gentoo-gamecd and generic-livecd. While the
# file will still be copied for any stage4/type, catalyst will only create the
# necessary /etc/startx for those types, so X will not be automatically started.
# This is useful also for setting up X on a CD where you do not wish X to start
# automatically. We do not use this on the release media, so it is left blank.
# example:
# stage4/xinitrc:
stage4/xinitrc:
# This option is used to create non-root users on your CD. It takes a space
# separated list of user names. These users will be added to the following
# groups: users,wheel,audio,games,cdrom,usb
# If this is specified in your spec file, then the first user is also the user
# used to start X. Since this is not used on the release media, it is blank.
# example:
# stage4/users:
stage4/users:
# This option is used to specify the number of kernels to build and also the
# labels that will be used by the CD bootloader to refer to each kernel image.
# example:
# boot/kernel: gentoo
boot/kernel:
# This option tells catalyst which kernel sources to merge for this kernel
# label. This can use normal portage atoms to specify a specific version.
# example:
# boot/kernel/gentoo/sources: gentoo-sources
boot/kernel/gentoo/sources:
# This option is the full path and filename to a kernel .config file that is
# used by genkernel to compile the kernel this label applies to.
# example:
# boot/kernel/gentoo/config: /tmp/2.6.11-smp.config
boot/kernel/gentoo/config:
# This option sets genkernel parameters on a per-kernel basis and applies only
# to this kernel label. This can be used for building options into only a
# single kernel, where compatibility may be an issue. Since we do not use this
# on the official release media, it is left blank, but it follows the same
# syntax as stage4/gk_mainargs.
# example:
# boot/kernel/gentoo/gk_kernargs:
boot/kernel/gentoo/gk_kernargs:
# This option sets the USE flags used to build the kernel and also any packages
# which are defined under this kernel label. These USE flags are additive from
# the default USE for the specified profile.
# example:
# boot/kernel/gentoo/use: pcmcia usb -X
boot/kernel/gentoo/use:
# This option appends an extension to the name of your kernel, as viewed by a
# uname -r/ This also affects any modules built under this kernel label. This
# is useful for having two kernels using the same sources to keep the modules
# from overwriting each other. We do not use this on the official media, so it
# is left blank.
# example:
# boot/kernel/gentoo/extraversion:
boot/kernel/gentoo/extraversion:
# This option is for merging kernel-dependent packages and external modules that
# are configured against this kernel label.
# example:
# boot/kernel/gentoo/packages: pcmcia-cs speedtouch slmodem globespan-adsl hostap-driver hostap-utils ipw2100 ipw2200 fritzcapi fcdsl cryptsetup
boot/kernel/gentoo/packages:
# This is a list of packages that will be unmerged after all the kernels have
# been built. There are no checks on these packages, so be careful what you
# add here. They can potentially break your CD.
# example:
# stage4/unmerge: acl attr autoconf automake bin86 binutils libtool m4 bison ld.so make perl patch linux-headers man-pages sash bison flex gettext texinfo ccache distcc addpatches man groff lib-compat miscfiles rsync sysklogd bc lcms libmng genkernel diffutils libperl gnuconfig gcc-config gcc bin86 cpio cronbase ed expat grub lilo help2man libtool gentoo-sources
stage4/unmerge:
# This option is used to empty the directories listed. It is useful for getting
# rid of files that don't belong to a particular package, or removing files from
# a package that you wish to keep, but won't need the full functionality.
# example:
# stage4/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /usr/portage /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /root/.ccache /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel
stage4/empty:
# This option tells catalyst to clean specific files from the filesystem and is
# very usefu in cleaning up stray files in /etc left over after stage4/unmerge.
# example:
# stage4/rm: /lib/*.a /usr/lib/*.a /usr/lib/gcc-lib/*/*/libgcj* /etc/dispatch-conf.conf /etc/etc-update.conf /etc/*- /etc/issue* /etc/make.conf /etc/man.conf /etc/*.old /root/.viminfo /usr/sbin/fb* /usr/sbin/fsck.cramfs /usr/sbin/fsck.minix /usr/sbin/mkfs.minix /usr/sbin/mkfs.bfs /usr/sbin/mkfs.cramfs /lib/security/pam_access.so /lib/security/pam_chroot.so /lib/security/pam_debug.so /lib/security/pam_ftp.so /lib/security/pam_issue.so /lib/security/pam_mail.so /lib/security/pam_motd.so /lib/security/pam_mkhomedir.so /lib/security/pam_postgresok.so /lib/security/pam_rhosts_auth.so /lib/security/pam_userdb.so /usr/share/consolefonts/1* /usr/share/consolefonts/7* /usr/share/consolefonts/8* /usr/share/consolefonts/9* /usr/share/consolefonts/A* /usr/share/consolefonts/C* /usr/share/consolefonts/E* /usr/share/consolefonts/G* /usr/share/consolefonts/L* /usr/share/consolefonts/M* /usr/share/consolefonts/R* /usr/share/consolefonts/a* /usr/share/consolefonts/c* /usr/share/consolefonts/dr* /usr/share/consolefonts/g* /usr/share/consolefonts/i* /usr/share/consolefonts/k* /usr/share/consolefonts/l* /usr/share/consolefonts/r* /usr/share/consolefonts/s* /usr/share/consolefonts/t* /usr/share/consolefonts/v* /etc/splash/livecd-2006.1/16* /etc/splash/livecd-2006.1/12* /etc/splash/livecd-2006.1/6* /etc/splash/livecd-2006.1/8* /etc/splash/livecd-2006.1/images/silent-16* /etc/splash/livecd-2006.1/images/silent-12* /etc/splash/livecd-2006.1/images/silent-6* /etc/splash/livecd-2006.1/images/silent-8* /etc/splash/livecd-2006.1/images/verbose-16* /etc/splash/livecd-2006.1/images/verbose-12* /etc/splash/livecd-2006.1/images/verbose-6* /etc/splash/livecd-2006.1/images/verbose-8* /etc/make.conf.example /etc/make.globals /etc/resolv.conf
stage4/rm: /usr/bin/qemu-arm

View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /boot
ln -sf uImage-*.buffalo uImage.buffalo
ln -sf initrd-*.buffalo initrd.buffalo

View File

@ -15,7 +15,7 @@
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda2 / ext3 noatime 0 1
/dev/sda2 / reiser4 noatime 0 1
/dev/sda3 none swap sw 0 0
# /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
# /dev/fd0 /mnt/floppy auto noauto 0 0

View File

@ -0,0 +1,258 @@
# stage4 example specfile
# used to build a stage4
# The subarch can be any of the supported catalyst subarches (like athlon-xp).
# Refer to the catalyst reference manual for suppurted subarches.
# http://www.gentoo.org/proj/en/releng/catalyst/
# example:
# subarch: athlon-xp
subarch:
# The version stamp is an identifier for the build. It can be anything you wish# it to be, but it is usually a date.
# example:
# version_stamp: 2006.1
version_stamp:
# The target specifies what target we want catalyst to do. For building a CD,
# we start with stage4 as our target.
# example:
# target: stage4
target:
# The rel_type defines what kind of build we are doing. This is merely another
# identifier, but it useful for allowing multiple concurrent builds. Usually,
# default will suffice.
# example:
# rel_type: default
rel_type:
# This is the system profile to be used by catalyst to build this target. It is# specified as a relative path from /usr/portage/profiles.
# example:
# profile: default-linux/x86/2006.1
profile:
# This specifies which snapshot to use for building this target.
# example:
# snapshot: 2006.1
snapshot:
# This specifies where the seed stage comes from for this target, The path is
# relative to $clst_sharedir/builds. The rel_type is also used as a path prefix# for the seed.
# example:
# default/stage3-x86-2006.1
source_subpath:
# These are the hosts used as distcc slaves when distcc is enabled in your
# catalyst.conf. It follows the same syntax as distcc-config --set-hosts and
# is entirely optional.
# example:
# distcc_hosts: 127.0.0.1 192.168.0.1
distcc_hosts:
# This is an optional directory containing portage configuration files. It
# follows the same syntax as /etc/portage and should be consistent across all
# targets to minimize problems.
# example:
# portage_confdir: /etc/portage
portage_confdir:
# This option specifies the location to a portage overlay that you would like to
# have used when building this target.
# example:
# portage_overlay: /usr/local/portage
portage_overlay:
# This allows the optional directory containing the output packages for
# catalyst. Mainly used as a way for different spec files to access the same
# cache directory. Default behavior is for this location to be autogenerated
# by catalyst based on the spec file.
# example:
# pkgcache_path: /tmp/packages
pkgcache_path:
# This allows the optional directory containing the output packages for kernel
# builds. Mainly used as a way for different spec files to access the same
# cache directory. Default behavior is for this location to be autogenerated
# by catalyst based on the spec file.
# example:
# kerncache_path: /tmp/kernel
kerncache_path:
# The stage4 target is where you will build packages for basically updated
# stage3. These packages can be built with customized USE settings. The
# settings here are additive to the default USE configured by the profile.
# Leaving this blank will default to the system use flags
# example:
# stage4/use: ipv6 socks5 fbcon ncurses readline ssl
stage4/use:
# This is the set of packages that we will merge into the stage4 tarball. They
# will be built with the USE flags configured above. These packages must not
# depend on a configured kernel. If the package requires a configured kernel,
# then it will be defined elsewhere.
# example:
# stage4/packages: livecd-tools dhcpcd acpid apmd gentoo-sources coldplug fxload irssi gpm syslog-ng parted links raidtools dosfstools nfs-utils jfsutils xfsprogs e2fsprogs reiserfsprogs ntfsprogs pwgen rp-pppoe screen mirrorselect penggy iputils hwdata-knoppix hwsetup lvm2 evms vim pptpclient mdadm ethtool wireless-tools prism54-firmware wpa_supplicant
stage4/packages:
# A fsscript is simply a shell script that is copied into the chroot of the stage4
# after the kernel(s) and any external modules have been compiled and is
# executed within the chroot. It can contain any commands that are available
# via the packages installed by our stages or by the packages installed during
# the stage4-stage1 build. We do not use one for the official release media, so
# there will not be one listed below. The syntax is simply the full path and
# filename to the shell script that you wish to execute. The script is copied
# into the chroot by catalyst automatically.
# example:
# stage4/fsscript:
stage4/fsscript:
# This is where you set the splash theme. This theme must be present in
# /etc/splash, before the kernel has completed building.
# example:
# stage4/splash_theme: livecd-2006.1
stage4/splash_theme:
# This is a set of arguments that will be passed to genkernel for all kernels
# defined in this target. It is useful for passing arguments to genkernel that
# are not otherwise available via the stage4-stage2 spec file.
# example:
# stage4/gk_mainargs: --lvm --dmraid
stage4/gk_mainargs:
# This option allows you to specify your own linuxrc script for genkernel to use# when building your CD. This is not checked for functionality, so it is up to
# you to debug your own script. We do not use one for the official release
# media, so there will not be one listed below.
# example:
# stage4/linuxrc:
stage4/linuxrc:
# This is for the message of the day. It is not required
# release media, as catalyst builds a default motd when the stage4/type is set
# to one of the gentoo-* options. This setting overrides the default motd even
# on official media. Since we do not use this for the official releases, it is
# left blank below.
# example:
# stage4/motd:
stage4/motd:
# This is for blacklisting modules from being hotplugged that are known to cause
# problems. Putting a module name here will keep it from being auto-loaded,
# even if ti is detected by hotplug.
# example:
# stage4/modblacklist: 8139cp
stage4/modblacklist:
# This is for adding init scripts to runlevels. The syntax for the init script
# is the script name, followed by a pipe, followed by the runlevel in which you
# want the script to run. It looks like spind|default and is space delimited.
# We do not use this on the official media, as catalyst sets up the runlevels
# correctly for us. Since we do not use this, it is left blank below.
# example:
# stage4/rcadd:
stage4/rcadd:
# This is for removing init script from runlevels. It is executed after the
# defaults shipped with catalyst, so it is possible to remove the defaults using
# this option. It can follow the same syntax as livcd/rcadd, or you can leave
# the runlevel off to remove the script from any runlevels detected. We do not
# use this on the official media, so it is left blank.
# example:
# stage4/rcdel:
stage4/rcdel:
# This overlay is dropped onto the filesystem within the loop. This can be used
# for such things as updating configuration files or adding anything else you
# would want within your stage4 filesystem. Files added here are available when
# docache is used. We do not use this on the official media, so we will leave
# it blank below.
# example:
# stage4/root_overlay:
stage4/root_overlay:
# This is used by catalyst to copy the specified file to /etc/X11/xinit/xinitrc
# and is used by the stage4/type gentoo-gamecd and generic-livecd. While the
# file will still be copied for any stage4/type, catalyst will only create the
# necessary /etc/startx for those types, so X will not be automatically started.
# This is useful also for setting up X on a CD where you do not wish X to start
# automatically. We do not use this on the release media, so it is left blank.
# example:
# stage4/xinitrc:
stage4/xinitrc:
# This option is used to create non-root users on your CD. It takes a space
# separated list of user names. These users will be added to the following
# groups: users,wheel,audio,games,cdrom,usb
# If this is specified in your spec file, then the first user is also the user
# used to start X. Since this is not used on the release media, it is blank.
# example:
# stage4/users:
stage4/users:
# This option is used to specify the number of kernels to build and also the
# labels that will be used by the CD bootloader to refer to each kernel image.
# example:
# boot/kernel: gentoo
boot/kernel:
# This option tells catalyst which kernel sources to merge for this kernel
# label. This can use normal portage atoms to specify a specific version.
# example:
# boot/kernel/gentoo/sources: gentoo-sources
boot/kernel/gentoo/sources:
# This option is the full path and filename to a kernel .config file that is
# used by genkernel to compile the kernel this label applies to.
# example:
# boot/kernel/gentoo/config: /tmp/2.6.11-smp.config
boot/kernel/gentoo/config:
# This option sets genkernel parameters on a per-kernel basis and applies only
# to this kernel label. This can be used for building options into only a
# single kernel, where compatibility may be an issue. Since we do not use this
# on the official release media, it is left blank, but it follows the same
# syntax as stage4/gk_mainargs.
# example:
# boot/kernel/gentoo/gk_kernargs:
boot/kernel/gentoo/gk_kernargs:
# This option sets the USE flags used to build the kernel and also any packages
# which are defined under this kernel label. These USE flags are additive from
# the default USE for the specified profile.
# example:
# boot/kernel/gentoo/use: pcmcia usb -X
boot/kernel/gentoo/use:
# This option appends an extension to the name of your kernel, as viewed by a
# uname -r/ This also affects any modules built under this kernel label. This
# is useful for having two kernels using the same sources to keep the modules
# from overwriting each other. We do not use this on the official media, so it
# is left blank.
# example:
# boot/kernel/gentoo/extraversion:
boot/kernel/gentoo/extraversion:
# This option is for merging kernel-dependent packages and external modules that
# are configured against this kernel label.
# example:
# boot/kernel/gentoo/packages: pcmcia-cs speedtouch slmodem globespan-adsl hostap-driver hostap-utils ipw2100 ipw2200 fritzcapi fcdsl cryptsetup
boot/kernel/gentoo/packages:
# This is a list of packages that will be unmerged after all the kernels have
# been built. There are no checks on these packages, so be careful what you
# add here. They can potentially break your CD.
# example:
# stage4/unmerge: acl attr autoconf automake bin86 binutils libtool m4 bison ld.so make perl patch linux-headers man-pages sash bison flex gettext texinfo ccache distcc addpatches man groff lib-compat miscfiles rsync sysklogd bc lcms libmng genkernel diffutils libperl gnuconfig gcc-config gcc bin86 cpio cronbase ed expat grub lilo help2man libtool gentoo-sources
stage4/unmerge:
# This option is used to empty the directories listed. It is useful for getting
# rid of files that don't belong to a particular package, or removing files from
# a package that you wish to keep, but won't need the full functionality.
# example:
# stage4/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /usr/portage /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /root/.ccache /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel
stage4/empty:
# This option tells catalyst to clean specific files from the filesystem and is
# very usefu in cleaning up stray files in /etc left over after stage4/unmerge.
# example:
# stage4/rm: /lib/*.a /usr/lib/*.a /usr/lib/gcc-lib/*/*/libgcj* /etc/dispatch-conf.conf /etc/etc-update.conf /etc/*- /etc/issue* /etc/make.conf /etc/man.conf /etc/*.old /root/.viminfo /usr/sbin/fb* /usr/sbin/fsck.cramfs /usr/sbin/fsck.minix /usr/sbin/mkfs.minix /usr/sbin/mkfs.bfs /usr/sbin/mkfs.cramfs /lib/security/pam_access.so /lib/security/pam_chroot.so /lib/security/pam_debug.so /lib/security/pam_ftp.so /lib/security/pam_issue.so /lib/security/pam_mail.so /lib/security/pam_motd.so /lib/security/pam_mkhomedir.so /lib/security/pam_postgresok.so /lib/security/pam_rhosts_auth.so /lib/security/pam_userdb.so /usr/share/consolefonts/1* /usr/share/consolefonts/7* /usr/share/consolefonts/8* /usr/share/consolefonts/9* /usr/share/consolefonts/A* /usr/share/consolefonts/C* /usr/share/consolefonts/E* /usr/share/consolefonts/G* /usr/share/consolefonts/L* /usr/share/consolefonts/M* /usr/share/consolefonts/R* /usr/share/consolefonts/a* /usr/share/consolefonts/c* /usr/share/consolefonts/dr* /usr/share/consolefonts/g* /usr/share/consolefonts/i* /usr/share/consolefonts/k* /usr/share/consolefonts/l* /usr/share/consolefonts/r* /usr/share/consolefonts/s* /usr/share/consolefonts/t* /usr/share/consolefonts/v* /etc/splash/livecd-2006.1/16* /etc/splash/livecd-2006.1/12* /etc/splash/livecd-2006.1/6* /etc/splash/livecd-2006.1/8* /etc/splash/livecd-2006.1/images/silent-16* /etc/splash/livecd-2006.1/images/silent-12* /etc/splash/livecd-2006.1/images/silent-6* /etc/splash/livecd-2006.1/images/silent-8* /etc/splash/livecd-2006.1/images/verbose-16* /etc/splash/livecd-2006.1/images/verbose-12* /etc/splash/livecd-2006.1/images/verbose-6* /etc/splash/livecd-2006.1/images/verbose-8* /etc/make.conf.example /etc/make.globals /etc/resolv.conf
stage4/rm:

View File

@ -15,7 +15,7 @@
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda2 / ext3 noatime 0 1
/dev/sda2 / reiser4 noatime 0 1
/dev/sda3 none swap sw 0 0
# /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
# /dev/fd0 /mnt/floppy auto noauto 0 0

View File

@ -0,0 +1,53 @@
#!/bin/bash
#
# Welcome to the Gentoo Mysql Storage tarball bakery.
# this Script was based on OurDelta scripts
# 2009-11-27
# Mario Fetka <mario.fetka@gmail.com>
# Peter Lieverdink <peter@openquery.com>
# Arjen Lentz <arjen@openquery.com>
#
# Exit immediately on any error
set -e
# Debug script and command lines
#set -x
BAKERY_BASE_DIR="$(dirname $(readlink -f ${0}))"
BUILD_BASE_DIR="$(pwd)/build-temp-$$"
if [ ! $# -eq 1 ]; then
echo "Usage: $0 [package dir]"
exit 1
else
UPSTREAM="${1}"
fi
echo "Going to build tarballs in ${BUILD_BASE_DIR}"
# Source the info file, so we can use its version info for the tarball.
#
. $1/mysql-storage/.$1-version
# Up a dir, rename us and then package up.
#
pushd $1
# Tar it up, but leave the quilt directory out of it
#
rm -rf ${PACKAGE_NAME}-${VERSION}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}
mkdir ${PACKAGE_NAME}-${VERSION}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}
cp -rf mysql-storage/* ${PACKAGE_NAME}-${VERSION}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}
tar cz -f ${PACKAGE_NAME}-${VERSION}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}.tar.gz \
${PACKAGE_NAME}-${VERSION}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}
echo "Created ${PACKAGE_NAME}-${VERSION}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}.tar.gz"
rm -rf ${PACKAGE_NAME}-${VERSION}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}
# Move out the tarball.
#
popd
mv $1/${PACKAGE_NAME}-${VERSION}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}.tar.gz .
# Cleanup
#rm -fr "${BUILD_BASE_DIR}"
# Thank you, and good night.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,329 @@
diff -uNr a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
--- a/arch/arm/mach-kirkwood/Kconfig 2010-08-02 00:11:14.000000000 +0200
+++ b/arch/arm/mach-kirkwood/Kconfig 2010-10-05 19:57:48.000000000 +0200
@@ -99,6 +99,12 @@
Say 'Y' here if you want your kernel to support the
LaCie 5Big Network v2 NAS.
+config MACH_LSXHL
+ bool "Buffalo LS-XHL Series"
+ help
+ Say 'Y' here if you want your kernel to support the
+ Buffalo LS-XHL Series.
+
endmenu
endif
diff -uNr a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile
--- a/arch/arm/mach-kirkwood/Makefile 2010-08-02 00:11:14.000000000 +0200
+++ b/arch/arm/mach-kirkwood/Makefile 2010-10-05 19:58:39.000000000 +0200
@@ -6,6 +6,7 @@
obj-$(CONFIG_MACH_MV88F6281GTW_GE) += mv88f6281gtw_ge-setup.o
obj-$(CONFIG_MACH_SHEEVAPLUG) += sheevaplug-setup.o
obj-$(CONFIG_MACH_ESATA_SHEEVAPLUG) += sheevaplug-setup.o
+obj-$(CONFIG_MACH_LSXHL) += lsxhl-setup.o
obj-$(CONFIG_MACH_GURUPLUG) += guruplug-setup.o
obj-$(CONFIG_MACH_TS219) += ts219-setup.o tsx1x-common.o
obj-$(CONFIG_MACH_TS41X) += ts41x-setup.o tsx1x-common.o
diff -uNr a/arch/arm/mach-kirkwood/lsxhl-setup.c b/arch/arm/mach-kirkwood/lsxhl-setup.c
--- a/arch/arm/mach-kirkwood/lsxhl-setup.c 1970-01-01 01:00:00.000000000 +0100
+++ b/arch/arm/mach-kirkwood/lsxhl-setup.c 2010-10-05 19:57:48.000000000 +0200
@@ -0,0 +1,286 @@
+/*
+ * arch/arm/mach-kirkwood/sheevaplug-setup.c
+ *
+ * Marvell SheevaPlug Reference Board Setup
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/platform_device.h>
+#include <linux/mtd/nand.h>
+#include <linux/mtd/partitions.h>
+#include <linux/mv643xx_eth.h>
+#include <linux/ata_platform.h>
+#include <linux/gpio.h>
+#include <linux/leds.h>
+#include <linux/gpio_keys.h>
+#include <linux/input.h>
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+#include <mach/kirkwood.h>
+#include <mach/bridge-regs.h>
+#include <plat/mvsdio.h>
+#include <plat/orion_nand.h>
+#include "common.h"
+#include "mpp.h"
+
+/* for pm */
+#include <linux/io.h>
+#include <linux/delay.h>
+#include <asm/proc-fns.h>
+#include <mach/system.h>
+extern void setup_mm_for_reboot(char mode);
+
+
+
+#include <asm/io.h>
+#include <asm/gpio.h>
+
+extern void kirkwood_ge00_exit(void);
+extern void kirkwood_ge01_exit(void);
+
+static struct mv643xx_eth_platform_data lsxhl_ge00_data = {
+ .phy_addr = MV643XX_ETH_PHY_ADDR(0),
+};
+static struct mv643xx_eth_platform_data lsxhl_ge01_data = {
+ .phy_addr = MV643XX_ETH_PHY_ADDR(8),
+};
+
+
+static unsigned int lsxhl_mpp_config[] __initdata = {
+ MPP0_SPI_SCn,
+ MPP1_SPI_MOSI,
+ MPP2_SPI_SCK,
+ MPP3_SPI_MISO,
+ MPP4_UART0_RXD,
+ MPP5_UART0_TXD,
+ MPP6_SYSRST_OUTn,
+ MPP7_GPO,
+ MPP8_GPIO,
+ MPP9_GPIO,
+ MPP10_GPO, /* HDD Power */
+ MPP11_GPIO, /* USB VBUS EN */
+ MPP12_SD_CLK,
+ MPP13_SD_CMD,
+ MPP14_SD_D0,
+ MPP15_SD_D1,
+ MPP16_SD_D2,
+ MPP17_SD_D3,
+ MPP18_GPO, /* FAN HIGH: on:0, off:1 */
+ MPP19_GPO, /* FAN LOW: on:0, off:1 */
+ MPP20_GE1_0,
+ MPP21_GE1_1,
+ MPP22_GE1_2,
+ MPP23_GE1_3,
+ MPP24_GE1_4,
+ MPP25_GE1_5,
+ MPP26_GE1_6,
+ MPP27_GE1_7,
+ MPP28_GPIO,
+ MPP29_GPIO,
+ MPP30_GE1_10,
+ MPP31_GE1_11,
+ MPP32_GE1_12,
+ MPP33_GE1_13,
+ MPP34_GPIO,
+ MPP35_GPIO,
+ MPP36_GPIO, /* FUNC LED */
+ MPP37_GPIO, /* ALARM LED */
+ MPP38_GPIO, /* INFO LED */
+ MPP39_GPIO, /* POWER LED */
+ MPP40_GPIO, /* FAN LOCK */
+ MPP41_GPIO, /* FUNC SW */
+ MPP42_GPIO, /* POWER SW */
+ MPP43_GPIO, /* POWER AUTO SW */
+ MPP44_GPIO,
+ MPP45_GPIO,
+ MPP46_GPIO,
+ MPP47_GPIO,
+ MPP48_GPIO, /* FUNC RED LED */
+ MPP49_GPIO, /* UART EN */
+ 0
+};
+
+static struct mv_sata_platform_data lsxhl_sata_data = {
+ .n_ports = 1,
+};
+
+static struct gpio_led lsxhl_led_pins[] = {
+ {
+ .name = "func",
+ .gpio = 36,
+ .active_low = 1,
+ },
+ {
+ .name = "alarm",
+ .gpio = 37,
+ .active_low = 1,
+ },
+ {
+ .name = "info",
+ .gpio = 38,
+ .active_low = 1,
+ },
+ {
+ .name = "power",
+ .gpio = 39,
+ .default_trigger = "default-on",
+ .active_low = 1,
+ },
+ {
+ .name = "func2",
+ .gpio = 48,
+ .active_low = 1,
+ },
+};
+
+static struct gpio_led_platform_data lsxhl_led_data = {
+ .leds = lsxhl_led_pins,
+ .num_leds = ARRAY_SIZE(lsxhl_led_pins),
+};
+
+static struct platform_device lsxhl_leds = {
+ .name = "leds-gpio",
+ .id = -1,
+ .dev = {
+ .platform_data = &lsxhl_led_data,
+ }
+};
+
+#if 0 /* power save in power-off mode. */
+static void lsxhl_power_off(void)
+{
+ int i=0;
+
+/* PCI Express Power Saving: NG
+ writel(0x20800087, (PCIE_VIRT_BASE | 0x1b00));
+*/
+
+/* Ethernet Power Saving */
+#define GE00_VIRT_BASE (KIRKWOOD_REGS_VIRT_BASE | 0x70000)
+#define GE01_VIRT_BASE (KIRKWOOD_REGS_VIRT_BASE | 0x74000)
+ writel(0xff00, (GE00_VIRT_BASE | 0x2680));
+ writel(0xff00, (GE01_VIRT_BASE | 0x2680));
+ writel(readl(GE00_VIRT_BASE | 0x243c) & ~0x400, GE00_VIRT_BASE | 0x243c);
+ writel(readl(GE01_VIRT_BASE | 0x243c) & ~0x400, GE01_VIRT_BASE | 0x243c);
+ writel(readl(GE00_VIRT_BASE | 0x243c) & ~0x1, GE00_VIRT_BASE | 0x243c);
+ writel(readl(GE01_VIRT_BASE | 0x243c) & ~0x1, GE01_VIRT_BASE | 0x243c);
+
+/* NG:
+ kirkwood_clock_gate(CGC_GE0 | CGC_USB0 | CGC_NAND_SPI |
+ CGC_XOR0 | CGC_SATA0 | CGC_XOR1 |
+ CGC_CRYPTO | CGC_GE1);
+*/
+/* OK: maybe
+ kirkwood_clock_gate(CGC_GE0 | CGC_USB0 |
+ CGC_XOR0 | CGC_SATA0 | CGC_XOR1 |
+ CGC_CRYPTO | CGC_GE1);
+*/
+
+/* Memory Power Management */
+ writel(0x2bff, (BRIDGE_VIRT_BASE | 0x118));
+
+ gpio_direction_output(18, 1); // Fan high off
+ gpio_direction_output(19, 1); // Fan low off
+ gpio_direction_output(11, 0); // USB Power off
+ gpio_direction_output(10, 0); // HDD Power off
+
+ gpio_direction_output(36, 1); // Func LED off
+ gpio_direction_output(37, 1); // Alarm LED off
+ gpio_direction_output(38, 1); // Info LED off
+ gpio_direction_output(39, 1); // Power LED off
+ gpio_direction_output(48, 1); // Func2 LED off
+
+ cpu_proc_fin();
+
+ local_irq_disable();
+
+ /* disable interrupts to CPU
+ writel(readl(CPU_CONTROL) | (1 << 28), CPU_CONTROL);
+ */
+
+/* Mbus-L to Mbus Bridge Interrupt Mask Register */
+ writel(BRIDGE_INT_TIMER1, BRIDGE_MASK);
+/* Main IRQ Interrupt Mask Low Register */
+ writel(2, IRQ_VIRT_BASE | 0x04);
+/* Main FIQ Interrupt Mask Low Register */
+ writel(0, IRQ_VIRT_BASE | 0x08);
+/* Endpoint Interrupt Mask Low Register */
+ writel(2, IRQ_VIRT_BASE | 0x0c);
+/* Main IRQ Interrupt Mask High Register */
+ writel(0, IRQ_VIRT_BASE | 0x14);
+/* Main FIQ Interrupt Mask High Register */
+ writel(0, IRQ_VIRT_BASE | 0x18);
+/* Endpoint Interrupt Mask High Register */
+ writel(0, IRQ_VIRT_BASE | 0x1c);
+/* CPU Timer1 Reload Register */
+ writel(20000000, TIMER_VIRT_BASE | 0x18);
+/* CPU Timers Control Register */
+ writel(readl(TIMER_VIRT_BASE) | 12, TIMER_VIRT_BASE);
+
+/* GotoPowerSave */
+ writel((readl(CLOCK_GATING_CTRL) | (1 << 11)) & ~(1 << 12),
+ CLOCK_GATING_CTRL);
+
+/* SDRAM Power Saving */
+ writel(0x7, DDR_OPERATION_BASE);
+ while(1){
+ arch_idle();
+ gpio_direction_output(38, (i++) % 25 != 0);
+ if(!gpio_get_value(42) || !gpio_get_value(43)) break;
+/* Mbus-L to Mbus Bridge Interrupt Cause Register */
+ writel(0, BRIDGE_CAUSE);
+ }
+ local_irq_enable();
+
+ setup_mm_for_reboot('h');
+ arch_reset('h', NULL);
+ mdelay(1000);
+ printk("reset failed: system halted\n");
+ while(1);
+}
+#endif
+
+static void __init lsxhl_init(void)
+{
+ /*
+ * Basic setup. Needs to be called early.
+ */
+ kirkwood_init();
+ kirkwood_mpp_conf(lsxhl_mpp_config);
+
+ kirkwood_uart0_init();
+
+ if (gpio_request(11, "USB Power Enable") != 0 ||
+ gpio_direction_output(11, 1) != 0)
+ printk(KERN_ERR "can't set up GPIO 11 (USB Power Enable)\n");
+ kirkwood_ehci_init();
+
+
+ kirkwood_ge00_init(&lsxhl_ge00_data);
+ kirkwood_ge01_init(&lsxhl_ge01_data);
+
+ kirkwood_sata_init(&lsxhl_sata_data);
+
+ kirkwood_spi_init();
+
+ platform_device_register(&lsxhl_leds);
+
+#if 0 /* power save in power-off mode. */
+ pm_power_off = lsxhl_power_off;
+#endif
+}
+
+MACHINE_START(LSXHL, "Buffalo LS-XHL Series")
+ .phys_io = KIRKWOOD_REGS_PHYS_BASE,
+ .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc,
+ .boot_params = 0x00000100,
+ .init_machine = lsxhl_init,
+ .map_io = kirkwood_map_io,
+ .init_irq = kirkwood_init_irq,
+ .timer = &kirkwood_timer,
+MACHINE_END
diff -uNr a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types
--- a/arch/arm/tools/mach-types 2010-08-02 00:11:14.000000000 +0200
+++ b/arch/arm/tools/mach-types 2010-10-05 19:57:48.000000000 +0200
@@ -2647,7 +2647,7 @@
spear310 MACH_SPEAR310 SPEAR310 2660
spear320 MACH_SPEAR320 SPEAR320 2661
robotx MACH_ROBOTX ROBOTX 2662
-lsxhl MACH_LSXHL LSXHL 2663
+lsxhl MACH_LSXHL LSXHL 527
smartlite MACH_SMARTLITE SMARTLITE 2664
cws2 MACH_CWS2 CWS2 2665
m619 MACH_M619 M619 2666

View File

@ -0,0 +1,472 @@
Submitted By: Mario Fetka (geos_one) (mario dot fetka at gmail dot com)
Date: 2010-06-27
Initial Package Version: 2.6.30
Origin: http://forum.buffalo.nas-central.org/viewtopic.php?f=18&t=11631&start=30
Upstream Status: unknown
Description: add support LS Pro Duo for 2.6.34 based on the 2.6.30 patch
diff -Naur linux-2.6.34-geos_one-r1.orig/arch/arm/configs/orion5x_defconfig linux-2.6.34-geos_one-r1/arch/arm/configs/orion5x_defconfig
--- linux-2.6.34-geos_one-r1.orig/arch/arm/configs/orion5x_defconfig 2010-06-27 06:56:25.464133418 +0000
+++ linux-2.6.34-geos_one-r1/arch/arm/configs/orion5x_defconfig 2010-06-27 06:58:47.423132623 +0000
@@ -228,6 +228,7 @@
CONFIG_MACH_TERASTATION_PRO2=y
CONFIG_MACH_LINKSTATION_PRO=y
CONFIG_MACH_LINKSTATION_MINI=y
+CONFIG_MACH_LINKSTATION_PRODUO=y
CONFIG_MACH_LINKSTATION_LS_HGL=y
CONFIG_MACH_TS409=y
CONFIG_MACH_WRT350N_V2=y
diff -Naur linux-2.6.34-geos_one-r1.orig/arch/arm/mach-orion5x/Kconfig linux-2.6.34-geos_one-r1/arch/arm/mach-orion5x/Kconfig
--- linux-2.6.34-geos_one-r1.orig/arch/arm/mach-orion5x/Kconfig 2010-06-27 06:56:27.606130813 +0000
+++ linux-2.6.34-geos_one-r1/arch/arm/mach-orion5x/Kconfig 2010-06-27 06:57:40.438133825 +0000
@@ -64,6 +64,44 @@
Say 'Y' here if you want your kernel to support the
Buffalo Linkstation LS-HGL platform.
+config MACH_LINKSTATION_PRODUO
+ bool "Buffalo Linkstation Pro Duo"
+ select I2C_BOARDINFO
+ help
+ Say 'Y' here if you want your kernel to support the
+ Buffalo Linkstation Pro Duo platform.
+
+ LS-W1.0TGL/R1 is the general model number. There
+ is no /R3 models, as /R1 stands for RAID1.
+ There are two hardware revisions of the product.
+
+ The first revision has version 1.xx firmware, 64 MB RAM,
+ a single USB port, a power BUTTON, an Auto/Manual
+ power MODE SWITCH, and a RESET button.
+
+ The second revision has version 3.xx firmware, 128 MB RAM,
+ two USB ports, an Off/On/Auto power SWITCH, and a FUNCTION button.
+
+ choice
+ prompt "HW model"
+ depends on MACH_LINKSTATION_PRODUO
+ default MACH_LINKSTATION_PRODUO_REV1
+ default MACH_LINKSTATION_PRODUO_REV2
+
+ config MACH_LINKSTATION_PRODUO_REV1
+ bool "Revision 1"
+ help
+ The first revision has version 1.xx firmware, 64 MB RAM,
+ a single USB port, a power BUTTON, an Auto/Manual
+ power MODE SWITCH, and a RESET button.
+
+ config MACH_LINKSTATION_PRODUO_REV2
+ bool "Revision 2"
+ help
+ The second revision has version 3.xx firmware, 128 MB RAM,
+ two USB ports, an Off/On/Auto power SWITCH, and a FUNCTION button.
+ endchoice
+
config MACH_TS409
bool "QNAP TS-409"
help
diff -Naur linux-2.6.34-geos_one-r1.orig/arch/arm/mach-orion5x/Makefile linux-2.6.34-geos_one-r1/arch/arm/mach-orion5x/Makefile
--- linux-2.6.34-geos_one-r1.orig/arch/arm/mach-orion5x/Makefile 2010-06-27 06:56:27.581136017 +0000
+++ linux-2.6.34-geos_one-r1/arch/arm/mach-orion5x/Makefile 2010-06-27 07:04:02.631883167 +0000
@@ -6,6 +6,7 @@
obj-$(CONFIG_MACH_LINKSTATION_PRO) += kurobox_pro-setup.o
obj-$(CONFIG_MACH_LINKSTATION_MINI) += lsmini-setup.o
obj-$(CONFIG_MACH_LINKSTATION_LS_HGL) += ls_hgl-setup.o
+obj-$(CONFIG_MACH_LINKSTATION_PRODUO) += lsproduo-setup.o
obj-$(CONFIG_MACH_DNS323) += dns323-setup.o
obj-$(CONFIG_MACH_TS209) += ts209-setup.o tsx09-common.o
obj-$(CONFIG_MACH_TS409) += ts409-setup.o tsx09-common.o
diff -Naur linux-2.6.34-geos_one-r1.orig/arch/arm/mach-orion5x/lsproduo-setup.c linux-2.6.34-geos_one-r1/arch/arm/mach-orion5x/lsproduo-setup.c
--- linux-2.6.34-geos_one-r1.orig/arch/arm/mach-orion5x/lsproduo-setup.c 1970-01-01 00:00:00.000000000 +0000
+++ linux-2.6.34-geos_one-r1/arch/arm/mach-orion5x/lsproduo-setup.c 2010-06-27 06:57:40.441886174 +0000
@@ -0,0 +1,391 @@
+/*
+ * arch/arm/mach-orion5x/lsproduo-setup.c
+ *
+ * Source taken from arch/arm/mach-orion5x/lsmini-setup.c - kernel 2.6.30
+ * Maintainer: Manuel Bernhardt <prodigy7@gmail.com>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/platform_device.h>
+#include <linux/pci.h>
+#include <linux/mtd/physmap.h>
+#include <linux/mv643xx_eth.h>
+#include <linux/leds.h>
+#include <linux/gpio_keys.h>
+#include <linux/input.h>
+#include <linux/i2c.h>
+#include <linux/ata_platform.h>
+#include <asm/mach-types.h>
+#include <linux/gpio.h>
+#include <asm/mach/arch.h>
+#include "common.h"
+#include "mpp.h"
+#include "include/mach/system.h"
+#include <linux/module.h>
+#include <linux/proc_fs.h>
+#include <asm/uaccess.h>
+
+/*****************************************************************************
+ * Linkstation Pro Duo Info
+ ****************************************************************************/
+
+/*
+ * 256K NOR flash Device bus boot chip select
+ */
+
+#define LSPRODUO_NOR_BOOT_BASE 0xf4000000
+#define LSPRODUO_NOR_BOOT_SIZE SZ_256K
+
+/*****************************************************************************
+ * 256KB NOR Flash on BOOT Device
+ ****************************************************************************/
+
+static struct physmap_flash_data lsproduo_nor_flash_data = {
+ .width = 1,
+};
+
+static struct resource lsproduo_nor_flash_resource = {
+ .flags = IORESOURCE_MEM,
+ .start = LSPRODUO_NOR_BOOT_BASE,
+ .end = LSPRODUO_NOR_BOOT_BASE + LSPRODUO_NOR_BOOT_SIZE - 1,
+};
+
+static struct platform_device lsproduo_nor_flash = {
+ .name = "physmap-flash",
+ .id = 0,
+ .dev = {
+ .platform_data = &lsproduo_nor_flash_data,
+ },
+ .num_resources = 1,
+ .resource = &lsproduo_nor_flash_resource,
+};
+
+/*****************************************************************************
+ * Ethernet
+ ****************************************************************************/
+
+static struct mv643xx_eth_platform_data lsproduo_eth_data = {
+ .phy_addr = 8,
+};
+
+/*****************************************************************************
+ * RTC 5C372a on I2C bus
+ ****************************************************************************/
+
+static struct i2c_board_info __initdata lsproduo_i2c_rtc = {
+ I2C_BOARD_INFO("rs5c372a", 0x32),
+};
+
+/*****************************************************************************
+ * LEDs attached to GPIO
+ ****************************************************************************/
+
+#define LSPRODUO_GPIO_LED_ALARM 2
+#define LSPRODUO_GPIO_LED_INFO 3
+#define LSPRODUO_GPIO_LED_PWR 0
+
+static struct gpio_led lsproduo_led_pins[] = {
+ {
+ .name = "alarm:red",
+ .gpio = LSPRODUO_GPIO_LED_ALARM,
+ .active_low = 1,
+ }, {
+ .name = "info:amber",
+ .gpio = LSPRODUO_GPIO_LED_INFO,
+ .active_low = 1,
+ }, {
+ .name = "power:amber",
+ .gpio = LSPRODUO_GPIO_LED_PWR,
+ .active_low = 1,
+ },
+};
+
+static struct gpio_led_platform_data lsproduo_led_data = {
+ .leds = lsproduo_led_pins,
+ .num_leds = ARRAY_SIZE(lsproduo_led_pins),
+};
+
+static struct platform_device lsproduo_leds = {
+ .name = "leds-gpio",
+ .id = -1,
+ .dev = {
+ .platform_data = &lsproduo_led_data,
+ },
+};
+
+/****************************************************************************
+ * GPIO Attached Keys
+ ****************************************************************************/
+
+#define LSPRODUO_GPIO_KEY_POWER 8
+#define LSPRODUO_GPIO_KEY_AUTOPOWER 10
+
+#define LSPRODUO_SW_POWER 0x00
+#define LSPRODUO_SW_AUTOPOWER 0x01
+
+static struct gpio_keys_button lsproduo_buttons[] = {
+ {
+ .type = EV_SW,
+ .code = LSPRODUO_SW_POWER,
+ .gpio = LSPRODUO_GPIO_KEY_POWER,
+ .desc = "Power-on Switch",
+ .active_low = 1,
+ }, {
+ .type = EV_SW,
+ .code = LSPRODUO_SW_AUTOPOWER,
+ .gpio = LSPRODUO_GPIO_KEY_AUTOPOWER,
+ .desc = "Power-auto Switch",
+ .active_low = 1,
+ },
+};
+
+static struct gpio_keys_platform_data lsproduo_button_data = {
+ .buttons = lsproduo_buttons,
+ .nbuttons = ARRAY_SIZE(lsproduo_buttons),
+};
+
+static struct platform_device lsproduo_button_device = {
+ .name = "gpio-keys",
+ .id = -1,
+ .num_resources = 0,
+ .dev = {
+ .platform_data = &lsproduo_button_data,
+ },
+};
+
+/****************************************************************************
+ * GPIO Attached Fan
+ ****************************************************************************/
+
+/* Define max char len */
+#define MAX_LEN 8
+
+#define LSPRODUO_GPIO_FAN_LOW 17
+#define LSPRODUO_GPIO_FAN_HIGH 14
+
+static struct proc_dir_entry *lsproduo_proc_dir_root, *lsproduo_proc_dir_gpio, *lsproduo_fan_proc_file;
+static char lsproduo_fan_state[MAX_LEN];
+
+static int lsproduo_fan_get(char *buf, char **start, off_t offset, int count, int *eof, void *data)
+{
+ int len;
+
+ len = snprintf(buf, count, "state: %s\n", lsproduo_fan_state);
+ return len;
+}
+
+static int lsproduo_fan_set( struct file *file, const char *buffer, unsigned long count, void *data )
+{
+ int len, ret;
+ char *ptr, tState[MAX_LEN];
+
+ if (count > MAX_LEN )
+ len = MAX_LEN;
+ else
+ len = count;
+
+ ret = copy_from_user(tState, buffer, len);
+ if(ret < 0)
+ {
+ printk(KERN_ERR "%s: Setting fan speed failed\n", "lsproduo");
+ return -EFAULT;
+ }
+
+ ptr = strrchr(tState, '\n');
+ if(ptr) *ptr = '\0';
+
+ if (strcasecmp(tState, "off") == 0)
+ {
+ printk(KERN_DEBUG "%s: set fan off\n", "lsproduo");
+ sprintf(lsproduo_fan_state, "off");
+ gpio_set_value(LSPRODUO_GPIO_FAN_LOW, 1);
+ gpio_set_value(LSPRODUO_GPIO_FAN_HIGH, 1);
+ } else if (strcasecmp(tState, "slow") == 0)
+ {
+ printk(KERN_DEBUG "%s: set fan slow\n", "lsproduo");
+ sprintf(lsproduo_fan_state, "slow");
+ gpio_set_value(LSPRODUO_GPIO_FAN_LOW, 1);
+ gpio_set_value(LSPRODUO_GPIO_FAN_HIGH, 0);
+ } else if (strcasecmp(tState, "fast") == 0)
+ {
+ printk(KERN_DEBUG "%s: set fan fast\n", "lsproduo");
+ sprintf(lsproduo_fan_state, "fast");
+ gpio_set_value(LSPRODUO_GPIO_FAN_LOW, 0);
+ gpio_set_value(LSPRODUO_GPIO_FAN_HIGH, 1);
+ } else if (strcasecmp(tState, "full") == 0)
+ {
+ printk(KERN_DEBUG "%s: set fan full\n", "lsproduo");
+ sprintf(lsproduo_fan_state, "full");
+ gpio_set_value(LSPRODUO_GPIO_FAN_LOW, 0);
+ gpio_set_value(LSPRODUO_GPIO_FAN_HIGH, 0);
+ } else
+ {
+ printk(KERN_ERR "%s: unknown fan speed given\n", "lsproduo");
+ }
+
+ lsproduo_fan_state[len] = '\0';
+
+ return len;
+}
+
+/*****************************************************************************
+ * SATA
+ ****************************************************************************/
+static struct mv_sata_platform_data lsproduo_sata_data = {
+ .n_ports = 2,
+};
+
+
+/*****************************************************************************
+ * Linkstation Pro Duo specific power off method: reboot
+ ****************************************************************************/
+/*
+ * On the Linkstation Pro Duo, the shutdown process is following:
+ * - Userland monitors key events until the power switch goes to off position
+ * - The board reboots
+ * - U-boot starts and goes into an idle mode waiting for the user
+ * to move the switch to ON position
+ */
+
+static void lsproduo_power_off(void)
+{
+ arch_reset(0, NULL);
+}
+
+
+/*****************************************************************************
+ * General Setup
+ ****************************************************************************/
+
+#define LSPRODUO_GPIO_USB_POWER 9
+#define LSPRODUO_GPIO_AUTO_POWER 10
+#define LSPRODUO_GPIO_POWER 8
+
+#define LSPRODUO_GPIO_HDD_POWER0 1
+
+#ifdef CONFIG_MACH_LINKSTATION_PRODUO_REV2
+#define LSPRODUO_GPIO_USB_POWER2 19
+#endif
+
+static struct orion5x_mpp_mode lsproduo_mpp_modes[] __initdata = {
+ { 0, MPP_GPIO }, /* LED_PWR */
+ { 1, MPP_GPIO }, /* HDD_PWR */
+ { 2, MPP_GPIO }, /* LED_ALARM */
+ { 3, MPP_GPIO }, /* LED_INFO */
+ { 4, MPP_UNUSED },
+ { 5, MPP_UNUSED },
+ { 6, MPP_GPIO }, /* FAN_LCK */
+ { 7, MPP_GPIO }, /* INIT */
+ { 8, MPP_GPIO }, /* POWER */
+ { 9, MPP_GPIO }, /* USB_PWR */
+ { 10, MPP_GPIO }, /* AUTO_POWER */
+ { 11, MPP_UNUSED }, /* LED_ETH dummy */
+ { 12, MPP_UNUSED },
+ { 13, MPP_UNUSED },
+ { 14, MPP_GPIO }, /* FAN_HIGH */
+ { 15, MPP_UNUSED },
+ { 16, MPP_UNUSED },
+ { 17, MPP_GPIO }, /* FAN_LOW */
+ { 18, MPP_UNUSED },
+#ifdef CONFIG_MACH_LINKSTATION_PRODUO_REV1
+ { 19, MPP_UNUSED },
+#endif
+#ifdef CONFIG_MACH_LINKSTATION_PRODUO_REV2
+ { 19, MPP_GPIO }, /* USB_PWR2 */
+#endif
+ { -1 },
+};
+
+static void __init lsproduo_init(void)
+{
+ /*
+ * Setup basic Orion functions. Need to be called early.
+ */
+ orion5x_init();
+
+ orion5x_mpp_conf(lsproduo_mpp_modes);
+
+ /*
+ * Configure peripherals.
+ */
+ orion5x_ehci0_init();
+ orion5x_ehci1_init();
+ orion5x_eth_init(&lsproduo_eth_data);
+ orion5x_i2c_init();
+ orion5x_sata_init(&lsproduo_sata_data);
+ orion5x_uart0_init();
+ orion5x_xor_init();
+
+ orion5x_setup_dev_boot_win(LSPRODUO_NOR_BOOT_BASE,
+ LSPRODUO_NOR_BOOT_SIZE);
+ platform_device_register(&lsproduo_nor_flash);
+
+ platform_device_register(&lsproduo_button_device);
+
+ platform_device_register(&lsproduo_leds);
+
+ i2c_register_board_info(0, &lsproduo_i2c_rtc, 1);
+
+ /* enable USB power */
+ gpio_set_value(LSPRODUO_GPIO_USB_POWER, 1);
+
+#ifdef CONFIG_MACH_LINKSTATION_PRODUO_REV2
+ gpio_set_value(LSPRODUO_GPIO_USB_POWER2, 1);
+#endif
+
+ printk(KERN_INFO "Buffalo Linkstation Pro Duo fan driver loaded\n");
+ sprintf(lsproduo_fan_state, "full");
+ gpio_set_value(LSPRODUO_GPIO_FAN_LOW, 0);
+ gpio_set_value(LSPRODUO_GPIO_FAN_HIGH, 0);
+
+ lsproduo_proc_dir_root = proc_mkdir( "linkstation", NULL );
+ lsproduo_proc_dir_gpio = proc_mkdir( "gpio", lsproduo_proc_dir_root );
+ lsproduo_fan_proc_file = create_proc_entry( "fan", S_IRUGO, lsproduo_proc_dir_gpio );
+ if( lsproduo_fan_proc_file ) {
+ lsproduo_fan_proc_file->read_proc = lsproduo_fan_get;
+ lsproduo_fan_proc_file->write_proc = lsproduo_fan_set;
+ lsproduo_fan_proc_file->data = NULL;
+ } else
+ {
+ printk(KERN_INFO "Registration of fan device failed\n");
+ }
+
+ /* register power-off method */
+ pm_power_off = lsproduo_power_off;
+
+ pr_info("%s: finished\n", __func__);
+}
+
+#ifdef CONFIG_MACH_LINKSTATION_PRODUO_REV1
+MACHINE_START(LINKSTATION_PRODUO, "Buffalo Linkstation Pro Duo - Revision 1")
+ /* Maintainer: Manuel Bernhardt <prodigy7@gmail.com> */
+ .phys_io = ORION5X_REGS_PHYS_BASE,
+ .io_pg_offst = ((ORION5X_REGS_VIRT_BASE) >> 18) & 0xFFFC,
+ .boot_params = 0x00000100,
+ .init_machine = lsproduo_init,
+ .map_io = orion5x_map_io,
+ .init_irq = orion5x_init_irq,
+ .timer = &orion5x_timer,
+ .fixup = tag_fixup_mem32,
+MACHINE_END
+#endif
+
+#ifdef CONFIG_MACH_LINKSTATION_PRODUO_REV2
+MACHINE_START(LINKSTATION_PRODUO, "Buffalo Linkstation Pro Duo - Revision 2")
+ /* Maintainer: Manuel Bernhardt <prodigy7@gmail.com> */
+ .phys_io = ORION5X_REGS_PHYS_BASE,
+ .io_pg_offst = ((ORION5X_REGS_VIRT_BASE) >> 18) & 0xFFFC,
+ .boot_params = 0x00000100,
+ .init_machine = lsproduo_init,
+ .map_io = orion5x_map_io,
+ .init_irq = orion5x_init_irq,
+ .timer = &orion5x_timer,
+ .fixup = tag_fixup_mem32,
+MACHINE_END
+#endif
+

View File

@ -0,0 +1,254 @@
--- a/arch/arm/mach-kirkwood/include/mach/system.h 2010-02-09 20:57:19.000000000 +0800
+++ b/arch/arm/mach-kirkwood/include/mach/system.h 2010-08-03 19:01:14.000000000 +0800
@@ -9,6 +9,8 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H
+#include <linux/io.h>
+#include <asm/proc-fns.h>
#include <mach/bridge-regs.h>
static inline void arch_idle(void)
--- a/arch/arm/mach-kirkwood/Kconfig 2010-02-09 20:57:19.000000000 +0800
+++ b/arch/arm/mach-kirkwood/Kconfig 2010-08-04 10:34:53.000000000 +0800
@@ -87,6 +87,12 @@
Say 'Y' here if you want your kernel to support the
HP t5325 Thin Client.
+config MACH_LSWXL
+ bool "Buffalo LS-WXL Series"
+ help
+ Say 'Y' here if you want your kernel to support the
+ Buffalo LS-WXL Series.
+
endmenu
endif
--- a/arch/arm/mach-kirkwood/lswxl-setup.c 1970-01-01 07:30:00.000000000 +0730
+++ b/arch/arm/mach-kirkwood/lswxl-setup.c 2010-08-04 11:30:13.000000000 +0800
@@ -0,0 +1,183 @@
+/*
+ * arch/arm/mach-kirkwood/lswxl-setup.c
+ *
+ * Buffalo LS Kirkwood Series Setup
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#include <linux/kernel.h>
+#include <linux/gpio.h>
+#include <linux/gpio_keys.h>
+#include <linux/init.h>
+#include <linux/input.h>
+#include <linux/leds.h>
+#include <linux/platform_device.h>
+#include <linux/ata_platform.h>
+#include <linux/mv643xx_eth.h>
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+#include "include/mach/system.h"
+#include <mach/kirkwood.h>
+#include "common.h"
+#include "mpp.h"
+
+static struct mv643xx_eth_platform_data lswxl_ge00_data = {
+ .phy_addr = MV643XX_ETH_PHY_ADDR(0),
+};
+
+static struct mv643xx_eth_platform_data lswxl_ge01_data = {
+ .phy_addr = MV643XX_ETH_PHY_ADDR(8),
+};
+
+static unsigned int lswxl_mpp_config[] __initdata = {
+ MPP8_GPIO, /* HDD1 Error LED */
+ MPP28_GPIO, /* HDD1 Power */
+ MPP29_GPIO, /* HDD2 Power */
+ MPP34_GPIO, /* FUNC2 LED */
+ MPP36_GPIO, /* FUNC1 LED */
+ MPP37_GPIO, /* USB Vbus Power */
+ MPP38_GPIO, /* INFO LED */
+ MPP39_GPIO, /* POWER LED */
+ MPP40_GPIO, /* FAN Status */
+ MPP41_GPIO, /* FUNC Switch */
+ MPP42_GPIO, /* POWER Switch */
+ MPP43_GPIO, /* AUTO-POWER Switch*/
+ MPP46_GPIO, /* HDD1 Error LED*/
+ MPP47_GPIO, /* FAN High */
+ MPP48_GPIO, /* FAN Low */
+ MPP49_GPIO, /* ALARM LED */
+ 0
+};
+
+static struct mv_sata_platform_data lswxl_sata_data = {
+ .n_ports = 2,
+};
+
+static struct gpio_led lswxl_led_pins[] = {
+ {
+ .name = "func1",
+ .gpio = 36,
+ .active_low = 1,
+ },
+ {
+ .name = "func2",
+ .gpio = 34,
+ .active_low = 0,
+ },
+ {
+ .name = "alarm",
+ .gpio = 49,
+ .active_low = 1,
+ },
+ {
+ .name = "info",
+ .gpio = 38,
+ .active_low = 1,
+ },
+ {
+ .name = "power",
+ .gpio = 39,
+ .default_trigger = "default-on",
+ .active_low = 0,
+ },
+ {
+ .name = "hdd1",
+ .gpio = 8,
+ .active_low = 0,
+ },
+ {
+ .name = "hdd2",
+ .gpio = 46,
+ .active_low = 0,
+ },
+};
+
+static struct gpio_led_platform_data lswxl_led_data = {
+ .leds = lswxl_led_pins,
+ .num_leds = ARRAY_SIZE(lswxl_led_pins),
+};
+
+static struct platform_device lswxl_leds = {
+ .name = "leds-gpio",
+ .id = -1,
+ .dev = {
+ .platform_data = &lswxl_led_data,
+ }
+};
+
+#define LSWXL_GPIO_USB_VBUS_EN 37
+#define LSWXL_GPIO_KEY_FUNC 41
+
+static struct gpio_keys_button lswxl_buttons[] = {
+ {
+ .code = KEY_OPTION,
+ .gpio = LSWXL_GPIO_KEY_FUNC,
+ .desc = "Function Button",
+ .active_low = 1,
+ },
+};
+
+static struct gpio_keys_platform_data lswxl_button_data = {
+ .buttons = lswxl_buttons,
+ .nbuttons = ARRAY_SIZE(lswxl_buttons),
+};
+
+static struct platform_device lswxl_button_device = {
+ .name = "gpio-keys",
+ .id = -1,
+ .num_resources = 0,
+ .dev = {
+ .platform_data = &lswxl_button_data,
+ },
+};
+
+static void lswxl_power_off(void)
+{
+ arch_reset(0, NULL);
+}
+
+static void __init lswxl_init(void)
+{
+ /*
+ * Basic setup. Needs to be called early.
+ */
+ kirkwood_init();
+ kirkwood_mpp_conf(lswxl_mpp_config);
+
+ kirkwood_uart0_init();
+
+ if (gpio_request(LSWXL_GPIO_USB_VBUS_EN, "USB Power Enable") != 0 ||
+ gpio_direction_output(LSWXL_GPIO_USB_VBUS_EN, 1) != 0)
+ printk(KERN_ERR "can't set up USB Power Enable\n");
+ kirkwood_ehci_init();
+
+ kirkwood_ge00_init(&lswxl_ge00_data);
+ kirkwood_ge01_init(&lswxl_ge01_data);
+
+ kirkwood_sata_init(&lswxl_sata_data);
+
+ kirkwood_spi_init();
+
+ platform_device_register(&lswxl_leds);
+ platform_device_register(&lswxl_button_device);
+
+ /* register power-off method */
+ pm_power_off = lswxl_power_off;
+
+ pr_info("%s: finished\n", __func__);
+}
+
+
+
+MACHINE_START(LSWXL, "Buffalo LS-WXL")
+ .phys_io = KIRKWOOD_REGS_PHYS_BASE,
+ .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc,
+ .boot_params = 0x00000100,
+ .init_machine = lswxl_init,
+ .map_io = kirkwood_map_io,
+ .init_irq = kirkwood_init_irq,
+ .timer = &kirkwood_timer,
+MACHINE_END
--- a/arch/arm/mach-kirkwood/Makefile 2010-02-09 20:57:19.000000000 +0800
+++ b/arch/arm/mach-kirkwood/Makefile 2010-08-04 10:40:43.000000000 +0800
@@ -11,5 +11,6 @@
obj-$(CONFIG_MACH_TS41X) += ts41x-setup.o
obj-$(CONFIG_MACH_OPENRD) += openrd-setup.o
obj-$(CONFIG_MACH_T5325) += t5325-setup.o
+obj-$(CONFIG_MACH_LSWXL) += lswxl-setup.o
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
--- a/arch/arm/tools/mach-types 2010-02-09 20:57:19.000000000 +0800
+++ b/arch/arm/tools/mach-types 2010-08-04 11:19:52.000000000 +0800
@@ -541,6 +541,7 @@
av3xx MACH_AV3XX AV3XX 525
avila MACH_AVILA AVILA 526
pxa_mpm10 MACH_PXA_MPM10 PXA_MPM10 527
+lswxl MACH_LSWXL LSWXL 527
pxa_kyanite MACH_PXA_KYANITE PXA_KYANITE 528
sgold MACH_SGOLD SGOLD 529
oscar MACH_OSCAR OSCAR 530
--- a/arch/arm/mach-kirkwood/common.c 2010-08-05 03:02:22.000000000 +0000
+++ b/arch/arm/mach-kirkwood/common.c 2010-08-05 03:02:22.000000000 +0000
@@ -32,6 +32,7 @@
#include <plat/orion_nand.h>
#include <plat/orion_wdt.h>
#include <plat/time.h>
+#include <asm/mach-types.h>
#include "common.h"
/*****************************************************************************
@@ -853,9 +854,10 @@
kirkwood_pcie_id(&dev, &rev);
- if ((dev == MV88F6281_DEV_ID && (rev == MV88F6281_REV_A0 ||
+ if (((dev == MV88F6281_DEV_ID && (rev == MV88F6281_REV_A0 ||
rev == MV88F6281_REV_A1)) ||
- (dev == MV88F6282_DEV_ID))
+ (dev == MV88F6282_DEV_ID)) &&
+ !machine_is_lswxl()) /* LS-WXL is underclocked */
return 200000000;
return 166666667;

163
licenses/ejre-6 Normal file
View File

@ -0,0 +1,163 @@
<html>
<head>
<title>Java SE for Embedded 6</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="css/default.css">
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" rightmargin="10" bgcolor="#ffffff">
<a name="top"></a>
<div class="vnv1sunlogo"><a href="http://www.sun.com/"><img src="css/vnv1_sunlogo.gif" alt="sun.com" border="0"></a></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="100%"><div class="breadcrumb">EmbeddedCopyright.html</div></td>
<td valign="right" nowrap="nowrap"><div class="breadcrumb">June 10, 2010</div></td></tr>
</tbody>
</table>
<span class="sp20">&nbsp;</span><br>
<!-- BEGIN PAGETITLE -->
<div class="pagetitle2">Copyright</div>
<div class="pagetitle">Java SE for Embedded 6</div>
<!-- END PAGETITLE -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td><img src="css/a.gif" width="10" height="1" border="0" alt=" "></td>
<td><span class="sp10">&nbsp;</span><br><!-- MAIN CONTENT -->
<!-- BEGIN FRAGMENT | HR TAG -->
<div class="contentdivider"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tbody><tr><td><img src="css/a.gif" width="1" height="4" border="0" alt=" "></td></tr></tbody></table></div>
<!-- END FRAGMENT | HR TAG -->
<!--startindex-->
</p>
<p>Copyright</a> &copy; 1993, 2010, Oracle Corporation and/or its affiliates. All rights reserved.</p>
<p>This software and related documentation are provided under a license agreement
containing restrictions on use and disclosure and are protected by intellectual property
laws. Except as expressly permitted in your license agreement or allowed by law, you
may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute,
exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for
interoperability, is prohibited.</p>
<p>The information contained herein is subject to change without notice and is not warranted
to be error-free. If you find any errors, please report them to us in writing.</p>
<p>If this is software or related software documentation that is delivered to the U.S.
Government or anyone licensing it on behalf of the U.S. Government, the following
notice is applicable:</p>
<p>U.S. GOVERNMENT RIGHTS
Programs, software, databases, and related documentation and technical data delivered to
U.S. Government customers are "commercial computer software" or "commercial technical data"
pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental
regulations. As such, the use, duplication, disclosure, modification, and adaptation shall
be subject to the restrictions and license terms set forth in the applicable Government
contract, and, to the extent applicable by the terms of the Government contract, the
additional rights set forth in FAR 52.227-19, Commercial Computer Software License
(December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065.</p>
<p>This software or hardware is developed for general use in a variety of information
management applications. It is not developed or intended for use in any inherently
dangerous applications, including applications which may create a risk of personal injury.
If you use this software or hardware in dangerous applications, then you shall be
responsible to take all appropriate fail-safe, backup, redundancy, and other measures to
ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any
damages caused by use of this software or hardware in dangerous applications.</p>
<p>Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names
may be trademarks of their respective owners.</p>
<p>AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered
trademarks of Advanced Micro Devices. Intel and Intel Xeon are trademarks or registered
trademarks of Intel Corporation. All SPARC trademarks are used under license and are
trademarks or registered trademarks of SPARC International, Inc. UNIX is a registered
trademark licensed through X/Open Company, Ltd.</p>
<p>This software or hardware and documentation may provide access to or information on
content, products, and services from third parties. Oracle Corporation and its affiliates
are not responsible for and expressly disclaim all warranties of any kind with respect to
third-party content, products, and services. Oracle Corporation and its affiliates will
not be responsible for any loss, costs, or damages incurred due to your access to or use
of third-party content, products, or services.</p>
<p>Copyright © 1993, 2010, Oracle et/ou ses affiliés. Tous droits réservés.</p>
<p>Ce logiciel et la documentation qui l'accompagne sont protégés par les lois sur la
propriété intellectuelle. Ils sont concédés sous licence et soumis à des restrictions
d'utilisation et de divulgation. Sauf disposition de votre contrat de licence ou de la loi,
vous ne pouvez pas copier, reproduire, traduire, diffuser, modifier, breveter, transmettre,
distribuer, exposer, exécuter, publier ou afficher le logiciel, même partiellement, sous
quelque forme et par quelque procédé que ce soit. Par ailleurs, il est interdit de
procéder à toute ingénierie inverse du logiciel, de le désassembler ou de le décompiler,
excepté à des fins d'interopérabilité avec des logiciels tiers ou tel que prescrit par
la loi.</p>
<p>Les informations fournies dans ce document sont susceptibles de modification sans préavis.
Par ailleurs, Oracle Corporation ne garantit pas qu'elles soient exemptes d'erreurs et vous
invite, le cas échéant, à lui en faire part par écrit.</p>
<p>Si ce logiciel, ou la documentation qui l'accompagne, est concédé sous licence au
Gouvernement des Etats-Unis, ou à toute entité qui délivre la licence de ce logiciel ou
l'utilise pour le compte du Gouvernement des Etats-Unis, la notice suivante s'applique :</p>
<p>U.S. GOVERNMENT RIGHTS
Programs, software, databases, and related documentation and technical data delivered to
U.S. Government customers are "commercial computer software" or "commercial technical data"
pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental
regulations. As such, the use, duplication, disclosure, modification, and adaptation shall
be subject to the restrictions and license terms set forth in the applicable Government
contract, and, to the extent applicable by the terms of the Government contract, the
additional rights set forth in FAR 52.227-19, Commercial Computer Software License
(December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065.</p>
<p>Ce logiciel ou matériel a été développé pour un usage général dans le cadre d'applications
de gestion des informations. Ce logiciel ou matériel n'est pas conçu ni n'est destiné à être
utilisé dans des applications à risque, notamment dans des applications pouvant causer des
dommages corporels. Si vous utilisez ce logiciel ou matériel dans le cadre
d'applications dangereuses, il est de votre responsabilité de prendre toutes les mesures de
secours, de sauvegarde, de redondance et autres mesures nécessaires à son utilisation
dans des conditions optimales de sécurité. Oracle Corporation et ses affiliés déclinent
toute responsabilité quant aux dommages causés par l'utilisation de ce logiciel ou matériel
pour ce type d'applications.</p>
<p>Oracle et Java sont des marques déposées d'Oracle Corporation et/ou de ses affiliés. Tout
autre nom mentionné peut correspondre à des marques appartenant à d'autres
propriétaires qu'Oracle.</p>
<p>AMD, Opteron, le logo AMD et le logo AMD Opteron sont des marques ou des marques
déposées d'Advanced Micro Devices. Intel et Intel Xeon sont des marques ou des
marques déposées d'Intel Corporation. Toutes les marques SPARC sont utilisées sous
licence et sont des marques ou des marques déposées de SPARC International, Inc.
UNIX est une marque déposée concédée sous licence par X/Open Company, Ltd.</p>
<p>Ce logiciel ou matériel et la documentation qui l'accompagne peuvent fournir des
informations ou des liens donnant accès à des contenus, des produits et des services
émanant de tiers. Oracle Corporation et ses affiliés déclinent toute responsabilité ou
garantie expresse quant aux contenus, produits ou services émanant de tiers. En aucun
cas, Oracle Corporation et ses affiliés ne sauraient être tenus pour responsables des pertes
subies, des coûts occasionnés ou des dommages causés par l'accès à des contenus,
produits ou services tiers, ou à leur utilisation.</p>
<!--stopindex-->
<!-- BEGIN FRAGMENT | HR TAG -->
<div class="contentdivider"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="grey4"><tbody><tr><td><img src="css/a.gif" width="1" height="4" border="0" alt=" "></td></tr></tbody></table></div>
<!-- END FRAGMENT | HR TAG -->
</td>
<td><img src="css/a.gif" width="10" height="1" border="0" alt=" "></td></tr>
</tbody></table>
</body>
</html>