Broadband Related > Broadband Hardware

OpenWrt (Chaos Calmer r46559) for ECI/r v1 & v2 - Update: G.INP/ReTX Support

(1/77) > >>

jsamuel:
Hi there. I thought I would share with you my OpenWrt image. It's been quite stable and there are some fixes which aren't currently in the trunk.
The configuration is setup much like an unlocked HG612 is setup, ie:
Set the router's IP to 192.168.1.2
The modem, by default is set to 192.168.1.1

LAN1 -> WAN port on the router
LAN2 -> LAN port on the router, configured with a gateway to the router so the modem has internet access for OPKG. And of course access to the modem itself via 192.168.1.1.

I've had to make some modifications to get this working, and since the switch driver is still broken there's no VLANs so LAN1 and LAN2 are back to separate ports like you might have seen in previous images. eth0/eth1

Lan2 led has been fixed too.

Graphs: see this follow up post

I've also modified lantiq_dsl.sh with the help of Kronos' additions to it last year, but I've added a few more things.
LuCI's status page has been changed to reflect this.


Nano is preinstalled, too. This image requires no additional configuration. Hopefully I've helped someone who wants to install openwrt on their ECI/r in an HG612-like setup without losing hair.

v1: openwrt-lantiq-xrx200-VG3503J-squashfs.image
v2: openwrt-lantiq-xrx200-VG3503J_V2-squashfs.image
Remember the SoC on the ECI /r v1 is labelled "v1.1"  and on the v2 it's labelled "v1.2"
Don't put the image for the v2 on a v1 otherwise your ethernet ports won't work effectively leaving you with a bricked unit.

If there's any stats missing, let me know.

Flashing procedure for those who aren't familiar with these modems:


--- Quote ---Buy a USB to TTL UART connector. I used one with a CP2102 chip.
Buy a 1mm drillbit
Buy some right angle 0.1" 2.54mm header pins
carefully drill the four serial holes (see this previous post on Kitz) connect the pins to the PCB and dab some flux core solder on the bottom of the pins.
See the above image on how to connect the serial header to RXD, TXD & GND.

If on Linux use something like picocom, eg: $ sudo picocom -b 115200 -l -r /dev/ttyUSB0 115200,cs8,-parenb,cstopb,-hupcl
If on Windows use PuTTY Tray to connect to the serial and enter the following:
   Serial line: COM3
   Speed: 115200
   Connection type: Serial
Click the dropdown at Connection and select Serial.
   Databits: 8
   Stop bits: 1
   Parity: None
   Flow control: None
Save your session under something like "UART" for future reference.

Now connect to the serial and connect LAN1 to the ethernet port on your PC.
If using Linux, mkdir /tftpImage, copy your squashfs image into it and setup tftp:
   ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up
   /usr/sbin/dnsmasq --listen-address="192.168.1.1" \
   --no-daemon \
   --dhcp-range="192.168.1.100,192.168.1.150,12h" \
   --interface="eth0" \
   --no-negcache \
   --enable-tftp \
   --log-queries \
   --domain="my.lan" \
   --bind-interfaces \
   --log-facility=- \
   --tftp-root=/tftpImage/,eth0 \
   --log-dhcp \
   --stop-dns-rebind \
   --no-hosts

If using Windows, see: http://tftpd32.jounin.net/

Interrupt the bootloader by pressing CTRL+C
Enter the following commands at the VRx prompt:

   set ipaddr 192.168.1.100
   set serverip 192.168.1.1
   set bootfile openwrt-lantiq-xrx200-VG3503J-squashfs.image
   set bootcmd cp.b 0xb0020000 0x80002000 0x400000\; go 0x80002000
   set preboot ping 1.1.1.1\;run bootcmd
   set update_openwrt erase 0xb0020000 0xb073ffff\;tftp 0x81000000 openwrt-lantiq-xrx200-VG3503J-squashfs.image\;cp.b 0x81000000 0xb0020000 \$(filesize)
   saveenv

If your modem is a v2, change:
   set bootfile openwrt-lantiq-xrx200-VG3503J-squashfs.image
        [.............]
   set update_openwrt erase 0xb0020000 0xb073ffff\;tftp 0x81000000 openwrt-lantiq-xrx200-VG3503J-squashfs.image\;cp.b 0x81000000 0xb0020000 \$(filesize)
to
   set bootfile openwrt-lantiq-xrx200-VG3503J_V2-squashfs.image
        [.............]
   set update_openwrt erase 0xb0020000 0xb073ffff\;tftp 0x81000000 openwrt-lantiq-xrx200-VG3503J_V2-squashfs.image\;cp.b 0x81000000 0xb0020000 \$(filesize)

Now run:
   run update_openwrt
   reset

All should be good.

--- End quote ---

les-70:
  Many thanks for the post, I will give it try next week after a holiday.  Do you trust the error stats? they look odd to me with the SES nearly half the ES and no CRC reported?  Is that just a start up burst of errors or ongoing.  Perhaps doubly odd with interleaving on.

   Finally have you any idea of the dsl drivers G.INP status?

jsamuel:
Those errors are due to DLM currently lowering my sync speed. I'm not quite sure what it's doing since it isn't interleaved on downstream. it may be due to an existing fault.

For the past week I've been upsetting DLM, so it's time to let it settle.  :D

As you might have heard some manufacturers have G.INP support in their drivers, but to get that to work on this it'll need a firmware update too which I have yet to do.

jsamuel:

--- Quote from: les-70 on August 09, 2015, 06:05:11 PM ---  Many thanks for the post, I will give it try next week after a holiday.  Do you trust the error stats? they look odd to me with the SES nearly half the ES and no CRC reported?  Is that just a start up burst of errors or ongoing.  Perhaps doubly odd with interleaving on.

   Finally have you any idea of the dsl drivers G.INP status?

--- End quote ---

They're spot on when compared with the stats my HG612 put out.

--- Quote ---Latest 15 minutes time = 6 min 47 sec
FEC:      0      0
CRC:      0      0
ES:      0      382
SES:      0      150
--- End quote ---

les-70:
If it is the same on an HG612 is must be some sort of strange startup issue on your line.  I don't get ES and SES on startup with an HG612 so hopefully I won't with this firmware and the ECI/r.

Navigation

[0] Message Index

[#] Next page

Go to full version