Added kernel and ramdisk to firmware tree
This commit is contained in:
parent
499c1e91e8
commit
912aea7dee
@ -1,4 +1,4 @@
|
||||
## prolin-xcb-tools
|
||||
## prolin-xcb-client
|
||||
Python-ADB fork in order to communicate with the Pax `xcbd` daemon. Supports natively directory listing, reading and writing. Port forwarding may be done trough the original `xcb` client.
|
||||
|
||||
## privesc.c
|
||||
|
1
firmware/tree/init
Symbolic link
1
firmware/tree/init
Symbolic link
@ -0,0 +1 @@
|
||||
startup/init
|
BIN
firmware/tree/kernel.bin
Normal file
BIN
firmware/tree/kernel.bin
Normal file
Binary file not shown.
1
firmware/tree/startup/bin/[
Symbolic link
1
firmware/tree/startup/bin/[
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/[[
Symbolic link
1
firmware/tree/startup/bin/[[
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/ash
Symbolic link
1
firmware/tree/startup/bin/ash
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
BIN
firmware/tree/startup/bin/busybox
Normal file
BIN
firmware/tree/startup/bin/busybox
Normal file
Binary file not shown.
1
firmware/tree/startup/bin/cat
Symbolic link
1
firmware/tree/startup/bin/cat
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/chgrp
Symbolic link
1
firmware/tree/startup/bin/chgrp
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/chmod
Symbolic link
1
firmware/tree/startup/bin/chmod
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/chown
Symbolic link
1
firmware/tree/startup/bin/chown
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/clear
Symbolic link
1
firmware/tree/startup/bin/clear
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/cp
Symbolic link
1
firmware/tree/startup/bin/cp
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/date
Symbolic link
1
firmware/tree/startup/bin/date
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/dmesg
Symbolic link
1
firmware/tree/startup/bin/dmesg
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/echo
Symbolic link
1
firmware/tree/startup/bin/echo
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/env
Symbolic link
1
firmware/tree/startup/bin/env
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/false
Symbolic link
1
firmware/tree/startup/bin/false
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/find
Symbolic link
1
firmware/tree/startup/bin/find
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
BIN
firmware/tree/startup/bin/gdbserver
Normal file
BIN
firmware/tree/startup/bin/gdbserver
Normal file
Binary file not shown.
BIN
firmware/tree/startup/bin/getprop
Normal file
BIN
firmware/tree/startup/bin/getprop
Normal file
Binary file not shown.
1
firmware/tree/startup/bin/hexdump
Symbolic link
1
firmware/tree/startup/bin/hexdump
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/id
Symbolic link
1
firmware/tree/startup/bin/id
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/kill
Symbolic link
1
firmware/tree/startup/bin/kill
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/killall
Symbolic link
1
firmware/tree/startup/bin/killall
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/less
Symbolic link
1
firmware/tree/startup/bin/less
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/ln
Symbolic link
1
firmware/tree/startup/bin/ln
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/lock
Symbolic link
1
firmware/tree/startup/bin/lock
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/lrb
Symbolic link
1
firmware/tree/startup/bin/lrb
Symbolic link
@ -0,0 +1 @@
|
||||
lrz
|
1
firmware/tree/startup/bin/lrx
Symbolic link
1
firmware/tree/startup/bin/lrx
Symbolic link
@ -0,0 +1 @@
|
||||
lrz
|
BIN
firmware/tree/startup/bin/lrz
Normal file
BIN
firmware/tree/startup/bin/lrz
Normal file
Binary file not shown.
1
firmware/tree/startup/bin/ls
Symbolic link
1
firmware/tree/startup/bin/ls
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/lsb
Symbolic link
1
firmware/tree/startup/bin/lsb
Symbolic link
@ -0,0 +1 @@
|
||||
lsz
|
1
firmware/tree/startup/bin/lsx
Symbolic link
1
firmware/tree/startup/bin/lsx
Symbolic link
@ -0,0 +1 @@
|
||||
lsz
|
BIN
firmware/tree/startup/bin/lsz
Normal file
BIN
firmware/tree/startup/bin/lsz
Normal file
Binary file not shown.
1
firmware/tree/startup/bin/md5sum
Symbolic link
1
firmware/tree/startup/bin/md5sum
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/mkdir
Symbolic link
1
firmware/tree/startup/bin/mkdir
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/mkfifo
Symbolic link
1
firmware/tree/startup/bin/mkfifo
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/mknod
Symbolic link
1
firmware/tree/startup/bin/mknod
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/mount
Symbolic link
1
firmware/tree/startup/bin/mount
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/mv
Symbolic link
1
firmware/tree/startup/bin/mv
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/netstat
Symbolic link
1
firmware/tree/startup/bin/netstat
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/nice
Symbolic link
1
firmware/tree/startup/bin/nice
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/ping
Symbolic link
1
firmware/tree/startup/bin/ping
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/ping6
Symbolic link
1
firmware/tree/startup/bin/ping6
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/ps
Symbolic link
1
firmware/tree/startup/bin/ps
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/pwd
Symbolic link
1
firmware/tree/startup/bin/pwd
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/rb
Symbolic link
1
firmware/tree/startup/bin/rb
Symbolic link
@ -0,0 +1 @@
|
||||
lrz
|
1
firmware/tree/startup/bin/readlink
Symbolic link
1
firmware/tree/startup/bin/readlink
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/rm
Symbolic link
1
firmware/tree/startup/bin/rm
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/rmdir
Symbolic link
1
firmware/tree/startup/bin/rmdir
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/rx
Symbolic link
1
firmware/tree/startup/bin/rx
Symbolic link
@ -0,0 +1 @@
|
||||
lrz
|
1
firmware/tree/startup/bin/rz
Symbolic link
1
firmware/tree/startup/bin/rz
Symbolic link
@ -0,0 +1 @@
|
||||
lrz
|
1
firmware/tree/startup/bin/sb
Symbolic link
1
firmware/tree/startup/bin/sb
Symbolic link
@ -0,0 +1 @@
|
||||
lsz
|
BIN
firmware/tree/startup/bin/setprop
Normal file
BIN
firmware/tree/startup/bin/setprop
Normal file
Binary file not shown.
1
firmware/tree/startup/bin/sh
Symbolic link
1
firmware/tree/startup/bin/sh
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/sleep
Symbolic link
1
firmware/tree/startup/bin/sleep
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/su
Symbolic link
1
firmware/tree/startup/bin/su
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/sx
Symbolic link
1
firmware/tree/startup/bin/sx
Symbolic link
@ -0,0 +1 @@
|
||||
lsz
|
1
firmware/tree/startup/bin/sync
Symbolic link
1
firmware/tree/startup/bin/sync
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/sz
Symbolic link
1
firmware/tree/startup/bin/sz
Symbolic link
@ -0,0 +1 @@
|
||||
lsz
|
1
firmware/tree/startup/bin/tee
Symbolic link
1
firmware/tree/startup/bin/tee
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/test
Symbolic link
1
firmware/tree/startup/bin/test
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/time
Symbolic link
1
firmware/tree/startup/bin/time
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/top
Symbolic link
1
firmware/tree/startup/bin/top
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/touch
Symbolic link
1
firmware/tree/startup/bin/touch
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/true
Symbolic link
1
firmware/tree/startup/bin/true
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/udhcpc6
Symbolic link
1
firmware/tree/startup/bin/udhcpc6
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/umount
Symbolic link
1
firmware/tree/startup/bin/umount
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/uname
Symbolic link
1
firmware/tree/startup/bin/uname
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/vi
Symbolic link
1
firmware/tree/startup/bin/vi
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
1
firmware/tree/startup/bin/wget
Symbolic link
1
firmware/tree/startup/bin/wget
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
BIN
firmware/tree/startup/bin/xlogin
Normal file
BIN
firmware/tree/startup/bin/xlogin
Normal file
Binary file not shown.
1
firmware/tree/startup/bin/yes
Symbolic link
1
firmware/tree/startup/bin/yes
Symbolic link
@ -0,0 +1 @@
|
||||
busybox
|
59
firmware/tree/startup/data-skeleton.sh
Normal file
59
firmware/tree/startup/data-skeleton.sh
Normal file
@ -0,0 +1,59 @@
|
||||
#!/bin/sh
|
||||
cd /data
|
||||
|
||||
/bin/rm -rf *
|
||||
|
||||
/bin/mkdir -p -m 0777 public tmp
|
||||
/bin/mkdir -p -m 0755 app appinfo etc opt
|
||||
/bin/mkdir -p -m 0750 property
|
||||
/bin/mkdir -p -m 0700 security
|
||||
/bin/mkdir -p -m 0775 etc/ts var/opt
|
||||
|
||||
# chown
|
||||
/bin/chown 1:1 etc/ts
|
||||
/bin/chown 999:999 opt appinfo var/opt
|
||||
/bin/chown 0:0 security
|
||||
|
||||
/bin/cat << EOD > /data/etc/group
|
||||
root:x:0:
|
||||
system:x:1:MAINAPP
|
||||
hwdev:x:2:system,SUBAPP,MAINAPP
|
||||
ped:x:3:
|
||||
nobody:x:900:
|
||||
SUBAPP:x:998:
|
||||
MAINAPP:x:999:
|
||||
EOD
|
||||
/bin/chmod 0644 /data/etc/group
|
||||
|
||||
/bin/cat << EOD > /data/etc/passwd
|
||||
root:x:0:0:root:/root:/bin/sh
|
||||
system:x:1:1:administrator:/:/bin/false
|
||||
hwdev:x:2:2:hardware access:/bin:/bin/false
|
||||
ped:x:3:3:ped:/:/bin/false
|
||||
nobody:x:900:900:nobody:/:/bin/false
|
||||
SUBAPP:x:998:998:SUBAPP user:/:/bin/false
|
||||
MAINAPP:x:999:999:MAINAPP user:/:/bin/sh
|
||||
EOD
|
||||
/bin/chmod 0644 /data/etc/passwd
|
||||
|
||||
/bin/cat << EOD > /data/etc/shadow
|
||||
root:$1$9vCTc/8H$lRt/1/QoEXNamPGzhVGar/:0:0:99999:7:::
|
||||
system:!$1$phzwtsL4$Qso0Z3H5eqoSUXwQ/hEAV1:0:0:99999:7:::
|
||||
hwdev:!$1$jDG2WeUj$uM3mIyvZ1rkd11J7izXt6.:0:0:99999:7:::
|
||||
ped:!$1$ZMsJtrjO$ibuMCiJvuyxQnrpkdptup/:0:0:99999:7:::
|
||||
SUBAPP:!$1$gJUpez2c$U0Qv9IyoUAgD5cTSumbKB0:0:0:99999:7:::
|
||||
MAINAPP:$1$wsdZqcgf$zD5mTBbZs.olBn7f02Wgf.:0:0:99999:7:::
|
||||
EOD
|
||||
/bin/chmod 0640 /data/etc/shadow
|
||||
|
||||
/bin/cat << EOD > /data/etc/ts/ts.conf
|
||||
module_raw input
|
||||
module pthres pmin=1
|
||||
module variance delta=30
|
||||
module dejitter delta=100
|
||||
module linear
|
||||
EOD
|
||||
/bin/chmod 0644 /data/etc/ts/ts.conf
|
||||
|
||||
/bin/touch /data/.ready
|
||||
/bin/sync
|
11
firmware/tree/startup/default.prop
Normal file
11
firmware/tree/startup/default.prop
Normal file
@ -0,0 +1,11 @@
|
||||
#
|
||||
# ADDITIONAL_DEFAULT_PROPERTIES
|
||||
#
|
||||
persist.sys.keyman.enable=1
|
||||
persist.sys.console.enable=1
|
||||
persist.sys.ipservice.enable=1
|
||||
persist.sys.modemd.enable=1
|
||||
persist.sys.xcb.rs232=/dev/ttydev
|
||||
persist.sys.xcb.tcp.port=-1
|
||||
persist.sys.xcb.enable=1
|
||||
|
2
firmware/tree/startup/firmware/bcm_ap6181/config.txt
Normal file
2
firmware/tree/startup/firmware/bcm_ap6181/config.txt
Normal file
@ -0,0 +1,2 @@
|
||||
dhd_master_mode=1
|
||||
pkt_filter_del=100 103 104 105
|
BIN
firmware/tree/startup/firmware/bcm_ap6181/fw_bcm40181a2.bin
Normal file
BIN
firmware/tree/startup/firmware/bcm_ap6181/fw_bcm40181a2.bin
Normal file
Binary file not shown.
BIN
firmware/tree/startup/firmware/bcm_ap6181/fw_bcm43438a0.bin
Normal file
BIN
firmware/tree/startup/firmware/bcm_ap6181/fw_bcm43438a0.bin
Normal file
Binary file not shown.
51
firmware/tree/startup/firmware/bcm_ap6181/nvram_ap6181.txt
Normal file
51
firmware/tree/startup/firmware/bcm_ap6181/nvram_ap6181.txt
Normal file
@ -0,0 +1,51 @@
|
||||
#AP6181_NVRAM_V1.1_01152013
|
||||
#adjuest PA parameter for g/n mode
|
||||
manfid=0x2d0
|
||||
prodid=0x492
|
||||
vendid=0x14e4
|
||||
devid=0x4343
|
||||
boardtype=0x0598
|
||||
|
||||
# Board Revision is P307, same nvram file can be used for P304, P305, P306 and P307 as the tssi pa params used are same
|
||||
#Please force the automatic RX PER data to the respective board directory if not using P307 board, for e.g. for P305 boards force the data into the following directory /projects/BCM43362/a1_labdata/boardtests/results/sdg_rev0305
|
||||
boardrev=0x1307
|
||||
boardnum=777
|
||||
xtalfreq=26000
|
||||
boardflags=0xa00
|
||||
sromrev=3
|
||||
wl0id=0x431b
|
||||
macaddr=00:90:4c:07:71:12
|
||||
aa2g=1
|
||||
ag0=2
|
||||
maxp2ga0=74
|
||||
cck2gpo=0x2222
|
||||
ofdm2gpo=0x66666666
|
||||
mcs2gpo0=0x7777
|
||||
mcs2gpo1=0x7777
|
||||
pa0maxpwr=56
|
||||
|
||||
#P207 PA params
|
||||
#pa0b0=5447
|
||||
#pa0b1=-658
|
||||
#pa0b2=-175<div></div>
|
||||
|
||||
#Same PA params for P304,P305, P306, P307
|
||||
|
||||
pa0b0=5447
|
||||
pa0b1=-607
|
||||
pa0b2=-160
|
||||
pa0itssit=62
|
||||
pa1itssit=62
|
||||
|
||||
|
||||
cckPwrOffset=5
|
||||
ccode=0
|
||||
rssismf2g=0xa
|
||||
rssismc2g=0x3
|
||||
rssisav2g=0x7
|
||||
triso2g=0
|
||||
noise_cal_enable_2g=0
|
||||
noise_cal_po_2g=0
|
||||
swctrlmap_2g=0x04040404,0x02020202,0x02020202,0x010101,0x1ff
|
||||
temp_add=29767
|
||||
temp_mult=425
|
54
firmware/tree/startup/firmware/bcm_ap6181/nvram_ap6212.txt
Normal file
54
firmware/tree/startup/firmware/bcm_ap6181/nvram_ap6212.txt
Normal file
@ -0,0 +1,54 @@
|
||||
#AP6212_NVRAM_V1.0_20140603
|
||||
# 2.4 GHz, 20 MHz BW mode
|
||||
|
||||
# The following parameter values are just placeholders, need to be updated.
|
||||
manfid=0x2d0
|
||||
prodid=0x0726
|
||||
vendid=0x14e4
|
||||
devid=0x43e2
|
||||
boardtype=0x0726
|
||||
boardrev=0x1101
|
||||
boardnum=22
|
||||
macaddr=00:90:4c:c5:12:38
|
||||
sromrev=11
|
||||
boardflags=0x00404201
|
||||
xtalfreq=26000
|
||||
nocrc=1
|
||||
ag0=255
|
||||
aa2g=1
|
||||
ccode=ALL
|
||||
|
||||
pa0itssit=0x20
|
||||
extpagain2g=0
|
||||
|
||||
#PA parameters for 2.4GHz, measured at CHIP OUTPUT
|
||||
pa2ga0=-168,7161,-820
|
||||
AvVmid_c0=0x0,0xc8
|
||||
cckpwroffset0=5
|
||||
|
||||
# PPR params
|
||||
maxp2ga0=90
|
||||
txpwrbckof=6
|
||||
cckbw202gpo=0x5555
|
||||
legofdmbw202gpo=0x77777777
|
||||
mcsbw202gpo=0xaaaaaaaa
|
||||
|
||||
# OFDM IIR :
|
||||
ofdmdigfilttype=7
|
||||
# PAPD mode:
|
||||
papdmode=2
|
||||
|
||||
il0macaddr=00:90:4c:c5:12:38
|
||||
wl0id=0x431b
|
||||
|
||||
#OOB parameters
|
||||
hostwake=0x40
|
||||
hostrdy=0x41
|
||||
usbrdy=0x03
|
||||
usbrdydelay=100
|
||||
deadman_to=0xffffffff
|
||||
# muxenab: 0x1 for UART enable, 0x10 for Host awake
|
||||
muxenab=0x10
|
||||
# CLDO PWM voltage settings - 0x4 - 1.1 volt
|
||||
#cldo_pwm=0x4
|
||||
|
BIN
firmware/tree/startup/firmware/lcd_240x320_r90.rle
Normal file
BIN
firmware/tree/startup/firmware/lcd_240x320_r90.rle
Normal file
Binary file not shown.
BIN
firmware/tree/startup/firmware/lcd_320x240.rle
Normal file
BIN
firmware/tree/startup/firmware/lcd_320x240.rle
Normal file
Binary file not shown.
BIN
firmware/tree/startup/firmware/lcd_320x240_r90.rle
Normal file
BIN
firmware/tree/startup/firmware/lcd_320x240_r90.rle
Normal file
Binary file not shown.
9
firmware/tree/startup/firmware/lcd_readme.txt
Normal file
9
firmware/tree/startup/firmware/lcd_readme.txt
Normal file
@ -0,0 +1,9 @@
|
||||
to make watermark active, write the line in init.xxx.rc file
|
||||
|
||||
symlink /startup/firmware/lcd_320x240_r90.rle /startup/firmware/lcd.watermark
|
||||
|
||||
lcd_320x240_r90.rle s800
|
||||
lcd_240x320_r90.rle s300,s900
|
||||
lcd_320x240.rle d200
|
||||
|
||||
|
12288
firmware/tree/startup/firmware/redpine/instructionSet
Normal file
12288
firmware/tree/startup/firmware/redpine/instructionSet
Normal file
File diff suppressed because it is too large
Load Diff
BIN
firmware/tree/startup/firmware/redpine/tadm
Normal file
BIN
firmware/tree/startup/firmware/redpine/tadm
Normal file
Binary file not shown.
BIN
firmware/tree/startup/firmware/redpine/taim
Normal file
BIN
firmware/tree/startup/firmware/redpine/taim
Normal file
Binary file not shown.
BIN
firmware/tree/startup/init
Normal file
BIN
firmware/tree/startup/init
Normal file
Binary file not shown.
169
firmware/tree/startup/init.Brazil.rc
Normal file
169
firmware/tree/startup/init.Brazil.rc
Normal file
@ -0,0 +1,169 @@
|
||||
on fs
|
||||
|
||||
sysclktz 0
|
||||
|
||||
loglevel 3
|
||||
|
||||
# setup the global environment
|
||||
export PATH /bin:/sbin:/usr/sbin:/usr/bin:/base/bin:/base/sbin:/opt/bin
|
||||
export GCONV_PATH /lib/gconv
|
||||
export DISPLAY :0.0
|
||||
|
||||
|
||||
symlink /startup/bin /bin
|
||||
symlink /startup/sbin /sbin
|
||||
|
||||
mkdir /tmp
|
||||
mount tmpfs tmpfs /tmp
|
||||
mkdir /tmp/run
|
||||
mkdir /tmp/lock
|
||||
chmod 1777 /tmp/lock
|
||||
|
||||
mkdir /var
|
||||
symlink /tmp /var/tmp
|
||||
symlink /tmp/run /var/run
|
||||
symlink /tmp/lock /var/lock
|
||||
|
||||
mkdir /base
|
||||
loadimg mtd@base /base
|
||||
|
||||
mkdir /data
|
||||
copy /proc/mtd /startup/mtd
|
||||
chmod 0444 /startup/mtd
|
||||
|
||||
check_and_mount_data
|
||||
|
||||
|
||||
on early-boot
|
||||
# create POSIX shared memory folder
|
||||
mkdir /dev/shm
|
||||
chmod 0777 /dev/shm
|
||||
mount tmpfs tmpfs /dev/shm
|
||||
|
||||
# restrict file permission under /usr/bin
|
||||
chmod 750 /usr/bin/modemd
|
||||
chmod 750 /usr/bin/pedd
|
||||
chmod 750 /usr/bin/ipservice
|
||||
chown root MAINAPP /usr/bin/crashd
|
||||
chmod 750 /usr/bin/crashd
|
||||
chown root root /usr/bin/devinfo
|
||||
chmod 755 /usr/bin/devinfo
|
||||
chown root MAINAPP /usr/bin/installer
|
||||
chmod 750 /usr/bin/installer
|
||||
chmod 750 /usr/bin/keyman
|
||||
# logcat, let it 755
|
||||
chown root MAINAPP /usr/bin/runapp
|
||||
chmod 750 /usr/bin/runapp
|
||||
chmod 750 /usr/bin/servicemanager
|
||||
chown root MAINAPP /usr/bin/tm
|
||||
chmod 750 /usr/bin/tm
|
||||
chown root MAINAPP /usr/bin/systemservice
|
||||
chmod 750 /usr/bin/systemservice
|
||||
chown root MAINAPP /usr/bin/ts_calibrate
|
||||
chmod 750 /usr/bin/ts_calibrate
|
||||
chown root MAINAPP /usr/bin/xcbd
|
||||
chmod 750 /usr/bin/xcbd
|
||||
|
||||
# ./captoi sys_ptrace
|
||||
setcap 0x00080000 /bin/gdbserver
|
||||
# ./captoi dac_override setgid setuid setfcap chown
|
||||
setcap 0x800000c3 /usr/bin/installer
|
||||
# ./captoi setgid setuid
|
||||
setcap 0x000000c0 /usr/bin/runapp
|
||||
# ./captoi setgid setuid
|
||||
setcap 0x000000c0 /bin/xlogin
|
||||
# ./captoi net_admin net_raw sys_boot sys_time sys_admin
|
||||
setcap 0x02603000 /usr/bin/tm
|
||||
# ./captoi sys_admin sys_ptrace
|
||||
setcap 0x00280000 /usr/bin/crashd
|
||||
# ./captoi net_admin net_raw sys_boot sys_time sys_admin
|
||||
setcap 0x02603000 /usr/bin/systemservice
|
||||
# ./captoi sys_boot sys_time
|
||||
setcap 0x02400000 /usr/bin/xcbd
|
||||
|
||||
|
||||
mkdir /data/tombstones
|
||||
chmod 770 /data/tombstones
|
||||
chown MAINAPP MAINAPP /data/tombstones
|
||||
|
||||
mkdir /data/security
|
||||
chmod 600 /data/security
|
||||
chown root root /data/security
|
||||
|
||||
symlink /base/lib /lib
|
||||
symlink /data/etc /etc
|
||||
symlink /data/opt /opt
|
||||
symlink /lib/gconv /usr/lib/gconv
|
||||
write /proc/sys/kernel/randomize_va_space 2
|
||||
|
||||
write /proc/sys/net/ipv4/tcp_keepalive_time 30
|
||||
write /proc/sys/net/ipv4/tcp_keepalive_intvl 15
|
||||
write /proc/sys/net/ipv4/tcp_keepalive_probes 5
|
||||
|
||||
setprop ro.pukmode 2
|
||||
|
||||
on boot
|
||||
# basic network init
|
||||
ifup lo
|
||||
hostname localhost
|
||||
domainname localdomain
|
||||
|
||||
# mount usbfs
|
||||
mkdir /dev/bus/usb
|
||||
mount usbfs none /dev/bus/usb devmode=0666
|
||||
|
||||
#u disk mount
|
||||
mkdir /mnt
|
||||
mount tmpfs tmpfs /mnt noatime noexec nosuid size=16k
|
||||
chown MAINAPP MAINAPP /mnt
|
||||
|
||||
# set RLIMIT_NICE to allow priorities from 19 to -20
|
||||
# RLIMIT_NICE 13
|
||||
setrlimit 13 40 40
|
||||
# RLIMIT_STACK 3
|
||||
setrlimit 3 2097152 2097152
|
||||
class_start core
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/bin/*
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/sbin/*
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/modules/*
|
||||
if property:ro.fac.prolin_debug_level=0 rmdir /startup/modules/
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/*.rc
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/*.sh
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/*.prop
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/firmware/lcd_*.rle
|
||||
if property:ro.fac.prolin_debug_level=0 rm startup/firmware/lcd.watermark
|
||||
if property:ro.fac.prolin_debug_level=0 rm startup/firmware/lcd_readme.txt
|
||||
if property:ro.fac.prolin_debug_level=1 rm /startup/modules/*
|
||||
if property:ro.fac.prolin_debug_level=1 rmdir /startup/modules/
|
||||
if property:ro.fac.prolin_debug_level=1 rm /startup/*.rc
|
||||
if property:ro.fac.prolin_debug_level=1 rm /startup/*.sh
|
||||
if property:ro.fac.prolin_debug_level=1 rm /startup/*.prop
|
||||
wait /tmp/.BINDER_SERVICE_MANAGER_DONE
|
||||
rm /tmp/.BINDER_SERVICE_MANAGER_DONE
|
||||
class_start default
|
||||
|
||||
## Daemon processes to be run by init.
|
||||
|
||||
service ueventd /startup/ueventd
|
||||
critical
|
||||
|
||||
service console-root /bin/sh
|
||||
console
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service console-MAINAPP /bin/sh
|
||||
console
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
on property:persist.sys.console.enable=1
|
||||
if property:ro.console=1 start console-MAINAPP
|
||||
if property:ro.console=2 start console-root
|
||||
|
||||
on property:persist.sys.console.enable=0
|
||||
if property:ro.console=1 stop console-MAINAPP
|
||||
if property:ro.console=2 stop console-root
|
||||
|
150
firmware/tree/startup/init.D200_M11_P11_GPRS.rc
Normal file
150
firmware/tree/startup/init.D200_M11_P11_GPRS.rc
Normal file
@ -0,0 +1,150 @@
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/D200_M11_P11_GPRS.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 255
|
||||
setprop ro.security_version 13.03.00
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/misc.ko
|
||||
#enable i2c1 adapter for pmu
|
||||
write /sys/devices/:amba:i2c1/enabled 1
|
||||
insmod /startup/modules/pmu_rn5t614x.ko
|
||||
#i2c-GPIO driver for touch key
|
||||
insmod /startup/modules/i2c-gpio.ko
|
||||
insmod /startup/modules/input_base.ko power_key=116 press_time=2
|
||||
#touch_key driver
|
||||
insmod /startup/modules/touch_key_cy8c20436a.ko
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_tda8026.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_as3911.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#key_value of back_light
|
||||
setprop ro.backlightkey 116
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb et/hernet driver
|
||||
insmod /startup/modules/asix.ko
|
||||
# create some symlinks
|
||||
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_smc.ko
|
||||
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
|
||||
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
167
firmware/tree/startup/init.D200_M11_P11_WIFI.rc
Normal file
167
firmware/tree/startup/init.D200_M11_P11_WIFI.rc
Normal file
@ -0,0 +1,167 @@
|
||||
on early-boot
|
||||
chmod 755 /usr/bin/wpa_supplicant
|
||||
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/D200_M11_P11_WIFI.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 255
|
||||
setprop ro.security_version 13.03.00
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/misc.ko
|
||||
#enable i2c1 adapter for pmu
|
||||
write /sys/devices/:amba:i2c1/enabled 1
|
||||
insmod /startup/modules/pmu_rn5t614x.ko
|
||||
#i2c-GPIO driver for touch key
|
||||
insmod /startup/modules/i2c-gpio.ko
|
||||
insmod /startup/modules/input_base.ko power_key=116 press_time=2
|
||||
#touch_key driver
|
||||
insmod /startup/modules/touch_key_cy8c20436a.ko
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_tda8026.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_as3911.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
#switch wifi power.NOTE¡êothis position must before the WIFI driver and after the PUM driver!
|
||||
write /sys/devices/platform/misc/wifi/power 1
|
||||
|
||||
#wifi
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_client.ko
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_master.ko firmware_path=/startup/firmware/redpine/ sdio_clock=20 driver_mode=1 eeprom_address_type=0 txiq_feature=0
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#key_value of back_light
|
||||
setprop ro.backlightkey 116
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb et/hernet driver
|
||||
insmod /startup/modules/asix.ko
|
||||
|
||||
# create some symlinks
|
||||
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_smc.ko
|
||||
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
|
||||
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
|
||||
on boot
|
||||
if property:ro.fac.wifi!= start wpa_supplicant
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
166
firmware/tree/startup/init.D200_M12_P12_WIFI.rc
Normal file
166
firmware/tree/startup/init.D200_M12_P12_WIFI.rc
Normal file
@ -0,0 +1,166 @@
|
||||
on early-boot
|
||||
chmod 755 /usr/bin/wpa_supplicant
|
||||
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
insmod /startup/modules/D200_M12_P12_WIFI.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 255
|
||||
setprop ro.security_version 13.03.00
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/misc.ko
|
||||
#enable i2c1 adapter for pmu
|
||||
write /sys/devices/:amba:i2c1/enabled 1
|
||||
insmod /startup/modules/pmu_rn5t614x.ko
|
||||
#i2c-GPIO driver for touch key
|
||||
insmod /startup/modules/i2c-gpio.ko
|
||||
insmod /startup/modules/input_base.ko power_key=116 press_time=2
|
||||
#touch_key driver
|
||||
insmod /startup/modules/touch_key_cy8c20436a.ko
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_tda8026.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_as3911.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
#switch wifi power.NOTE¡êothis position must before the WIFI driver and after the PUM driver!
|
||||
write /sys/devices/platform/misc/wifi/power 1
|
||||
|
||||
#wifi
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_client.ko
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_master.ko firmware_path=/startup/firmware/redpine/ sdio_clock=20 driver_mode=1 eeprom_address_type=0 txiq_feature=0
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#key_value of back_light
|
||||
setprop ro.backlightkey 116
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb et/hernet driver
|
||||
insmod /startup/modules/asix.ko
|
||||
|
||||
# create some symlinks
|
||||
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_smc.ko
|
||||
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
|
||||
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
|
||||
on boot
|
||||
if property:ro.fac.wifi!= start wpa_supplicant
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
168
firmware/tree/startup/init.D200_M13_P13_WIFI.rc
Normal file
168
firmware/tree/startup/init.D200_M13_P13_WIFI.rc
Normal file
@ -0,0 +1,168 @@
|
||||
#The hardware of M13_P13_WIFI is same as M12_P12_WIFI, only the structure is different.
|
||||
on early-boot
|
||||
chmod 755 /usr/bin/wpa_supplicant
|
||||
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
insmod /startup/modules/D200_M12_P12_WIFI.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 255
|
||||
setprop ro.security_version 13.03.00
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/misc.ko
|
||||
#enable i2c1 adapter for pmu
|
||||
write /sys/devices/:amba:i2c1/enabled 1
|
||||
insmod /startup/modules/pmu_rn5t614x.ko
|
||||
#i2c-GPIO driver for touch key
|
||||
insmod /startup/modules/i2c-gpio.ko
|
||||
insmod /startup/modules/input_base.ko power_key=116 press_time=2
|
||||
#touch_key driver
|
||||
insmod /startup/modules/touch_key_cy8c20436a.ko
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_tda8026.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_as3911.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
#switch wifi power.NOTE¡êothis position must before the WIFI driver and after the PUM driver!
|
||||
write /sys/devices/platform/misc/wifi/power 1
|
||||
|
||||
#wifi
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_client.ko
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_master.ko firmware_path=/startup/firmware/redpine/ sdio_clock=20 driver_mode=1 eeprom_address_type=0 txiq_feature=0
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#key_value of back_light
|
||||
setprop ro.backlightkey 116
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb et/hernet driver
|
||||
insmod /startup/modules/asix.ko
|
||||
|
||||
# create some symlinks
|
||||
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_smc.ko
|
||||
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
|
||||
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
|
||||
on boot
|
||||
if property:ro.fac.wifi!= start wpa_supplicant
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
168
firmware/tree/startup/init.D200_M14_P13_WIFI.rc
Normal file
168
firmware/tree/startup/init.D200_M14_P13_WIFI.rc
Normal file
@ -0,0 +1,168 @@
|
||||
#The hardware of M14_P13_WIFI is same as M12_P12_WIFI, only the structure is different.
|
||||
on early-boot
|
||||
chmod 755 /usr/bin/wpa_supplicant
|
||||
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
insmod /startup/modules/D200_M12_P12_WIFI.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 255
|
||||
setprop ro.security_version 13.03.00
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/misc.ko
|
||||
#enable i2c1 adapter for pmu
|
||||
write /sys/devices/:amba:i2c1/enabled 1
|
||||
insmod /startup/modules/pmu_rn5t614x.ko
|
||||
#i2c-GPIO driver for touch key
|
||||
insmod /startup/modules/i2c-gpio.ko
|
||||
insmod /startup/modules/input_base.ko power_key=116 press_time=2
|
||||
#touch_key driver
|
||||
insmod /startup/modules/touch_key_cy8c20436a.ko
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_tda8026.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_as3911.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
#switch wifi power.NOTE¡êothis position must before the WIFI driver and after the PUM driver!
|
||||
write /sys/devices/platform/misc/wifi/power 1
|
||||
|
||||
#wifi
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_client.ko
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_master.ko firmware_path=/startup/firmware/redpine/ sdio_clock=20 driver_mode=1 eeprom_address_type=0 txiq_feature=0
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#key_value of back_light
|
||||
setprop ro.backlightkey 116
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb et/hernet driver
|
||||
insmod /startup/modules/asix.ko
|
||||
|
||||
# create some symlinks
|
||||
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_smc.ko
|
||||
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
|
||||
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
|
||||
on boot
|
||||
if property:ro.fac.wifi!= start wpa_supplicant
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
155
firmware/tree/startup/init.D200_M22_P21_GPRS.rc
Normal file
155
firmware/tree/startup/init.D200_M22_P21_GPRS.rc
Normal file
@ -0,0 +1,155 @@
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
insmod /startup/modules/D200_M22_P21_GPRS.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 255
|
||||
setprop ro.security_version 13.03.00
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/misc.ko
|
||||
#enable i2c1 adapter for pmu
|
||||
write /sys/devices/:amba:i2c1/enabled 1
|
||||
insmod /startup/modules/pmu_rn5t614x.ko
|
||||
#i2c-GPIO driver for touch key
|
||||
insmod /startup/modules/i2c-gpio.ko
|
||||
insmod /startup/modules/input_base.ko power_key=116 press_time=2
|
||||
#touch_key driver
|
||||
insmod /startup/modules/touch_key_cy8c20436a.ko
|
||||
#power on gprs,must after the pmu driver
|
||||
if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_ncn8025.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_rc663.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
# bluetooth MFI for apple
|
||||
if property:ro.fac.bt=WLT2564 insmod /startup/modules/mfi_encrypt.ko
|
||||
if property:ro.fac.bt=01 insmod /startup/modules/mfi_encrypt.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#key_value of back_light
|
||||
setprop ro.backlightkey 116
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb ethernet driver
|
||||
insmod /startup/modules/asix.ko
|
||||
|
||||
# create some symlinks
|
||||
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
|
||||
if property:ro.fac.radio!= symlink /dev/ttyAMA3 /dev/ttywl
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_smc.ko
|
||||
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
|
||||
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
170
firmware/tree/startup/init.D200_M22_P21_WIFI.rc
Normal file
170
firmware/tree/startup/init.D200_M22_P21_WIFI.rc
Normal file
@ -0,0 +1,170 @@
|
||||
on early-boot
|
||||
chmod 755 /usr/bin/wpa_supplicant
|
||||
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
insmod /startup/modules/D200_M22_P21_WIFI.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 255
|
||||
setprop ro.security_version 13.03.00
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/misc.ko
|
||||
#enable i2c1 adapter for pmu
|
||||
write /sys/devices/:amba:i2c1/enabled 1
|
||||
insmod /startup/modules/pmu_rn5t614x.ko
|
||||
#i2c-GPIO driver for touch key
|
||||
insmod /startup/modules/i2c-gpio.ko
|
||||
insmod /startup/modules/input_base.ko power_key=116 press_time=2
|
||||
#touch_key driver
|
||||
insmod /startup/modules/touch_key_cy8c20436a.ko
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_ncn8025.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_rc663.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
# bluetooth MFI for apple
|
||||
if property:ro.fac.bt=WLT2564 insmod /startup/modules/mfi_encrypt.ko
|
||||
if property:ro.fac.bt=01 insmod /startup/modules/mfi_encrypt.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
#switch wifi power.NOTE¡êothis position must before the WIFI driver and after the PUM driver!
|
||||
write /sys/devices/platform/misc/wifi/power 1
|
||||
|
||||
#wifi
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_client.ko
|
||||
if property:ro.fac.wifi!= insmod /startup/modules/rsi_master.ko firmware_path=/startup/firmware/redpine/ sdio_clock=20 driver_mode=1 eeprom_address_type=0 txiq_feature=0
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#key_value of back_light
|
||||
setprop ro.backlightkey 116
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb et/hernet driver
|
||||
insmod /startup/modules/asix.ko
|
||||
|
||||
# create some symlinks
|
||||
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_smc.ko
|
||||
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
|
||||
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
|
||||
on boot
|
||||
if property:ro.fac.wifi!= start wpa_supplicant
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
201
firmware/tree/startup/init.D200_M40_P21_GPRS.rc
Normal file
201
firmware/tree/startup/init.D200_M40_P21_GPRS.rc
Normal file
@ -0,0 +1,201 @@
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
insmod /startup/modules/D200_M40_P21_GPRS.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 255
|
||||
setprop ro.security_version 13.03.00
|
||||
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/misc.ko
|
||||
|
||||
#AP6212 PWR ON
|
||||
write /sys/devices/platform/misc/wifi/cmd 0
|
||||
|
||||
#enable i2c1 adapter for pmu
|
||||
write /sys/devices/:amba:i2c1/enabled 1
|
||||
insmod /startup/modules/pmu_rn5t614x.ko
|
||||
|
||||
#AP6212 REG ON
|
||||
write /sys/devices/platform/misc/wifi/cmd 1
|
||||
|
||||
#i2c-GPIO driver for touch key
|
||||
insmod /startup/modules/i2c-gpio.ko
|
||||
insmod /startup/modules/input_base.ko power_key=116 press_time=2
|
||||
#touch_key driver
|
||||
insmod /startup/modules/touch_key_cy8c20436a.ko
|
||||
#power on gprs,must after the pmu driver
|
||||
if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_ncn8025.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_rc663.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
# bluetooth MFI for apple
|
||||
if property:ro.fac.bt=WLT2564 insmod /startup/modules/mfi_encrypt.ko
|
||||
if property:ro.fac.bt=01 insmod /startup/modules/mfi_encrypt.ko
|
||||
#touchscreen driver
|
||||
insmod /startup/modules/ads7846.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#key_value of back_light
|
||||
setprop ro.backlightkey 116
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb ethernet driver
|
||||
insmod /startup/modules/asix.ko
|
||||
|
||||
# create some symlinks
|
||||
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
|
||||
if property:ro.fac.radio!= symlink /dev/ttyAMA3 /dev/ttywl
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/input/event2 /dev/tp
|
||||
symlink /dev/input/event3 /dev/tp_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on fs
|
||||
export TSLIB_CONSOLEDEVICE none
|
||||
export TSLIB_FBDEVICE /dev/fb
|
||||
export TSLIB_TSDEVICE /dev/tp
|
||||
export TSLIB_CALIBFILE /etc/ts/pointercal
|
||||
export TSLIB_CONFFILE /etc/ts/ts.conf
|
||||
export TSLIB_PLUGINDIR /usr/lib/ts
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_smc.ko
|
||||
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
|
||||
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
|
||||
|
||||
on early-boot
|
||||
chmod 755 /usr/bin/wpa_supplicant_ap6181
|
||||
|
||||
#wifi
|
||||
wait /sys/class/mmc_host/mmc0/mmc0:0001
|
||||
if property:ro.fac.wifi=03 insmod /startup/modules/bcmdhd.ko firmware_path=/startup/firmware/bcm_ap6181/fw_bcm40181a2.bin nvram_path=/startup/firmware/bcm_ap6181/nvram_ap6181.txt iface_name=wlan0 config_path=/startup/firmware/bcm_ap6181/config.txt PAX_INT_GPIO=42
|
||||
if property:ro.fac.wifi=04 insmod /startup/modules/bcmdhd.ko firmware_path=/startup/firmware/bcm_ap6181/fw_bcm43438a0.bin nvram_path=/startup/firmware/bcm_ap6181/nvram_ap6212.txt iface_name=wlan0 config_path=/startup/firmware/bcm_ap6181/config.txt PAX_INT_GPIO=42
|
||||
|
||||
on boot
|
||||
if property:ro.fac.wifi!= start wpa_supplicant
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant_ap6181 -Dnl80211 -iwlan0 -c /startup/wpa_supplicant_ap6181.conf
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service bsa_server /data/opt/bin/bsa_server -lpm -d /dev/ttybt -p const -u /tmp/ -k /data/var/bluetooth/ap6212_ble_local_keys
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
||||
on property:rt.app.bsa_server.enable=1
|
||||
start bsa_server
|
||||
|
||||
on property:rt.app.bsa_server.enable=0
|
||||
stop bsa_server
|
163
firmware/tree/startup/init.PrivatBank.rc
Normal file
163
firmware/tree/startup/init.PrivatBank.rc
Normal file
@ -0,0 +1,163 @@
|
||||
on fs
|
||||
|
||||
sysclktz 0
|
||||
|
||||
loglevel 3
|
||||
|
||||
# setup the global environment
|
||||
export PATH /bin:/sbin:/usr/sbin:/usr/bin:/base/bin:/base/sbin:/opt/bin
|
||||
export GCONV_PATH /lib/gconv
|
||||
export DISPLAY :0.0
|
||||
|
||||
symlink /startup/bin /bin
|
||||
symlink /startup/sbin /sbin
|
||||
|
||||
mkdir /tmp
|
||||
mount tmpfs tmpfs /tmp
|
||||
mkdir /tmp/run
|
||||
mkdir /tmp/lock
|
||||
chmod 1777 /tmp/lock
|
||||
|
||||
mkdir /var
|
||||
symlink /tmp /var/tmp
|
||||
symlink /tmp/run /var/run
|
||||
symlink /tmp/lock /var/lock
|
||||
|
||||
mkdir /base
|
||||
loadimg mtd@base /base
|
||||
|
||||
mkdir /data
|
||||
copy /proc/mtd /startup/mtd
|
||||
chmod 0444 /startup/mtd
|
||||
|
||||
check_and_mount_data
|
||||
|
||||
on early-boot
|
||||
# create POSIX shared memory folder
|
||||
mkdir /dev/shm
|
||||
chmod 0777 /dev/shm
|
||||
mount tmpfs tmpfs /dev/shm
|
||||
|
||||
# restrict file permission under /usr/bin
|
||||
chmod 750 /usr/bin/modemd
|
||||
chmod 750 /usr/bin/pedd
|
||||
chmod 750 /usr/bin/ipservice
|
||||
chown root MAINAPP /usr/bin/crashd
|
||||
chmod 750 /usr/bin/crashd
|
||||
chown root root /usr/bin/devinfo
|
||||
chmod 755 /usr/bin/devinfo
|
||||
chown root MAINAPP /usr/bin/installer
|
||||
chmod 750 /usr/bin/installer
|
||||
chmod 750 /usr/bin/keyman
|
||||
# logcat, let it 755
|
||||
chown root MAINAPP /usr/bin/runapp
|
||||
chmod 750 /usr/bin/runapp
|
||||
chmod 750 /usr/bin/servicemanager
|
||||
chown root MAINAPP /usr/bin/tm
|
||||
chmod 750 /usr/bin/tm
|
||||
chown root MAINAPP /usr/bin/systemservice
|
||||
chmod 750 /usr/bin/systemservice
|
||||
chown root MAINAPP /usr/bin/ts_calibrate
|
||||
chmod 750 /usr/bin/ts_calibrate
|
||||
chown root MAINAPP /usr/bin/xcbd
|
||||
chmod 750 /usr/bin/xcbd
|
||||
|
||||
# ./captoi sys_ptrace
|
||||
setcap 0x00080000 /bin/gdbserver
|
||||
# ./captoi dac_override setgid setuid setfcap chown
|
||||
setcap 0x800000c3 /usr/bin/installer
|
||||
# ./captoi setgid setuid
|
||||
setcap 0x000000c0 /usr/bin/runapp
|
||||
# ./captoi setgid setuid
|
||||
setcap 0x000000c0 /bin/xlogin
|
||||
# ./captoi net_admin net_raw sys_boot sys_time sys_admin
|
||||
setcap 0x02603000 /usr/bin/tm
|
||||
# ./captoi sys_admin sys_ptrace
|
||||
setcap 0x00280000 /usr/bin/crashd
|
||||
# ./captoi net_admin net_raw sys_boot sys_time sys_admin
|
||||
setcap 0x02603000 /usr/bin/systemservice
|
||||
# ./captoi sys_boot sys_time
|
||||
setcap 0x02400000 /usr/bin/xcbd
|
||||
|
||||
mkdir /data/tombstones
|
||||
chmod 770 /data/tombstones
|
||||
chown MAINAPP MAINAPP /data/tombstones
|
||||
|
||||
mkdir /data/security
|
||||
chmod 600 /data/security
|
||||
chown root root /data/security
|
||||
|
||||
symlink /base/lib /lib
|
||||
symlink /data/etc /etc
|
||||
symlink /data/opt /opt
|
||||
symlink /lib/gconv /usr/lib/gconv
|
||||
write /proc/sys/kernel/randomize_va_space 2
|
||||
|
||||
write /proc/sys/net/ipv4/tcp_keepalive_time 30
|
||||
write /proc/sys/net/ipv4/tcp_keepalive_intvl 15
|
||||
write /proc/sys/net/ipv4/tcp_keepalive_probes 5
|
||||
|
||||
setprop ro.pukmode 2
|
||||
|
||||
on boot
|
||||
# basic network init
|
||||
ifup lo
|
||||
hostname localhost
|
||||
domainname localdomain
|
||||
|
||||
# mount usbfs
|
||||
mkdir /dev/bus/usb
|
||||
mount usbfs none /dev/bus/usb devmode=0666
|
||||
|
||||
# u-disk mount
|
||||
mkdir /mnt
|
||||
mount tmpfs tmpfs /mnt noatime noexec nosuid size=16k
|
||||
chown MAINAPP MAINAPP /mnt
|
||||
|
||||
# set RLIMIT_NICE to allow priorities from 19 to -20
|
||||
# RLIMIT_NICE 13
|
||||
setrlimit 13 40 40
|
||||
# RLIMIT_STACK 3
|
||||
setrlimit 3 2097152 2097152
|
||||
class_start core
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/modules/*
|
||||
if property:ro.fac.prolin_debug_level=0 rmdir /startup/modules/
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/*.rc
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/*.sh
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/*.prop
|
||||
if property:ro.fac.prolin_debug_level=0 rm /startup/firmware/lcd_*.rle
|
||||
if property:ro.fac.prolin_debug_level=0 rm startup/firmware/lcd.watermark
|
||||
if property:ro.fac.prolin_debug_level=0 rm startup/firmware/lcd_readme.txt
|
||||
if property:ro.fac.prolin_debug_level=1 rm /startup/modules/*
|
||||
if property:ro.fac.prolin_debug_level=1 rmdir /startup/modules/
|
||||
if property:ro.fac.prolin_debug_level=1 rm /startup/*.rc
|
||||
if property:ro.fac.prolin_debug_level=1 rm /startup/*.sh
|
||||
if property:ro.fac.prolin_debug_level=1 rm /startup/*.prop
|
||||
wait /tmp/.BINDER_SERVICE_MANAGER_DONE
|
||||
rm /tmp/.BINDER_SERVICE_MANAGER_DONE
|
||||
class_start default
|
||||
|
||||
# daemon processes to be run by init.
|
||||
|
||||
service ueventd /startup/ueventd
|
||||
critical
|
||||
|
||||
service console-root /bin/sh
|
||||
console
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service console-MAINAPP /bin/sh
|
||||
console
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
on property:persist.sys.console.enable=1
|
||||
if property:ro.console=1 start console-MAINAPP
|
||||
if property:ro.console=2 start console-root
|
||||
|
||||
on property:persist.sys.console.enable=0
|
||||
if property:ro.console=1 stop console-MAINAPP
|
||||
if property:ro.console=2 stop console-root
|
160
firmware/tree/startup/init.S300_M05_P00.rc
Normal file
160
firmware/tree/startup/init.S300_M05_P00.rc
Normal file
@ -0,0 +1,160 @@
|
||||
on early-init
|
||||
insmod /startup/modules/bcm5892-rtc.ko
|
||||
start ueventd
|
||||
|
||||
on init
|
||||
insmod /startup/modules/devices_base.ko
|
||||
insmod /startup/modules/S300_M05_P00.ko
|
||||
insmod /startup/modules/ioconfig.ko
|
||||
write /sys/class/backlight/pwm-backlight/brightness 100
|
||||
insmod /startup/modules/pm_bcm5892.ko
|
||||
setprop ro.security_version "Prolin 21.301.110.100.101"
|
||||
|
||||
#USB support
|
||||
insmod /startup/modules/bcm589x-dwccom.ko
|
||||
insmod /startup/modules/bcm589x-otg.ko
|
||||
insmod /startup/modules/tty-devices.ko
|
||||
insmod /startup/modules/tty-host.ko
|
||||
#insmod /startup/modules/bcm589x-usb-host.ko
|
||||
|
||||
#base drivers
|
||||
insmod /startup/modules/pmu_dummy.ko
|
||||
insmod /startup/modules/misc.ko
|
||||
insmod /startup/modules/input_base.ko power_key=-1 press_time=2
|
||||
insmod /startup/modules/keypad_matrix.ko
|
||||
|
||||
#card drivers (sci msr pcd)
|
||||
insmod /startup/modules/sci_bcm5892_tda8026.ko
|
||||
insmod /startup/modules/msr.ko
|
||||
insmod /startup/modules/pcd_base.ko
|
||||
insmod /startup/modules/pcd_rc663.ko
|
||||
|
||||
#security drivers (bbl, sec, verify)
|
||||
insmod /startup/modules/bcm5892_bbl.ko
|
||||
insmod /startup/modules/bcm589x-sec.ko
|
||||
insmod /startup/modules/verify.ko
|
||||
|
||||
#sound driver
|
||||
if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko
|
||||
|
||||
#touchscreen driver
|
||||
insmod /startup/modules/ads7846.ko
|
||||
|
||||
#log server driver
|
||||
insmod /startup/modules/logger.ko
|
||||
|
||||
#printer driver
|
||||
if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
|
||||
if property:ro.fac.printer=PRT48AF insmod /startup/modules/prt_printer.ko
|
||||
|
||||
chmod 666 /sys/power/state
|
||||
chmod 666 /sys/class/backlight/pwm-backlight/brightness
|
||||
chmod 666 /sys/devices/platform/keypad/backlight_on
|
||||
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
|
||||
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
|
||||
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
|
||||
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
|
||||
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
|
||||
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
|
||||
|
||||
#time of back light auto active, unit:Second
|
||||
setprop persist.sys.backlighttime 60
|
||||
|
||||
setprop persist.sys.sleeptime 0
|
||||
setprop persist.sys.sleepwaittime 1
|
||||
|
||||
# usb ethernet driver
|
||||
#insmod /startup/modules/asix.ko
|
||||
|
||||
# create some symlinks
|
||||
symlink /dev/input/event0 /dev/keypad
|
||||
symlink /dev/input/event1 /dev/keypad_ped
|
||||
symlink /dev/input/event2 /dev/tp
|
||||
symlink /dev/input/event3 /dev/tp_ped
|
||||
symlink /dev/graphics/fb0 /dev/fb
|
||||
symlink /dev/graphics/fb1 /dev/fb_ped
|
||||
|
||||
on fs
|
||||
export TSLIB_CONSOLEDEVICE none
|
||||
export TSLIB_FBDEVICE /dev/fb
|
||||
export TSLIB_TSDEVICE /dev/tp
|
||||
export TSLIB_CALIBFILE /etc/ts/pointercal
|
||||
export TSLIB_CONFFILE /etc/ts/ts.conf
|
||||
export TSLIB_PLUGINDIR /usr/lib/ts
|
||||
|
||||
on post-fs
|
||||
#LCD driver
|
||||
symlink /startup/firmware/lcd_240x320_r90.rle /startup/firmware/lcd.watermark
|
||||
write /sys/class/backlight/pwm-backlight/brightness 0
|
||||
insmod /startup/modules/lcd_fb.ko
|
||||
insmod /startup/modules/lcd_hw_ctrl.ko
|
||||
if property:ro.fac.videocard=TM035KBH08-36 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
|
||||
if property:ro.fac.videocard=08 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
|
||||
|
||||
service servicemanager /usr/bin/servicemanager
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
critical
|
||||
onrestart restart systemservice
|
||||
onrestart restart ipservice
|
||||
|
||||
service ipservice /usr/bin/ipservice
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service pedd /usr/bin/pedd
|
||||
user root
|
||||
group root
|
||||
|
||||
|
||||
service keyman /usr/bin/keyman
|
||||
disabled
|
||||
user root
|
||||
group root
|
||||
|
||||
service xcb /usr/bin/xcbd
|
||||
disabled
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service crashd /usr/bin/crashd
|
||||
user MAINAPP
|
||||
group MAINAPP
|
||||
|
||||
service systemservice /usr/bin/systemservice
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:persist.sys.ipservice.enable=1
|
||||
start ipservice
|
||||
|
||||
on property:persist.sys.ipservice.enable=0
|
||||
stop ipservice
|
||||
|
||||
|
||||
on property:persist.sys.xcb.enable=1
|
||||
start xcb
|
||||
|
||||
on property:persist.sys.xcb.enable=0
|
||||
stop xcb
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user