Created
May 29, 2020 10:05
-
-
Save kleo/d7f9d8b61473e70fea87cd97a7608d4e to your computer and use it in GitHub Desktop.
building utils for pldthomefibr an5506-04-fa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # building utils for pldthomefibr an5506-04-fa | |
| # vagrant ubuntu xenial | |
| sudo apt install build-essential libncurses5-dev bison flex gettext texinfo python unzip | |
| sudo apt remove gcc-5 g++-5 | |
| sudo apt install gcc-4.7 g++-4.7 | |
| sudo ln -s /usr/bin/gcc-4.7 /usr/bin/gcc | |
| wget https://github.com/buildroot/buildroot/archive/2012.08.tar.gz | |
| tar xf 2012.08.tar.gz | |
| make menuconfig | |
| set target architecture ARM (little endian) | |
| set toolchain uClibc C library version 0.9.32.x | |
| exit > save config | |
| make MAKEINFO=true | |
| # for example we'll go ahead and build dropbear | |
| # optional step: configure dropbear first on make menuconfig | |
| make dropbear | |
| move output/target/usr/sbin/dropbear to your device at /bin/dropbear. | |
| setup symlinks | |
| ln -s /bin/dropbear /bin/dropbearconvert | |
| ln -s /bin/dropbear /bin/dropbearkey | |
| create authorized_keys and hostkey file at /bin | |
| # optional add banner | |
| # /fh/extend/start_dropbear.sh | |
| #/bin/sh | |
| #open dropbear port | |
| iptables -I INPUT -p tcp --dport 2222 -j ACCEPT | |
| #run ssh server | |
| dropbear -r /bin/hostkey -p 2222 -b /fh/extend/pldt-banner.txt | |
| at the bottom of the file add /fh/extend/start_dropbear.sh to initialize.sh | |
| reboot | |
| connect to your device | |
| ssh [email protected] -p 2222 -oKexAlgorithms=+diffie-hellman-group1-sha1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment