1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/sh
# Set mdev
echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s && echo "mdev is ok......"
# create console and null node for nfsroot
#mknod -m 600 /dev/console c 5 1
#mknod -m 666 /dev/null c 1 3
# Set Global Environment
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH=/system/bin:/app/bin:$PATH
export LD_LIBRARY_PATH=/system/lib:/app/lib
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
export PATH=/system/bin:$PATH
devmem 0x1301206c 32 0x0
devmem 0x13012020 32 0x88404007
devmem 0x13012038 32 0x88404002
#need to verify
/usr/sbin/gpiotool_t40gc B 9 out0
/usr/sbin/gpiotool_t40gc B 13 out0
/usr/sbin/gpiotool_t40gc B 14 out0
/usr/sbin/gpiotool_t40gc B 6 input
/usr/sbin/gpiotool_t40gc B 7 out0
# NC enable
/usr/sbin/gpiotool_t40gc A 25 out1 # AO_BOOT
/usr/sbin/gpiotool_t40gc A 20 out1 # AO_RST
# speaker enable
/usr/sbin/gpiotool_t40gc A 23 out1 # SPEAK_EN
# gd gpio for regulator
/usr/sbin/gpiotool_t40gc C 20 out1 # 3V3_GD_LDO_EN
/usr/sbin/gpiotool_t40gc D 3 out0 # GD_BOOT0
/usr/sbin/gpiotool_t40gc B 7 out0 # MCU_RESET
insmod /usr/lib/modules/avpu.ko avpu_clk=550000000
insmod /usr/lib/modules/sample_pwm_core.ko
insmod /usr/lib/modules/sample_pwm_hal.ko
insmod /usr/lib/modules/tas2563.ko spk_gpio=23 spk_level=1 gpio_func="1,1,0x18D00"
insmod /usr/lib/modules/audio.ko i2c_bus=1 excodec_addr=0x4C excodec_name=tas2563
#insmod /usr/lib/modules/aic8800_netdrv_30_8.ko
#redirect lib path
insmod /usr/lib/modules/tx-isp-t40.ko isp_clk=150000000
insmod /usr/lib/modules/sensor_gc02m1_t40.ko
insmod /usr/lib/modules/soc-nna.ko
insmod /usr/lib/modules/mpsys.ko
# networking
#ifconfig lo up
#ifconfig eth0 192.168.1.80
/sbin/syslogd -n -C64 &
/sbin/klogd &
# Set the system time from the hardware clock
#hwclock -s
#add rtsp send encoder buffer
sysctl -w net.core.wmem_max=26214401
sysctl -w net.core.wmem_default=26214400
/usr/sbin/e2fsck -fy /dev/mmcblk0p3
mount -t ext4 -o loop,data=ordered /dev/mmcblk0p3 /system
sleep 1
/usr/sbin/resize_check
#/usr/sbin/resize2fs /dev/mmcblk0p3
uptime
/system/init/app_init.sh
#echo 0 4 1 7 > /proc/sys/kernel/printk
#fix venus::memcopy leading encoder FPS down
#factory test code