* Bastian Bittorf <b...@npl.de> wrote: > * Tino Reichardt <list-l...@mcmilk.de> [24.02.2017 16:26]: > > Telnet on Port 23 is also there. I will check, if it can be upgraded via > > telnet or webinterface. > > user: root > pass: admin
I found a way of flashing the device with telnet / tftp only. So there is no more requirentment for the serial port. I will add the instractions to my patch... and append them below. > # cat /proc/mtd > dev: size erasesize name > mtd0: 00010000 00002000 "U-Boot" > mtd1: 003f0000 00010000 "RootFS,Kernel,Data,Environment" > > there is an interesting binary: > > # upgrade --help > Usage : upgrade file_name image_type expand_direction saveenv_copy This binary is not really usefull. It depends on some unknown format. I am using tftp + flashwrite + fw_setenv. I have done some extra github repo for the tools. I needed to compile them statically and other users will have issues compiling there own binaries for that - I think. Repo is here: https://github.com/mcmilk/uboot-utils This is a summary of flashing via tftp: # your own host must have an tftpd daemon, then do this: ifconfig eth0:172 172.16.1.1 up # telnet to allnet, root:admin telnet 172.16.1.254 The following commands should be run on the Allnet Modem: # kill this daemon, it spams your telnet console killall dsl_cpe_control # change to some place in ram: cd /ramdisk/tftp_upload # uImage should be your lede-lantiq-ase-ALL0333CJ-squashfs-sysupgrade.bin tftp -g -r uImage 172.16.1.1 # https://github.com/mcmilk/uboot-utils/releases/download/0.1/mips32.tar.gz # load these tools from your tftpd via: 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 * # changing this variable is important, or LEDE will not boot: ./fw_setenv disable_recovery y # this is also needed: ./fw_setenv kernel_addr 0xb0010000 # this will flash LEDE into the right address from fw.conf ./flashwrite /dev/mtd/1 uImage 0 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 ;) -- Best regards, TR _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev