Giter Club home page Giter Club logo

easybox-904-xdsl's Introduction

This is the buildsystem for the OpenWrt Linux distribution.

Please use "make menuconfig" to choose your preferred configuration for the toolchain and firmware.

You need to have installed gcc, binutils, bzip2, flex, python, perl, make, find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers.

Run "./scripts/feeds update -a" to get all the latest package definitions defined in feeds.conf / feeds.conf.default respectively and "./scripts/feeds install -a" to install symlinks of all of them into package/feeds/.

Use "make menuconfig" to configure your image.

Simply running "make" will build your firmware. It will download all sources, build the cross-compile toolchain, the kernel and all choosen applications.

To build your own firmware you need to have access to a Linux, BSD or MacOSX system (case-sensitive filesystem required). Cygwin will not be supported because of the lack of case sensitiveness in the file system.

Sunshine! Your OpenWrt Community http://www.openwrt.org

Attention for upgrading an older Image

If you want to upgrade an older image ( <2018-03-11 ) with the current one, please backup the data and perform an recovery via fullimage.img method. If not, you end up in a bootloop, which then also has to be resolved via the fullimage.img method.

EasyBox 904 Notes

The project is intended to use the EasyBox as simple IOT device with only network support. It is possible to make use all of the 5 ports of the switch and run some services.

There fore it is useful to connect to the board via serial adapter. (Of course you need the unlocked uboot, see https://forum.openwrt.org/viewtopic.php?pid=284534#p284534 how to flash).

Compilation

Build Instructions

git clone https://github.com/Quallenauge/Easybox-904-XDSL.git Easybox-904-XDSL
cd Easybox-904-XDSL
./scripts/feeds update && ./scripts/feeds install -a
cp vr9_default.config .config
make oldconfig
make V=s

The resulting image can be found on bin/targets/lantiq/xrx200/openwrt-lantiq-xrx200-lantiq_vgv952cjw33-e-ir-squashfs-rootfs-ubinized.bin

Prebuilts

There are some snapshots from the current build. Please refer this link for details.

Installing

Refer Install instructions at the openwrt wiki as base. For reference the images will be uploaded here: Firmware Snapshots Lately it seems, the fullimage.img doesn't work right now, please use the newest one from: fullimage.img .

Tips&Tricks

UBoot

A compile able uboot is integrated in the master-lede branch. It is untested! A working uboot can be compiled when using this branch: https://github.com/Quallenauge/Easybox-904-XDSL/tree/master.

It is modified to accept all provided passwords in the same way the one at the openwrt post is used. As addition the bootnum functionality is disabled to save some uboot settings re-flash cycles at boot. Also the network is always switched on, to support boot over tftp per default.

A prebuilt one can be found here.

Stock-Rootfs from sdcard

The uboot environment variables has to be modified in the following way, assuming the rootfs is of type ext2 and is stored at sda1.

setenv addbootargs setenv bootargs \\${bootargs} root=/dev/sda1 rootdelay=7 init=/etc/preinit rootfstype=ext2
setenv bootflash nand read.e \\$(loadaddr) \\$(f\_kernel\_addr) \\$(f\_kernel\_size) \\; run addip addmisc addbootargs \\; bootm \\$(loadaddr)
setenv bootcmd run bootflash
saveenv

Manual installing a customized kernel

The kernel is updated via (assume the uImage is in the current path, PLEASE refer to the ToDos at openwrt to avoid bricks https://openwrt.org/toh/astoria/arcadyan_astoria_easybox_904xdsl_r01?s[]=arcadyan&s[]=astoria&s[]=easybox&s[]=904xdsl#installing_openwrt

flash_eraseall /dev/mtd2
nandwrite -p /dev/mtd2 uImage

The memory card should have a partition which contains the rootfs. The partition should correspond to the uboot root setting (e.g. /dev/sda1).

easybox-904-xdsl's People

Contributors

981213 avatar acoul avatar adschm avatar blocktrron avatar blogic avatar chunkeey avatar dangowrt avatar dedeckeh avatar diizzyy avatar embeem avatar ffainelli avatar hauke avatar jow- avatar juhosg avatar kaloz avatar kanjimonster avatar larsclausen avatar ldir-edb0 avatar lperkov avatar mkresin avatar nbd168 avatar neheb avatar neocturne avatar noltari avatar pepe2k avatar rmilecki avatar stintel avatar wigyori avatar ynezz avatar yousong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easybox-904-xdsl's Issues

Questions about resetting U-Boot environment variable 'bootnum'

Hi everyone,
there is this capability to reset U-Boot's 'bootnum' environment variable.
I have the impression that it does not work out of the box in the current Easybox-904-XDSL Head version, because the ubootconfig partition is encrypted. But I know, I once saw it working correctly. Maybe it was used in some "fullimage.img" revovery image? I think the kernel's nand simulator was used for this. I searched for it, but failed to find it again.

So here my questions, maybe someone can enlighten me:

  1. Is it supposed to work?

  2. If no: where can I find this working stuff for the eb904 which resets the bootnum?

  3. What do you think: is it highly important, of minor relevance, or not important at all that we support this bootnum resetting feature?

bad VID header

As I'm trying to port You're repo to LTE version, I've came across some strange issue with sysupgrade.

I'm keep getting

[ 5.039991] ubi0 error: 0x80339140: bad VID header offset 2048, expected 512
[ 5.046438] ubi0 error: 0x8033919c: bad EC header
[ 5.051085] Erase counter header dump:
[ 5.054857] magic 0x55424923
[ 5.058532] version 1
[ 5.061535] ec 3
[ 5.064518] vid_hdr_offset 2048
[ 5.067716] data_offset 4096
[ 5.070962] image_seq 375226156
[ 5.074591] hdr_crc 0xca819103

Can You point why this is happening ? Did You came across something similar ?

Touchpad driver

As LTE version dosn't use SIPO for TP, and Your driver uses it by default can You make it driver independent, or dependent on dts settings ?

Crashes every 2 Minutes / Samba usb support?

Hi Quallenauge,

I've tried your two latest nightly builds from december, but both crash after around 2 Minutes (after the screen shows the CPU usage etc, which by the way looks really nice). So I switched to this build: https://github.com/majuss/easybox904 which uses your .config, but the kernel version is incompatible with usb samba. I opened an issue there, but he was not able to compile your sources against the master branch of OpenWRT, which I hoped would fix the incompatible kernel issue.

So my Question: -1: What is a known good "stable" nightly build without really frequent crashing from you?

-2: Is it possible to build against the master branch and/or a kernel which is compatible with usb + samba?

Thank you a lot in advance!

DSL actually working?

Hi there!

When I enter all my DSL credentials via PPPoE, hit save and apply and reconnect the dsl0 interface, nothing happens and the box can't login into the DSL connection.

Should this be working right now or is it still work in progress?

[Question] Was make oldconfig always asking so many questions?

Hi, first thank you for your great developement. I saw that the prebuilt binaries have not been updated scince the end of August so I thought I will build the image myself. I followed the instructions, but make oldconfig asked about ~200 questions because of NEW config entries. I just held down enter so it answers every question with the default value. Was it always like that? I think I built this repo half a year ago and then it was not asking so many questions.
Also: do you plan to provide updated binaries in the future again? Can we maybe even expect the new major OpenWRT release?

Thank you! :)

.

kT

NAND sub-pages: using size 512 instead of 2048 bytes

Hi everybody, hi Qauge,

There is this commit "Sysupgrade: Deactivate subpages on nand". It contains this comment:
"Currently, subpages aren't working on the easybox 904 xdsl nand flash.
Allthough, The nand driver seems to report it is supported, which isn't".

I am wondering if this is really the case. Maybe UBI sub-page problems were caused by mixing old and new stuff?

For example for ages we use this kernel command line parameter "ubi.mtd=12,2048". And trying to access an existing 'old' UBI partition (which did not use sub-pages) with the current UBI driver results in errors, unless a VID header offset of 2048 is explicitly specified in the ubiattach command.

On the eb904, I played around with sub-page size of 512 bytes.
And I ran the "nandsubpagetest" program from the mtd-utils software.

To me it looks like 512 byte sub-page size works ok on the eb904.
I have documented my tests here.

I would like to hear opinions from OpenWrt-eb904 developers,
If you think it is a good idea, I would gladly provide a pull request to change the sub-page size back to 512.

BTW: my tests with U-Boot (Arcadian's version from 2010) show that UBI as part of U-Boot does not work at all. Neither with VID header offset 512 nor with 2048. U-Boot does not recognize an existing UBI partition and always reformats the partition when trying to access it with UBI commands.

Wi-fi directly from lan mode available bypassing DSL?

I found a long time ago out that you won't need DSL connection just to get working with the wi-fi. You can hook it up to a RJ45 ethernet and it will work somehow with the step by step instruction that you need to plug in first a RJ45 ethernet and then turn it on, but it will work without the default gateway interface and settings. But the wifi works perfectly with 300mbps. It is a great way to use this old router as a 300mbps wifi. Is this "bug" present in this build? Or you can just use it with the slow/not present for me dsl/xdsl connection?

Wifi init problem

Full bootlog in here https://pastebin.com/68QY9H9E

Constant spam of [ 267.417574] WARN! IOCTL 8b21 ignored (interface not opened yet)
Cannot turn radio on, ends with :

Shutdown interface wl000
Invalid command : set
Invalid command : set
Invalid command : set
scan device: wl010
Shutdown interface wl010
Invalid command : set
Invalid command : set
Invalid command : set
scan device: wl000
Enable device wl000
DEVICE: wl000 VIF: default_wl000
Encryption: psk2+aes
Preparing interface <wl000>

Bring up interface <wl000> to be able to send iwpriv commands
Configure wifi device wl000

Starting wifi device wl000
iwpriv 'wl000' set Enable=1; iwpriv 'wl000' set Enable=0; iwpriv 'wl000' set RadioOn=0; iwpriv 'wl000' set AuthMode=WEPAUTO; iwpriv 'wl000' set EncrypType=WEP; iwpriv 'wl000' set IEEE8021X=0; echo 'wl000' is WPA2-AES MODE; iwpriv 'wl000' set AuthMode=WPA2PSK; iwpriv 'wll000' set EncrypType=AES; iwpriv 'wl000' set IEEE8021X=0; iwpriv 'wl000' set WPAPSK='WiFipassword'; iwpriv 'wl000' set DefaultKeyID=2; iwpriv 'wl000' set SSID=Lede ; iwpriv 'wl000' set Enable=1; iwpriv 'wl000' set RadioOn=1
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
wl000 is WPA2-AES MODE
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
wl000(ralink): enable failed
scan device: wl010
Enable device wl010
DEVICE: wl010 VIF: default_wl010
Encryption: psk2+aes
Preparing interface <wl010>

Bring up interface <wl010> to be able to send iwpriv commands
Configure wifi device wl010

Starting wifi device wl010
iwpriv 'wl010' set Enable=1; iwpriv 'wl010' set Enable=0; iwpriv 'wl010' set RadioOn=0; iwpriv 'wl010' set AuthMode=WEPAUTO; iwpriv 'wl010' set EncrypType=WEP; iwpriv 'wl010' set IEEE8021X=0; echo 'wl010' is WPA2-AES MODE; iwpriv 'wl010' set AuthMode=WPA2PSK;iwpriv 'wl010' set EncrypType=AES; iwpriv 'wl010' set IEEE8021X=0; iwpriv 'wl010' set WPAPSK='WiFipassword'; iwpriv 'wl010' set DefaultKeyID=2; iwpriv 'wl010' set SSID=Lede1 ; iwpriv 'wl010
' set Enable=1; iwpriv 'wl010' set RadioOn=1
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
wl010 is WPA2-AES MODE
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
wl010(ralink): enable failed

Enabling FXS port based analog telephony with chan_lantiq and asterisk13

Hey,

I want to use the FXS plug of the Easybox as outlined here.
However, recommended installation via opkg fails with:

opkg_install_cmd: Cannot install package asterisk15.

so I guess I will have to build my own image. Do you have any experience regarding FXS telephonie and the EasyBox? Especially, since on the OpenWRT page it states that the analog telephone line should work and it's referenced in #6.

I installed the latest snapshot (SNAPSHOT, r8430-b904437c2d) via the fullimage.img method.

Best,

build fails: lcd4linux is missing libusb

Hi, currently the build fails with
Package lcd4linux-eb904-custom is missing dependencies for the following libraries: libusb-0.1.so.4 make[3]: *** [Makefile:323: /home/m/easybox/bin/packages/mips_24kc/easybox904/lcd4linux-eb904-custom_r4f027-4_mips_24kc.ipk] Error 1
thanks for your help!

U-Boot for the eb904 cannot be selected in "make menuconfig"

Hi Qauge, hi everyone

The issue is shown in this textual screen copy: the eb904 U-Boot is listed, but it cannot be selected.

I understand that your EasyBox 904 repos are the leading repos, so I would like to contribute.

At the moment I can offer to create pull requests for the things listed below for inclusion in your repo(s).
However I need feedback about what you find acceptable:

  • fix the error which I report in this issue (see above).
  • augment the recovery procedure (reset press while power-on) to load, accept, and run an initramfs without flashing anything and also not incrementing any bootnum/bootid variables in flash.
  • rework the Makefile to get rid of some cruft and let it come closer to other Makefiles.
  • change U-Boot's default values (Kconfig files) to the ones suggested to use for the eb904-
  • move the eb904 U-Boot from your "Easybox-904-XDSL" repo to your "lede-feeds-easybox904" repo.

All this is already implemented and tried out. My version can be found here. I copied it to "lede-feeds-easybox904", because I feel this is a better place (there also is the wifi driver), but this is just a suggestion.

There already exists a pull request for your "lede-feeds-easybox904" repo which contains all of the changes. Maybe you find this too much. Again: please consider this to only be a suggestion to trigger a discussion.

I would be glad to hear from OpenWrt/EasyBox904 developers. Either as response to this issue, or at these locations:
https://forum.openwrt.org/t/support-for-easybox-904-lte/14478
email an arnysch bei gmx.net

LAN - WAN

Is it possible to configure in this assembly that LAN output worked as a WAN input, and how to do it

iNIC future support

I have found very interesting blog about very similar problem with WiFi driver and LuCI configuration possibility. Here it is.
From my investigation I have understood, that if we want to have complete support iNIC driver in LuCI(or GNU/Linux), we have two possible ways:

  1. Add fullMAC ieee802.11 support to current driver. This means implement cfg80211_ops API support and export wiphy struct.
  2. Adopt scripts from link to our reality.
    IMHO first way more difficult, but will realize modern interface and will stay actual for long period. Second is more simple, but outdated and can be dropped by kernel maintainers at any time.

Personally I vote for fullMAC cfg80211 interface support. proper wext support can be done in parallel.

@arnysch @Quallenauge @linusw what do you think?
@linusw we have discussed iNIC driver in private chat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.