ZTE C320 Firmware Upgrade
Я не нашел внятной инструкции обновления, кроме https://telecomo.ru/company/news/31677.html
которая не вполне соответствует действительности
О типах файлов
.BT
Загрузчик платы (Boot) Описывает алгоритм загрузки платы после подачи питания, версия загрузчика отличается от версии исполняемого кода, совместимости какой загрузчик и какой код он может загружать - не проверена.
.FW
Прошивка платы Определяет функционал платы
PM.FW
Прошивка чипа. Определяет функционал чипа (CPLD - Complex Programmable Logic Device), об обновлении его говорят много нехорошего.
.MVR
Программное обеспечение исполгняемо на плате (судя по всему разновидность линукса)
Смотрим список установленных карт
#show card
Rack Shelf Slot CfgType RealType Port HardVer SoftVer Status
-------------------------------------------------------------------------------
1 1 1 GTGH GTGHK 16 151202 V1.2.5P3 INSERVICE
1 1 2 GTGH GTGHK 16 151202 V1.2.5P3 INSERVICE
1 1 3 PRAM PRAM 3 V1.01 INSERVICE
1 1 4 SMXA SMXA 3 131201 V1.2.5P3 INSERVICE
Тут видно что линейная карта всего одного типа - GTGHK
, другими словами это карта типа GTGH
равизии K
(которая кстати если верить интернетам наиболее проблемная)
Проверить версию кода который запущен
show version-running
PhyLoc FileType VerType VerTag BuildTime VerLength
--------------------------------------------------------------------------------
1/1/1 GTGHK MVR V1.2.5P3 2017-05-16 04:34:12 6010580
1/1/1 GTXK BT V4.0.14 2017-09-04 0:52:45 524288
1/1/4 SMXA MVR V1.2.5P3 2015-01-05 03:50:18 14818071
1/1/4 SMXA BT V4.0.5 2014-12-10 9:13:26 524288
1/1/2 GTGHK MVR V1.2.5P3 2017-05-16 04:34:12 6010580
1/1/2 GTXK BT V4.0.14 2017-09-04 0:52:45 524288
V1.2.5P3
Проверить файлы которые уже залиты
#dir img
Directory of /flash/img/
attribute size date time name
-rwx 524288 AUG-15-2012 17:08:54 smxa.bt
-rwx 648494 AUG-15-2012 17:09:06 smxa.fw
-rwx 524288 AUG-15-2012 17:09:16 etghg.bt
-rwx 100675 AUG-15-2012 17:09:24 etghg.fw
-rwx 10207084 AUG-15-2012 17:10:50 etghg.mvr
-rwx 1527486 AUG-15-2012 17:11:10 etgo.fw
-rwx 5083571 AUG-15-2012 17:11:50 etgo.mvr
-rwx 253856 AUG-15-2012 17:11:58 etgod.bt
-rwx 524288 AUG-15-2012 17:12:10 etto.bt
-rwx 534532 AUG-15-2012 17:12:22 etto.fw
-rwx 5510212 AUG-15-2012 17:13:12 etto.mvr
-rwx 524288 AUG-15-2012 17:13:22 ftgkb.bt
-rwx 85188 AUG-15-2012 17:13:30 ftgkb.fw
-rwx 4803804 AUG-15-2012 17:14:18 ftgkb.mvr
-rwx 524288 AUG-15-2012 17:14:28 gtghg.bt
-rwx 100534 AUG-15-2012 17:14:38 gtghg.fw
-rwx 5338780 AUG-15-2012 17:15:32 gtghg.mvr
-rwx 524288 AUG-15-2012 17:15:44 gtgog.bt
-rwx 139509 AUG-15-2012 17:15:52 gtgog.fw
-rwx 5595416 AUG-15-2012 17:16:48 gtgog.mvr
-rwx 524288 AUG-15-2012 17:17:00 gtxog.bt
-rwx 8940762 AUG-15-2012 17:18:20 gtxog.fw
-rwx 5329580 AUG-15-2012 17:19:20 gtxog.mvr
-rwx 934 AUG-15-2012 17:19:30 pm.fw
-rwx 14818071 AUG-15-2012 17:33:44 smxa1.mvr
-rwx 14818071 AUG-15-2012 17:35:28 smxa0.mvr
-rwx 461545 MAR-26-2017 12:18:50 gtxk.fw
-rwx 524288 MAR-26-2017 12:20:32 gtxk.bt
-rwx 6010580 MAR-26-2017 12:22:06 gtghk.mvr
Current directory 29 files total
Тут видно что залито куча файлов, в том числе и те которые не особо нужны, так как они предназначены для карт которые отстутвуют
Проверить какие версии патчей исполняются
show patch-running
Loc FileName PatchTag OperateTime PatchState
-------------------------------------------------------------------------------
1/1/1 gtghkv125p3t29_r0.pat 2.0 2023-09-22 15:18:42 ACTIVE
1/1/2 gtghkv125p3t29_r0.pat 2.0 2023-09-22 15:18:49 ACTIVE
1/1/4 smxav125p3t13_r0.pat 2.0 2023-09-22 16:26:15 ACTIVE
1/1/4 smxav125p3t13_r1.pat 2.0 2023-09-22 16:26:15 ACTIVE
1/1/4 smxav125p3t13_r2.pat 2.0 2023-09-22 16:26:15 ACTIVE
1/1/4 smxav125p3t13_r3.pat 2.0 2023-09-22 16:26:15 ACTIVE
1/1/4 smxav125p3t13_r4.pat 2.0 2023-09-22 16:26:15 ACTIVE
1/1/4 smxav125p3t13_r5.pat 2.0 2023-09-22 16:26:15 ACTIVE
1/1/4 smxav125p3t13_r6.pat 2.0 2023-09-22 16:26:15 ACTIVE
1/1/4 smxav125p3t13_r7.pat 2.0 2023-09-22 16:26:16 ACTIVE
1/1/4 smxav125p3t13_r10.pat 2.0 2023-09-22 16:26:16 ACTIVE
Деактивировать все патчи перед обновлением
Deactive patch in shelf 1 slot 4 success
Deactive patch finished
#patch deactive smxav125p3t13_r1.pat
Deactive patch in shelf 1 slot 4 success
Deactive patch finished
#patch deactive smxav125p3t13_r10.pat
Deactive patch in shelf 1 slot 4 terminated for patch already deactive
Deactive patch finished
... и так далее для всех патчей
Проверить что все патчи деактивированы
#show patch-running
Loc FileName PatchTag OperateTime PatchState
-------------------------------------------------------------------------------
Удалить все неиспользуемые файлы
delete img gtgo*
Confirm to delete?[yes/no]:yes
Start deleting file
deleting gtgog.bt..
[Successfully]
deleting gtgog.fw..
[Successfully]
deleting gtgog.mvr..
и так для всех неиспользуемых файлов.
Загрузить новые файлы
В примере показан только часть. Порядок загрузки не имеет значения, более того если подготовить правильно директорию с файлами то можно загружать все сразу указав *
как имя файла.
#download img smxa.bt
Downloading from host(10.72.0.7)
Transfering file smxa.bt ...
......................[Successfully]
C320-Donec#download img gtxk.mvr
Downloading from host(10.72.0.7)
Transfering file gtxk.mvr ...
.............................[Successfully]
#download img smxa0.mvr
Downloading from host(10.72.0.7)
Transfering file smxa0.mvr ...
..............[Successfully]
smxa1.mvr
/smxa0.mvr
Для того что бы обновить файл smxa1.mvr
можно просто 2 раза скачать smxa0.mvr
, первый раз он запишется в smxa0.mvr
, второй раз в smxa1.mvr
Существует возможность переключаться между версиями, но учитывая что существует теоретическая возможность уложить платы в кирпич, я это никак не тестировал.
Проверить загруженные файлы
#show version-saved master
PhyLoc FileName VerType VerTag BuildTime Length Active
--------------------------------------------------------------------------------
1/1/4 gtghg.bt BT V4.0.7 2015-04-03 15:16:01 524288
1/1/4 gtghg.fw FW V2.1.0 2017-01-17 00:40:26 210990
1/1/4 gtghg.mvr MVR V2.1.0 2017-01-17 00:40:26 6933928
1/1/4 gtxk.bt BT V4.0.14 2017-09-04 0:52:45 524288
1/1/4 gtxk.fw FW V2.1.0 2017-07-03 00:28:55 462019
1/1/4 gtxk.mvr MVR V2.1.0 2017-07-03 00:28:55 7789380
1/1/4 pm.fw FW V2.1.0 2017-01-17 01:08:29 2135
1/1/4 smxa.bt BT V4.0.13 2017-04-26 9:53:13 524288
1/1/4 smxa.fw FW V2.1.0 2017-06-23 03:42:13 1720296
1/1/4 smxa0.mvr MVR V2.1.0 2017-01-17 01:04:45 24647784 1
1/1/4 smxa1.mvr MVR V2.1.0 2017-01-17 01:04:45 24647784 0
Для моего набора плат я использовал следующий набор файлов:
#dir img
Directory of /flash/img/
attribute size date time name
-rwx 524288 SEP-27-2023 10:49:24 smxa.bt
-rwx 1720296 SEP-27-2023 11:06:50 smxa.fw
-rwx 524288 SEP-27-2023 10:48:22 gtxk.bt
-rwx 7789380 SEP-27-2023 10:51:20 gtxk.mvr
-rwx 24647784 SEP-27-2023 11:02:46 smxa1.mvr
-rwx 462019 SEP-27-2023 11:04:36 gtxk.fw
-rwx 24647784 SEP-27-2023 11:11:18 smxa0.mvr
-rwx 524288 SEP-27-2023 11:35:54 gtghg.bt
-rwx 210990 SEP-27-2023 11:36:00 gtghg.fw
-rwx 6933928 SEP-27-2023 11:37:10 gtghg.mvr
-rwx 934 AUG-15-2012 17:19:30 pm.fw
Обновление bootloader
(https://telecomo.ru/company/news/31677.html)
Попытка обновить bootloader не увенчалась успехом.
#update-boot rackno 1 shelfno 1 slotno 1
.File not exist
Предположительная причина - то, что уже была установлена нужная версия, о чем я узнал позже.
До обнавления загрузчик версии 4.0.14
и 4.0.5
, такой же как я пытался устновить.
#show version-running
PhyLoc FileType VerType VerTag BuildTime VerLength
--------------------------------------------------------------------------------
1/1/1 GTGHK MVR V1.2.5P3 2017-05-16 04:34:12 6010580
1/1/1 GTXK BT V4.0.14 2017-09-04 0:52:45 524288
1/1/4 SMXA MVR V1.2.5P3 2015-01-05 03:50:18 14818071
1/1/4 SMXA BT V4.0.5 2014-12-10 9:13:26 524288
1/1/2 GTGHK MVR V1.2.5P3 2017-05-16 04:34:12 6010580
1/1/2 GTXK BT V4.0.14 2017-09-04 0:52:45 524288
Проверить версию файла можно например так
strings gtxk.bt | grep ':V[0-9]'
GTXK:V4.0.14
Это вывод из файла, который я хотел установить, и он судя по всему, такой же как уже установлен.
Перезагрузить устройство после того как загружены все файлы
Перезагрузка занимает много времени (волноваться раньше чем через 20 минут не следует)
#reboot
Confirm to reboot? [yes/no]:yes
#
start...
KUBoot 2.02.10.P3-svn709 (Dec 10 2014 - 09:13:16)
CPU: Unknown, Version: 2.1, (0x80ea0121)
Core: E500, Version: 5.1, (0x80211051)
Clock Configuration:
CPU0:1188 MHz, CCB: 396 MHz,
DDR: 396 MHz (792 MT/s data rate) (Asynchronous), LBC: 49 MHz
L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: P2020SMXA
DRAM: Initializing.... DDR3: 2048 MB
Clear Mem OK!
Decompress kuboot
success!
Now running in RAM - U-Boot at: 0db70000
FLASH: 128 MB
L2 cache 512KB: enabled
Nvram Init succeed!
eTSEC2 is in sgmii mode.
eTSEC3 is in sgmii mode.
PCIE1: as Root Complex (base addr f400a000)
Scanning PCI bus 01
01 00 14e4 b445 0200 00
PCIE1 on bus 00 - 01
PCIE2: as Root Complex (base addr f4009000)
PCIE2 on bus 02 - 02
In: serial
Out: serial
Err: serial
Net: eTSEC2, eTSEC1, eTSEC3
VFS init succeed!
tffs fs detected
dosfs_var_init finish!
Un-Protect Flash Bank # 1
Start to initialize the DosFs...
|
verifyMap begin, needs about 1 minute!!
verifyMap is done
DiskOnChip Found
objCoreInit-1, pObjCore:0xcb715a8, pObjClass:0xdcc188c
objCoreInit-2
objCoreInit-1, pObjCore:0xcb715e0, pObjClass:0xcb715a8
objCoreInit-2
objCoreInit-1, pObjCore:0xcb71700, pObjClass:0xcb715a8
objCoreInit-2
Device / was created
// - disk check in progress ...
// - Volume is OK
total # of clusters: 15,464
# of free clusters: 7,130
# of bad clusters: 0
total free space: 57,040Kb
max contiguous free space: 31,031,296 bytes
# of files: 27
# of folders: 8
total bytes in files: 66,475Kb
# of lost chains: 0
total bytes in lost chains: 0
reservedSectors = (SectorNo) LE2(bpb->reservedSectors): 0x1
partEnableFF, reservedSectors:1
// - disk check in progress ...
// - Volume is OK
total # of clusters: 15,464
# of free clusters: 7,130
# of bad clusters: 0
total free space: 57,040Kb
max contiguous free space: 31,031,296 bytes
# of files: 27
# of folders: 8
total bytes in files: 66,475Kb
# of lost chains: 0
total bytes in lost chains: 0
tffs init succeed
<<<master>>>
telnetdIint
tcpip_thread
TCP/IP initialized.
Add netif ......
mac is ec:1d:7f:a:45:1e:
Speed: 100, full duplex
mac is 0:d0:d0:a1:aa:a0:
Speed: 100, full duplex
mac is 0:d0:d0:a2:aa:a0:
force setting: speed 100, duplexity 1
Speed: 1000, full duplex
Hit any key to stop autoboot: 0
This board not set cpld update!
fsType is 4
Actived ver /img/smxa0.mvr ...
FileRead size is 24647784
VerTag : V2.1.0T37
CreateTime : 2017-01-17 01:04:45
VerLen : 24647784
MVR is a Linux Version, but file system is tffs.
tar and update start
open_archive
...........................................................................................................................................................................................................................................t
close_archive
name_close
tar over.
Un-Protect Flash Bank # 1
...........................................................................................................................................................................................................................................s
/format jffs2 part success!
jffs2 filesystem begin init!
[linux2.4_jffs2/build.c--jffs2_build_filesystem:388] Pass 1 complete
jffs2 filesystem init success!1-0:4009
\..
tar over.
.Erased 1 sectors
.Erased 1 sectors
|entry is 3df00004
mvrType is linux version.
## Booting kernel from Legacy Image at 3df00134 ...
Image Name: Linux-2.6.21.7-EMBSYS-SMXA-3.04.
Created: 2017-01-16 17:04:45 UTC
Image Type: PowerPC Linux Unknown Image (gzip compressed)
Data Size: 23598840 Bytes = 22.5 MB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 1724336 Bytes = 1.6 MB
Image 1: 21854007 Bytes = 20.8 MB
Image 2: 20480 Bytes = 20 kB
Verifying Checksum ... OK
Uncompressing Unknown Image ...
OK
## Flattened Device Tree from multi component Image at 3DF00134
Booting using the fdt at 0x3f57c86c
## Loading init Ramdisk from multi component Legacy Image at 3df00134 ...
ramdisk start = 0x3e0a5134, ramdisk end = 0x3f57c86b
relocate: 1(bootmap_base:00000000)
Loading Device Tree to 00ff8000, end 00ffffff ... OK
Loading Ramdisk to 09696000, end 0ab6d737 ... OK
U�ͥ�� P2020 DS machine description
Memory CAM mapping: CAM0=256Mb, CAM1=16Mb, CAM2=16Mb residual: 16Mb
Linux version 2.6.21.7-EMBSYS-CGEL-3.04.10.P5 (dailybuild@ ) (gcc version 4.1.2 2014-03-20 Embsys-TSP V3.03.20_P1) #1 PREEMPT Tue Dec 13 10:52:33 CST 2016
Found initrd at 0xc9696000:0xcab6d737
setup_arch: bootmem
mpc85xx_ds_setup_arch()
Found FSL PCI host bridge at 0x00000000f400a000.Firmware bus number: 0->255
->Hose at 0xc03c0000, cfg_addr=0xfdffd000,cfg_data=0xfdffd004
Found FSL PCI host bridge at 0x00000000f4009000.Firmware bus number: 0->255
->Hose at 0xc03c0100, cfg_addr=0xfdfeb000,cfg_data=0xfdfeb004
MPC85xx DS board from Freescale Semiconductor
arch: exit
Top of RAM: 0x13000000, Total RAM: 0x13000000
Memory hole size: 0MB
Zone PFN ranges:
DMA 0 -> 73728
Normal 73728 -> 73728
HighMem 73728 -> 77824
early_node_map[1] active PFN ranges
0: 0 -> 77824
calculate_node_totalpages:On node 0 totalpages: 77824
Built 1 zonelists. Total pages: 77216
Kernel command line: mottsec(1,0)host:vxWorks h=192.168.0.1 e=192.168.0.2:0xffffff00 u=lzq pw=lzq mem=304m
mpic: Setting up MPIC " OpenPIC " version 1.2 at f4040000, max 2 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
hwtimer: Added openpic_timer (PowerPC kernel OpenPIC timer) at index=0
PID hash table entries: 2048 (order: 11, 8192 bytes)
Using P2020 DS machine description
Memory CAM mapping: CAM0=256Mb, CAM1=16Mb, CAM2=16Mb residual: 16Mb
Linux version 2.6.21.7-EMBSYS-CGEL-3.04.10.P5 (dailybuild@ ) (gcc version 4.1.2 2014-03-20 Embsys-TSP V3.03.20_P1) #1 PREEMPT Tue Dec 13 10:52:33 CST 2016
Found initrd at 0xc9696000:0xcab6d737
Found FSL PCI host bridge at 0x00000000f400a000.Firmware bus number: 0->255
->Hose at 0xc03c0000, cfg_addr=0xfdffd000,cfg_data=0xfdffd004
Found FSL PCI host bridge at 0x00000000f4009000.Firmware bus number: 0->255
->Hose at 0xc03c0100, cfg_addr=0xfdfeb000,cfg_data=0xfdfeb004
MPC85xx DS board from Freescale Semiconductor
Top of RAM: 0x13000000, Total RAM: 0x13000000
Memory hole size: 0MB
Zone PFN ranges:
DMA 0 -> 73728
Normal 73728 -> 73728
HighMem 73728 -> 77824
early_node_map[1] active PFN ranges
0: 0 -> 77824
calculate_node_totalpages:On node 0 totalpages: 77824
Built 1 zonelists. Total pages: 77216
Kernel command line: mottsec(1,0)host:vxWorks h=192.168.0.1 e=192.168.0.2:0xffffff00 u=lzq pw=lzq mem=304m
mpic: Setting up MPIC " OpenPIC " version 1.2 at f4040000, max 2 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
hwtimer: Added openpic_timer (PowerPC kernel OpenPIC timer) at index=0
PID hash table entries: 2048 (order: 11, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 282856k/311296k available (3472k kernel code, 44468k reserved, 108k data, 184k bss, 156k init)
Mount-cache hash table entries: 512
--------V1.1 get u2k page base addr = 0xcfff3000 magic = 0x12345678
NET: Registered protocol family 16
Registering platform serial ports
in file: /home/work/LINUX_trunk_new/kernel/linux/arch/powerpc/sysdev/fsl_soc.c begin register platform_device
in file:/home/work/LINUX_trunk_new/kernel/linux/arch/powerpc/sysdev/fsl_soc.c i2c====> i2c_irq = 43
in file:/home/work/LINUX_trunk_new/kernel/linux/arch/powerpc/sysdev/fsl_soc.c i2c====> i2c_irq = 43
InitWatchDog Ok
powerpc_sdhc_init
###fsl-nand fsl_elbc_of_init
###fsl-nand elbc irq_num = 19
###fsl-nand: register fsl-elbc platform-device success
###fsl-nand fsl_elbc_of_init step2
###fsl-nand r.start = 0xe8000000 r.end=0xe81fffff len=0x200000
###fsl-nand: chip_data.name = nandflash
###fsl-nand: chip_data.partitions_str =
###fsl-nand platform device register success !!
###fsl-nand fsl_elbc_of_init step3
<6>PCI: Probing PCI hardware
PCI: 0000:00:00.0: class b20 doesn't match header type 01. Ignoring class.
PCI: 0001:02:00.0: class b20 doesn't match header type 01. Ignoring class.
Generic PHY: Registered new driver
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 21341k freed
sys_bbx_init
[Kern_ExcInit]Prompt: Exception module initialize successfully!
highmem bounce pool size: 64 pages
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (C) 2001-2006 Red Hat, Inc.
YAFFS-WARNING CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED selected.
io scheduler noop registered (default)
Time: timebase clocksource has been installed.
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
RAMDISK driver initialized: 4 RAM disks of 4096K size 1024 blocksize
thread-exit capture initialized!
i2c /dev entries driver
f8000000.boot: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
f8000000.boot: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
physmap-flash f8000000.boot: Using OF partition information
Creating 1 MTD partitions on "f8000000.boot":
0x00000000-0x00200000 : "boot"
mtd: Giving out device 0 to boot
e0000000.flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
e0000000.flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
physmap-flash e0000000.flash: Using OF partition information
Creating 3 MTD partitions on "e0000000.flash":
0x00000000-0x07e00000 : "jffs2"
mtd: Giving out device 1 to jffs2
0x07e00000-0x07fc0000 : "rsv"
mtd: Giving out device 2 to rsv
0x07fc0000-0x08000000 : "nvram"
mtd: Giving out device 3 to nvram
Broadcom BCM5411: Registered new driver
Broadcom BCM5421: Registered new driver
Broadcom BCM5461: Registered new driver
Gianfar MII Bus: probed
eth0: Gianfar Ethernet Controller Version 1.2, ec:1d:7f:0a:45:1e
eth0: Running with NAPI enabled
eth0: 256/256 RX/TX BD ring size
eth1: Gianfar Ethernet Controller Version 1.2, 00:d0:d0:a1:aa:a0
eth1: Running with NAPI enabled
eth1: 256/256 RX/TX BD ring size
eth2: Gianfar Ethernet Controller Version 1.2, 00:d0:d0:a2:aa:a0
eth2: Running with NAPI enabled
eth2: 256/256 RX/TX BD ring size
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO map 0xf4004500 mem 0xd3000500 (irq = 42) is a 16550A
serial8250.0: ttyS1 at MMIO map 0xf4004600 mem 0xd3002600 (irq = 42) is a 16550A
Virtual pic init...
pro_limit init start...
pro-limit init end...
typeb netlink init...
mmc0: SDHCI controller on f402e000.sdhci [f402e000.sdhci] using DMA
hddled blink module init
bsp_haddled_task running ..... OK
###fsl-nand: fsl_lbc_ctrl_dev->irq = 19
###fsl-nand: fsl_lbc_ctrl_probe() .....ok
###fsl-nand fsl_elbc_nand_probe()
fsl-elbc fsl-elbc.0: address did not match any chip selects
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
NET: Registered protocol family 17
Total 3 real net device found.
set netlink_wq prio 96
Nld ready to receive ...
Netlink Daemon start OK.
Freeing unused kernel memory: 156k init
init started: BusyBox V2.08.10_B1 (2016-12-13 11:00:51 CST
starting pid 26, tty '
starting pid 30, tty '
##########localaddr.sin_port is 11001
PHY: f4024520:05 - Link is Up - 100/Full
create jffs2_gcd_mtd1
starting pid 35, tty '
BusyBox V2.08.10_B1 (2016-12-13 11:00:51 CST) built-in shell (ash)
Enter 'helpp' for a list of built-in commands.
-n Processing /etc/profile...
Done
value = 0 = 0xmap_mem:start:2810d000 ,pg=f4000 ,size=100000,prot= 297
0
exporting *:map_mem:start:2820d000 ,pg=20000 ,size=60000000,prot= 17
/flash/logalm
map_mem:start:8820d000 ,pg=f8000 ,size=200000,prot= 297
exportfs: m
map_mem:start:8840d000 ,pg=f0000 ,size=100000,prot= 297
exporting *:/fmap_mem:start:8850d000 ,pg=f1000 ,size=200000,prot= 297
lash/logdbg
exportfs: m
exporting *:/flash/logrun
exportfs: m
exporting *:/flash/perfmp
exportfs: m
exporting *:/flash/user
exporting *:/flash/data
exporting *:/flash/cfg
exporting *:/flash/img
#
# DDR is 2GB
IMMR base virtual addr 0x2810d000
RESV base virtual addr 0x2820d000
BOOT base virtual addr 0x8820d000
CPLD base virtual addr 0x8840d000
FPGA base virtual addr 0x8850d000
sysMemParaBase virtual addr 0x880fd000
Scanning function 0 of PCI busses 0-1, devices 0-0
bus dev fn venID devID class rev MBAR0 MBAR1 iPIN iLINE devCtrl
00 00 00 1957 0072 0b2000 21 00000000 00000000 00 00 0800
01 00 00 14e4 b445 020000 11 80000004 00000000 01 00 0000
nvram check ... done.
bd check ... done.
ifconfig eth1 down
ifconfig eth1 hw ether ec:1d:7f:a:45:1e
ifconfig eth1 136.1.1.100
ifconfig eth0 6.0.1.129
ifconfig eth0 down
ifconfig eth0 hw ether 0:1:c:d:0:a6
ifconfig eth0 up
Monitor Shell Started!!
##########localaddr.sin_port is 11002
virtual_pic_open, major = 254, minor = 0
pro_limit_open, major = 234, minor = 0
SMXA>eth0 Link encap:Ethernet HWaddr 00:01:0C:01:06:00
inet addr:6.0.1.129 Bcast:6.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::201:cff:fe01:600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5576 (5.4 KiB) TX bytes:648 (648.0 B)
Tyepb irq_recv_packet task Init succeed
/dev/virtual-pic has open,ready.
open sucess.
/dev/pro_limit has open,ready.
InitRtcTime version 2 OK
SMXA>Get default FirmLogoInfo.
PHY: f4024520:05 - Link is Up - 100/Full
Assertion failed: file=/home/dailyman/work/C300V300/IAPV2.0_CODE_MAIN/src_ios/ros/source/rosrdreg.c, line=182, expression='pPRT->Used == 0x7F'
PatchFileAdd: patchCfgForNpNext.txt patch check failed.
PatchFileAdd: patchCfgForOam.txt patch check failed.
PatchFileAdd: patchCfgForNpLast.txt patch check failed.
PatchFileAdd: patchCfgNext.txt patch check failed.
PatchFileAdd: patchCfgLast.txt patch check failed.
PatchFileAdd: patchCfg.txt patch check failed.
PatchFileAdd: patchCfgForNp.txt patch check failed.
PatchNpBootSyncProc:sync finished. PatchModuleContinue.
Cpld update start
updateflag = 0x0
This board not set cpld update
DRV: (0)
##########localaddr.sin_port is 11003
##########localaddr.sin_port is 11004
bshell>
SMXA>DRV: boardType=SMXA[unit=1]
DRV: (1)
linux_kernel_bdem: module license 'Proprietary' taints kernel.
Broadcom Device Enumerator (linux-kernel-bde)
DMA Memory (kernel): 8388608 bytes, 0 used, 8388608 free
Devices:
0 (swi) : PCI device 0x14e4:0xb445:17:0x80000000:0x00000000:18
Broadcom Device Enumerator (linux-user-bmap_mem:start:91ac2000 ,pg=80000 ,size=40000,prot= 297
de)
0: Interrmap_mem:start:91b02000 ,pg=8c80 ,size=800000,prot= 17
upt mode CMICm
LINUX MMAP: pbase = 0x80000000, vbase = 0x91ac2000, size = 262144
DMA pool size: 8388608
Attaching SOC unit 0... OK.
slot 3 receive bootp request,GTGHK,gtxk.mvr
DRV: (2)
DRV: mmu init...DRV: (3)
board mac msg register!!!!
DRV: (4)
BSP:[nvram_lib.c][334]:inband mac is 0xec1d7f0a,0x451d0000
value = 0 = 0x0
DRV: (5)
DRV: (6)
DRV: (7)
slot 20 receive bootp request,GTGHK,gtxk.mvr
slot 3 receive bootp request,GTGHK,gtxk.mvr
slot 20 receive bootp request,GTGHK,gtxk.mvr
Write file /flash/img/bcm56440_b0_0.srec ...
...Done
soc uc start at 0x0
SSPDrvInit OK!
DRV: (8)
DRV: ends init[use=1065]
Initialize License module...
No license has been installed before.
Initialize license status(0x1000401f)
.
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and
Computer Software clause at DFARS sec. 252.227-7013.
ZTE Corporation.
YuHua District, Nanjing, China
ZXR10 ROS Version V4.8.35(RELEASE SOFTWARE)
Copyright (c) 2001-2017 by ZTE Corporation
Compiled Jan 17 2017, 01:02:55
nl_socket init ok for eth1.
bbx_viraddr_init[1283]
------version start-----
hardName:SMXA
hardVer:131201
MVerFuncVerName:SMXA
MVerTag:V2.1.0T37
MVerCreateTime:2017-01-17 01:04:45
------version end-----
Switch Chip Temperature 36
==\ Ros_MONSysExcInit Entry! /==
Kernel Magic 0xffffffff!
<--- buf:2146435072, len:11
<--- buf:16384, len:6
Initialize monitor process.
Initialize monitor process timer.monInit: Out
Synchronizing
Synchronizing Rsl_PostLoConnected VirtualPic IRQ - 21
cal Ros_GetPno for CALLCTL error CpuNode mod 0 unit 1
Sysctrl notify msg 33046 to task CALLCTL failed for 1 times in SctlNotifyExec!
Sctl update shelf phy info
Get shelf mfgdata OK!!!
Rsl_PostLocal Ros_GetPno for CALLCTL error CpuNode mod 0 unit 1
Sysctrl notify msg 33046 to task CALLCTL failed for 2 times in SctlNotifyExec!
##########localaddr.sin_port is 11004
##########localaddr.sin_port is 11005
SysMonEntry get handle failed, curState:1, msgId:0x239!
Master Database Power on!!!!!!!!!!!!!
Database read Nvram data OK!!!!!!!!!!!!!
>>MUX_INIT:muxLagInit,Init OK.
Rsl_PostLocal Ros_GetPno for CALLCTL error CpuNode mod 0 unit 1
Sysctrl notify msg 33046 to task CALLCTL failed for 3 times in SctlNotifyExec!
SetPRWGSTrapFlag
SetPRWGSTrapFlag
SetPRWGSTrapFlag
protocol master goto WAIT_STATE
Hello
...........................-OK!
************************************************
Welcome to ZXAN product C320 of ZTE Corporation
************************************************
После перезагрузки
Карты загружаются достаточно долго уже после того как основная система загруpзилась:
#show card
Rack Shelf Slot CfgType RealType Port HardVer SoftVer Status
-------------------------------------------------------------------------------
1 1 1 GTGH 16 HWONLINE
1 1 2 GTGH 16 HWONLINE
1 1 3 PRAM PRAM 3 V1.0.0 V1.01 INSERVICE
1 1 4 SMXA SMXA 3 V1.0.0 V2.1.0 INSERVICE
Через несколько минут, в течении которых я успел понервничать, (я бы сказал до 3-4), все приходит в норму.
#show card
Rack Shelf Slot CfgType RealType Port HardVer SoftVer Status
-------------------------------------------------------------------------------
1 1 1 GTGH GTGHK 16 V1.0.0 V2.1.0 INSERVICE
1 1 2 GTGH GTGHK 16 V1.0.0 V2.1.0 INSERVICE
1 1 3 PRAM PRAM 3 V1.0.0 V1.01 INSERVICE
1 1 4 SMXA SMXA 3 V1.0.0 V2.1.0 INSERVICE
Patches
Далее заливать патчи, есть 2 типа патчей
.spat
содержат в себе несколько патчей
.pat
сождержат в себе отдельный патч
Точной информации о том какие патчи нужны и что именно они делают, мне найти не удалось, по этой причине привожу команды по устновке патчей и список установленных патчей.
Активация некоторых патчей требует перезагрузки, о чем устройство сообщает.
v210_p006.spat
patch active package v210_p006.spat
...
The card in slot 4 need to reset after patch is active!
Set active flag of v210_p006.spat success!
Position PatchFile VerTag ActiveTime Status
-------------------------------------------------------------------------------
1/1/4 smxav210t37_r0.pat V2.1.0 2023-09-27 12:55:38 Success
1/1/4 smxav210t37_r1.pat V2.1.0 2023-09-27 12:55:38 Reset
1/1/4 smxav210t37_r2.pat V2.1.0 2023-09-27 12:55:38 Reset
1/1/4 smxav210t37_r3.pat V2.1.0 2023-09-27 12:55:38 Reset
v210_p018.spat
patch active package v210_p018.spat
......
The card in slot 1 need to reset after patch is active!
The card in slot 2 need to reset after patch is active!
The card in slot 4 need to reset after patch is active!
Set active flag of v210_p018.spat success!
#show patch-running
Position PatchFile VerTag ActiveTime Status
-------------------------------------------------------------------------------
1/1/1 gtxkv210t45_r0.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/1 gtxkv210t45_r1.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/1 gtxkv210t45_r2.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/1 gtxkv210t45_r3.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/2 gtxkv210t45_r0.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/2 gtxkv210t45_r1.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/2 gtxkv210t45_r2.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/2 gtxkv210t45_r3.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/4 smxav210t37_r0.pat V2.1.0 2023-09-27 12:55:38 Success
1/1/4 smxav210t37_r1.pat V2.1.0 2023-09-27 12:55:38 Reset
1/1/4 smxav210t37_r2.pat V2.1.0 2023-09-27 12:58:47 Reset
1/1/4 smxav210t37_r3.pat V2.1.0 2023-09-27 12:58:47 Reset
1/1/4 smxav210t37_r4.pat V2.1.0 2023-09-27 12:58:47 Reset
1/1/4 smxav210t37_r5.pat V2.1.0 2023-09-27 12:58:47 Success
1/1/4 smxav210t37_r6.pat V2.1.0 2023-09-27 12:58:47 Reset
1/1/4 smxav210t37_r7.pat V2.1.0 2023-09-27 12:58:47 Success
1/1/4 smxav210t37_r8.pat V2.1.0 2023-09-27 12:58:47 Success
1/1/4 smxav210t37_r9.pat V2.1.0 2023-09-27 12:58:47 Success
v210_p030.spat
patch active package v210_p030.spat
...............
The card in slot 1 need to reset after patch is active!
The card in slot 2 need to reset after patch is active!
The card in slot 4 need to reset after patch is active!
Set active flag of v210_p030.spat success!
#show patch-running
Position PatchFile VerTag ActiveTime Status
-------------------------------------------------------------------------------
1/1/1 gtxkv210t45_r0.pat V2.1.0 2023-09-27 12:58:49 Reset
1/1/1 gtxkv210t45_r1.pat V2.1.0 2023-09-27 13:01:02 Success
1/1/1 gtxkv210t45_r2.pat V2.1.0 2023-09-27 13:01:05 Reset
1/1/1 gtxkv210t45_r3.pat V2.1.0 2023-09-27 12:58:55 Reset
1/1/1 gtxkv210t45_r4.pat V2.1.0 2023-09-27 13:01:21 Success
1/1/1 gtxkv210t45_r5.pat V2.1.0 2023-09-27 13:01:07 Success
1/1/1 gtxkv210t45_r7.pat V2.1.0 2023-09-27 13:01:09 Success
1/1/1 gtxkv210t45_r8.pat V2.1.0 2023-09-27 13:01:11 Success
1/1/1 gtxkv210t45_r9.pat V2.1.0 2023-09-27 13:01:13 Success
1/1/1 gtxkv210t45_r10.pat V2.1.0 2023-09-27 13:01:15 Reset
1/1/1 gtxkv210t45_r11.pat V2.1.0 2023-09-27 13:01:17 Success
1/1/1 gtxkv210t45_r12.pat V2.1.0 2023-09-27 13:01:19 Success
1/1/1 gtxkv210t45_r13.pat V2.1.0 2023-09-27 13:01:23 Success
1/1/1 gtxkv210t45_r14.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/1 gtxkv210t45_r15.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/1 gtxkv210t45_r16.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/2 gtxkv210t45_r0.pat V2.1.0 2023-09-27 12:58:50 Reset
1/1/2 gtxkv210t45_r1.pat V2.1.0 2023-09-27 13:01:03 Success
1/1/2 gtxkv210t45_r2.pat V2.1.0 2023-09-27 13:01:05 Reset
1/1/2 gtxkv210t45_r3.pat V2.1.0 2023-09-27 12:58:56 Reset
1/1/2 gtxkv210t45_r4.pat V2.1.0 2023-09-27 13:01:21 Success
1/1/2 gtxkv210t45_r5.pat V2.1.0 2023-09-27 13:01:07 Success
1/1/2 gtxkv210t45_r7.pat V2.1.0 2023-09-27 13:01:09 Success
1/1/2 gtxkv210t45_r8.pat V2.1.0 2023-09-27 13:01:11 Success
1/1/2 gtxkv210t45_r9.pat V2.1.0 2023-09-27 13:01:13 Success
1/1/2 gtxkv210t45_r10.pat V2.1.0 2023-09-27 13:01:15 Reset
1/1/2 gtxkv210t45_r11.pat V2.1.0 2023-09-27 13:01:17 Success
1/1/2 gtxkv210t45_r12.pat V2.1.0 2023-09-27 13:01:19 Success
1/1/2 gtxkv210t45_r13.pat V2.1.0 2023-09-27 13:01:23 Success
1/1/2 gtxkv210t45_r14.pat V2.1.0 2023-09-27 13:01:25 Success
1/1/2 gtxkv210t45_r15.pat V2.1.0 2023-09-27 13:01:27 Success
1/1/2 gtxkv210t45_r16.pat V2.1.0 2000-01-01 03:00:00 Waiting
1/1/4 smxav210t37_r0.pat V2.1.0 2023-09-27 12:55:38 Success
1/1/4 smxav210t37_r1.pat V2.1.0 2023-09-27 12:55:38 Reset
1/1/4 smxav210t37_r2.pat V2.1.0 2023-09-27 12:58:47 Reset
1/1/4 smxav210t37_r3.pat V2.1.0 2023-09-27 12:58:47 Reset
1/1/4 smxav210t37_r4.pat V2.1.0 2023-09-27 12:58:47 Reset
1/1/4 smxav210t37_r5.pat V2.1.0 2023-09-27 13:01:01 Success
1/1/4 smxav210t37_r6.pat V2.1.0 2023-09-27 12:58:47 Reset
1/1/4 smxav210t37_r7.pat V2.1.0 2023-09-27 13:01:01 Success
1/1/4 smxav210t37_r8.pat V2.1.0 2023-09-27 13:01:01 Success
1/1/4 smxav210t37_r9.pat V2.1.0 2023-09-27 13:01:01 Success
1/1/4 smxav210t37_r10.pat V2.1.0 2023-09-27 13:01:02 Reset
1/1/4 smxav210t37_r11.pat V2.1.0 2023-09-27 13:01:01 Success
1/1/4 smxav210t37_r12.pat V2.1.0 2023-09-27 13:01:01 Success
1/1/4 smxav210t37_r13.pat V2.1.0 2023-09-27 13:01:01 Success
1/1/4 smxav210t37_r14.pat V2.1.0 2023-09-27 13:01:02 Success
1/1/4 smxav210t37_r15.pat V2.1.0 2023-09-27 13:01:02 Success
1/1/4 smxav210t37_r16.pat V2.1.0 2023-09-27 13:01:02 Success
Финальный список патчей