lantiq: new subtarget and two device updates #888
the dsl packages compile fine currently. But the modem firmware is not correctly loaded by the dsl_cpe_control binary. I am trying to find the reason for that with some debugging today...
here is some output, if someone has also interest in it:
PS: I had found one double define in this file:
Please document the rootfs validation workaround of the Allnet in the commit message. As far as I remember some u-boot env variables need to be changed to get it working => document the changes in the commit message.
TO find the reset button pin, have a look at the gpio scripts mentioned in the OpenWrt wiki.
Whats the best way to edit the commit message of the "lantiq: add Allnet ALL0333CJ support" patch 54f5cff ?
I see 3 possibilities, which should all work more or less good:
I used git reset HEAD~X where X is the number of commits to delete. This will not delete files, only git commits. I delete all commits I made after the commit I need to change.
While you are at it, you might want to squash some of your commits in a single one.
Afaik comments here on GIthub are not deleted, they are only tagged as "obsoleted" after the commit they were referring to disappears.
If it is the last commit then
Please squash the new added commits in to the existing ones. You can reorder the commits in that rebase list. Change
Instead of edit, reword and squash, you can use e, r and s. less characters to write.
@mkresin Hello Mathias, sorry for the delay, I had overwritten my uboot on the test modem ;)
I also bought these adsl modems for 4€ on ebay:
The 803 Box is Danube based and should work out of the box, but it does not sync... I will write more details about this 803 box on the mailing list...
The patch will be reworked (today or tomorrow) and should be okay then.
Enable the building of Netgear DGN1000B images. I have an example device here, but it was not tested currently. Also WLAN and USB is not ready in the moment. This is just the proper way, so that developing on this device is known to be done in the near future. Signed-off-by: Tino Reichardt <email@example.com>
This patch adds support for the Allnet ADSL2+ Modem ALL0333CJ. Specifications: - SoC: Amazon-SE - RAM: 16MB - Storage: 4MB NOR FLash - LEDs: Power, Ethernet, DSL (Sync) - Buttons: 1x Reset Button (not currently supported, will be done) - 1x Ethernet-Port: 1x RJ45 10/100BaseTX - 1x WAN-Port: AnnexB & J, G.992.1(ADSL), G.992.3(ADSL2), G.992.5(ADSL2+) Installation: - can be done via telnet+tftp or serial console - default passwords: - via telnet (root:admin) - via webinterface http://172.16.1.254:8235/ (admin:coolwhite) Installation via telnet / tftp: host: # your own host must have an tftpd daemon, then do this: host: ifconfig eth0:172 172.16.1.1 up host: # telnet to allnet modem, root:admin host: telnet 172.16.1.254 modem: # kill this daemon, it spams your console modem: killall dsl_cpe_control modem: # change to some place in ram: modem: cd /ramdisk/tftp_upload modem: # load lede-lantiq-ase-ALL0333CJ-squashfs-sysupgrade.bin alias uImage modem: tftp -g -r uImage 172.16.1.1 modem: # load these extra tools from your tftpd via: modem: # source: https://github.com/mcmilk/uboot-utils/releases/download/0.1/mips32.tar.gz modem: tftp -g -r flashwrite 172.16.1.1 modem: tftp -g -r fw_setenv 172.16.1.1 modem: tftp -g -r fw.conf 172.16.1.1 modem: ln -s fw_setenv fw_printenv modem: chmod +x * modem: ./fw_setenv disable_recovery y modem: ./fw_setenv kernel_addr 0xb0010000 modem: ./flashwrite /dev/mtd/1 uImage 0 Installation via serial line at uboot: uboot: # erase everything exept bootloader uboot: protect on b0000000 +10000; protect on b03f0000 +10000 uboot: erase all uboot: # get new firmware via tftp: uboot: tftpboot 0x80100000 uImage; setenv kernel_addr 0xb0010000 uboot: # copy to flash: uboot: cp.b 0x80100000 $(kernel_addr) $(filesize) uboot: # disable proprietary image checking: uboot: setenv disable_recovery=y; saveenv uboot: # reboot with LEDE ;) uboot: reset Ethernet works as expected, DSL syncronization does not work properly currently, I am working on this issue. Signed-off-by: Tino Reichardt <firstname.lastname@example.org>
The ltq-adsl-mei package is used for 3 lantiq device types: danube, amazon-se and ar9. These different SoC's need also different definitions. Signed-off-by: Tino Reichardt <email@example.com>
The patch 0008 removes the vanilla kernel gptu.c of lantiq. But the replacement file timer.c does not work Amazon-SE and is also protected therefore with an CONFIG_SOC_AMAZON_SE :-) This commit will re-activate the default vanilla kernel code in gptu.c for Amazon-SE. Signed-off-by: Tino Reichardt <firstname.lastname@example.org>
@mkresin, I have forwarded my own branch to the current master and another commit for fixing gptu things. I didn't resolve the dsl modem issue. AFAIK, danube and amazon-se seem to be broken... but not by my patches, also before :-(
From my side, this patchset is ready for integration into current LEDE.
Open issues: Fix dsl sync, but this will required more time... which I currently do not have...