* Tino Reichardt <list-l...@mcmilk.de> [06.03.2017 08:24]: > BE AWARE: > My patch seems to work fine, even the dsl modem seems to be correctly > loaded. But it's not tested currently... so please do not flash your > modems, when they are needed currently ;)
Impressive! i will check if pppoe works later and report. here a small walktrough when unboxing and reflashing a thing: # telnet with root/admin into original firmware...: BusyBox v1.00 (2012.03.02-08:09+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. # killall dsl_cpe_control # ps PID Uid VmSize Stat Command 1 root 336 S init 2 root SW [keventd] 3 root SWN [ksoftirqd_CPU0] 4 root SW [kswapd] 5 root SW [bdflush] 6 root SW [kupdated] 7 root SW [swapper] 8 root SW [mtdblockd] 18 root 60 S /usr/sbin/swreset 137 root 296 S /sbin/syslogd -s 8 -b 2 -l 8 186 root SW [autbtex] 187 root SW [atm_led_complet] 188 root SW [pmex_ne] 191 root SW [pmex_fe] 854 root 232 S ./devm 855 root 1000 S /usr/sbin/devmapp 905 root 320 S /usr/sbin/inetd /etc/inetd.conf 1044 root 328 S /sbin/getty 115200 ttyS0 1207 root 304 S /usr/sbin/br2684ctld 1249 root 364 S /usr/sbin/dnrd 1332 root 300 S telnetd 1333 root 312 S -sh 1335 root 336 R ps # cd /ramdisk/tftp_upload # tftp -g -r uImage 172.16.1.1 # tftp -g -r flashwrite 172.16.1.1 # tftp -g -r fw_setenv 172.16.1.1 # tftp -g -r fw.conf 172.16.1.1 # ln -s fw_setenv fw_printenv # chmod +x * # ls -l -rwxr-xr-x 1 root root 38200 Mar 2 16:44 flashwrite -rwxr-xr-x 1 root root 972 Mar 2 16:44 fw.conf lrwxrwxrwx 1 root root 9 Mar 2 16:44 fw_printenv -> fw_setenv -rwxrwxrwx 1 root root 58012 Mar 2 16:44 fw_setenv -rwxr-xr-x 1 root root 2883758 Mar 2 16:42 uImage # ./fw_setenv disable_recovery y [crc0 data:3d744984 flash:3d744984!] # ./fw_setenv kernel_addr 0xb0010000 [crc0 data: 9b028f flash: 9b028f!] # ./flashwrite /dev/mtd/1 uImage 0 Performing Flash Erase of length 65536 at offset 0 Performing Flash Erase of length 65536 at offset 65536 Performing Flash Erase of length 65536 at offset 131072 Performing Flash Erase of length 65536 at offset 196608 Performing Flash Erase of length 65536 at offset 262144 Performing Flash Erase of length 65536 at offset 327680 Performing Flash Erase of length 65536 at offset 393216 Performing Flash Erase of length 65536 at offset 458752 Performing Flash Erase of length 65536 at offset 524288 Performing Flash Erase of length 65536 at offset 589824 Performing Flash Erase of length 65536 at offset 655360 Performing Flash Erase of length 65536 at offset 720896 Performing Flash Erase of length 65536 at offset 786432 Performing Flash Erase of length 65536 at offset 851968 Performing Flash Erase of length 65536 at offset 917504 Performing Flash Erase of length 65536 at offset 983040 Performing Flash Erase of length 65536 at offset 1048576 Performing Flash Erase of length 65536 at offset 1114112 Performing Flash Erase of length 65536 at offset 1179648 Performing Flash Erase of length 65536 at offset 1245184 Performing Flash Erase of length 65536 at offset 1310720 Performing Flash Erase of length 65536 at offset 1376256 Performing Flash Erase of length 65536 at offset 1441792 Performing Flash Erase of length 65536 at offset 1507328 Performing Flash Erase of length 65536 at offset 1572864 Performing Flash Erase of length 65536 at offset 1638400 Performing Flash Erase of length 65536 at offset 1703936 Performing Flash Erase of length 65536 at offset 1769472 Performing Flash Erase of length 65536 at offset 1835008 Performing Flash Erase of length 65536 at offset 1900544 Performing Flash Erase of length 65536 at offset 1966080 Performing Flash Erase of length 65536 at offset 2031616 Performing Flash Erase of length 65536 at offset 2097152 Performing Flash Erase of length 65536 at offset 2162688 Performing Flash Erase of length 65536 at offset 2228224 Performing Flash Erase of length 65536 at offset 2293760 Performing Flash Erase of length 65536 at offset 2359296 Performing Flash Erase of length 65536 at offset 2424832 Performing Flash Erase of length 65536 at offset 2490368 Performing Flash Erase of length 65536 at offset 2555904 Performing Flash Erase of length 65536 at offset 2621440 Performing Flash Erase of length 65536 at offset 2686976 Performing Flash Erase of length 65536 at offset 2752512 Performing Flash Erase of length 65536 at offset 2818048 Performing Flash Erase of length 65536 at offset 2883584 Writing the firmware of length 2883758 at 0... ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ...............................Done. # user@box:~ 8( ssh root@fe80::20f:c9ff:fe0b:4212%eth0 BusyBox v1.26.2 () built-in shell (ash) _________ / /\ _ ___ ___ ___ / LE / \ | | | __| \| __| / DE / \ | |__| _|| |) | _| /________/ LE \ |____|___|___/|___| lede-project.org \ \ DE / \ LE \ / ----------------------------------------------------------- \ DE \ / Reboot (SNAPSHOT, r3576+4-ea24d87e7b) \________\/ ----------------------------------------------------------- [...] root@LEDE:~# root@LEDE:~# logread | grep IFX Fri Feb 24 08:49:44 2017 kern.info kernel: [ 9.967781] IFX MEI Version 5.00.00 Fri Feb 24 08:49:56 2017 kern.err kernel: [ 31.096575] [IFX_MEI_RunAdslModem 1369]: Modem failed to be ready! Fri Feb 24 08:49:58 2017 kern.err kernel: [ 31.101466] [IFX_MEI_Ioctls 2564]: IFX_MEI_RunAdslModem() error... Fri Feb 24 08:49:58 2017 kern.err kernel: [ 33.524626] [IFX_MEI_RunAdslModem 1369]: Modem failed to be ready! Fri Feb 24 08:50:00 2017 kern.err kernel: [ 33.529536] [IFX_MEI_Ioctls 2564]: IFX_MEI_RunAdslModem() error... Fri Feb 24 08:50:00 2017 kern.err kernel: [ 35.584519] [IFX_MEI_RunAdslModem 1369]: Modem failed to be ready! Fri Feb 24 08:50:02 2017 kern.err kernel: [ 35.589557] [IFX_MEI_Ioctls 2564]: IFX_MEI_RunAdslModem() error... Fri Feb 24 08:50:02 2017 kern.err kernel: [ 37.332527] [IFX_MEI_RunAdslModem 1369]: Modem failed to be ready! Fri Feb 24 08:50:02 2017 kern.err kernel: [ 37.337567] [IFX_MEI_Ioctls 2564]: IFX_MEI_RunAdslModem() error... Fri Feb 24 08:50:04 2017 kern.err kernel: [ 38.800610] [IFX_MEI_RunAdslModem 1369]: Modem failed to be ready! Fri Feb 24 08:50:04 2017 kern.err kernel: [ 38.805607] [IFX_MEI_Ioctls 2564]: IFX_MEI_RunAdslModem() error... root@LEDE:~# logread | grep -i br2684 Fri Feb 24 08:50:23 2017 local2.notice br2684ctl[691]: Interface "nas0" created sucessfully Fri Feb 24 08:50:23 2017 local2.notice br2684ctl[691]: Communicating over ATM 0.1.32, encapsulation: LLC Fri Feb 24 08:50:38 2017 local2.info br2684ctl[691]: Interface configured Fri Feb 24 08:51:12 2017 local2.info br2684ctl[691]: RFC 1483/2684 bridge daemon started root@LEDE:~# ps PID USER VSZ STAT COMMAND 1 root 1528 S /sbin/procd 2 root 0 SW [kthreadd] 3 root 0 SW [ksoftirqd/0] 4 root 0 SW [kworker/0:0] 5 root 0 SW< [kworker/0:0H] 68 root 0 SW [kworker/u2:3] 70 root 0 SW< [writeback] 72 root 0 SW< [crypto] 73 root 0 SW< [bioset] 75 root 0 SW< [kblockd] 95 root 0 SW [kworker/0:1] 103 root 0 SW [kswapd0] 112 root 0 SW [fsnotify_mark] 142 root 0 SW [kworker/u2:4] 163 root 0 SW< [bioset] 180 root 0 SW< [bioset] 185 root 0 SW< [bioset] 190 root 0 SW< [bioset] 195 root 0 SW< [bioset] 200 root 0 SW< [bioset] 205 root 0 SW< [bioset] 218 root 0 SW< [ipv6_addrconf] 240 root 0 SW< [deferwq] 242 root 0 SW< [kworker/0:1H] 331 root 1180 S /sbin/ubusd 332 root 896 S /sbin/askfirst /usr/libexec/login.sh 594 root 1228 S /sbin/logd -S 64 639 root 1616 S /sbin/netifd 656 root 1416 S /usr/sbin/odhcpd 672 root 1384 S /sbin/dsl_cpe_control -i10_00_10_00_00_04_00_00 -n /sbin/dsl_notify.sh -f /lib/firmware/adsl.bin 691 root 992 S /usr/sbin/br2684ctl -c 0 -e 0 -p 1 -a 0.1.32 -S /lib/netifd/br2684-up 773 root 0 SWN [jffs2_gcd_mtd4] 905 dnsmasq 1048 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid 927 root 1060 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 956 root 1128 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 957 root 1188 S -ash 1015 root 1184 R ps root@LEDE:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP qlen 1000 link/ether 00:0f:c9:0b:42:12 brd ff:ff:ff:ff:ff:ff 3: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000 link/ether 00:0f:c9:0b:42:12 brd ff:ff:ff:ff:ff:ff inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan valid_lft forever preferred_lft forever inet6 fdfa:f000:d8f4::1/60 scope global valid_lft forever preferred_lft forever inet6 fe80::20f:c9ff:fe0b:4212/64 scope link valid_lft forever preferred_lft forever 4: nas0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN qlen 1000 link/ether 00:0f:c9:0b:42:13 brd ff:ff:ff:ff:ff:ff root@LEDE:~# cat /proc/meminfo '%s\n' "$L"; done </proc/meminfo MemTotal: 12180 kB MemFree: 2408 kB MemAvailable: 2644 kB [...] root@LEDE:/tmp# cat /proc/cpuinfo system type : Amazon_SE rev 1.3 machine : ALL0333CJ - Allnet ALL0333CJ DSL Modem processor : 0 cpu model : MIPS 4KEc V6.12 BogoMIPS : 264.70 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : yes, count: 1, address/irw mask: [0x0fff] isa : mips1 mips2 mips32r1 mips32r2 ASEs implemented : mips16 shadow register sets : 1 kscratch registers : 0 package : 0 core : 0 VCED exceptions : not available VCEI exceptions : not available bye, bastian _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev