-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
lantiq: new subtarget and two device updates #888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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:
|
| board_config_flush | ||
|
|
||
| exit 0 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep this newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two enters in the end. Is this a wanted feature ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no it isn't a wanted feature. but that change is unrelated to your commit and should be fixed in a separate (cleanup) commit.
| reg = <0x0 0x1000000>; // 16MB | ||
| }; | ||
|
|
||
| // does not work at fpi@10000000 /TR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop this and all following comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, will do this.
| gpio-leds { | ||
| compatible = "gpio-leds"; | ||
|
|
||
| /* POWER: two led's: 1x green, 1x red */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add red:power to the dts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore this one. failed to read your comment. The led is either green or red. But never off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is sth. like an double LED, so I added this extra comment there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add it to the commit message. but no strong opinion on this. for sure it should be documented.
| lan: lan { | ||
| label = "all0333cj:green:lan"; | ||
| gpios = <&gpio 3 GPIO_ACTIVE_LOW>; | ||
| default-state = "keep"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this led has default-state keep?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a test, must be removed. Nice catch, thank you.
|
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 Otherwise
change Please squash the new added commits in to the existing ones. You can reorder the commits in that rebase list. Change Do a Edit: Instead of edit, reword and squash, you can use e, r and s. less characters to write. |
9e3eb00 to
59584a9
Compare
|
@mkresin |
667dd56 to
d0db5de
Compare
|
I have put together the "lantiq: add Allnet ALL0333CJ support" patch and its fixes. |
2b9d063 to
2fbc075
Compare
|
@mcmilk Hey Tino, can you give me an update? What does work, what does still not work? Should we merge this PR anyway or would you like to fix the outstanding issues first? |
|
@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. |
Add missing memory@0 and localbus@0 sections. Fix MEI and GPTU interrupt definitions. Signed-off-by: Tino Reichardt <milky-lede@mcmilk.de>
Re-Add support for the Amazon-SE subtarget on Lantiq. Signed-off-by: Tino Reichardt <milky-lede@mcmilk.de>
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 <milky-lede@mcmilk.de>
Remove 6 defines, which were defined already some lines above. Signed-off-by: Tino Reichardt <milky-lede@mcmilk.de>
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 <milky-lede@mcmilk.de>
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 <milky-lede@mcmilk.de>
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 <milky-lede@mcmilk.de>
|
@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... |
|
Ping |
|
LGTM |
| #ifdef CONFIG_AR9 | ||
| # define LTQ_MEI_INT (INT_NUM_IM1_IRL0 + 23) | ||
| # define LTQ_MEI_DYING_GASP_INT (INT_NUM_IM1_IRL0 + 21) | ||
| # define LTQ_USB_OC_INT (INT_NUM_IM4_IRL1 + 28) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be:
define LTQ_USB_OC_INT (INT_NUM_IM1_IRL0 + 28)
You used a DMA IRQ number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The #elif defined(CONFIG_SOC_AR9) block on line 1335 was this:
#define IFXMIPS_USB_OC_INT0 (INT_NUM_IM4_IRL1 + 28)
... I just moved it upwards to get rid of the lot #ifdef's there ... it made sense, to move them onto top ;-)
|
Thank you for the pull request, I merged it with some small changes. |
This patchset will re-add the Amazon-SE SoC to LEDE.
This SoC is used on a lot low budget ADSL2+ Modem devices.
The two devices Netgear DGN1000B and Allnet ALL0333CJ are the first ones in this target.