tizen beta release
authorKibum Kim <kb0929.kim@samsung.com>
Mon, 27 Feb 2012 12:16:44 +0000 (21:16 +0900)
committerKibum Kim <kb0929.kim@samsung.com>
Mon, 27 Feb 2012 12:16:44 +0000 (21:16 +0900)
22 files changed:
LICENSE [new file with mode: 0644]
NOTICE [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0755]
debian/copyright [new file with mode: 0644]
debian/info [new file with mode: 0644]
debian/postinst [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/system-plugin-slp.install.in [new file with mode: 0644]
etc/fstab [new file with mode: 0755]
etc/inittab [new file with mode: 0755]
etc/mdev.conf [new file with mode: 0644]
etc/mtools.conf [new file with mode: 0755]
etc/rc.d/rc.firstboot [new file with mode: 0755]
etc/rc.d/rc.shutdown [new file with mode: 0755]
etc/rc.d/rc.sysinit [new file with mode: 0755]
lib/systemd/system/local-fs.target.wants/mnt-csc.automount [new file with mode: 0755]
lib/systemd/system/mnt-csc.automount [new file with mode: 0755]
lib/udev/rules.d/99-serial-console.rules [new file with mode: 0755]
packaging/system-plugin-slp.spec [new file with mode: 0755]
usr/bin/save_blenv [new file with mode: 0755]

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..a06208b
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,204 @@
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
diff --git a/NOTICE b/NOTICE
new file mode 100644 (file)
index 0000000..ded3804
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1 @@
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..53fa76d
--- /dev/null
@@ -0,0 +1,40 @@
+system-plugin-slp (0.0.1-5) unstable; urgency=low
+
+  * Modify license file
+  * Git: slp/pkgs/s/system-plugin-slp
+  * Tag: system-plugin-slp_0.0.1-5
+
+ -- Yeongil Jang <yg0577.jang@samsung.com>  Mon, 20 Feb 2012 11:36:15 +0900
+
+system-plugin-slp (0.0.1-4) unstable; urgency=low
+
+  * Code cleanup: remove an unnecesary file
+  * Git: slp/pkgs/s/system-plugin-slp
+  * Tag: system-plugin-slp_0.0.1-4
+
+ -- Wonil Choi <wonil22.choi@samsung.com>  Thu, 02 Feb 2012 16:10:06 +0900
+
+system-plugin-slp (0.0.1-3) unstable; urgency=low
+
+  * Code cleanup: remove unnecesary and commented codes
+  * Git: slp/pkgs/s/system-plugin-slp
+  * Tag: system-plugin-slp_0.0.1-3
+
+ -- Wonil Choi <wonil22.choi@samsung.com>  Thu, 22 Dec 2011 18:25:01 +0900
+
+system-plugin-slp (0.0.1-2) unstable; urgency=low
+
+  * Release 0.0.1-2
+  * Boot modem on background to reduce booting time
+  * Git: 165.213.180.234:slp/pkgs/s/system-plugin-slp
+  * Tag: system-plugin-slp_0.0.1-2
+
+ -- Yeongil Jang <yg0577.jang@samsung.com>  Thu, 17 Nov 2011 15:09:29 +0900
+
+system-plugin-slp (0.0.1-1) unstable; urgency=low
+
+  * Initial release. Copied from system-plugin-sdk
+  * Git: 165.213.180.234:slp/pkgs/s/system-plugin-slp
+  * Tag: system-plugin-slp_0.0.1-1
+
+ -- Hyunsuk Oh <hs1120.oh@samsung.com>  Mon, 31 Oct 2011 16:50:38 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100755 (executable)
index 0000000..02c879a
--- /dev/null
@@ -0,0 +1,15 @@
+Source: system-plugin-slp
+Section: misc
+Priority: extra
+Maintainer: Wonil Choi <wonil22.choi@samsung.com>
+Uploaders: Wonil Choi <wonil22.choi@samsung.com>
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
+
+Package: system-plugin-slp
+Architecture: armel
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Pre-Depends: base-files, sysvinit
+Replaces: base-files, sysvinit
+Description: system-plugin for Clean SDK
+ system-plugin for Clean SDK
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..8da86e2
--- /dev/null
@@ -0,0 +1,15 @@
+Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact: Wonil Choi <wonil22.choi@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/debian/info b/debian/info
new file mode 100644 (file)
index 0000000..fb2beba
--- /dev/null
@@ -0,0 +1,3 @@
+etc/.info
+etc/.info/system.info
+etc/.info/rootfs.info
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..a0e82a4
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+    cp -af /usr/share/system-plugin-slp/* /
+fi
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..05beb4b
--- /dev/null
@@ -0,0 +1,90 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PREFIX ?= 
+DATADIR ?= /opt
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+       touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       # Add here commands to compile the package.
+
+       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
+               cat $$f > $${f%.in}; \
+               sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
+       done
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+#      -$(MAKE) clean
+
+       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
+               rm -f $${f%.in}; \
+       done
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       mkdir -p $(CURDIR)/debian/tmp$(PREFIX)
+       mkdir -p debian/tmp/usr/share/system-plugin-slp
+       cp -a $(CURDIR)/etc debian/tmp/usr/share/system-plugin-slp
+       cp -a $(CURDIR)/usr debian/tmp
+       cp -a $(CURDIR)/lib debian/tmp
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs
+       dh_installexamples
+       dh_install --sourcedir=debian/tmp
+#      dh_installmenu
+#      dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman
+       dh_link
+#      dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+       dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/debian/system-plugin-slp.install.in b/debian/system-plugin-slp.install.in
new file mode 100644 (file)
index 0000000..f4bee4c
--- /dev/null
@@ -0,0 +1 @@
+@PREFIX@/*
diff --git a/etc/fstab b/etc/fstab
new file mode 100755 (executable)
index 0000000..63d5d5d
--- /dev/null
+++ b/etc/fstab
@@ -0,0 +1,14 @@
+#<file system> <mount point>   <type>  <options>       <dump>  <pass>
+none           /proc           proc    defaults        0 0
+#none          /dev/pts        devpts  mode=0622       0 0
+tmpfs           /tmp            tmpfs   defaults        0 0
+tmpfs           /var           tmpfs   defaults        0 0
+none           /sys            sysfs   defaults        0 0
+
+# For new partition - 2011/10/06
+/dev/mmcblk0p1 /csa    ext4    defaults        0 0
+/dev/mmcblk0p2 /boot   ext4,vfat       defaults        0 0
+/dev/mmcblk0p5 /       ext4    defaults        0 0
+/dev/mmcblk0p6 /opt    ext4    defaults        0 0
+/dev/mmcblk0p7 /mnt/csc ext4   defaults,noauto 0 0
+/dev/mmcblk0p8 /opt/media vfat uid=0,gid=0,dmask=0000,fmask=0000,iocharset=iso8859-1,utf8,shortname=mixed      0 0
diff --git a/etc/inittab b/etc/inittab
new file mode 100755 (executable)
index 0000000..efced0c
--- /dev/null
@@ -0,0 +1,27 @@
+#System startup
+si::sysinit:/etc/rc.d/rc.sysinit
+net::once:/etc/rc.d/rc.network
+
+id:1:initdefault:
+
+# Console
+#ttyS0::respawn:/bin/sh
+con:12345:respawn:/sbin/getty -L 115200 ttySAC2 vt100
+#::askfirst:/bin/sh 
+
+#Logging , move to rc.sysinit
+#::sysinit:/bin/cp -rf /var/log/messages /var/log/messages.prev
+#::sysinit:/bin/cp -rf /var/log/messages.0 /var/log/messages.0.prev
+#::sysinit:/bin/touch /var/log/messages
+#::once:/sbin/syslogd
+#::once:/sbin/klogd
+
+#System shutdown
+#ca:12345:ctrlaltdel:/sbin/reboot 
+bye:06:wait:/etc/rc.d/rc.shutdown 
+rebt:6:wait:/sbin/reboot -d -f -i
+
+# Frambuffer Console
+#ttyS1::respawn:/bin/sh
+#tty1::respawn:/bin/sh
+#tty2::respawn:/bin/sh
diff --git a/etc/mdev.conf b/etc/mdev.conf
new file mode 100644 (file)
index 0000000..8376ef3
--- /dev/null
@@ -0,0 +1,22 @@
+audio                  0:5 0666
+console                        0:5 0600
+controlC[0-9]          0:0 0660 @cp -R /dev/$MDEV /dev/snd/
+dsp                    0:5 0666
+event[0-9]             0:0 0600
+fb                     0:5 0666
+nfs                    0:5 0770
+null                   0:0 0777
+pcmC[0-1]D[0-9][a-z]   0:0 0660 @mv /dev/$MDEV /dev/snd/
+timer                  0:0 0660 @mv /dev/$MDEV /dev/snd/
+rtc                    0:0 0666
+tty                    0:5 0660
+tty0*                  0:5 0660
+tty1*                  0:5 0660
+tty2*                  0:5 0660
+tty3*                  0:5 0660
+tty4*                  0:5 0660
+tty5*                  0:5 0660
+tty6*                  0:5 0660
+ttyS*                  0:5 0640
+urandom                        0:0 0444
+zero                   0:0 0666
diff --git a/etc/mtools.conf b/etc/mtools.conf
new file mode 100755 (executable)
index 0000000..3cf0aa7
--- /dev/null
@@ -0,0 +1,66 @@
+# Example mtools.conf files.  Uncomment the lines which correspond to
+# your architecture and comment out the "SAMPLE FILE" line below
+# SAMPLE FILE
+
+# # Linux floppy drives
+# drive a: file="/dev/fd0" exclusive
+# drive b: file="/dev/fd1" exclusive
+
+# # First SCSI hard disk partition
+# drive c: file="/dev/sda1"
+
+# # First IDE hard disk partition
+# drive c: file="/dev/hda1"
+
+# # dosemu floppy image
+# drive m: file="/var/lib/dosemu/diskimage"
+
+# # dosemu hdimage
+# drive n: file="/var/lib/dosemu/diskimage" offset=3840
+
+# # Atari ramdisk image
+# drive o: file="/tmp/atari_rd" offset=136
+
+# # ZIP disk for Solaris:
+# Drive X is ZIP-100 at target 5
+# drive X: file="/dev/rdsk/c0t5d0s2" partition=4 scsi=1 nodelay
+
+# # ZIP disk for SunOS:
+# # Zip drive is at target 5, which default kernel calls tape st1 !!
+# drive Y: file="/dev/rsd5c" partition=4 scsi=1 nodelay
+
+# # autoselect zip drive/floppy on HP-UX 9/10
+#    drive a: file="/dev/rdsk/c201d5"      exclusive partition=4
+#    drive a: file="/dev/rdsk/c201d5s0"    exclusive partition=4
+#    drive a: file="/dev/rfloppy/c201d0s0" exclusive
+
+#          A/UX target 5 on 1st scsi bus   jaz or zip
+# drive X: file="/dev/rdsk/c105d0s31"      partition=4
+
+
+# Some examples for BeOS.
+# floppy drive. hardcoded in devices.c, so no real need to define it here
+#drive a: file="/dev/floppy_disk" exclusive
+# ZIP drive on SCSI ID 6
+#drive z: file="/dev/scsi_disk_060" offset=16384 fat_bits=16                        
+
+# SCO Unix 3.2v4
+# # Floppy disk drives
+#
+# drive a: file="/dev/install" exclusive
+# drive b: file="/dev/install1" exclusive
+#  
+# # SCSI hard disk partitions
+#  
+# drive c: file="/dev/dsk/0sC"
+# drive d: file="/dev/dsk/0sD"
+# drive e: file="/dev/dsk/0sE"
+drive f: file="/dev/mmcblk0p1"
+# drive g: file="/dev/dsk/0sG"
+# drive h: file="/dev/dsk/0sH"
+
+mtools_skip_check=1
+
+# # uncomment the following line to display all file names in lower
+# # case by default
+# mtools_lower_case=1
diff --git a/etc/rc.d/rc.firstboot b/etc/rc.d/rc.firstboot
new file mode 100755 (executable)
index 0000000..87e7947
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+#/sbin/ldconfig -f /opt/etc/ld.so.conf -C /opt/etc/ld.so.cache
+/sbin/ldconfig
+
+# for /etc/.info/system.info
+/bin/sysinfo
+
+# Check 3-touchkey firmware
+/lib/firmware/firmware_upgrade_touchkey.sh
+
+ln -s /opt/etc/X11/xorg.conf.d.default /opt/etc/X11/xorg.conf.d
+
+# Copy alsa scenario file for sound path temporary
+if [ ! -e /opt/etc/sound ]; then
+       mkdir -p /opt/etc/sound
+fi
+cp -r /usr/share/ascenario/default /opt/etc/sound/default
+cp -r /usr/share/ascenario/default.conf /opt/etc/sound/default.conf
+
+chown root:soundpath  /opt/etc/sound/default.conf
+chown -R root:soundpath  /opt/etc/sound/default
+
+if [ -e /opt/system/csc/.factoryreset ]; then
+       rm -f /opt/system/csc/.factoryreset
+fi
+sync
diff --git a/etc/rc.d/rc.shutdown b/etc/rc.d/rc.shutdown
new file mode 100755 (executable)
index 0000000..ada6bf6
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+export DISPLAY=:0
+killall power_manager
+killall -9 udevd
+killall -9 xinit
+
+rm -rf /tmp/vip/*
+rm -rf /tmp/permanent/*
+
+echo "Run Shutdown animation..."
+nice -n -15 /usr/bin/boot-animation --offmsg " " &
+sleep 1
+
+echo "Stopping indicator..."
+killall -9 indicator
+
+# factory resetting...
+# flag set by factory-reset.sh
+if [ -f /opt/.factoryreset ]; then
+       /usr/bin/run-factory-reset.sh
+fi
+
+
diff --git a/etc/rc.d/rc.sysinit b/etc/rc.d/rc.sysinit
new file mode 100755 (executable)
index 0000000..9f7c1f6
--- /dev/null
@@ -0,0 +1,172 @@
+#!/bin/sh
+
+# Color set for ANSI TERM
+_R='\033[0;31;1m'      #Red
+_G='\033[0;32;1m'      #Green
+_Y='\033[0;33;1m'      #Yellow
+C_='\033[0m'           #Color off
+
+
+echo -e "[${_G}rc.sysinit : script starts${C_}]"
+echo -e "[${_G}mount...${C_}]"
+mount -t proc none /proc
+mount -t tmpfs tmpfs /tmp
+mount -t tmpfs tmpfs /var
+mount -t sysfs none /sys
+mount -t tmpfs tmpfs /dev  # remount dev to make it writable
+mkdir -p /dev/pts
+mkdir -p /dev/shm
+mount -t tmpfs none /dev/shm
+mount -t devpts devpts /dev/pts
+mount -t debugfs none /sys/kernel/debug
+
+echo -e "[${_G}prepare device node${C_}]"
+if [ ! -e /dev/snd ]; then
+       mkdir /dev/snd
+fi
+
+mdev -s
+mknod /dev/ttySAC1 c 204 65 # UART1 device node for GPS (requested by youngae.kang)
+mknod /dev/ttySAC2 c 204 66
+
+# check special booting mode.
+/bin/check-booting-mode.sh
+if [ $? -eq 0 ]; then
+       echo -e "${_R}[ Special Booting mode ]${C_}"
+       for i in /etc/rc.d/rc2.d/*; do
+               echo -e "${_G}[${i} start]${C_}"
+               $i start
+       done
+       exit 0
+fi
+
+# mount
+mount -a
+
+echo -e "[${_G}udev start${C_}]"
+/sbin/udevd --daemon
+/sbin/udevadm trigger --subsystem-match=iio
+
+echo -e "[${_G}create base directory in /opt, /var${C_}]"
+# construct directory hierarchy
+mkdir -p /opt/var/log/apt
+ln -s /opt/var/log /var/log
+mkdir -p /opt/var/lib
+ln -s /opt/var/lib /var/lib            # for apt
+mkdir -p /opt/var/cache
+ln -s /opt/var/cache /var/cache                # for apt
+mkdir -p /var/run
+
+
+if [ ! -e /opt/etc/.firstboot ]; then
+       echo -e "[${_Y}rc.firstboot${C_}]"
+       /etc/rc.d/rc.firstboot
+       touch /opt/etc/.firstboot
+fi
+
+echo -e "[${_G}set device node perm & security${C_}]"
+# Set device node permissions for security
+chown 0:6501 /dev/video1
+chown 0:6501 /dev/s3c-jpg
+#chmod 666 /dev/pvrsrvkm
+chown 0:6509 /dev/log_main
+chown 0:6509 /dev/log_events
+chown 0:6509 /dev/log_radio
+chown :audio /dev/snd/
+chmod 775 /dev/snd/
+chown :audio /dev/snd/controlC0
+chown :audio /dev/snd/pcmC0D0p
+chown :audio /dev/snd/pcmC0D1p
+chown :audio /dev/snd/pcmC0D2p
+chown :audio /dev/snd/pcmC0D3p
+chown :audio /dev/snd/timer
+chown 0:6508 /dev/snd/pcmC0D0c
+chown 0:6508 /dev/snd/pcmC0D1c
+chown 0:6508 /dev/snd/pcmC0D2c
+chown 0:6508 /dev/snd/pcmC0D3c
+chown 0:6510 /dev/s5p-mfc
+chown 0:6510 /dev/video5
+chown 0:6510 /dev/video6
+chmod 666 /dev/random
+chmod 666 /dev/urandom
+chown :video /dev/fb0
+chown :video /dev/video0
+chown :video /dev/video2
+chown :video /dev/video3
+chown :6512 /dev/radio0
+chown :6702 /sys/class/backlight/*/brightness
+# change node's owner for torch light
+chown :6703 /sys/class/leds/leds-torch/brightness
+chmod 664 /sys/class/backlight/*/brightness
+# change files permission for 3D application
+chmod 666 /dev/ump
+chmod 666 /dev/mali
+
+# Set gst-openmax configure file
+export OMX_CONFIG=/opt/etc/gst-openmax.conf
+
+echo -e "[${_G}make gstreamer registery${C_}]"
+# Make gst registry
+export GST_REGISTRY=/opt/etc/.gstreamer-0.10/registry.bin.arm
+gst-inspect 1> /dev/null
+chmod 655 /opt/etc/.gstreamer-0.10
+chmod 644 /opt/etc/.gstreamer-0.10/registry.bin.arm
+
+# Modem power on
+echo -e "[${_Y}modem power on${C_}]"
+ln -s /boot/modem.bin /modem/modem.bin
+./usr/bin/xmm6260-boot &
+
+#touch sensor start
+echo 1 > /sys/class/i2c-adapter/i2c-2/2-004a/touchstart
+
+echo -e "[${_G}run profile${C_}]"
+# Run profile
+. /etc/profile
+
+if [ -e /opt/etc/.debugmode ]; then
+       echo "debug mode enabled"
+       # for bluescreen
+       export LD_PRELOAD=/usr/lib/libsys-assert.so
+       # enable coredump
+       echo "/opt/bs/core/core.%p" > /proc/sys/kernel/core_pattern
+       ulimit -c unlimited
+else
+       echo "debug mode disabled"
+fi
+
+/usr/bin/press 1 # wait input to stop running scripts
+if [ $? -eq 0 ]; then
+       echo "script is stopped"
+       # prepare usbnet before exit
+       insmod /usr/driver/g_ether.ko
+       sleep 1
+       ifconfig usb0 192.168.129.3 netmask 255.255.255.0
+       # Run all rc0 scripts
+       for i in /etc/rc.d/rc0.d/*; do
+               echo -e "[${_G}${i} start${C_}]"
+               $i start
+       done
+else
+       # Run all rc3 scripts
+       echo -e "[${_G}run all rc3 scripts${C_}]"
+       echo "normal boot"
+       for i in /etc/rc.d/rc3.d/*; do
+               echo -e "[${_G}${i} start${C_}]"
+               $i start
+       done
+fi
+
+echo -e "[${_G}set cpufreq governor${C_}]"
+# Set default cpufreq governor
+echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+
+# symbolic link
+if [ ! -e /opt/apps ]; then
+       echo -e "[${_G}link /opt/apps -> /opt/media/apps${C_}]"
+       ln -s /opt/media/apps /opt/apps
+fi
+
+# inhouse home-directory
+chown 5000:5000 /home/inhouse
+
diff --git a/lib/systemd/system/local-fs.target.wants/mnt-csc.automount b/lib/systemd/system/local-fs.target.wants/mnt-csc.automount
new file mode 100755 (executable)
index 0000000..96ec825
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=/mnt/csc Automount Point
+DefaultDependencies=no
+
+[Automount]
+Where=/mnt/csc
diff --git a/lib/systemd/system/mnt-csc.automount b/lib/systemd/system/mnt-csc.automount
new file mode 100755 (executable)
index 0000000..96ec825
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=/mnt/csc Automount Point
+DefaultDependencies=no
+
+[Automount]
+Where=/mnt/csc
diff --git a/lib/udev/rules.d/99-serial-console.rules b/lib/udev/rules.d/99-serial-console.rules
new file mode 100755 (executable)
index 0000000..ba90a46
--- /dev/null
@@ -0,0 +1,2 @@
+ACTION=="add|change", SUBSYSTEM=="tty", KERNEL=="ttySAC2", SYMLINK+="serial_console"
+SUBSYSTEM=="tty", KERNEL=="ttySAC[0-9]*", TAG+="systemd"
diff --git a/packaging/system-plugin-slp.spec b/packaging/system-plugin-slp.spec
new file mode 100755 (executable)
index 0000000..c674256
--- /dev/null
@@ -0,0 +1,44 @@
+Name:       system-plugin-slp
+Summary:    system-plugin for Clean SDK
+Version:    0.0.1
+License:    TO BE FILLED IN
+Group: System/Base
+Release: 60
+ExclusiveArch: %arm
+Source: %{name}-%{version}.tar.gz
+Requires: udev
+Requires: sysvinit
+
+%description
+Startup files
+
+%prep
+%setup -q
+
+%build
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}
+cp -a etc usr bin %{buildroot}
+
+
+
+%files
+/bin/change-booting-mode.sh
+/etc/fstab
+/etc/init.d/csa-tools
+/etc/inittab
+/etc/mdev.conf
+/etc/mtools.conf
+/etc/rc.d/rc5.d/S99zzzbackup_csa
+/etc/rc.d/rc.firstboot
+/etc/rc.d/rc.shutdown
+/etc/rc.d/rc.sysinit
+/usr/bin/mount_slp.sh
+/usr/bin/save_blenv
+/lib/udev/rules.d/99-serial-console.rules
+/lib/systemd/system/mnt-csc.automount
+/lib/systemd/system/local-fs.target.wants/mnt-csc.automount
+
diff --git a/usr/bin/save_blenv b/usr/bin/save_blenv
new file mode 100755 (executable)
index 0000000..75a1efe
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# save_blenv: Save env variables of bootloader
+#   Usage) save_blenv VARIABLE_NAME VALUE
+#
+# This script is for saving variables of bootloader which is required to be
+# shared between bootloader and platform. (ex) display brightness level)
+#
+# Manufacturer SHOULD modify this file adapted to their target and bootloader.
+# (If there is no shared variables, this file can be removed.)
+
+usage () {
+       echo "Not supported variable(s) or wrong usage"
+       echo "Usage: $0 NAME VALUE"
+       exit 1
+}
+
+_val="$2"
+case "$1" in
+# Supported variables for SLP : usbpath, uartpath, SLP_LCD_BRIGHT
+       usbpath | uartpath)
+               case "$2" in
+                       AP | ap)
+                               _val="ap"
+                               ;;
+                       CP | cp)
+                               _val="cp"
+                               ;;
+                       *)
+                               usage
+                               ;;
+               esac
+               ;;
+       SLP_LCD_BRIGHT)
+               if [ "z$2" == "z" ]; then
+                       usage
+               fi
+               ;;
+# NOT SUPPOTED
+       *)
+               usage
+               ;;
+esac
+
+# This is for uboot. If you don't use uboot, change following command.
+/usr/bin/fw_setenv $1 $_val
+
+exit 0
+