5. Inside - TopicsExpress



          

5. Inside svn://172.16.0.181/mcu_1588/trunk/user/sources/zebos-7.10.0_ce/ctpmd/Rules.dir contents the link to PTP source code. the make files 6. Porting + telenet 172.16.39.1 7011 + run make command for : svn://172.16.0.181/mcu_1588/ + go inside (4) for editing the add-on components + build the OS including add-on components + enable + st # init shell linux screen + reboot -f + go into MB mode by pressing any key when the program is loading first 5 seconds ... + setenv bootcmd netboot M33-MCU.nguyenld + save + printenv to check out the seting + boot 7. In order to modify the command line : /home/nguyenld/mbu/user/sources/zebos-7.10.0_ce/ssm 8. In order to show command in ctpmd mode we have to access to zebos mode: the current is M33 show we enter en command to acess the zebos mode and then enter the ctpmd comand such as : show debugging ctpmd 9./home/nguyenld/trunk/user/sources/zebos-7.10.0_ce/platform/linux 10. To see the log messages: cat /var/log/messages 11. To list all app: ps ux 12. To kill : px -9 idnumber 13 To iniit: ./ctpmd & 14. Log: zlog_info( zg, %s, abReportBuffer1 ); 15 To enable or diable a module: /home/tiennt/mcu_ha/trunk/configs/m1000/mcu M16# m1000-mcu-target-rules.make M16# /trunk M16# make zebos.clean M16# make zebos.config M16# make M16# make zebos.build M16# make 16: change luanguage : LANG=c 18. To set ip address: ifconfig ipc 192.168.7.7 19. List current running devices: cat /proc/devices 20. find ./ -name *.ko 21. ioctl 22.To list all file start with spi : ls /dev/spi* 23. To show cpu information: cat /proc/cpuinfo 24. List process with desire to find grep make: ps -ef |grep make 25. make & : keep the process on server 26. cat a.txt|grep ^M -> to show the modifired files on svn 27. Configuration: 28. show slot: M33# sh sl 29. show interface config: ifconfig iclk 30. see all the port state: /modules/bcm.user.proxy setenv serverip 172.16.0.185 setenv serverip 172.16.0.181 setenv bootcmd netboot M33-MCU.hwlee setenv bootcmd netboot M33-MCU.nguyenld mknod /dev/zlTsPkts1 c 66 1 usr/sbin/ /home/nguyenld/trunk/user/sources/zebos-7.10.0_ce > cat logfile.log| grep -- 1. Working server: 172.16.0.187 nguyenld/nguyenld1234 2. Svn server : 172.16.0.210 3. Mar server, get image and deploy to real machine : 172. 4. show interface ge1: to see mac address 5. interface ge2: to configurate for interface ge2: 6. Pass to get source in svn is: nguyenld/nguyenld 7. In order to setup a test tool (Mr park guide): + Setup the spirent test center tool + Go to internet configuration add another ip: 192.168.0.207 + Try to ping to the test machine IP : 192.168.0.98 + Select port + Generate traffic + 8. When plug in a cable, need to reverse the tx and rx line between two connected devices 9. Mac address in 7003/ge2: 000e.5a20.0104 12.Mac address in 7008/ge4: 00a0.2406.0005 13. clear mac address-table dynamic bridge 1: is used to clear mac table ==================================================================================================================== 14. /home/users/nguyenld/project/m20a/trunk/user/sources/zebos-7.10.0_ce/:wq alias m20czeboslink=rm /home/users/nguyenld/.vimrc; ln -s /home/users/nguyenld/.vimrcm20 /home/users/nguyenld/.vimrc; cd /home/users/nguyenld/project/m20a/trunk/user/sources/zebos-7.10.0_ce/; wowcs; alias m20zebos=cd /home/users/nguyenld/project/m20a/trunk/user/sources/zebos-7.10.0_ce/; alias m20atrunk=cd /home/users/nguyenld/project/m20a/trunk/; ==================================================================================================================== 14. m20czeboslink m20zebos 16. export EDITOR=vim set tags=/home/users/nguyenld/project/m20a/trunk/user/sources/zebos-7.10.0_ce/tags lib/mpls_client/ ==================================================================================================================== 21; oamd/bfd/bfd_network.c 1556L, 47435C bfd_send_mpls_lsp_async_pkt (struct bfd_session_fwd *sess) oamd/bfd/bfd_packet.c 1921L, 60279C -> bfd_hello_send_now -> BFD_EVENT_ON (sess->send_imm, bfd_hello_send_now, sess); ==================================================================================================================== 26. bfd_vccv_async_packet_process ==================================================================================================================== 35. Commands for show the hardware configurations M20# start-shell ~ # cd /modules/ /modules # ./bcm.user.proxy NONE BCM.0> vlan show BCM.0> ps BCM.0> l3 egress show BCM.0> l3 intf show BCM.0> dump mpls_entry ==================================================================================================================== 35. hal_server_set_callback (hs, HAL_MSG_CONFIG_REQUEST,hal_parse_config,hal_server_recv_config); hal_server_read_msg ( ret = (*hs->parser[type]) (&hse->recv.pnt, &hse->recv.size, &header, hse, hs->callback[type]); 36. Circuit Emulation Service (CES) ==================================================================================================================== 37. Microcode is used to process the received packets. Very interesting topic :) 38j. We use BCM4704_VENDOR_ID for vendor ID ==================================================================================================================== 41. reload system refactory-config ==================================================================================================================== 42. systems/drv/bcm570x/tigon3.c ==================================================================================================================== 43. linux-kernel-bde ==================================================================================================================== 60. Note LIST_LOOP operation ==================================================================================================================== 66. equip_fib->flag |= ~EQUIP_VPLS_FIB_PRIMARY; dont understand ==================================================================================================================== 67 [nguyenld@mars zebos-7.10.0_ce]$ gcc -g test.c -o mytest -lm [nguyenld@mars zebos-7.10.0_ce]$ mytest Hello World [nguyenld@mars zebos-7.10.0_ce]$ ==================================================================================================================== 68. Bit operattions cprogramming/tutorial/bitwise_operators.html 69. Good article about VPWS, VPLS mpls-configuration-on-cisco-ios-software.org.ua/1587051990/ch11lev1sec1.html ==================================================================================================================== 71. for testing mc_grp_entry 172.16.160.161:23 72. exec-timeout 0 ==================================================================================================================== 72. Test with management interface a) insert management interface interface mgmt ip address 172.16.46.167/16 no shutdown b) telnet to that interface with port 23 c) set hal and sdk to debug mode hal debug log enable set-bcmsdk-debug on d) perform cmd in this terminal while the bug results are printed in the main terminal ==================================================================================================================== 73. Show l3 egress table M16# start-shell ~ # cd /modules/ /modules # ./bcm.user.proxy then : BCM.0> l3 egress show ==================================================================================================================== 74. Testing for L2CP packets a) To see a packet comming into CPU, need enable debug log for this hal debug log enable set-bcmsdk-debug on set-pkt-debug dma-print-mask 11 ==================================================================================================================== 74. installation guide for IXIA testing tool a) Software location: \\172.16.0.5\연구소공용\70. TOOLS\11. 이더넷 계측기 b) Install 1st file firstly, then install the second file c) Copy the config file into : C:\Program Files\Ixia\IxNetwork\7.0-EA d) Initilize the installed program ==================================================================================================================== 75. Show VPN information show debug mpls vpn 800 slot 1 show itut meg summary show itut meg brief show debug-mplstp-oam slot 1 mep 1 show debug-mplstp-oam slot 1 mep 0 show debug-mplstp-oam slot 1 mep 2 debug nsm mtp bhh ==================================================================================================================== 96 Linear protection group debuging commands (LPS) show g8131 pg-status all show debug mpls vpn 100 slot 1 show debug mpls pg 1 slot 1 show itut meg summary ==================================================================================================================== 79. Linear protection group debuging commands (LPS) show debug mpls vpn 100 slot 1 show debug mpls pg 1 slot 1 show itut meg summary ==================================================================================================================== 77. M16# sh interface statistics M16# sh port status ==================================================================================================================== 78. broadcom account https://support.broadcom/docSAFE/DNL/Default.aspx khkim@telefield/Telefield10 pdf pass: docs606838 ==================================================================================================================== 80. to enable debug log in nsm terminal monitor debug nsm all ==================================================================================================================== 81. to show modification under a folder svn status |grep M ==================================================================================================================== 82. to show hardware setting, ex, to show l2 mac learning: a) go to bcm_shell b) l2 show ==================================================================================================================== 84. remove all existd setting due to system crack down # cd /nvram # ls zebos.backup.conf.tgz zebos.conf.tgz # rm * ==================================================================================================================== 85. too see system log # cat /var/log/messages ==================================================================================================================== 85. extract a tar.gz file file.tar.gz tar xvzf file.tgz ==================================================================================================================== 86. can not load the image file Environment size: 1897/16380 bytes M20MB => print ethaddr ethaddr=00:A0:24:0E:FF:FF M20MB => setenv ethaddr 00:C0:24:0E:FF:FF M20MB => saveenv Saving Environment to Flash... 87. perform list of commands make zebos.build;make;other cmd; ==================================================================================================================== 88. build for new CLI code a) just modify existed cli -> make zebos.build;make b) make a new cli -> make zebos.clean;make zebos.config;make zebos.build; make c) other make given by Choe su sok nim: make zebos.clean make zebos.distclean make zebos.config make zebos.clean make zebos.build ==================================================================================================================== 89. Rule for API calling bcmx_l2_addr_add bcm_l2_addr_add bcm_tr_l2_addr_add bcx_xxx -> bcm_xxx-> bcm_tr_xxx ==================================================================================================================== 90. make bcmsdk.build ==================================================================================================================== 101. tar -cvf file.tar testf tar -xvf file.tar ==================================================================================================================== 91. #define BCM_DLIST_ENTRY(_dtype) \ extern int bcm_##_dtype##_field_action_add( \ int unit, bcm_field_entry_t entry, bcm_field_action_t action, uint32 param0, uint32 param1); #include /* Dispatch table for this function, which uses the externs above */ #define BCM_DLIST_ENTRY(_dtype)\ bcm_##_dtype##_field_action_add, static int (*_field_action_add_dispatch[])( int unit, bcm_field_entry_t entry, bcm_field_action_t action, uint32 param0, uint32 param1) = { #include 0 }; ==================================================================================================================== 92. Configuration to initilize hsl log hslpl/hsl_logger.c find tag: hsl_log_infor and change ==================================================================================================================== 93. One CPU may control many HW chips(enduro, petra-b). So, bcmx_xxx function is called with out unit parameter(dev number) Will there be a loop to disparch bcmx_xxx to bcm_xxx(unit...) ==================================================================================================================== 94. Layer concept is just the way a network is logically divided into different hierarchical layers for easy in understanding. The real hadware system is orignized just as a list of tables. Each table is connected to another following a protocol flow ==================================================================================================================== 95. + To show fields in a register BCM.0> LIST IPMC_VLAN + To show the full infor BCM.0> DUMP IPMC_VLAN 4 1 + To modify an entry BCM.0> MODIFY IPMC_VLAN 4 1 MSB_VLAN=4 ==================================================================================================================== 97. cs -R to go into cscope ==================================================================================================================== 100. To add a new defined parameters: define in two file zebos folder/configure.ac zebos folder/config.h.in Then go to the initilization file to enable needed process. in makefile.rule ==================================================================================================================== 102. If there is a bug look like MCU ! PCP... . This is because a null object is quiried. So just cat /var/log/message to see the function which cause the bug ==================================================================================================================== 103. H_VPLS_PROTECTION status: Blocking function has not finished yet. Code is modified in hsl_bcm.c with hsl_bcm_lps_traffic_blocking_primary_entry_install_test function. The qualifier can perform UDF field but the qualifying function for ether type has a problem. In case the packet payload exists a eth type different to 8847 then packet can not be filtered. ==================================================================================================================== 104. svn update to sepecific version: svn up -r xxx (xxx = version number) ==================================================================================================================== 105. svn checkout to specific version: svn co svn://xxxx.xxx@xxx (xxx=version number) ==================================================================================================================== 106. Link svn for m16 svn://172.16.0.210/svn/ce/trunk/ ==================================================================================================================== 107. Configure for specific system (m16, m33...) by modifying the follow file: /trunk/configs/m16/nmcu/m16-nmcu-source-rules.make ==================================================================================================================== 108. How to use the meeting conductor/slide show machine a) Connect slideshow cable to labtop b) Login into labtop with account: administrator (consider A or a in first character) c) ctr with a key on keyboard. or shift with a key on keyboard ==================================================================================================================== 109. To add a new folder into current zebos souce code ------------------------------------------------------------------------------------------- a. Go to /trunk/user/target and modify Rules.make file, actually in here we need to modify in two places. a1. Also need to modify here :/home/users/nguyenld/project/m16dh/trunk/configs/m16/nmcu/ m16-nmcu-target-rules.make ex. If we want to enable folder micp so we need to put --enable-micp into this file b. Go to parent folder of the new folder and then modify the file Rules.dir file b1. THIS IS IMPORTANT: SHOULD MODIFY zebos folder/configure.ac file as follow: ----STEP 1--------- if test $ENABLE_MICP = yes;then echo ENABLE_MICP=yes >> $OPTIONS_FILE else echo ENABLE_MICP=no >> $OPTIONS_FILE fi ----STEP 2---------- ENABLE_MICP=no ----STEP 3-------------- dnl ---------------------------------- dnl MPLS-TP inter comunication protocol dnl ---------------------------------- if test ${enable_micp} = yes; then AC_DEFINE(HAVE_TWO_DUAL_HOME,,TWO_DUAL_HOME) ENABLE_MICP=yes fi ====================== c. Then go to trunk and run: make zebos.clean;make zebos.config; make zebos.build;make d. The above step is proposed by dogun hyung, but i think e. We should use this if above step is not ok : make clean;make config;make. Because what we modify in step 1 is outside zebos folder so i think we should perform it in trunk, not only in zebos folder. f. make again ==================================================================================================================== 110. PROCEDURES TO CREATE A NEW CLI MODE (EX. NSM_MICP_DH_RG_MODE) ------------------------------------------------------------------ a) Define the 1st parameter:cli_mode_types.h 317 #define NSM_MICP_DH_RG_MODE 213 b) Define the 2st parameter: cfg_data_types.h CFG_DTYP_NSM_MICP_DH_RG_MODE = 330 c) Define sequence: cfg_seq.c { CFG_DTYP_NSM_MICP_DH_RG_MODE, CFG_STORE_PM, NSM_MICP_DH_RG_MODE} d) Define similar in /lib/cli.c e) Define in cli_mode.c f) Define in xxx_cli.c ex: nsm_micp_cli.c g) Configure two files in /imi & /imish/ Rules.dir h) Define ignore field in /lib/cli.pl (this aim to ignore, not process the cli mode commands) i) Run commands: make zebos.clean;make zebos.config;make zebos.build;make k) or Possible : make clean;make config;make;make zebos.clean;make zebos.config;make zebos.build;make NOTES: The most important things when creatting a new CLI mode is we should follow the existed mode and modify the cli.pl file ==================================================================================================================== 111. TO SHOW MEMORY INFORMATION OF DEVICE (DISK SIZE disksize disk size) a) Go to linux shell: from zebos->run st b) Fire this commands: df -h ==================================================================================================================== 112. DUAL HOME BACKUP CODE cp nsm_micp.c bk/20140404/nsm_micp.c.20140404 cp nsm_micp.h bk/20140404/nsm_micp.h.20140404 cp nsm_micp_api.h bk/20140404/nsm_micp_api.h.20140404 cp nsm_micp_cli.c bk/20140404/nsm_micp_cli.c.20140404 cp nsm_micp_dh.c bk/20140404/nsm_micp_dh.c.20140404 cp nsm_micp_dh.h bk/20140404/nsm_micp_dh.h.20140404 cp nsm_micp_dhfsm.c bk/20140404/nsm_micp_dhfsm.c.20140404 cp nsm_micp_dhfsm.h bk/20140404/nsm_micp_dhfsm.h.20140404 cp nsm_micp_test.c bk/20140404/nsm_micp_test.c.20140404 ==================================================================================================================== vc = nsm_mpls_l2_circuit_lookup_by_id (nm, vc_id); make distclean;make model=m16 unit=nmcu config;make tail -f /var/log/messages svn update -r12700 ==================================================================================================================== 1. Reset port a) Login into 172.16.39.3/login.asp b) Password admin/admin c) Got to serial port then->configuration d) Select port to config e) Choose reset ==================================================================================================================== 150. Linux configuration make kernel.menuconfig ==================================================================================================================== 151. M160 tutorials a) To init CFU slot s3 unit ge16fu b) To show hardware system show slot ==================================================================================================================== 152. Make file for M160 svn://172.16.0.210/svn/ce/trunk svn co svn://172.16.0.210/svn/ce/trunk@12053 make model=m160 unit=nmcu config;make make model=m20c unit=nmcu config svn co svn://172.16.0.210/svn/m20c/trunk ./trunk svn co svn://172.16.0.210/svn/ce/trunk ./trunk;cd trunk;make model=m160 unit=mswua config;make make model=m160 unit=mswa config;make svn co svn://172.16.0.210/svn/m20c/trunk ./trunk; cd trunk; make model=m20c unit=nmcu config;make ==================================================================================================================== 153. PetraB register setting a) ./bcm.user b) Expecting VALUE for this PARAMETER (read_reg)... List of acceptable values for this parameter (read_reg): 01) Numeric variable. No minimum. No maximum. Dune >petra_api access read_reg 0x0000f val: 0x7FFE7FFE Dune >petra_api access read_reg 0x000ff val: 0xDEADBEEF E:\project\Telefield_docs\Technical\Manual\BoradCom\Arad\ARAD_교육자료_scan\Packet_processing item2.gmarket.co.kr/English/detailview/item.aspx?goodscode=190627332 ==================================================================================================================== 154. ls /tftpboot/M160-NMCU* -l ==================================================================================================================== 155. Cotnrol PetraB Chipset petra_api utils get_device_id petra_api utils set_device_id id 1 ==================================================================================================================== 156. svn commition 1) one file svn commit -m update make rule file for static ip-mpls module m160-nmcu-target-rules.make multiple files svn commit -m update source code for static ip-mpls module configure.ac config.h.in nsm/mpls/nsm_mpls_fwd.c nsm/mpls/nsm_mpls_rib.c phsl/MPLS/hsl_mpls.c phsl/broadcom/MPLS/hsl_bcm_mpls.c b) add new folder and files step1) svn import -m add source code for dual-homming module oamd/micp/ svn://172.16.0.210/svn/m20c/trunk/user/sources/zebos-7.10.0_ce/oamd/micp step2) mv oamd/micp/ oamd/miiii step3) svn update oamd/ example svn commit -m remove debug print nsm/mplstp/nsm_mplstp_api.c nsm/mplstp/nsm_mplstp_cli.c svn import -m add nsm code for dual-homming nsm/micp/ svn://172.16.0.210/svn/ce/trunk/user/sources/zebos-7.10.0_ce/nsm/micp mv nsm/micp nsm/miiii svn update svn import -m add oamd code for dual-homming oamd/micp/ svn://172.16.0.210/svn/ce/trunk/user/sources/zebos-7.10.0_ce/oamd/micp mv oamd/micp/ oamd/miiii svn update pal_console(LDP_REMOVE: [%s():%d]=====================\n, __func__, __LINE__); ----------------------hsl_mpls_ftn_add pal_console(DH_REMOVE: [%s():%d]=====================\n, __func__, __LINE__); ==================================================================================================================== 157. svn deletion step1) svn del nsm_micp.c nsm_micp.h step2) svn ci -m del nsm_micp file ==================================================================================================================== make kernel.menuconfig devide driver/blogdriver->change ramdisk size pal_console([%s():%d]: argc = %d, __func__, __LINE__, argc); ==================================================================================================================== 159 st rm ../../nvram/* .*/ reboot ==================================================================================================================== 160. Debug oam modules debug bhh ccm debug bhh event ==================================================================================================================== 160. To print out the screen pal_console([%s()]: 3. ret=%d, __func__, ret); ==================================================================================================================== 162. Install XMINg and PUTTY rcc.its.psu.edu/user_guides/remote_display/xming/ ==================================================================================================================== micp-dh-test 16 1 88 100 88 88 88 600 1 0 micp-dh-test 15 3 88 100 88 88 88 600 1 0 micp-dh-test 16 3 88 100 88 88 88 600 1 0 micp-dh-test 16 8 88 100 88 88 88 600 1 0 micp-dh-test 16 7 88 100 88 88 88 600 1 0 ==================================================================================================================== 167. To enable hsl log in m20c hal debug log level all ==================================================================================================================== 168. M20C setting setenv bootcmd netboot M1000-MCU.nguyenld Machine 1 setenv bootcmd netboot M160-MSWUA.nguyenld setenv serverip 172.16.0.187 setenv bootcmd netboot M20C-NMCU.nguyenld setenv ethaddr 00:a0:24:0e:ff:ff Machine 2 serverip=172.16.0.187 setenv bootcmd netboot M20C-NMCU.nguyenld setenv ethaddr 00:AA:BB:16:00:00 Machine 3 netmask=255.255.0.0 ipaddr=172.16.48.116 serverip=172.16.0.187 bootcmd=netboot M20C-NMCU.nguyenld setenv ethaddr 00:A0:24:0E:FF:F1 Machine 4 netmask=255.255.0.0 ipaddr=172.16.48.116 serverip=172.16.0.187 bootcmd=netboot M20C-NMCU.nguyenld setenv ethaddr 00:B0:24:0E:FF:F1 setenv serverip 172.16.0.185 setenv bootcmd netboot M20C-NMCU-0.0.40.build sererip=172.16.0.185 filesize=2623A54 fileaddr=A00000 gatewayip=172.16.0.1 netmask=255.255.0.0 ipaddr=172.16.48.116 ethaddr=00:B0:24:0E:FF:F1 bootcmd=netboot M20C-NMCU.nguyenld serverip=172.16.0.187 stdin=serial stdout=serial stderr=serial ver=U-Boot 1.3. ==================================================================================================================== 169. Show log file in limit rows tail -500 /var/log/messags ==================================================================================================================== 168. OAMD debugging clis sh debug-mplstp-oam slot 1 mep 7 sh debug mpls vpn 100 /proc # cd .. / # cd /modules/ /modules # ls bcm.user.proxy linux-bcm-diag-full.ko rc.soc config-m20c.bcm linux-kernel-bde.ko hsl.ko linux-uk-proxy.ko /modules # cat /proc/hsl/ifmgr ==================================================================================================================== 169. To see info of machine. Who is using this machine M20C# st ~ # cat /proc/version ==================================================================================================================== 170. Compare two folders to see the diffrence diff -r /home/users/nguyenld/project/m20cdh/trunk/user/sources/zebos-7.10.0_ce/nsm/micp /home/users/nguyenld/project/m160adh/trunk/user/sources/zebos-7.10.0_ce/nsm/micp sh mpls vc-table sh g8131 pg-status all sh alarm sh interface statistics 2/5 sh debug pcp mplstp oam-pkt-count 1 6 sh debug pcp mplstp oam-pkt-count 1 6 ==================================================================================================================== 171. ~ # cat /proc/meminfo MemTotal: 776024 kB MemFree: 369348 kB Buffers: 1660 kB Cached: 77028 kB SwapCached: 0 kB ==================================================================================================================== 180. Show and Filter by a Lookup Key ~ # cat /var/log/messages | grep Hwan ==================================================================================================================== 199. Different way to compile again a image Step 1. delete file: /zebos/platform/linux/dep/platform.dep /zebos/platform/linux/obj/imi/imi_cli.o /zebos/platform/linux/obj/imi/imi_cmd.c /zebos/platform/linux/obj/imi/imi_cmd.o /zebos/platform/linux/obj/imish/imish_cli.o /zebos/platform/linux/obj/imish/imish_cmd.c /zebos/platform/linux/obj/imish/imish_cmd.o Step 2. make ==================================================================================================================== 200. OAM related commands sh debug mplstp loc-rdi-cnt sh bhh rx-event-count sh debug-mplstp-oam slot 1 mep 7 ==================================================================================================================== 201. Telnet remoting Step 1) Use management IP by using command show running-config interface mgmt Step 2.1) Use show ip route command to see connecting machine IP addresses Step 2.2) Telnet to the IP of expected connecting machine Step 3) Login and use it ==================================================================================================================== 202. Force remote user to logout Step 1) show users User Host(s) Idle Location root console 13:21:59 ttyS0 root 5.1.1.3 01:42:15 pts/0 root 5.1.1.3 00:02:25 pts/1 Step 2) userquit pts/0 userquit pts/1 ==================================================================================================================== 202. PetraB (petrab) chip setting /modules # /modules # ./bcm.user ==================================================================================================================== 203. Thread control NOTE THAT: Reset NULL to thread value in call back function 204. M100 IP management and related setting telnet 192.168.248.1 ipc address MCUA 192.168.248.1 ipc address MCUB 192.168.248.2 unit-type gfu40 equipment slot 3 make model=m1000 unit=cfu config make model=m1000 unit=gfu40 config SHOW_MPLS_VC_TABLE make model=m1000 unit=mcu config;make -------------------------------------------------------------------------------------------------- BYTE bVcMode; rm -f .prj_model .prj_unit .prj_arch .prj_compile make distclean; ==================================================================================================================== 200. Enable deamon, example enable ldp protocol, ENABLE LDP DEAMON a) Go to target make file and enable defined key for ldp: 2 files 1->m20c-nmcu-source-rules.make 2->m20c-nmcu-target-rules.make b) Go to /home/users/nguyenld/project/m20cipstatic/trunk/user/sources -> then enable related ldp items in Rules.make file c) Go to folder: /home/users/nguyenld/project/m20cldp/trunk/user/m20c/nmcu/binary/etc/rcS.d -> then endable ldp items in rc.zos file d) Re compile all make zebos.clean;make zebos.config;make zebos.build;make ==================================================================================================================== 201. mirror copy MIRROR from 3/2 to 3/5 M20C(config)# mirror monport 3/5 M20C(config)# mirror source 3/2 direction both ==================================================================================================================== #if defined (HAVE_TELEFIELD) && defined (HAVE_LDPD) /* LDP_PORTING NGUYEN 2014.12.30 */ #endif /* HAVE_LDPD */ MODIFY L3_DEFIP 4609 1 NEXT_HOP_INDEX1=5 NEXT_HOP_INDEX0=3 setenv serverip 172.16.0.185 setenv bootcmd netboot M20C-NMCU-1.0.0-63.build ==================================================================================================================== 202. EMS Setting * In EMS client setting as following 1. 홈->노드 -> Setting management IP * In Server 1. Create management IP 2. add ems 172.16.0.169 Note: M160A is configured in MCU. by following commands: a)ip address mgmt 172.16.150.110/16 b)add ems 172.16.0.169 ==================================================================================================================== printk(##LDP_REMOVE ====================================================================\n); printk(##LDP_REMOVE %s() ## line=%d\n, __func__, __LINE__); printk(##LDP_REMOVE ENTER %s() ## line=%d\n, __func__, __LINE__); printk(##LDP_REMOVE RETURN %s() ## line=%d\n, __func__, __LINE__); ==================================================================================================================== 203. Unknown DIP packets are trapped and causes CPU overload -> the solution is to create a queue for these kind of traffic so tht it does not effects other process. 김수석님 knows this issues well ==================================================================================================================== 203. UNKNOW DIP TO CPU V4L3DSTMISS_TOCPU BCM.0> g cpu_control_1 CPU_CONTROL_1.ipipe0[0xc180603]=0x120400: CPU control is set in hsl/broadcom/hsl_bcm.c -> _hsl_bcmx_switch_init (void) ==================================================================================================================== set-pkt-debug dma-print-mask ffffffff set-pkt-debug dma-print-mask 0 ==================================================================================================================== Device1: ping 192.168.5.5 Device2: tcpdump -i 3-12 ====================================================================================================================
Posted on: Thu, 08 Jan 2015 08:16:44 +0000

Trending Topics



Recently Viewed Topics




© 2015