This is an old revision of the document!
Table of Contents
Telsey CPVA642XF
This is a Fastweb (italian ISP) router with voip and usb port
Get a shell
- enable telnet server
- connect via telnet to your device using web interface credentials
- type the undocumented “sh” command
- enjoy your root shell!
Known issues
Kernel
Latest device was shipped with the very old 2.6.8.1 Linux kernel WITHOUT swap support. Swap support can't be compiled ad module so you should be careful with memory usage.
VoIP
For some strange reason in VoIP configuration the option “Interface name” must be the internal lan, not wan.
Telnet service
If you activate telnet on wan interface the service is reachable over this interface but the router won't accept any credential
OpenWRT
OpenWRT porting was done for a similar model that differ only for half size ram and flash. FXS/FXO ports are not working on OpenWRT (to be verified). I prefer keep the original firmware and extend its functionality.
chroot
- Download latest busybox for mips
- Download a brcm63xx generic jffs2-128k image (backfire link)
- Unpack it on your computer (take a look in how-to section on Linux page
- Move rootfs and busybox on the drive attached to your Telsey for example using tar
- Copy system files and bind system folders inside chroot
CHROOTDIR=/var/udev/mount/NASusbsda/openwrt_backfire cp /etc/hosts $CHROOTDIR/etc/hosts cp /etc/fstab $CHROOTDIR/etc/fstab cp /etc/resolv.conf $CHROOTDIR/etc/resolv.conf mount -o bind /proc $CHROOTDIR/proc mount -o bind /dev $CHROOTDIR/dev mount -o bind /var/udev/mount/NASusbsda $CHROOTDIR/mnt/NASusbsda
- Make a “boot” script to set right variables inside chroot
vi $CHROOTDIR/root/startchroot (paste this inside) #!/bin/sh source /etc/profile /bin/sh
- Chroot!
./busybox-mips chroot $CHROOTDIR /root/startchroot
Known issues
key mapping
- DEL - ONLY in bash it print a ~ without delete characters, however it works fine in vi
- ENTER - ONLY in nano I can't confirm the filename when saving
LuCI
Somethings works but for example reading log cause a system crash
Dropbear
SSH accepts commands but can't open a remote shell, so you can use direct commands in this way:
ssh root@Telsey "touch /tmp/thisworks"
or use rsync This issue is related with the kernel that miss /dev/pts filesystem (and can't be fixed using a module)
DNS and hosts
Be sure that your /etc/resolv.conf contains a working DNS server /etc/hosts is not read when a DNS is in progress so you can't specify a particular ip for a name or use localhost instead of 127.0.0.1
Materials
- Pegasus (usb-ethernet driver) kernel module
- Alsa+USB Soundcards kernel modules
