Support for Easybox 904 LTE

You can use this branch:

It exist a PR (without speedpatches):


and

And I have an Developing branch too (with speedpatches and splitting into SMP and VPE build):


(uboot inside the separated branch pull/2061: https://github.com/Plonkbong/openwrt/tree/pr002-eb904x_uboot)

too add this inside the original openwrt you can use this (only a snipped not a complett script):

...

git branch eb904x

git fetch origin pull/2061/head:pr002-eb904x_uboot
git rebase eb904x pr002-eb904x_uboot
git checkout eb904x
git merge pr002-eb904x_uboot

branch=eb904x-next1
git remote add plonkb https://github.com/Plonkbong/openwrt.git
git fetch plonkb $branch:$branch
git rebase eb904x $branch
git checkout eb904x
git merge $branch
	
...

It is usefull to use the original config from snapshot but eanable "with graphic support"

#######

At the moment i recomment my developing branch https://github.com/Plonkbong/openwrt/commits/eb904x-next1 that are compatible with the openwrt master branch
+ the uboot
+ fixing missed parameter at kernel config when graphic suport are enable https://github.com/openwrt/openwrt/pull/1885
Use the default config from the snapshot download directory, but enable "Build with graphic support"

The WLAN, touchpad and screen driver are here here:


(you can build it with the sourcebuild or SDK)

The packages for the Screen lcd4linux etc are here:


I recomment to build it with the SDK because a lot of dependies.

I have build (but not finaly tested) on 10.12.2019 in several steps:

Easybox 904xDSL Openwrt build in 4 steps it contain the following:

  • compile Openwrt: The result are in the "./1_build-from-src" directory
  • build additional drivers and minpkgset with the SDK: "./2_build-from-sdk"
  • create a reposatory, copy the downloaded, the new builded, and the package builded with SDK into a repodir and give them an on key: "./3_repo"
  • create my own images with the imagebuilder: "./4_image"
    So standart images and images for all other xrx200 devices are in /1_build-from-src
    Images with all driverers for eb904x are in ./4_image

openwrt_build_xrx200_snapshot-x86_64-20191210.225646-b2.tar.xz
ca 1,6GB in 200MB parts / download first and them use this command to put them together: cat openwrt_build_xrx200_snapshot-x86_64-20191210.225646-b2.tar.xz.part* > openwrt_build_xrx200_snapshot-x86_64-20191210.225646-b2.tar.xz
SHA256 = 88dd91b2cdc76cc997dbb76e75baa303ad9de14f844efb745a953b4867c3db30

The download of all snapshot packages and preparation + build script are here:
openwrt_download_xrx200_snapshot-20191210.225646.tar.xz
ca 4GB in 200MB parts / download first and them use this command to put them together: cat openwrt_download_xrx200_snapshot-20191210.225646.tar.xz.part* > openwrt_download_xrx200_snapshot-20191210.225646.tar.xz
SHA256 = 35467c655b1ef8f907944adca21c9bb1c14289b4f51e237c4ff7c8a2a0936373

Installation general procedure:

The stock and the custom bootloader u-boot have a recovery mode. It is the same on both.
The recoverymode does always:

  • The recovery image called "fullimage.img" it is the same like *-initramfs-kernel.bin image. It is a kernel + ramdisk
  • if you press the resetbutton 10sek short after start, the recoverymode goes on.
  • The router load the fullimage.img via tftp from a server with the IP: 192.168.2.100. The router have the 192.168.2.1
  • the fullimage.img will written on /dev/mtd2. It is the Kernel partition where the router start from.
  • note the size of fullimage.img must be less than 5,242,880 Bytes, because this is the size of mtd2 patition
  • If you now reset the router by switching the poweron/off-switch the router will start from /dev/mtd2 where is now the kernel+ramdisk
  • After new starting from ramdisk you can or better should install the customer uboot with no password and the *-squashfs-sysupgrade.bin image

Normally it exist a lot of better manuells but will start here to write my own:

Installation of the recoverymode detailed:

(here i use the VPE variant with telefon supoort but no SMP)

  • copy the recovery image to the tftp directory and rename it to fullimage.img
    my recovery image inside the openwrt_build directory called: ./1_build-from-src/bin-fromsrc/targets/lantiq/xrx200/openwrt-lantiq-xrx200-arcadyan_vgv952cjw33-e-ir-vpe-initramfs-kernel.bin
    (note the size of fullimage.img must be less than 5,242,880 Bytes)
mkdir /tmp/tftp
cp -vf ./1_build-from-src/bin-fromsrc/targets/lantiq/xrx200/openwrt-lantiq-xrx200-arcadyan_vgv952cjw33-e-ir-vpe-initramfs-kernel.bin /tmp/tftp/fullimage.img
  • connect the Lan interface of your PC with the router
    The PC (tftp server) must have the IP: 192.168.2.100
    The Router have the IP: 192.168.2.1
    for this reason disable the Network autoconfig and set up
ifconfig eth0 192.168.2.100 up
  • start the tftp server on your PC:
    I use dnsmasq this should exist in the most distros:
dnsmasq -d -p 0 --enable-tftp=eth0 --tftp-root=/tmp/tftp &
  • starting the recoverymode of your router:
    Poweron the Router and pressing the resetbutton with a pen or a skrew 10sec long
    The fullimage will upload now to the router and install on mtd2
    After finish (look at the tftscreen) you can power-on/off

  • new start from Openwrt ramdisk (fullimage):
    The router Now starts from a Openwrt Ramdisk image.
    You can now replace the original password protectec u-boot.
    And
    you can install the *-squashfs-sysupgrade.bin.

5 Likes