Satixfy SX3000


Satixfy SX3000

[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > dmesg | grep command
Kernel command line: console=ttyS0,115200n8 init=/bin/sh debug,earlyprintk=serial,ttyS0,115200n8,keep partition=factory maxcpus=4 finalcpus=4 isolcpus=1-3
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > dmesg | grep spi
sx3000b-qspi 1d000000.qspi: registered master spi32766 (dynamic)
spi spi32766.0: setup mode 0, 8 bits/w, 40000000 Hz max --> 0
sx3000b-qspi 1d000000.qspi: registered child spi32766.0
spi_master spi32766: mx66l1g45g (131072 Kbytes)
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > cat /proc/meminfo 
MemTotal:         248048 kB
MemFree:           81488 kB
MemAvailable:     100192 kB
Buffers:               0 kB
Cached:            99472 kB
SwapCached:            0 kB
Active:            53264 kB
Inactive:          17184 kB
Active(anon):      46400 kB
Inactive(anon):      176 kB
Active(file):       6864 kB
Inactive(file):    17008 kB
Unevictable:       75120 kB
Mlocked:           75120 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         46224 kB
Mapped:            89344 kB
Shmem:             75584 kB
Slab:              13904 kB
SReclaimable:        560 kB
SUnreclaim:        13344 kB
KernelStack:        1520 kB
PageTables:          688 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      124016 kB
Committed_AS:     445632 kB
VmallocTotal:    1048144 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > cat /proc/cpuinfo 
system type		: SX3000
machine			: Satixfy SX3000 Development Board
processor		: 0
cpu model		: MIPS interAptiv (multi) V2.0
BogoMIPS		: 348.97
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 64
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16 dsp mt eva
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available
VPE			: 0

processor		: 1
cpu model		: MIPS interAptiv (multi) V2.0
BogoMIPS		: 261.73
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 64
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16 dsp mt eva
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available
VPE			: 1

processor		: 2
cpu model		: MIPS interAptiv (multi) V2.0
BogoMIPS		: 348.97
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 64
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16 dsp mt eva
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 1
VCED exceptions		: not available
VCEI exceptions		: not available
VPE			: 0

processor		: 3
cpu model		: MIPS interAptiv (multi) V2.0
BogoMIPS		: 348.97
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 64
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16 dsp mt eva
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 1
VCED exceptions		: not available
VCEI exceptions		: not available
VPE			: 1

[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > free -k
             total       used       free     shared    buffers     cached
Mem:        248048     166320      81728      75584          0      99472
-/+ buffers/cache:      66848     181200
Swap:            0          0          0
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > df -h
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                120.8M         0    120.8M   0% /dev
tmpfs                   121.1M     73.7M     47.5M  61% /tmp
/dev/ubi0_0              98.7M     69.6M     29.1M  71% /
/dev/ubi0_0              98.7M     69.6M     29.1M  71% /sysopt
/dev/ubi0_0              98.7M     69.6M     29.1M  71% /common
tmpfs                   121.1M         0    121.1M   0% /dev/shm
tmpfs                   121.1M    192.0K    120.9M   0% /run
/dev/ubi0_0              98.7M     69.6M     29.1M  71% /mnt
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > ls -alh /sysopt/config/sat_router/
total 12
drwx------    2 root     root         312 Jan  1 00:00 .
drwx------    5 root     root         360 Jan  1 00:04 ..
-rw-------    1 root     root         375 Jan  1 00:00 downstream_config.json
-rw-r--r--    1 root     root        4.5K Jan  1 00:00 falcon.opt
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > df -h
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                120.8M         0    120.8M   0% /dev
tmpfs                   121.1M     73.5M     47.7M  61% /tmp
/dev/ubi0_0              98.7M     98.6M     76.0K 100% /
/dev/ubi0_0              98.7M     98.6M     76.0K 100% /sysopt
/dev/ubi0_0              98.7M     98.6M     76.0K 100% /common
tmpfs                   121.1M         0    121.1M   0% /dev/shm
tmpfs                   121.1M    192.0K    120.9M   0% /run
/dev/ubi0_0              98.7M     98.6M     76.0K 100% /mnt
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > cd /run/
[root@iq-linux:factory:/run] > 
[root@iq-linux:factory:/run] > mkdir temp
[root@iq-linux:factory:/run] > 
[root@iq-linux:factory:/run] > cd temp/
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > sha256sum evo_iQseries_rmt_rootfs-21.0.4.0-9277.137.pkg 
530436152d3b2469c5ffbcc4ff9f9845ffd3fcb8130415a18e5a0102c14d2c1d  evo_iQseries_rmt_rootfs-21.0.4.0-9277.137.pkg
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > package -mx -a ./evo_iQseries_rmt_rootfs-21.0.4.0-9277.137.pkg 
SavePackage: [A3A3] bootloader_upgrade.lua (1975)...Saved.
SavePackage: [5669] boot-sectors.bin (131072)...Saved.
SavePackage: [8666] common_10_128M (1262721)...Saved.
SavePackage: [9739] kern (3228819)...Saved.
SavePackage: [A276] package_base.tar.bz2 (12950338)...Saved.
SavePackage: [DAFA] package_install.sh (13947)...Saved.
SavePackage: [E89E] package.sig (6545)...Saved.
SavePackage: [EF2D] package.signatures (6578)...Saved.
SavePackage: [9A62] package_summary.xml (1458)...Saved.
SavePackage: [C48F] soft_parts.sh (987)...Saved.
SavePackage: [DE49] uboot_env.lua (330)...Saved.
SavePackage: [98CB] uboot_upgrade.lua (1130)...Saved.
SavePackage: [EE9A] utils.lua (3882)...Saved.
SUCCESS saved package contents to ./
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > df -h
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                120.8M         0    120.8M   0% /dev
tmpfs                   121.1M     73.5M     47.6M  61% /tmp
/dev/ubi0_0              98.7M     98.6M     60.0K 100% /
/dev/ubi0_0              98.7M     98.6M     60.0K 100% /sysopt
/dev/ubi0_0              98.7M     98.6M     60.0K 100% /common
tmpfs                   121.1M         0    121.1M   0% /dev/shm
tmpfs                   121.1M     33.9M     87.2M  28% /run
/dev/ubi0_0              98.7M     98.6M     60.0K 100% /mnt
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > chmod +x package_install.sh 
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > ls -alh 
total 34544
drwxr-xr-x    2 root     root         320 Jan  1 00:05 .
drwxr-xr-x    6 root     root         380 Jan  1 00:03 ..
-rw-------    1 root     root      128.0K Jan  1 00:05 boot-sectors.bin
-rw-------    1 root     root        1.9K Jan  1 00:05 bootloader_upgrade.lua
-rw-------    1 root     root        1.2M Jan  1 00:05 common_10_128M
-rw-------    1 root     root       16.8M Nov  4  2021 evo_iQseries_rmt_rootfs-21.0.4.0-9277.137.pkg
-rw-------    1 root     root        3.1M Jan  1 00:05 kern
-rw-------    1 root     root        6.4K Jan  1 00:05 package.sig
-rw-------    1 root     root        6.4K Jan  1 00:05 package.signatures
-rw-------    1 root     root       12.3M Jan  1 00:05 package_base.tar.bz2
-rwx------    1 root     root       13.6K Jan  1 00:05 package_install.sh
-rw-------    1 root     root        1.4K Jan  1 00:05 package_summary.xml
-rwx------    1 root     root         987 Jan  1 00:05 soft_parts.sh
-rw-------    1 root     root         330 Jan  1 00:05 uboot_env.lua
-rw-------    1 root     root        1.1K Jan  1 00:05 uboot_upgrade.lua
-rw-------    1 root     root        3.8K Jan  1 00:05 utils.lua
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > sh ./package_install.sh active0
mount: /dev/ubi0_0 is already mounted or /mnt busy
       /dev/ubi0_0 is already mounted on /
       /dev/ubi0_0 is already mounted on /sysopt
       /dev/ubi0_0 is already mounted on /common
       /dev/ubi0_0 is already mounted on /mnt
package_install.sh active0: Found active0...
package_install.sh active0: deleting.
package_install.sh active0: Checking free space
package_install.sh active0: Uncompressing archive. This may take a while.
package_install.sh active0: Archive requires: 34128 kB
package_install.sh active0: Remaining space on flash filesystem: 21128 kB
package_install.sh active0: Archive contents too big for remaining space: 34128 > 21128
package_install.sh active0: Cleaning up...
package_install.sh active0: Unmounting /mnt
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > mount -t ubifs /dev/ubi0_0 /mnt/
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > ls -alh /mnt
total 0
drwxr-xr-x    7 root     root         800 Jan  1 00:03 .
drwxr-xr-x   20 root     root        1.4K Jan  1 00:00 ..
drwxrwxr-x   20 500      500         1.4K Aug  6  2020 active0
drwx------   21 root     root        1.5K Mar 29  2019 active1
lrwxrwxrwx    1 root     root          11 Jan  1 00:00 bin -> factory/bin
drwxr-xr-x    3 root     root         296 Jan  1 00:15 common
lrwxrwxrwx    1 root     root          11 Jan  1 00:00 dev -> factory/dev
lrwxrwxrwx    1 root     root          11 Jan  1 00:00 etc -> factory/etc
drwxr-xr-x   20 root     root        1.4K Jan  1 00:00 factory
lrwxrwxrwx    1 root     root          12 Jan  1 00:00 root -> factory/root
drwx------    4 root     root         288 Jan  1 00:00 sysopt
lrwxrwxrwx    1 root     root          11 Jan  1 00:00 var -> factory/var
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > umount /mnt
[root@iq-linux:factory:/run/temp] > 
[root@iq-linux:factory:/run/temp] > cd ~
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > rm -rf /run/temp
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > fw_printenv | grep fspart
setboot=setenv bootargs console=ttyS0,115200n8 init=/bin/sh debug,earlyprintk=serial,ttyS0,115200n8,keep partition=$fspart maxcpus=$startcpus finalcpus=$finalcpus isolcpus=1-3
fspart=factory
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > fw_setenv fspart active0
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > fw_printenv | grep fspart
setboot=setenv bootargs console=ttyS0,115200n8 init=/bin/sh debug,earlyprintk=serial,ttyS0,115200n8,keep partition=$fspart maxcpus=$startcpus finalcpus=$finalcpus isolcpus=1-3
fspart=active0
[root@iq-linux:factory:~] > 
[root@iq-linux:factory:~] > reboot
[root@iq-linux:factory:~] > 
at factory system update to Evolution(active0)
at active0 system update to Velocity(active1)
active1 : Velocity 
active0 : Evolution 
factory : Evolution 

[root@iq-linux:active0:~] > 
[root@iq-linux:active0:~] > fw_setenv --help
Usage: fw_setenv [OPTIONS]... [VARIABLE]...
Modify variables in U-Boot environment

 -h, --help           print this help.
 -c, --config         configuration file, default:/etc/fw_env.config
 -s, --script         batch mode to minimize writes

Examples:
  fw_setenv foo bar   set variable foo equal bar
  fw_setenv foo       clear variable foo
  fw_setenv --script file run batch script

Script Syntax:
  key [space] value
  lines starting with '#' are treated as comment

  A variable without value will be deleted. Any number of spaces are
  allowed between key and value. Space inside of the value is treated
  as part of the value itself.

Script Example:
  netdev         eth0
  kernel_addr    400000
  foo            empty empty empty    empty empty empty
  bar

[root@iq-linux:active0:~] > 
[root@iq-linux:active0:~] > fw_setenv fspart active0
[root@iq-linux:active0:~] > 
[root@iq-linux:active0:~] > reboot
[root@iq-linux:active0:~] > 

[root@iq-linux:active1:~] > 
[root@iq-linux:active1:~] > flashdbmgr --help

	 --get 
	 --get summary -- display database information
	 --get livepart -- display current partition
	 --get nextpart -- display next partition for install

	 --set 
	 --set switch -- switch database to next partition
	 --set default -- switch database to default values
	 --set update 

============ End

相关