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.

Hi,

yeah the wiki information is from this thread and I though I was the only one here where the compiling with the main trunk doesn't work. Other members here seem to be able to compile without problems...

Now I don't know if I should change the information on the wiki page.

Did you change the u-boot 'bootnum' and 'bootid' variables?

You should enter something like this:

setenv bootid 
setenv bootnum 0
saveenv
reset

(Last edited by somebodywhoisntme on 13 Jun 2016, 15:45)

Yes, tried that same result. Not booting. I tried every Image I could find

This also happens to me after I reboot openwrt. Then I'm also unable to boot even if I change the env-var's in uboot.

In this case I flash uboot.lq over the bootloader, then I change the enviroment variables and everthing boots fine.

Someone else wrotes here that he has the same error with the self changing bootnum variable. Have a look when the device boots. It reboots and automatically changes bootnum till number 2 is reached and then everything will boot fine. After a reboot bootnum is 3 reached and nothing will boot anymore and manually setting it to 0 or 2 won't help.


Did you backup the original bootloader? If so can you upload it that I can play a little bit with it? I also thought about compiling a new u-boot but in my case I have do a little homework that this will work.

(Last edited by somebodywhoisntme on 13 Jun 2016, 16:40)

somebodywhoisntme wrote:

In this case I flash uboot.lq over the bootloader, then I change the enviroment variables and everthing boots fine.

How do I do this? with cat uboot.lq > /dev/ttyUSB0 or how?

somebodywhoisntme wrote:

Did you backup the original bootloader? If so can you upload it that I can play a little bit with it? I also thought about compiling a new u-boot but in my case I have do a little homework that this will work.

Sadly I don't have a backup

No, this only works with UART Mode if I guess right.

In this case you have to provide a tftp server on 192.168.2.100 with the uboot.lg named as 'uImage'

I've done this with another router running openWRT. There you could easily activate a tftp server under dhcp settings.

The flash process of uboot have to be done in uboot/the bootloader itself. You only have to type 'tftp' and the file will load to 0x80800000. After this you can flash with something like 'nand write $(loadimage) $(uboot_addr) $(uboot_size)'

But better check this before doing I dont know if these are the real variables, I'm doing it from the head right now but later I can have look and give you the right ones.

(Last edited by somebodywhoisntme on 13 Jun 2016, 16:36)

Well after doing this I get:

Hit any key to stop autoboot:  0
Uncompressing LCD bootup images ...............
NAND read: device 0 offset 0x0000000004700000, size 0x0000000000300000
 0x300000 bytes read: OK
1. bootid : 0, bootnum : 0
Erasing at 0x4560000 -- 100% complete.
done
2. bootid : 0, bootnum : 1
## Error: "flash_flash0" not defined
Erasing at 0x4560000 -- 100% complete.
done
3. bootid : 2, bootnum : 7

NAND read: device 0 offset 0x000000001fa00000, size 0x0000000000500000
 0x500000 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Erasing at 0x4560000 -- 100% complete.
done
Uncompressing LCD bootup images ...............
NAND read: device 0 offset 0x0000000004700000, size 0x0000000000300000
 0x300000 bytes read: OK

I always flashed the uImage that I got when compiling OpenWRT.

Wait, openwrt will provide a uboot binary after compiling? I doesn't have seen one after compiling. Where should it located?

I always had used this one:

http://arny.tjps.eu/OpenWrt/EasyBox904x … passwd.zip

(Last edited by somebodywhoisntme on 13 Jun 2016, 17:05)

I use the file called "openwrt-lantiq-xrx200-VGV952CJW33-uImage" inside bin/lantiq

Really yikes it seems that I have some tomatoes on my eyes. Thank you smile Will have a look at this tonight or tomorrow.

(Last edited by somebodywhoisntme on 14 Jun 2016, 17:07)

Hello
I would like to create an openwrt image for an easybox904xdsl.
Following procedure executed without error:

*This is mainly taken from the eb904lte forum thread and the description of member stefan-koch.
*
* $git clone git://git.openwrt.org/openwrt.git
* $cd openwrt
* $wget //arny.tjps.eu/OpenWrt/EasyBox904xDSL/devel/v0.1-EasyBox904xDSL.patch
* $patch -p1 < v0.1-EasyBox904xDSL.patch
* $make defconfig
* $make prereq
* $make menuconfig (select Lantiq, xrx200, Easybox 904, Save and Exit)
* $make
*
*
Make ended without error message
But - no rootfs and no kernel file was created in /bin/lantiq
I tried it in different virtual machines.
In the whole filesystem no "squashfs-ubinized.bin" or "uImage" is to be found

Has anyone an idea what I am doing wrong.

Sorry for the Google Translator

Hi. Do you have any file in this folder? Can you list them?
Offtop. With last trank revision I can't apply patch, due to profile refactoring.

/bin/lantiq:
1785879 drwxr-xr-x  3 manni manni 4096 Nov 14 20:40 .
1777676 drwxr-xr-x  4 manni manni 4096 Nov 14 19:37 ..
1747627 -rw-r--r--  1 root  root     0 Nov 14 20:40 lsbinlantiq.txt
1749950 -rw-r--r--  1 manni manni   36 Nov 14 15:39 md5sums
1785880 drwxr-xr-x 10 manni manni 4096 Nov 14 15:39 packages
1749951 -rw-r--r--  1 manni manni   85 Nov 14 15:39 sha256sums
packages:
1785880 drwxr-xr-x 10 manni manni 4096 Nov 14 15:39 .
1785879 drwxr-xr-x  3 manni manni 4096 Nov 14 20:45 ..
1785881 drwxr-xr-x  2 manni manni 4096 Nov 14 15:39 base
1785938 drwxr-xr-x  2 manni manni 4096 Nov 14 15:39 kernel
1749959 drwxr-xr-x  2 manni manni 4096 Nov 14 15:39 luci
2284739 drwxr-xr-x  2 manni manni 4096 Nov 14 15:39 management
1749956 drwxr-xr-x  2 manni manni 4096 Nov 14 15:39 packages
2284733 drwxr-xr-x  2 manni manni 4096 Nov 14 15:39 routing
403728 drwxr-xr-x  2 manni manni 4096 Nov 14 15:39 targets
2284736 drwxr-xr-x  2 manni manni 4096 Nov 14 15:39 telephony

I just start clean build. It will take some time. I will write about my results.

BTW. Unfortunately I haven't enough time for development, but, IMO, it will be a good solution to backport this improvements from kernel 4.5+

H-m-m..
This is very strange. You can find build artifacts in openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200 folder.

I try'd to compile with Chaos Calmer
git clone -b chaos_calmer git://github.com/openwrt/openwrt.git

Surprise Surprise
It works fine. All files I need have been generatet.

Build with sucess the bin files with latest stable sources of C.C.

Booting and testing with FTDI conected on Rx/Tx.

But the gigabit switch & wifi is not working.

Rtl8367rb an RT3883iNIC drivers is still missing.

We must wait ... :-)

Tks.

I have a Easybox-904xDSL R01, original FW was 3.07.
I get a bootloop after installing the modified Image.
I can Install an other Image via serialconsole and resetbutton.
But all Images that i have try (3.17, 3.12, 3.05, modified) will not work.

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK
nand_read_page - 00000008
DDR autotuning Rev 0.3c
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...



U-Boot 2010.06-Lv2.0.40-A0.5 (Nov 22 2012 - 15:40:12)

CLOCK CPU 500M RAM 250M
DRAM:  128 MiB
NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
512 MiB
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
In:    serial
Out:   serial
Err:   serial
Net:   Internal phy(GE) firmware version: 0x040b
vr9 Switch

Type "run flash_nfs" to mount root filesystem over NFS

Hit any key to stop autoboot:  1  0 
Uncompressing LCD bootup images ............... 
NAND read: device 0 offset 0x0000000004700000, size 0x0000000000300000
 0x300000 bytes read: OK
1. bootid : 0, bootnum : 0
Writing to Nand... 
Erasing at 0x4540000 --  50% complete.
Erasing at 0x4560000 -- 100% complete.
done
2. bootid : 0, bootnum : 1

NAND read: device 0 offset 0x0000000003c40000, size 0x0000000000500000
 0x500000 bytes read: OK
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS LTQCPE Linux-2.6.32.32
   Created:      2015-04-20   2:24:05 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1572800 Bytes = 1.5 MiB
   Load Address: 80002000
   Entry Point:  800061b0
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Lantiq xDSL CPE VR9
mips_hpt_frequency = 250000000, counter_resolution = 2

...

Somebody any Idea ?
How is this possible ?

Hello, Forum!

I am using a stock EasyBox 904 LTE, which is based on OpenWrt Backfire 10.03.

As one uses all the data volume for the current month (e.g., 10 GB), then the speed drops significantly (e.g., the access is handed over from LTE to UMTS).

Does anybody know how this reduction in speed can be disabled?
I have with telnet access to the device.

Thank you in advance!

--- Custom Firmware Mod ---

Hi there. I to clean up the openwrt setup from the 3.10 firmware. So I go down to the 10.03 backfire openwrt version and include kernel 2.6.32.32 from 3.10 open source firmware. Also the uboot and mdt utils where taken from there. The remaining components comes from openwrt itself (some packages where updated to the current provided ones or own release changes (e.g. openssl was updated to 1.0.0t)).

The following goals where targeted:
- Get a simple switch with linux and 5 usable network ports (4+1 (WAN port is a LAN port now).
  Originally I wanted attach a raspi to it, powered by the USB power port.
- The OS should boot from USB-Stick. Currently the kernel is flashed on the first kernel partition which is booted from UBoot. The partition /dev/sda1 (ext2) is then used as rootfs.
- OpenWRT should include the following packages:
  - dropbear
  - openvpn
  - privoxy

All of the targets where achieved. The Raspi setup works, though my needs where getting low to really use this setup, because the EasyBox seems to fit my needs now.

I want to share some information on a repo, maybe some one has interest to extend this setup, or better include the setup in upstream openwrt (with old kernel of cource, since the switch driver model isn't available as open source).
github.com/Quallenauge/Easybox-904-XDSL

(Last edited by QAuge on 8 Jan 2017, 21:59)

Plonk34 wrote:

I have a Easybox-904xDSL R01, original FW was 3.07.
I get a bootloop after installing the modified Image.
I can Install an other Image via serialconsole and resetbutton.
But all Images that i have try (3.17, 3.12, 3.05, modified) will not work.

...
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS LTQCPE Linux-2.6.32.32
   Created:      2015-04-20   2:24:05 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1572800 Bytes = 1.5 MiB
   Load Address: 80002000
   Entry Point:  800061b0
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Lantiq xDSL CPE VR9
mips_hpt_frequency = 250000000, counter_resolution = 2

...

Somebody any Idea ?
How is this possible ?

Can you post a link to the complete bootloop sequence (pastebin or others). In the output, you provided, I can't see an error.

The Problem is, it is exatly one Bootloop

after them came

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK
..

repeat and repeat to the point where i have to put the password


why have no other people this problem ?

The crazy thing is i can update with the reset button, but without any affect.

Can you please provide a complete log?! Maybe there is some useful information why the image is rebooted / uboot is unable to load the kernel.

Thanks for interresting here the exact steps what i have done:

I download this image:
http://www.vodafone.de/downloadarea/ful … .01.16.zip

preparing for rescue:

mkdir /tmp/ftp ; unzip fullimage_AT904X-03.17.01.16.zip && mv -vf fullimage_AT904X-03.17.01.16.bin /tmp/ftp/fullimage.img ; chmod -R 0777 /tmp/ftp
killall dhcpcd ; ifconfig eth0 192.168.2.100 up
dnsmasq -d -p 0 --enable-tftp=eth0 --tftp-root=/tmp/ftp

starting screen

screen -L /dev/ttyUSB0 115200

power on the Router and press the rescue switch:
here the recue procedue:
http://pastebin.com/M5Ekve42

then i power on/off the router

http://pastebin.com/dTt0A03A

@Plonk34
See this post, you have to make your own fullimage

sunnyqeen wrote:

@shadow3264
I recently have a easybox 904, and successfully flash the firmware via the tftp method.
The key point is, you have to make your own fullimage.img file from the official one.
The official FW format i.e. UEfullimage_AT904L-03.07.bin:
Step1:
64Byte header

00000000   27 05 19 56 C2 23 D7 E6  52 7C 6B 0C 01 25 E0 00   '  VÂ#×æR|k  %à 
00000010   00 00 00 00 00 00 00 00  1E E7 D1 2E 05 05 07 03            çÑ.    
00000020   4C 54 51 43 50 45 20 52  6F 6F 74 46 53 00 00 00   LTQCPE RootFS   
00000030   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00                   

"01 25 E0 00" is the size of the RootFS that following the header.
Copy all the bytes of the RootFS include the header to a file RootFS.bin

Step2:
find another header in the file,
you can do it with hex search " 27 05 19 56"
you will find the kernel file location:

0125F840   27 05 19 56 C3 F5 D7 00  52 7C 6A EB 00 15 FF C0   '  VÃõ× R|jë  ÿÀ
0125F850   80 00 20 00 80 00 61 B0  58 33 FE F9 05 05 02 03   €   € a°X3þù    
0125F860   4D 49 50 53 20 4C 54 51  43 50 45 20 4C 69 6E 75   MIPS LTQCPE Linu
0125F870   78 2D 32 2E 36 2E 33 32  2E 33 32 00 00 00 00 00   x-2.6.32.32     

"00 15 FF C0" is the size of the Kernel that following the header.
Copy all the bytes of the Kernel include the header to a file Kernel.bin

Step3:
Now merge the 2 file together,  RootFS.bin + Kernel.bin = fullimage.img
The image can now puts to your tftp server root and start the tftp recover.
Good luck!