OpenWrt Forum Archive

Topic: Easybox 904 LTE open source code to be provide soon

The content of this topic has been archived between 1 Apr 2018 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Can anyone help me with the error i am getting when i try to compile the source of EasyBox 904 LTE?

My Sources are from:

astorianetworks.com/astoria/Easybox%20904%20LTE.html

and

github.com/uwehermann/easybox-904-lte-firmware

I tested on several distribution like arch, debian (i read its recommended), mint, manjaro but i am still getting the same error again and again.


--: /home/user/Desktop/AT904L-03.07/include/shell.sh;: No such file or directory
--: /home/user/Desktop/AT904L-03.07/include/shell.sh;: No such file or directory
ERROR: please fix target/linux/ltqcpe/Makefile
ERROR: please fix target/linux/brcm63xx/Makefile
Collecting target info: done
/home/user/Desktop/AT904L-03.07/include/prereq-build.mk:17: recipe for target 'prereq-non-root' failed
Prerequisite check failed. Use FORCE=1 to override.
/home/user/Desktop/AT904L-03.07/include/toplevel.mk:125: recipe for target 'tmp/.prereq-build' failed
make[1]: *** [tmp/.prereq-build] Error 1
/home/user/Desktop/AT904L-03.07/include/toplevel.mk:150: recipe for target 'world' failed
make: *** [world] Error 2


i checked for missing depencies or ownership, tried several version of the open source code but it wont compile.

Unfortunately I failed on compiling mine but from different reasons. On my notebook after 12 hours there was not a huge progress on compilation and I don't own any more powerful machine...
I have access to 64+ core servers but due to http proxy (no direct internet connection) I cannot compile this as curl / git clone via ssh is used during compilation (wtf?), thus I would need to replace all git clones with http + make curl aware of proxy, that would require a ton of hacking.

I saw a werid issue on firmware that QAuge compiled - I cannot use any program from repository, packages are installing fine but executables just doesn't work, eg:

root@easybox:~# opkg install iftop
Installing iftop (2017-02-06-35af3cf6-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/base/iftop_2017-02-06-35af3cf6-1_mips_24kc.ipk
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Configuring iftop.
root@easybox:~# iftop
-ash: iftop: not found
root@easybox:~# cd /usr/bin
root@easybox:/usr/bin# ./iftop
-ash: ./iftop: not found
root@easybox:/usr/bin#

I wonder if there was some change like libc in meantime that broken binary compatibility, or what?

As for ethernet on WAN question, don't know if it was answered yet - internal Lantiq switch is connected to CPU, WAN and LAN - and then Realtek switch that provides LAN ports. Thus it's just plug and play, at least on QAuge image. Only thing I changed was obviously vlan configuration as WAN was on vlan 2, while LAN was on 1...

And OT here - I also have O2 6431 but I never was able to see any traffic on ethernet/WAN port... cable was detected but no traffic.  Anyway this was some time ago and i thrown it away since.

@QAuge, do you have some newer image?

[edit]

Linux easybox.wielun.kitor.home 4.9.14 #0 SMP Tue Mar 21 16:55:51 2017 mips GNU/Linux

I *might* be running old Image (March 21 / lede r3911). In fact, I don't see anything wireless related (didn't noticed that earlier as I'm using Cisco AP anyway). That would be an epic fail smile
Unfortunately I'll have only remote access there for 2 weeks so this needs to wait.

(Last edited by kitor on 8 Aug 2017, 20:07)

I have been running LEDE on my Easybox 904 xDSL for a few hours now, and I'm thoroughly impressed by the device. (I got it, believe it or not, for €1 on ebay, the original owner thought it was defective. I can only assume he didn't have the patience to wait through the painfully long boot process of the original firmware.)

However, in the spirit of keeping it as simple as possible, I would love a bare-bones image. The image I'm using right now, posted in post #318, includes all sort of things I don't need (adblock, privoxy, asterisk).

As long as this device doesn't have official support, it would be super lovely to have an imagebuilder archive for it, so we can all build our own versions without having to go through the process of building our own (which, see above, seems to be a problem). Maybe even in a version where the second core is active in lieu of the PBX. But that's really me asking for kindness from QAuge's part.

I can see there has been movement in his fork in the last few days, so maybe things are moving.

For the time being, let me say thanks for all the effort, impressive and well appreciated!

Is VPE and SMP really not possible ?

https://wiki.openwrt.org/doc/hardware/soc/soc.lantiq wrote:

SMP/Multithreading
...
AR9/VR9: Their cores have multithreading support, but it does not work properly with these SoCs without some hacks seen in the source dumps of some boards. For now multithreading is not supported without specific patches for the AR9 and VR9.
...

Or need we some hacks and what kind of hacks ?



@kovz

I'm not sure about this. I think this is interface for answerphone on real phone line(analog).

Is there an analog line ? i can not see.

In my case I don't use lantiq switch functionality. I prefer to have 3 separate interfaces: eth0 connected to rtl8367 switch, eth1 connected to rt8338 iNIC and eth2 as optional WAN(grey connector)

How does it work ? or better have you some code ?
How fast is the VDSL ?

I ask my self why have Lantiq VR9 devices so slow VDSL speed ? And is the VDSL speed realy slow or my expectations to high ?
Theoretikly are 200Mbit/s are possible.
And of cource a device like O2-Box 6431 with 100Mbit/s ports can not do that.
But the 904x should do that because vdsl <-> ethernet are connected via Gbit/s.
I have a 100Mbit/s VDSL line and i can test it: the reach ca 60-65Mbit/s only
(I have check with Provider FB7360 the connection speed are 95Mbit/s (sync 100Mbit/s))
The O2-Box 6431 is a littlebit faster

On the other hand the FB-7360 can only do 100Mbit/s according to Datasheet.
And the 904x Datasheet says 50Mbit/s



@kitor
the Datasheet says Supports all common ADSL Annex B and Annex J standards

there's some kind of config resistor on board of lantiq routers which limits it to analog/isdn mode.

when Annex J is possible contradicts the theory.

The LEDE devlop mailing list says this: http://lists.infradead.org/pipermail/le … 08238.html

can get me a command how can i test ADSL Annex A ? can i test it without a DSL-line ?



OT: O2-Box 6431
from my /etc/config/network

...
config switch_vlan
    option device 'switch0'
    option vlan '2'
    option ports '0 6t'
    option vid '2'

config interface 'eth_wan'
    option proto 'dhcp'
    option ifname 'eth1.2'
    option auto '1'

config interface 'eth_wan6'
    option proto 'dhcpv6'
    option auto '0'
    option reqaddress 'try'
    option reqprefix 'auto'
    option ifname '@eth_wan'
...

Or need we some hacks and what kind of hacks ?

This was already answered, remove "nosmp" from built-in cmdline and recompile. That's what I wanted to do.

the Datasheet says Supports all common ADSL Annex B and Annex J standards

Yes, Easybox 803 datasheet says the same and guess what? It was working on Annex A (POTS) for years in my home. It was enough to change firmware to Annex A and remove/bypass frequency filter.
I don't care about official device datasheets, I care about real internals power wink HW is capable of Annex A, only question is how to force it to load firmware.

Stray observation:

QAuge wrote:

I wrote a small script to enable the lcd4linux/display on touch events and disable it after a while. (It makes no sense for me, to leave the display switched on all the time).

After some experimentation, I am confident to say that lcd4linux itself is not a huge burden on the CPU. In fact, I get hardly any blip on the CPU utilization after tuning the update intervals down to sensible levels. It's only the rapid updates that tax the CPU. In your script some values (CPU bar, WAN/LAN values and bars) are updated 10 times a second, which makes no sense at all.

After setting those to more sensible values, it would be sufficient to "turn off the backlight" -- which turns off the LCD altogether, not only the backlight -- and turn it on again on keypress. No need to constantly stop and start lcd4linux itself.

(Last edited by metai on 10 Aug 2017, 21:46)

Hi,
the normal build process (like: ./scripts/feeds update -a && ./scripts/feeds install -a)
is not really usefull for me, because a complett build of all packages take 2-3 days.
I want to build from current source or v17.01.2.
For this reason i use: ./updateGitRepo.sh
what does the script exactly ? and how can i use with v17.01.2 ?

I want to build only the kernel-modules, some basic, SDK and imagebuilder without ./scripts/feeds install.
Then i want to build https://github.com/Quallenauge/lede-fee … box904.git via SDK
here are the next problem:

rm -rf /tmp/build/lsdk/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/fbtft-eb904-1.0.0/.pkgdir/kmod-fbtft-eb904.installed /tmp/build/lsdk/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/fbtft-eb904-1.0.0/.pkgdir/kmod-fbtft-eb904
mkdir -p /tmp/build/lsdk/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/fbtft-eb904-1.0.0/.pkgdir/kmod-fbtft-eb904
ERROR: module '/tmp/build/lsdk/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/linux-4.9.40/drivers/video/fbdev/core/syscopyarea.ko' is missing.
make[2]: *** [/tmp/build/lsdk/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/fbtft-eb904-1.0.0/.pkgdir/kmod-fbtft-eb904.installed] Error 1
make[2]: Leaving directory `/tmp/build/lsdk/feeds/easybox904/kernel/fbtft'
make[1]: *** [package/feeds/easybox904/fbtft/compile] Error 2
make[1]: Leaving directory `/tmp/build/lsdk'
make: *** [package/fbtft/compile] Error 2

I really did not want that, but it is the only solution that i know.

cat "$RESULT_D/step0/feeds.conf" | grep "easybox904" > ./feeds.conf || exit 1
./scripts/feeds update -a
./scripts/feeds install -a

Them I try to build asterisk-13.x via SDK
here comes one error after another the most can be solve via
adding and compiling the following packages: gmp, nettle, package, readline, uclibc++ and zlib
Them i failed on:

checking for stdatomic.h... yes
checking for getrandom... no
checking for getentropy... no
checking for NETTLE... no
configure: error: 
  ***
  *** Libnettle 3.1 was not found.

make[2]: *** [/tmp/build/lsdk/build_dir/target-mips_24kc_musl/gnutls-3.5.13/.configured_dd2ccb64070067d6c8df9fdb8d05c3b2] Error 1
make[2]: Leaving directory `/tmp/build/lsdk/feeds/packages/libs/gnutls'
make[1]: *** [package/feeds/packages/gnutls/compile] Error 2
make[1]: Leaving directory `/tmp/build/lsdk'
make: *** [package/asterisk-13.x/compile] Error 2

....

mips-openwrt-linux-musl-gcc -I. -I/tmp/build/lsdk/staging_dir/target-mips_24kc_musl/usr/include -I/tmp/build/lsdk/staging_dir/target-mips_24kc_musl/include -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/usr/include -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/include/fortify -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/include  -DHAVE_CONFIG_H -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/tmp/build/lsdk/build_dir/target-mips_24kc_musl/nettle-3.3:nettle-3.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fpic  -ggdb3 -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fpic -MT ecc-mod-arith.o -MD -MP -MF ecc-mod-arith.o.d -c ecc-mod-arith.c \
&& true
mips-openwrt-linux-musl-gcc -I. -I/tmp/build/lsdk/staging_dir/target-mips_24kc_musl/usr/include -I/tmp/build/lsdk/staging_dir/target-mips_24kc_musl/include -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/usr/include -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/include/fortify -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/include  -DHAVE_CONFIG_H -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/tmp/build/lsdk/build_dir/target-mips_24kc_musl/nettle-3.3:nettle-3.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fpic  -ggdb3 -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fpic -MT ecc-pp1-redc.o -MD -MP -MF ecc-pp1-redc.o.d -c ecc-pp1-redc.c \
&& true
mips-openwrt-linux-musl-gcc -I. -I/tmp/build/lsdk/staging_dir/target-mips_24kc_musl/usr/include -I/tmp/build/lsdk/staging_dir/target-mips_24kc_musl/include -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/usr/include -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/include/fortify -I/tmp/build/lsdk/staging_dir/toolchain-mips_24kc_gcc-6.3.0_musl/include  -DHAVE_CONFIG_H -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/tmp/build/lsdk/build_dir/target-mips_24kc_musl/nettle-3.3:nettle-3.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fpic  -ggdb3 -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fpic -MT ecc-pm1-redc.o -MD -MP -MF ecc-pm1-redc.o.d -c ecc-pm1-redc.c \
&& true
make eccdata
make[4]: Entering directory `/tmp/build/lsdk/build_dir/target-mips_24kc_musl/nettle-3.3'
gcc -O `test -f eccdata.c || echo './'`eccdata.c \
-o eccdata
make[4]: Leaving directory `/tmp/build/lsdk/build_dir/target-mips_24kc_musl/nettle-3.3'
echo stamp > eccdata.stamp
./eccdata 192 7 6 0 > ecc-192.hT && mv ecc-192.hT ecc-192.h
Table size: 320 entries
/bin/sh: line 1: 31953 Floating point exception./eccdata 192 7 6 0 > ecc-192.hT
make[3]: *** [ecc-192.h] Error 136
make[3]: Leaving directory `/tmp/build/lsdk/build_dir/target-mips_24kc_musl/nettle-3.3'
make[2]: *** [/tmp/build/lsdk/build_dir/target-mips_24kc_musl/nettle-3.3/.built] Error 2
make[2]: Leaving directory `/tmp/build/lsdk/package/feeds/packages/nettle'
make[1]: *** [package/feeds/packages/nettle/compile] Error 2
make[1]: Leaving directory `/tmp/build/lsdk'
make: *** [package/nettle/compile] Error 2

after 1,5 week of trying i stop this and experiment with the base image that i have.
here comes the next problems:
no nandwrite and flash_eraseall and no passwd app (in which packet is that ?)

So my main question is:
how can i merge the 904x branch with the current master and v17.01.2 Lede branch ?
and how can i make a patch from it ?
So that i can clone Lede and patch them to make a 904x build.

This was already answered, remove "nosmp" from built-in cmdline and recompile. That's what I wanted to do.

This is clear, but it is not what i want i want SMP + VMMC, but it should is not possible.
SMP is not mandatory for me but i want a fast device (100Mbit/s VDSL) + telephon support.
The FritzBox 7360 with the same chipset can do it.

for more understanding i read this:
https://wikidevi.com/wiki/Lantiq
and this:
https://wikidevi.com/wiki/MIPS_34Kc#MIP … c_.2F_34Kf
VPE does not mean Voice Processing Engine but Virtual Processing Elements.
VPE and SMP together are not possible because SMP need the other VPE right ?
The question is can VMMC theoreticlly working without VPE ? 
will it faster when choice the exact architecture like 34Kc (vrx200) instead of 24Kc (danube) ?
Or some other tweaks like -O3 instead of -Os. proposals ?

so i have do a SMP build via Imagebuilder and SDK:

#!/bin/bash

AddNewDtsChanges(){
# $1 = is the path to the unpacked image-builder
# $2 = is the path to the unpacked SDK
# $3 = is the name suffix for the .dts file
# It determines the path to the .dts file: startdtsfile=$imgbpath/target/linux/${target}/dts/${device}${namesfx}.dts
    local sdkpath imgbpath namesfx arch target subtarget device libc gccver startdtsfile
    imgbpath=$1
    sdkpath=$2
    namesfx=${3}
    
    cd "$imgbpath"
    arch=$(cat ./.config | grep "CONFIG_TARGET_ARCH_PACKAGES" | cut -d= -f2 | tr -d \")
    target=$(cat ./.config | grep "CONFIG_TARGET_BOARD" | cut -d= -f2 | tr -d \")
    subtarget=$(cat ./.config | grep "CONFIG_TARGET_SUBTARGET" | cut -d= -f2 | tr -d \")
    device=$(cat ./.config | grep "CONFIG_TARGET_PROFILE" | cut -d= -f2 | tr -d \" | cut -d_ -f2)
    libc=$(cat ./.config | grep "CONFIG_TARGET_SUFFIX" | cut -d= -f2 | tr -d \")
    gccver=$(cat ./.config | grep "CONFIG_GCC_VERSION" | cut -d= -f2 | tr -d \")

    kver=$(find "$imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}" -mindepth 1 -maxdepth 1 -type d -name linux-* | rev | cut -d- -f1 | rev)

    #rm ./build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/*.bin
    rm ./build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/*.dtb
    rm ./build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/*.new
    
    test -z "$OLDPATH" && export OLDPATH=$PATH
    export PATH=$OLDPATH:$sdkpath/staging_dir/host/bin:$sdkpath/staging_dir/toolchain-${arch}_gcc-${gccver}_${libc}/bin
    export STAGING_DIR=$sdkpath/staging_dir
    
    startdtsfile=$imgbpath/target/linux/${target}/dts/${device}${namesfx}.dts
    
    mips-openwrt-linux-musl-cpp -nostdinc -x assembler-with-cpp \
        -I$imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/linux-${kver}/arch/mips/boot/dts \
        -I$imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/linux-${kver}/arch/mips/boot/dts/include \
        -undef -D__DTS__  \
        -o $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.dtb.tmp $startdtsfile || exit 1
        
    $imgbpath/build_dir/target-${arch}_musl/linux-lantiq_${subtarget}/linux-$kver/scripts/dtc/dtc -O dtb -i../dts/ \
        -o $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.dtb $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.dtb.tmp    
    rm -f $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.dtb.tmp

    cp -f $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/vmlinux $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin
    cat $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.dtb >> $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin

    $imgbpath/staging_dir/host/bin/lzma e $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin \
    -lc1 -lp2 -pb2 $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.new
    mv $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.new $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin

    let size="$(stat -c%s $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin)" pad="128* 1024" offset="64" pad="(pad - ((size + offset) % pad)) % pad" newsize='size + pad'
    dd if=$imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin of=$imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.new bs=$newsize count=1 conv=sync
    mv $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.new $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin

    mkimage -A mips -O linux -T kernel -C lzma -a 0x80002000 -e 0x80002000 -n "MIPS LEDE Linux-${kver}" -d $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.new
    mv $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin.new $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin

    cp $imgbpath/build_dir/target-${arch}_${libc}/linux-${target}_${subtarget}/${device}-kernel${namesfx}.bin $imgbpath/bin/targets/${target}/${subtarget}/
    export PATH=$OLDPATH
}


mkdir /tmp/build
cd /tmp/build
tar -xf <PATH-To-Image-Builder>/lede-imagebuilder-lantiq-xrx200.Linux-x86_64.tar.xz
cd ./lede-imagebuilder-lantiq-xrx200.Linux-x86_64
tar -xf <PATH-To-SDK>/lede-sdk-lantiq-xrx200_gcc-6.3.0_musl.Linux-x86_64.tar.xz

# note for sed use "\:" instead of ":"
bootargs="console=ttyLTQ0,115200 ubi.mtd=12,2048 panic=1 DTS-TEST-SEQNO=77 root=ubi0\:rootfs rootfstype=ubifs rootdelay=7"

cat ./target/linux/lantiq/dts/VGV952CJW33-E-IR.dts | \
sed /vmmc/,/"};"/d | sed /sram/,/"};"/d | \
sed -r s:"^[[:blank:]]*bootargs.*":"\t\tbootargs = \"${bootargs}\";":g \
> ./target/linux/lantiq/dts/VGV952CJW33-E-IR-nandsmp.dts || exit 1
AddNewDtsChanges /tmp/build/lede-imagebuilder-lantiq-xrx200.Linux-x86_64 /tmp/build/lede-imagebuilder-lantiq-xrx200.Linux-x86_64/lede-sdk-lantiq-xrx200_gcc-6.3.0_musl.Linux-x86_64 -nandsmp

exit 0

so the result is:

root@LEDE:/# cat /proc/cpuinfo
system type             : xRX200 rev 1.2
machine                 : VGV952CJW33-E-IR - EasyBox 904 xDSL
processor               : 0
cpu model               : MIPS 34Kc V5.6
BogoMIPS                : 332.54
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VPE                     : 0
VCED exceptions         : not available
VCEI exceptions         : not available

processor               : 1
cpu model               : MIPS 34Kc V5.6
BogoMIPS                : 251.90
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VPE                     : 0
VCED exceptions         : not available
VCEI exceptions         : not available

And i test them as normal NATed Router on my old laptop with only a 100Mbit/s LAN.
With a 100Mbit/s VDSL line (sync 101Mbit/s) and 100Mbit/s normally enable in reality.
I get (the maximum rate) of ~ 95Mbit/s.
and the webinterface is noticeably faster.

without SMP i get only ~75Mbit/s

Hi there.

Some short informations about the future development of the lede integration.
Finally the device works here, built with the vr9_default.config. From time to time,
I perform a "git rebase" to update my branch to the latest lede branch to follow their development.
Not further development or optimizations are made right now, since currently it fits my needs.
I'm happy in case someone would like to create a pull request or something like that to improve the
integration.

metai wrote:

After setting those to more sensible values, it would be sufficient to "turn off the backlight" -- which turns off the LCD altogether, not only the backlight -- and turn it on again on keypress. No need to constantly stop and start lcd4linux itself.

But it saves some memory for people, which doesn't need it and never turns them on. Nevertheless if you provide an improved configuration, I will include this change. :-)

Plonk34 wrote:

Hi,
the normal build process (like: ./scripts/feeds update -a && ./scripts/feeds install -a)
is not really usefull for me, because a complett build of all packages take 2-3 days.

"./scripts/feeds install -a" installs only the package in the build system. They are -not- selected automatically for build.
You have to (un-)select the needed packages via menuconfig. I recommend to use the vr9_default.config as base and strip it via trial and error.

Plonk34 wrote:

For this reason i use: ./updateGitRepo.sh
what does the script exactly ? and how can i use with v17.01.2 ?

updateGitRepo creates a temporary branch, switches to it, removes the current master branch and checks them out from the remote branch and switches "back" to it. It is needed, because otherwise git would like to merge the changes from the remote branch. I use the git rebase functionality to apply all my patches on top of the origin lede branch and overwrites my branch on github. So it confuses the git if you only use "git pull" for the cloned branch.

If you want to to use it with v17.01.2, you have to apply all changes made by me (cherry-pick) or something like that.

I tried to enable SMP and VCC but with no luck. There where some exceptions and kernel panics so I don't tried it further.

QAuge wrote:
metai wrote:

After setting those to more sensible values, it would be sufficient to "turn off the backlight" -- which turns off the LCD altogether, not only the backlight -- and turn it on again on keypress. No need to constantly stop and start lcd4linux itself.

But it saves some memory for people, which doesn't need it and never turns them on.

I feel it's not that much of an issue with 128 MB of RAM but of course you are correct. I measure lcd4linux at 4600 kB peak (with my current configuration) -- but I also measure your lcdController process at 6000 kB (Edit: I was able to replace that one with a small bash script, weighing in at ~1100 kB. So either more memory saved, or lcd4linux + auto-off for the "price" of just your auto-off LUA.)

Nevertheless if you provide an improved configuration, I will include this change. :-)

I'll gladly submit it to you when I'm done with what I have in mind. I'm currently working on a complete replacement for the whole layout, tailored to the router's specific values (such as DSL up/down rates, ports population etc.) and, hopefully, with a rather nice layout.

I'm also looking into replacing that ghastly startup animation. Which would make it the first OpenWrt/LEDE device to get a custom "boot animation".

Thanks again for all your work, I feel this device is already pretty much brilliant now. I second the wish for a 17.01 stock image one could use with the official opkg repositories, but, eh, that would just be the cherry on top.

Edit: I do have problems setting the Wifi channels, though. I don't care much about the 2.4GHz Wifi, incidentally the default channel 11 is the one I want to set it to anyway. But especially my attempts to move 5GHz Wifi off channel 36 have been unsuccessful so far. I'd be grateful for any help there.

(Last edited by metai on 25 Aug 2017, 05:51)

biomajuss wrote:

Can somebody please help me with the Debricking process described in the wiki?!

So cat the u-boot.asc onto the Easybox was successful indicated by *** and then closing the connection. But what do I do after the cat?! Can please somebody help me sad

So now I'am in the unlocked u-boot but how do I get it onto the persistent memory? With loady?

Hi biomajuss,

I hope you have not given up yet, because you did not get an answer.

I have not gotten my hands on a Easybox 904 yet, but please have a look at the description of the debricking process for the ARV752DPW22. After you uploaded the u-boot image via serial connection, u-boot just lives in RAM.
You need to upload another u-boot version suited for flashing to NAND. Uploading can be done via tftp or, since you already have a serial connection, loadx or loady.
This loads the image to a RAM address. When it completes, it gives you the length of the file in hex numbers (<size>). Check whether the file was uploaded correctly with the crc32 command.
Then erase the flash section and copy from RAM to flash.
erase B0000000 +<size>
cp.b <from> B0000000 <size>
I assume the start of the flash will be at B0000000. <size> is the length of the file, and <from> the location in RAM you uploaded to.

metai wrote:

I'm also looking into replacing that ghastly startup animation.

HellooooOOoo nurse!
http://i.imgur.com/LoWV3as.jpg
That's the PoC, now for something more sensible to replace the whole animation.

(Last edited by metai on 25 Aug 2017, 03:06)

metai wrote:
metai wrote:

I'm also looking into replacing that ghastly startup animation.

HellooooOOoo nurse!
http://i.imgur.com/LoWV3as.jpg
That's the PoC, now for something more sensible to replace the whole animation.

Yeah - Congratulations!  smile The device is one step more opened.

In meantime, I switched to musl from uclibc to support the official repositories to install packages via opkg.
Next version will contain that change.

QAuge wrote:

The device is one step more opened.

Well, it's not a crucial part by any means, but it always bothered me. So I'll do what I can.

In meantime, I switched to musl from uclibc to support the official repositories to install packages via opkg.
Next version will contain that change.

That's absolutely great news. So that new version will just come with packages for basic operation (like other release images, maybe including lcd4linux), and we can add the ones we actually need (I don't need Asterisk, for example)? Are you going for the 17.01.2 release or a snapshot?

(Last edited by metai on 25 Aug 2017, 13:51)

hi,
has everybody expiriences with Telekom VDSL100 Vectoring Lines ?
Here my values:

                               Sync         AVM Speedtest

FB 7490                  104/40         94/35

EB 904                      99/38          93/34
OEM opened SW

EB904                       97/40          44/31
OpenWrt QAuge

The performance of the Box with OpenWRT is not good. Only half of the possible download.
To connect the Line, there was a little handwork necessary.
The dsl_vr9_firmware from the OpenWrtBuild did not work for me.
From the following Site:
xdarklight.github.io/lantiq-xdsl-firmware-info/
i tried some, and the versions from the Zyxel and the Netgear device connected me.

Now, I don't know if i should look for a better xdsl firmware, or  trying to make changes in the box configuration.

Someone has already experiences with this problem?

Hiya,

I have already made numerous attempts to get my WAN up, but although DSL-Status looks fine the connection to the ISP has never been successful yet. Only got the "... timeout waiting for PADO packets" messages and never knew how to react.

So if it's the DSL-firmware, could you please hint what file you downloaded from where and where you put that file not to speak of the other configuration changes that you needed to make maybe? Thanks in advance.

taxidriver wrote:

although DSL-Status looks fine the connection to the ISP has never been successful yet. Only got the "... timeout waiting for PADO packets" messages

If you're on VDSL, did you set the correct VLAN ID on your PPPoE connection? For example

config interface 'wan'
   option ifname 'ptm0.7'
   ...

if your ISP requires VLAN ID 7.

(Last edited by metai on 26 Aug 2017, 12:55)

How do I get to know that? I just stayed with the original configuration.
My connection is VDSL2-based and I didn't know that different ISPs make a different VLAN configuration necessary.
That's what the DSL Status displays:
http://up.picr.de/30183969ds.jpg

taxidriver wrote:

My connection is VDSL2-based and I didn't know that different ISPs make a different VLAN configuration necessary.

All of them do, at least here in Germany. O2/Telefonica and Telekom both conveniently use VLAN ID 7, you might want to try that first. Just edit your /etc/config/network in the one place I outlined above (don't edit "ptm0" in other places) and restart. It's really that simple, changing "ptm0" to "ptm0.7" assigns VLAN ID 7 to the modem connection.

That's what the DSL Status displays:

Yes yes, the line itself is connected, that's clearly not the issue here.

(Last edited by metai on 26 Aug 2017, 14:24)

@ taxidriver: your modem is up. you need no other dsl firmware.
As metai wrote: change ptm0 to ptm0.7

and dont forget to create the VLAN7:

 config switch_vlan
    option device 'switch0'
    option vlan '7'
    option vid '7'
    option ports '4 6t'

When you do this, yor trafic is tagged to ID 7 and the connection will be etablished

manni wrote:

and dont forget to create the VLAN7:

That's unnecessary for an internal modem. The VLAN begins and ends inside the virtual modem interface, it never has to pass through the switch or get its VLAN from it.

(Last edited by metai on 26 Aug 2017, 20:59)

@manni
I think the main reason is the poor ~5 Years old vr9 chipset and the fact that it is not possible to support SMP + VMMC yet.
If you do not need FXS-ports you can disable the VMMC and enable SMP. see:
https://forum.openwrt.org/viewtopic.php … 27#p360327
https://forum.openwrt.org/viewtopic.php … 84#p363984

Did you have console access to the FB and eb904 (xdsl | lte ?) with opened hardware ?
can you put these commands and post the result here:

lsmod | grep vmmc
lsmod | grep tapi
cat /proc/cpuinfo

I have the same problem and i am very interesting to know, how the competitors do it.
But 44Mbit/s is a littlebit low.
On ours i will try to extract the DSL-firmware from the FB-7490 or from the eb904 OEM box.
I use the DSL-Firmware from the equal FB-7360 that i get from my provider.
use

option firmware 'path-to-the-dsl-fw'

to use them
and i form me that

option tone 'av'

help.

other things that can help:
- otimised compiler options like 34Kc instead of 24Kc and -O3 instead of -Os
- looking at the webinterface cost 10Mbit/s speed, a dropbear connection cost speed too.

Have everybody test the lan-schwitch speed only (i can not test, because i have no Gbit connections) ?

(Last edited by Plonk34 on 26 Aug 2017, 22:00)

Yes, metal was right. Simply changing the ptm0 into ptm0.7 resulted in a sucessful WAN connection. Thanks for that.
Now I'm fighting with the WLAN access though. Trying to log in always fails..first the WLAN was only discovered a being WEP secured (although having 'psk2+aes' in the config file....meanwhiile it identifies as being WPA2-protected but never accepts the WLAN password, so I keep plugging and unplugging the LAN cable. Is your WLAN working more properly?

@taxidriver
I was see them but it was never possible to connect them.
(i can't get an IP)
The 5GHz was working succefull.
i put the "list ifname 'eth0.3'" and "list ifname 'eth0.66'" to the "config interface 'lan'" section.

@ plonk:
I have no access to my FritzBox and i won't toch it.

Here some Infos from the EB904xdsl OEMopened:

#
#
#
lsmod:
drv_vmmc              210107 16 
drv_tapi              194380 22 drv_isdn,cosic,drv_vmmc,drv_voip
drv_ifxos              15134  3 drv_vmmc,drv_tapi,drv_dsl_cpe_api
#
drv_tapi              194380 22 drv_isdn,cosic,drv_vmmc,drv_voip
drv_ifxos              15134  3 drv_vmmc,drv_tapi,drv_dsl_cpe_api
#
#
#
cpuinfo:
system type        : VR9
processor        : 0
cpu model        : MIPS 34Kc V5.6
BogoMIPS        : 331.77
wait instruction    : yes
microsecond timers    : yes
tlb_entries        : 16
extra interrupt vector    : yes
hardware watchpoint    : yes, count: 4, address/irw mask: [0x0ffc, 0x0ff8, 0x0ffb, 0x0ffb]
ASEs implemented    : mips16 dsp mt
shadow register sets    : 1
core            : 0
VCED exceptions        : not available
VCEI exceptions        : not available
#
#
#
/lib/firmware:
total 1378
drwxr-xr-x    2 root     root             3 Apr 20  2015 2.6.32.32
-rwxr-xr-x    1 root     root          6595 Nov 20  2009 LICENSE
lrwxrwxrwx    1 root     root            16 May 13  2015 ar9_firmware.bin -> vr9_firmware.bin
-rwxr-xr-x    1 root     root        868700 Feb 19  2014 dsl_vr9_firmware_xdsl-05.06.07.06.01.07_05.05.04.02.01.02.bin
-rwxr-xr-x    1 root     root        533152 Jun 13  2011 fw_voip_vr9-2.3.1.7.0.bin
-rwxr-xr-x    1 root     root             3 Apr 15  2015 ter1x66_bbd.bin
-rwxr-xr-x    1 root     root           300 Nov 13  2010 vr9_bbd_fxo.bin
-rwxr-xr-x    1 root     root           388 Mar 16  2015 vr9_bbd_fxs.bin
-rwxr-xr-x    1 root     root           388 Mar 16  2015 vr9_bbd_fxs_germany.bin
lrwxrwxrwx    1 root     root            25 May 13  2015 vr9_firmware.bin -> fw_voip_vr9-2.3.1.7.0.bin
lrwxrwxrwx    1 root     root            61 May 13  2015 xcpe_hw.bin -> dsl_vr9_firmware_xdsl-05.06.07.06.01.07_05.05.04.02.01.02.bin
#
#
#
top speedtest:
Mem: 106216K used, 6820K free, 0K shrd, 9536K buff, 49132K cached
CPU:  4.0% usr 12.3% sys  0.0% nic  0.0% idle  0.0% io  0.0% irq 83.6% sirq
Load average: 11.85 10.63 8.88 9/177 30390
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
11675 10552 root     S <   5712  5.0  9.6 brnsip
10553 10552 root     S <   5712  5.0  7.6 brnsip
30305 15969 root     R     1396  1.2  5.9 top
    3     2 root     RW       0  0.0  5.6 [ksoftirqd/0]
10161     1 root     R     5224  4.6  5.0 lcdwizard
11672 10552 root     S <   5712  5.0  3.9 brnsip
10265     1 root     S <   5712  5.0  2.5 brnsip
 9003     1 root     R     2856  2.5  2.2 /usr/sbin/snmpd -Lf /dev/null -p /var
 9457     1 root     R      896  0.7  1.3 /usr/sbin/dnsmasq --user=root -C /tmp
 9374     2 root     DW       0  0.0  1.3 [touch_panel]
10373   815 root     S <   2632  2.3  1.0 /usr/sbin/midcore -d 0
 6085     2 root     DW       0  0.0  1.0 [daakproc]
  139     2 root     SW       0  0.0  1.0 [gpio-daemon]
15986 15901 root     S      712  0.6  0.8 /usr/sbin/inadyn --dyndns_system defa
11954 11952 root     S     6296  5.5  0.6 /usr/sbin/httpd-brn
  829   815 root     S <   2632  2.3  0.6 /usr/sbin/midcore -d 0
 9695     1 root     R     1404  1.2  0.6 /bin/sh /etc/rc.d/S99runtask.sh boot
11953 11952 root     R     6296  5.5  0.5 /usr/sbin/httpd-brn
 7546     1 root     S     1416  1.2  0.5 /bin/sh /usr/sbin/arc_button.sh boot
 4974     2 root     SW       0  0.0  0.5 [pmex_ne]

 

Some days ago, i tried the dsl_vr9 Firmware from the OEM Software in the OpenWRTBox.
I had a mysterious behavior.
The modem sync (showtime)
The ppp discovery completed (IP Address received)
After ca. 30 sec the connection shutdown. (Terminated with Signal 15)
Anyone kills the pppd.
I did not look for the reason, because it worked with an other firmware.