Miko Gitlab Repository

Commit 3ec0c771 authored by swapnil.nerkar's avatar swapnil.nerkar
Browse files

update on 2nd september

parent c4ed3b2f
......@@ -30,4 +30,13 @@
a. modified serial_number.txt with your bot serial number.
b. copy file in to bot over nfs or lrz.
c. used command in bot :- dd if=./serial_number.txt of=/dev/mmcblk0p4
d. remove serial number:-
1. command :- cd /system/bin/
2. command :- dd if=/dev/zero of=/system/bin/serial_remove.img bs=1M count=2
3. command :- dd if=./serial_remove.img of=/dev/mmcblk0p4
6. Command to update os with dd command.
a. copy all data to ingenic t40n throught nfs or lrz
b. uboot flash command :- dd if=u-boot-with-spl-mbr-gpt_adc.bin of=/dev/mmcblk0
c. kernal flash command :- dd if=uImage of=/dev/mmcblk0p1
d. rootfs flash command :- dd if=rootfs.squashfs of=/dev/mmcblk0p2
#!/bin/bash
#ext4 filesystem
dd if=/dev/zero of=system.img bs=1M count=7438
dd if=/dev/zero of=system.img bs=1M count=6438
sudo mkfs.ext4 -F -L system system.img
......
......@@ -34,14 +34,15 @@ devmem 0x13012038 32 0x88404002
# 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
/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.ko
#insmod /usr/lib/modules/aic8800_netdrv_30_8.ko
#redirect lib path
insmod /usr/lib/modules/tx-isp-t40.ko isp_clk=150000000
......@@ -50,7 +51,7 @@ insmod /usr/lib/modules/soc-nna.ko
insmod /usr/lib/modules/mpsys.ko
# networking
ifconfig lo up
#ifconfig lo up
#ifconfig eth0 192.168.1.80
/sbin/syslogd -n -C64 &
......@@ -60,13 +61,14 @@ ifconfig lo up
#hwclock -s
#add rtsp send encoder buffer
#sysctl -w net.core.wmem_max=26214401
#sysctl -w net.core.wmem_default=26214400
mount -t ext4 -o loop /dev/mmcblk0p3 /system
/usr/sbin/e2fsck -fy /dev/mmcblk0p3 &
/usr/sbin/resize2fs /dev/mmcblk0p3 &
sleep 3
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
......
/dev/root / squashfs ro,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=36792k,nr_inodes=9198,mode=755 0 0
tmpfs /dev tmpfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /tmp tmpfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/mmcblk0p3 /system ext4 rw,relatime,data=ordered 0 0
192.168.6.41:/mnt/swapnil /mnt nfs rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.6.41,mountvers=3,mountproto=tcp,local_lock=all,addr=192.168.6.41 0 0
Miko_Mini_os_0v2 23-08-2023
Miko_Mini_beta_os_0v4 28-08-2023
File deleted
File added
File added
login int ingenic board
cd /system/bin/
touch serial_number.txt
vi serial_number.txt
{
"len":19,
"id":"MIKO2306XXM3M000015"
}
press key :- Esc
press key :- shift + ;
wq
then press key :- Enter
dd if=./serial_number.txt of=/dev/mmcblk0p4
cat /dev/mmcblk0p4
{
"len":19,
"id":"MIKO2306XXM3M000015"
"id":"MIKO2306XXM3M00000B"
}
No preview for this file type
......@@ -11,5 +11,5 @@ if [ ! -f $SWAP_FILE_PATH ];then
fi
echo "enable swap!"
swapon /system/bin/swap.img
echo 30720 > /proc/sys/vm/min_free_kbytes
echo 15360 > /proc/sys/vm/min_free_kbytes
echo 100 > /proc/sys/vm/swappiness
No preview for this file type
......@@ -7,6 +7,6 @@
#while true; do
/system/bin/emk4_factory_installer /system/OTA mikoFACTORY_5G_1 miko123456 > /system/logs/logs.txt;
/system/bin/emk4_factory_installer /system/OTA Miko-Team_5GHz qwertyuiop > /system/logs/logs.txt;
/system/bin/system_reboot
#done
resize not done
File added
while true; do
#free_mem=$(free -m | grep "Mem:" | tr -s " " | cut -d " " -f4)
free_mem=$(free -m | grep "Mem:" | awk '{print $4}')
if [ $free_mem -lt 20000 ];then
#echo "sync and drop_caches"
sync & echo 3 > /proc/sys/vm/drop_caches
fi
#echo $free_mem
#NOTE: Use following command to watch linux mem info
#free -m
#NOTE: Use following command to watch rmem info,Only by running the sensor and video encoding can this information be queried
#cat /tmp/continuous_mem_info | grep Mem
sleep 0.5
sleep 0.1
done
File added
......@@ -3,20 +3,18 @@
echo 1 >/proc/sys/vm/overcommit_memory
echo 3 > /proc/sys/vm/drop_caches
insmod /usr/lib/modules/aic8800_netdrv_30_8.ko
#ifconfig vnet0 up
#custom_msg vnet0 2
# Start telnet daemon
telnetd &
if [ ! -f /system/.factory ]; then
/system/bin/env_burn &
fi
/system/init/init_check.sh
/system/bin/mem_monitor.sh &
/system/bin/injoinicStartupTest &
#init check will install the binaries in ota process
/system/bin/enable_swap.sh
/system/init/init_check.sh
/system/bin/factory_startup_script.sh &
#/system/bin/enable_swap.sh
#/system/bin/factory_startup_script.sh &
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment