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...
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"
- download directory
- S29GL-N032.pdf - datasheet for the NOR flash
- bootlog-default.txt - bootlog of the default kernel / system
- bootlog-lede-4.4.35.txt - bootlog of LEDE (Kernel 4.4.50)
This is the boot log of the default Linux:
U-Boot 1.1.5-2.0 (Jan 24 2013 - 13:38:46)last change: 2024-10-03 @ 19:27
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.
- 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
- remove unneeded stuff
- add netgear dgn1000b support (I have it, but I need to solder the serial port, was to lazy for it ...)