I created tcpdump package for IP04 to capture raw packets
http://bl0g.blogdns.com/ip04/tcpdump.mk
http://bl0g.blogdns.com/ip04/libpcap.mk
http://bl0g.blogdns.com/ip04/tcpdump.mk
http://bl0g.blogdns.com/ip04/libpcap.mk
I created tcpdump package for IP04 to capture raw packets
http://bl0g.blogdns.com/ip04/tcpdump.mk http://bl0g.blogdns.com/ip04/libpcap.mk I spend a little time to write a working dropbear ipkg mk file dropbear.mk. it is copied from asterisk.mk and adopted to dropbear.mk, here is the link:
http://bl0g.blogdns.com/ip04/dropbear.mk I have been playing around the leading-edge IP PBX IP04 box a while, when it is shipped to me, it is fully working IP PBX, two FXO, two FXS. It did not satisfy my curiosity though, so I take a step further, destroyed the firmware, cross rebuild the firmware, flashed the nand, compiled the zaptel,asterisk and its ipkg package. Here is what I did: 1, svn the kernel and oslec( open source echo caneller) svn co http://svn.rowetel.com/software/baps/trunk baps svn co http://svn.rowetel.com/software/oslec/trunk oslec 2, enter baps directory and fetch/untar the compile toolchain wget http://blackfin.uclinux.org/gf/download ... 386.tar.gz . tar xzf blackfin-toolchain-07r1.1-3.i386.tar.gz 3, edit uClinux.mk to correct "UCLINUX_SITE" link to: http://blackfin.uclinux.org/gf/download ... e/350/3340 and make the kernel image and copy it to /tftpboot: make -f uClinux.mk uClinux (generate uImage) cp uClinux-dist/images/uImage /tftpboot 4, cp oslec to baps directory, edit zaptel.mk to set "ZAPTEL_EXTRA_CFLAGS" to DCONFIG_4FX_SPI_INTERFACE, then make zaptel and zaptel package cp -r /usr/src/oslec /usr/src/baps/ make -f zaptel.mk zaptel make -f zaptel.mk zaptel-package 5, make asterisk and asterisk package make -f asterisk.mk asterisk make -f asterisk.mk asterisk-package make -f asterisk-gui.mk asterisk-gui make -f asterisk-gui.mk asterisk-gui-package make -f native-sounds.mk native-sounds make -f native-sounds.mk native-sounds-package 6, create ikg snapshot and copy packages to webserver cd ipkg ../scripts/ipkg-make-index.sh . > Packages scp *.ipkg Packages /your/web/server 7, flash ip04 firmware reboot ip04 and type enter while in u-boot U-Boot 1.1.5 (May 5 2007 - 05:46:05) CPU: ADSP BF532 Rev.: 0.5 Board: IP04 IP-PBX http://www.rowetel.com/ucasterisk/ip04.html Clock: VCO: 400 MHz, Core: 400 MHz, System: 133 MHz SDRAM: 64 MB In: serial Out: serial Err: serial 256 MiB DM9000#0 starting from spi flash Hit any key to stop autoboot: 0 ip04> ip04>set bootargs console=ttyBF0,115200 root=/dev/mtdblock0 rw ethadd=$(ethaddr) ip04>set autostart no ip04>save Saving Environment to EEPROM... 0x0003FFFF ip04>reset ip04>tftp 0x1000000 uImage dm9000 i/o: 0x20100000, id: 0x90000a46 MAC: 00:09:45:54:20:8c operating at 100M full duplex mode Using DM9000#0 device TFTP from server 192.168.1.3; our IP address is 192.168.1.2 Filename 'uImage'. Load address: 0x1000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ######################################################## done Bytes transferred = 2281042 (22ce52 hex) ip04>nand dump 0x0 ip04>nand erase clean NAND erase: device 0 whole chip Erasing at 0xffe0000 -- 100% complete. Cleanmarker written at 0xffe0000. OK ip04>nand dump 0x0 Note: rounded up the 0x22ce52 kernel image to 0x230000 ip04>nand write 0x1000000 0x0 0x230000 NAND write: device 0 offset 0, size 2293760 ... 2293760 bytes written: OK ip04>bootm 0x1000000 root> copy_rootfs.sh root>reboot ip04>set autostart yes ip04>set bootargs console=ttyBF0,115200 root=/dev/mtdblock2 rw ethaddr=$(ethaddr) ip04>save ip04>reset 8, install zaptel, asterisk ipkg change the first line in /etc/ipkg.conf on your IP04: src snapshots http://you.web.server root>ipkg update root>ipkg list asterisk - 1.4.4-1 - Asterisk PBX asterisk-gui - 1.0-1 - asterisk-gui native-sounds - 1.0-1 - Asterisk native sounds oslec - 1.0-1 - zaptel-spi - 1.4.3-1 - Zaptel Done. root>ipkg install zaptel-spi root>ipkg install asterisk 9, change some part of zapata.conf and users.conf as zapata.conf: ..... ;group=1 callgroup=1 pickupgroup=2 immediate=no group=1 signalling = fxs_ks channel => 1,2 group=2 signalling = fxo_ks channel => 3,4 ...... copy zapata.conf zapata.conf.post, then change /etc/init.d/zaptel to: zapscan; ztcfg; cp /etc/asterisk/zapata.conf.post /etc/asterisk/zapata.conf;; users.conf .... [trunk_1] .... zapchan = 1,2 .... trunkname = Ports 1,2 .... group = 1 [6001] fullname = Analog User 1 .... zapchan = 1 context = numberplan-local .... group = 1 [6002] fullname = Analog User 2 .... zapchan = 2 context = numberplan-local .... group = 1 [6003] fullname = Analog User 3 .... zapchan = 3 context = numberplan-local ... group = 2 [6004] fullname = Analog User 4 .... zapchan = 4 context = numberplan-local ... group = 2 Back Next |