Support for LEDE on the Allnet ADSL2+ Modem ALL0333CJ

I am using a lot ADSL2+ Modems on my work. They get very hot and are using some very old linux kernel.... this is BAD!

This is the homepage for some patching work for the LEDE project. The result should be some patch, which will fully support the Amazon-SE SoC and goes upstream into LEDE...

currently I have done about 70% of it.... (Modem Firmware needs testing) modem

Hidden Webinterface on default Firmware: http://172.16.1.254:8235/, with user "admin" and password: "coolwhite"

Telnet on port 23 on default Firmware with user "root" and password "admin"

This is the boot log of the default Linux:

U-Boot 1.1.5-2.0 (Jan 24 2013 - 13:38:46)


 relocate_code start
 relocate_code finish.

 type is 00000001
 type is 0000007e
addr[0] = 227e
/n Detect flash id is bb  
Flash:  4 MB
In:    serial
Out:   serial
Err:   serial
Net:   Internal Clock
Selected EPHY_MODE 
AMAZON_SE Switch
Hit any key to stop autoboot:  4  3  2  1  0 
Checking Images Integrity ...
  Kernel: OK
  Rootfs: OK
## Booting image at b03744d0 ...
   Image Name:   MIPS Linux-2.4.31-Amazon_SE-3.6.
   Created:      2013-01-24   5:38:19 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    552170 Bytes = 539.2 kB
   Load Address: 80002000
   Entry Point:  8019a040
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

MC_PRIO = 0x0 -> 0xc0
flash_start=0xb0000000
flash_size=4194304l
CPU revision is: 0001906c
Primary instruction cache 8kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 bytes.
Linux version 2.4.31-Amazon_SE-3.6.12-R0208V36 (uday@rdfwdev1.aztech.com) (gcc version 3.3.6) #107 Thu Jan 24 13:38:12 SGT 2013
Can't analyze prologue code at 8001e2a0
Determined physical RAM map:
User-defined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock1 ip=192.168.1.1:192.168.1.2::::eth0:on console=ttyS0,115200 ethaddr=00:0F:C9:12:9A:EE mem=16M panic=1 
ethaddr_setup: mac address  0- f-c9-12-9a-ee 
mips_hpt_frequency:133333333
r4k_offset: 00145855(1333333)
Using 133.333 MHz high precision timer.
[ifx_asc_init_hardware 1081]: ASC ID = 0x101044c4
[ifx_asc_init_hardware 1083]: TxFIFO size = 16, RxFIFO size = 16
[ifx_asc_init_hardware 1085]: TxFIFO CON = 0x1f01, RxFIFO CON = 0x1f01
Calibrating delay loop... 
266.24 BogoMIPS
MIPS CPU counter frequency is fixed at 133333333 Hz
Memory: 14268k/16384k available (1619k kernel code, 2116k reserved, 100k data, 80k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
amazon_se_dma_init
dma_chip_init
LSP Revision 1
Starting kswapd
Squashfs 2.2 (released 2005/07/03) (C) 2002-2004, 2005 Phillip Lougher
pty: 256 Unix98 ptys configured
ttyS0 at MEM 0xbe100c00 (irq = 66) is a IFX_ASC
Amazon_SE MEI version:2.04.00
cgu: misc_register on minor = 63

amazon_se_gptu_init:<6>gptu: totally 6 16-bit timers/counters
gptu: misc_register on minor 62
gptu: succeeded to request irq 25
gptu: succeeded to request irq 26
gptu: succeeded to request irq 27
gptu: succeeded to request irq 28
gptu: succeeded to request irq 29
gptu: succeeded to request irq 30
cgu_get_fpi_bus_clock(2) = 133333333, clock_divider = 1
bus clock = 5000000, clock_divider = 1

divider = 33333332
set_timer(0, 4000), divider = 33333332 
request_timer(0, 0x0000010D, 33333332)
reload value = 33333332
led: misc_register on minor = 151


Infineon CPE API Driver version: DSL CPE API V3.16.5
PPP generic driver version 2.4.2
amazon_se ETOP driver loaded!
Internal Clock
Selected EPHY_MODE 
oamk: init_module() called.
Opening oam kernel socket
oamk: init_module() returned.
ppe: ATM init succeeded (firmware version 1.1.0.2.1.13)
[init_amazon_se_mtd 371]: AMAZON_SE_EBU_CON 0x40000060, AMAZON_SE_EBU_CON0 0x1d2aa
init_amazon_se_mtd: start_scan_addr: b0000000
init_amazon_se_mtd: chip probing count 0
Amazon_se: probing address:b0000000
 Amd/Fujitsu Extended Query Table v1.3 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
init_amazon_se_mtd: bank1, name:Amazon_se Bank 0, size:4194304bytes 
AMAZON_SE flash0: Using static image partition definition
Creating 2 MTD partitions on "Amazon_se Bank 0":
0x00000000-0x00010000 : "U-Boot"
0x00010000-0x00400000 : "RootFS,Kernel,Data,Environment"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
GRE over IPv4 tunneling driver
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (128 buckets, 1024 max) - 360 bytes per conntrack
ip_conntrack_pptp version 1.9 loaded
ip_conntrack_rtsp v0.01 loading
ip_nat_pptp version 1.5 loaded
ip_nat_rtsp v0.01 loading
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
Amazon_Se Port Initialization
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 80k freed
init started:  BusyBox v1.00 (2013.01.24-05:25+0000) multi-call binary
init started:  BusyBox v1.00 (2013.01.24-05:25+0000) multi-call binary
Starting pid 11, console /dev/console: '/etc/init.d/rcS'
Algorithmics/MIPS FPU Emulator v1.5
Created character device /dev/amazon_se-port with major[254] and minor[0]
Created character device /dev/dsl_cpe_api with major[107] and minor[0]
Created character device /dev/ifx_mei with major[105] and minor[0]
:::: Breaking from 1st while loop
10_00_10_00_00_04_01_00
DSL_CPE: Using ADSL Modem is not ready!autostart script file - /etc/cmv_batch
DSL_CPE: using script notification file - /etc/rc.d/init.d/xdslrc.sh
DSL_CPE: using 1st firmware file - /firmware/modemhwe.bin
DSL_CPE: Device /dev/dsl_cpe_api opened successfully
Using /lib/modules/2.4.31-Amazon_SE-3.6.12-R0208V36/kernel/net/ifx_nfext/ifx_nfext_core.o
Using /lib/modules/2.4.31-Amazon_SE-3.6.12-R0208V36/kernel/net/ifx_nfext/ifx_nfext_ppp.o
Bringing up syslog
iptables: Chain already exists
iptables: Chain already exists


DSL_CPE: Parsing script file (/etc/cmv_batch)...
DSL_CPE: Parsing script file (/etc/cmv_batch)...
DSL_CPE: read info 103 1, value=1008, retCode=0
DSL_CPE: read optn 25 0, value=0201, retCode=0
Try `iptables -h' or 'iptables --help' for more information.
<6>device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state
br0: port 1(eth0) entering forwarding state
br0: topology change detected, propagating
DAS 855
[src/IFIN_MgmtServer.c:StartTimer:183] Started Periodic Inform Timer-> ID = 1
IFX_ContGetParamValues:1574 Calling InternetGatewayDevice.X_000319_IFX.Instances Num=1
ifx_ds_get_exact_name : Node not found
tree_add_instance 423 : clash in instance found : exiting
ifx_ds_add_object 888 : failure in adding instance
IFX_ContGetParamValues:1574 Calling InternetGatewayDevice.X_000319_IFX.IncludeXMLVerString Num=1
IFX_ContGetParamValues:1574 Calling InternetGatewayDevice.X_000319_IFX.IncludeSOAPAction Num=1
IFX_ContGetParamValues:1574 Calling InternetGatewayDevice.DeviceInfo.Manufacturer Num=4
/tmp/version File does not exit

 Enable successfull 

 Enable successfull 
Kernel:2.4.31-Amazon_SE-3.6.12-R0208V36

 Enable successfull 

 Enable successfull 

 Enable successfull 

 Enable successfull 
nReturn=0

writing 0x80000010 into address 0x1e104114

+---------------------------------------------------+
| Linux/MIPS on AMAZON_SE by Infineon COM AC BB_CPE |
+---------------------------------------------------+
Starting pid 1071, console /dev/console: '/sbin/getty'

Bringup wan started for wan index 1 !!
BOOTLoader:1.1.5-2.0
CPU:AMAZON_SE-v1.2
BSP:1.3.1.1-patch2
Firmware:FW Version: 3.4.6.8.1.2
Software:Amazon_SE-3.6.12-R0208V36-1338-24Jan13
Tool Chain:lxdb-1-3-2/3.3.6/0.9.28
IFX_ContGetParamValues:1574 Calling InternetGatewayDevice.X_000319_IFX.ACSGetRPC Num=4
iReason = 3, state = 0, RetryCnt = 0
Blocking on Select()...

mac clone
0
pppoe_mac_addr

Amazon_SE login: :::::
Wan mac addr 1
00:0F:C9:12:9A:EF
open ATM itf = 0, vpi = 1, vci = 32, ret = 0

Amazon_SE login: rCreated interface nas0 <---> WAN1 !!
odevice nas0 entered promiscuous mode
br0: port 2(nas0) entering learning state
ot
Password: Warning: Using /etc/hosts will be removed in a future version. Please use only the /etc/dnrd/master file or use -m off.
br0: port 2(nas0) entering forwarding state
br0: topology change detected, propagating



BusyBox v1.00 (2013.01.24-05:25+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
last change: 2017-01-24 @ 15:36
  1. check your current kernel version and dowload the source of it
    
    # protect uboot
    protect on b0000000 +10000
    protect on b03f0000 +10000
    # delete everything exept uboot
    erase all
    # get new firmware
    tftpboot 0x80100000 uImage
    setenv kernel_addr 0xb0010000
    cp.b 0x80100000 $(kernel_addr) $(filesize)
    # we have to disable the image checking of factory u-boot:
    setenv disable_recovery=y
    saveenv
    # reboot with LEDE ;)
    reset
    
  2. current patch:
    diff --git a/target/linux/generic/patches-4.4/308-mips32r2_tune.patch b/target/linux/generic/patches-4.4/308-mips32r2_tune.patch
    deleted file mode 100644
    index f4ab89ef28..0000000000
    --- a/target/linux/generic/patches-4.4/308-mips32r2_tune.patch
    +++ /dev/null
    @@ -1,17 +0,0 @@
    -Add -mtune=34kc to MIPS CFLAGS when building for mips32r2
    -This provides a good tradeoff across at least 24Kc-74Kc, while also
    -producing smaller code.
    -
    -Signed-off-by: Felix Fietkau <nbd@nbd.name>
    -
    ---- a/arch/mips/Makefile
    -+++ b/arch/mips/Makefile
    -@@ -145,7 +145,7 @@ cflags-$(CONFIG_CPU_R4X00)	+= -march=r46
    - cflags-$(CONFIG_CPU_TX49XX)	+= -march=r4600 -Wa,--trap
    - cflags-$(CONFIG_CPU_MIPS32_R1)	+= $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
    - 			-Wa,-mips32 -Wa,--trap
    --cflags-$(CONFIG_CPU_MIPS32_R2)	+= $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
    -+cflags-$(CONFIG_CPU_MIPS32_R2)	+= $(call cc-option,-march=mips32r2 -mtune=34kc,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
    - 			-Wa,-mips32r2 -Wa,--trap
    - cflags-$(CONFIG_CPU_MIPS32_R6)	+= -march=mips32r6 -Wa,--trap
    - cflags-$(CONFIG_CPU_MIPS64_R1)	+= $(call cc-option,-march=mips64,-mips64 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64) \
    diff --git a/target/linux/lantiq/Makefile b/target/linux/lantiq/Makefile
    index 3e4f48e7b1..3b89ca0c8f 100644
    --- a/target/linux/lantiq/Makefile
    +++ b/target/linux/lantiq/Makefile
    @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
     BOARD:=lantiq
     BOARDNAME:=Lantiq
     FEATURES:=squashfs
    -SUBTARGETS:=xrx200 xway xway_legacy falcon
    +SUBTARGETS:=ase falcon xrx200 xway xway_legacy
     MAINTAINER:=John Crispin <john@phrozen.org>
     
     KERNEL_PATCHVER:=4.4
    diff --git a/target/linux/lantiq/ase/config-default b/target/linux/lantiq/ase/config-default
    new file mode 100644
    index 0000000000..11255f7b45
    --- /dev/null
    +++ b/target/linux/lantiq/ase/config-default
    @@ -0,0 +1,32 @@
    +CONFIG_ADM6996_PHY=y
    +CONFIG_CC_OPTIMIZE_FOR_SIZE=y
    +CONFIG_CRC16=y
    +CONFIG_CRYPTO_DEFLATE=y
    +CONFIG_CRYPTO_LZO=y
    +CONFIG_DECOMPRESS_XZ=y
    +# CONFIG_DEFAULT_DEADLINE is not set
    +CONFIG_DEFAULT_IOSCHED="noop"
    +CONFIG_DEFAULT_NOOP=y
    +CONFIG_FIRMWARE_IN_KERNEL=y
    +CONFIG_FIRMWARE_MEMMAP=y
    +CONFIG_GPIO_GENERIC=y
    +CONFIG_GPIO_GENERIC_PLATFORM=y
    +CONFIG_IMAGE_CMDLINE_HACK=y
    +# CONFIG_ISDN is not set
    +CONFIG_JUMP_LABEL=y
    +# CONFIG_LBDAF is not set
    +CONFIG_LEDS_TRIGGER_HEARTBEAT=y
    +CONFIG_LZO_COMPRESS=y
    +CONFIG_LZO_DECOMPRESS=y
    +CONFIG_MIPS_FPU_EMULATOR=y
    +# CONFIG_PSB6970_PHY is not set
    +CONFIG_RD_XZ=y
    +# CONFIG_RTL8366_SMI is not set
    +CONFIG_SOC_AMAZON_SE=y
    +# CONFIG_SOC_XWAY is not set
    +# CONFIG_SPI is not set
    +CONFIG_USB_SUPPORT=y
    +# CONFIG_WIRELESS is not set
    +# CONFIG_WLAN is not set
    +CONFIG_ZLIB_DEFLATE=y
    +CONFIG_ZLIB_INFLATE=y
    diff --git a/target/linux/lantiq/ase/profiles/00-default.mk b/target/linux/lantiq/ase/profiles/00-default.mk
    new file mode 100644
    index 0000000000..26bc8b502b
    --- /dev/null
    +++ b/target/linux/lantiq/ase/profiles/00-default.mk
    @@ -0,0 +1,9 @@
    +define Profile/Default
    +	NAME:=Default Profile
    +	PRIORITY:=1
    +endef
    +
    +define Profile/Default/Description
    +	Default package set compatible with most boards.
    +endef
    +$(eval $(call Profile,Default))
    diff --git a/target/linux/lantiq/ase/target.mk b/target/linux/lantiq/ase/target.mk
    new file mode 100644
    index 0000000000..28694e6d44
    --- /dev/null
    +++ b/target/linux/lantiq/ase/target.mk
    @@ -0,0 +1,25 @@
    +#
    +# Copyright (C) 2016 LEDE Project
    +#
    +# This is free software, licensed under the GNU General Public License v2.
    +# See /LICENSE for more information.
    +#
    +ARCH:=mips
    +SUBTARGET:=ase
    +BOARDNAME:=Amazon-SE
    +FEATURES:=squashfs atm mips16
    +# ramdisk small_flash
    +CPU_TYPE:=4kec
    +
    +DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug \
    +	kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
    +	kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
    +	ltq-adsl-app ppp-mod-pppoe luci_git
    +
    +#  DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
    +#	kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
    +#	ltq-adsl-app ppp-mod-pppoe
    +
    +define Target/Description
    +	Lantiq Amazon-SE Boards
    +endef
    diff --git a/target/linux/lantiq/base-files/etc/board.d/01_leds b/target/linux/lantiq/base-files/etc/board.d/01_leds
    index 0698d6cc59..221815d683 100755
    --- a/target/linux/lantiq/base-files/etc/board.d/01_leds
    +++ b/target/linux/lantiq/base-files/etc/board.d/01_leds
    @@ -35,6 +35,9 @@ led_internet="$(lantiq_get_dt_led internet)"
     board=$(lantiq_board_name)
     
     case "$board" in
    +ALL0333CJ)
    +	ucidef_set_led_netdev "lan" "lan" "all0333cj:green:lan" "eth0.1"
    +	;;
     ARV4525PW)
     	ucidef_set_led_netdev "wifi" "wifi" "arv4525pw:green:wlan" "wlan0"
     	;;
    diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network
    index 576bb7d86b..8f223b2ab9 100755
    --- a/target/linux/lantiq/base-files/etc/board.d/02_network
    +++ b/target/linux/lantiq/base-files/etc/board.d/02_network
    @@ -26,6 +26,13 @@ ACMP252|GIGASX76X)
     		"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5t@eth0"
     	;;
     
    +ALL0333CJ)
    +	annex="b"
    +	lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
    +	wan_mac=$(macaddr_add "$lan_mac" 1)
    +	ucidef_set_interface_lan 'eth0'
    +	;;
    +
     ARV4510PW)
     	lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
     	wan_mac=$(macaddr_add "$lan_mac" 1)
    @@ -183,4 +190,3 @@ ucidef_set_interface_wan "$interface_wan" "pppoe"
     board_config_flush
     
     exit 0
    -
    diff --git a/target/linux/lantiq/dts/ALL0333CJ.dts b/target/linux/lantiq/dts/ALL0333CJ.dts
    new file mode 100644
    index 0000000000..e613923ff7
    --- /dev/null
    +++ b/target/linux/lantiq/dts/ALL0333CJ.dts
    @@ -0,0 +1,131 @@
    +/dts-v1/;
    +
    +#include "amazonse.dtsi"
    +
    +/ {
    +	model = "ALL0333CJ - Allnet ALL0333CJ DSL Modem";
    +
    +	chosen {
    +		bootargs = "console=ttyLTQ0,115200";
    +
    +		aliases {
    +			led-boot = &power;
    +			led-failsafe = &power;
    +			led-running = &power;
    +
    +			led-dsl = &dsl;
    +			led-internet = &online_green;
    +		};
    +
    +	};
    +
    +	memory@0 {
    +		reg = <0x0 0x1000000>; // 16MB
    +	};
    +
    +	// does not work at fpi@10000000 /TR
    +	fpi@b0000000 {
    +		etop@E180000 {
    +			phy-mode = "mii";
    +		};
    +	};
    +
    +	fpi@10000000 {
    +		gpio: pinmux@E100B10 {
    +			pinctrl-names = "default";
    +			pinctrl-0 = <&state_default>;
    +
    +			state_default: pinmux {
    +				asc {
    +					lantiq,groups = "asc";
    +					lantiq,function = "asc";
    +				};
    +				keys_in {
    +					lantiq,pins = "io0",/* "io25", */"io29";
    +					lantiq,pull = <2>;
    +					lantiq,open-drain = <1>;
    +				};
    +			};
    +		};
    +
    +		// nor chips like: Spansion S29GL032
    +		localbus@0 {
    +			nor-boot@0 {
    +				compatible = "lantiq,nor";
    +				bank-width = <2>;
    +				reg = <0 0x0 0x400000>;
    +				#address-cells = <1>;
    +				#size-cells = <1>;
    +
    +				partitions {
    +					compatible = "fixed-partitions";
    +					#address-cells = <1>;
    +					#size-cells = <1>;
    +
    +					partition@0 {
    +						label = "uboot";
    +						reg = <0x00000 0x10000>;
    +						read-only;
    +					};
    +
    +					partition@10000 {
    +						label = "firmware";
    +						reg = <0x10000 0x3ef200>;
    +					};
    +
    +					partition@3ff200 {
    +						label = "uboot_env";
    +						reg = <0x3ff200 0xc00>;
    +						read-only;
    +					};
    +
    +					partition@3ffe00 {
    +						label = "dummy_rootfs";
    +						reg = <0x3ffe00 0x200>;
    +						read-only;
    +					};
    +				};
    +			};
    +		};
    +	};
    +
    +	/**
    +	 * gpios:
    +	 *  1=dsl           (1=off, 0=on)
    +	 *  3=ethernet      (1=off, 0=on)
    +	 *  4=online red    (1=off, 0=on) - right most
    +	 * 12=online green  (1=off, 0=on) - right most
    +	 * 13=power         (1=red, 0=green) - left most
    +	 */
    +
    +	gpio-leds {
    +		compatible = "gpio-leds";
    +
    +		/* POWER: two led's: 1x green, 1x red */
    +		power: power {
    +			label = "all0333cj:green:power";
    +			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
    +			default-state = "keep";
    +		};
    +
    +		lan: lan {
    +			label = "all0333cj:green:lan";
    +			gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
    +			default-state = "keep";
    +		};
    +
    +		dsl: dsl {
    +			label = "all0333cj:green:dsl";
    +			gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
    +		};
    +
    +		online_green: online {
    +			label = "all0333cj:green:online";
    +			gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
    +		};
    +		online_red {
    +			label = "all0333cj:red:online";
    +			gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
    +		};
    +	};
    +};
    diff --git a/target/linux/lantiq/dts/amazonse.dtsi b/target/linux/lantiq/dts/amazonse.dtsi
    index 2b8ad08140..f7e49fd2e2 100644
    --- a/target/linux/lantiq/dts/amazonse.dtsi
    +++ b/target/linux/lantiq/dts/amazonse.dtsi
    @@ -19,6 +19,10 @@
     		};
     	};
     
    +	memory@0 {
    +		device_type = "memory";
    +	};
    +
     	biu@1F800000 {
     		#address-cells = <1>;
     		#size-cells = <1>;
    @@ -52,6 +56,7 @@
     
     		eiu0: eiu@101000 {
     			#interrupt-cells = <1>;
    +			interrupt-controller;
     			compatible = "lantiq,eiu-xway";
     			reg = <0x101000 0x1000>;
     			interrupt-parent = <&icu0>;
    @@ -82,6 +87,14 @@
     		ranges = <0x0 0x10000000 0xEEFFFFF>;
     		reg = <0x10000000 0xEF00000>;
     
    +		localbus@0 {
    +			#address-cells = <2>;
    +			#size-cells = <1>;
    +			ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
    +				1 0 0x4000000 0x4000010>; /* addsel1 */
    +			compatible = "lantiq,localbus", "simple-bus";
    +		};
    +
     		spi@E100800 {
     			compatible = "lantiq,ase-spi";
     			reg = <0xE100800 0x100>;
    diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile
    index cdc88b2fc6..a6f0cbe7f2 100644
    --- a/target/linux/lantiq/image/Makefile
    +++ b/target/linux/lantiq/image/Makefile
    @@ -106,6 +106,31 @@ define Device/AVM
       KERNEL := kernel-bin | append-dtb | lzma | eva-image
     endef
     
    +ifeq ($(SUBTARGET),ase)
    +
    +define Device/ALL0333CJ
    +  IMAGE_SIZE := 3000k
    +  DEVICE_DTS := ALL0333CJ
    +  DEVICE_TITLE := Allnet ALL0333CJ
    +  DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
    +	kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
    +	ltq-adsl-app ppp-mod-pppoe
    +endef
    +TARGET_DEVICES += ALL0333CJ
    +
    +# TODO: add wlan/usb stuff
    +define Device/DGN1000B
    +  IMAGE_SIZE := 6000k
    +  DEVICE_DTS := DGN1000B
    +  DEVICE_TITLE := Netgear DGN1000B
    +  DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
    +	kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
    +	ltq-adsl-app ppp-mod-pppoe
    +endef
    +TARGET_DEVICES += DGN1000B
    +
    +endif
    +
     ifeq ($(SUBTARGET),xway_legacy)
     
     define Device/ARV4520PW

    dl/amazon-se.diff

  • remove unneeded stuff
  • add netgear dgn1000b support (I have it, but I need to solder the serial port, was to lazy for it ...)
Last modified on 2017-02-24 at 15:36