n95k 0 Posted July 30, 2016 Hi All, I am new and great info here I have a XM board based DVR which had telnet access, send detect email was having problems and I upgraded the box with newer firmware. Now the telnet access is gone and the port is not available anymore. FW version was "AHB7004T-EL_V4.02.R11.3070.Nat.OnvifC.20160524.bin" I can unpack modify and pack the bin files, so what should I do to the FW to get telnet back? Appreciate the experts advise. /etc/init.d/rcS is like below; #!/bin/sh /etc/init.d/dnode echo /sbin/mdev > /proc/sys/kernel/hotplug mdev -s mount -t squashfs /dev/mtdblock2 /usr mount -t squashfs /dev/mtdblock3 /mnt/web mount -t squashfs /dev/mtdblock4 /mnt/custom mount -t cramfs /dev/mtdblock5 /mnt/logo mount -t jffs2 /dev/mtdblock6 /mnt/mtd mount -t ramfs /dev/mem /var mount -t usbfs none /proc/bus/usb/ mkdir -p /mnt/mtd/Config /mnt/mtd/Log /mnt/mtd/Config/ppp /mnt/mtd/Config/Json if [ ! -f /mnt/mtd/Config/HvrMode ] && [ -f /mnt/custom/HvrMode ]; then cp /mnt/custom/HvrMode /mnt/mtd/Config/ fi if [ -f /mnt/mtd/Config/ppp/3gdigal ]; then chmod 777 /mnt/mtd/Config/ppp/3gdigal fi cd /usr/etc ./loadmod ifconfig eth2 up ifconfig eth2 192.168.1.12 echo 2548 > /proc/sys/vm/min_free_kbytes routedaemon& dogtest & #BurnSataHub & telnetd & timecheck & macGuarder & sleep 3 netinit & sleep 1 /usr/etc/pppd pty /etc/ppp/pppoe-start file /etc/ppp/pppoe-options & /mnt/custom/extapp.sh & #unrar x /usr/bin/Sofia.rar /var/ cp /usr/bin/Sofia.tar.lzma /var/ cd /var/ tar -axf /usr/bin/Sofia.tar.lzma chmod 777 /var/Sofia rm /var/Sofia.tar.lzma -fr dvrHelper /lib/modules /var/Sofia 127.0.0.1 9578 1 Share this post Link to post Share on other sites
n95k 0 Posted August 2, 2016 figured it out, very easy. all ok now. how do i close this thread? Share this post Link to post Share on other sites
rotra 0 Posted August 14, 2016 Hi! I have the same your problem with the emails. Where did you found the new firmware? Thank you Share this post Link to post Share on other sites
d94705 0 Posted May 9, 2017 Am wondering what you did that was easy to fix this. I'm having the same problem. No telnet. Thanks. Share this post Link to post Share on other sites
eduardoAvelar 0 Posted December 17, 2020 Hi @n95k. I'm facing the same issue with the DVR that I'm working on. The manufacture is the same as yours. The steps are below: $ sudo unzip General_General_AHB8004R-MH_V4.03.R11.7601.Nat.OnvifC.20190926.bin Archive: General_General_AHB8004R-MH_V4.03.R11.7601.Nat.OnvifC.20190926.bin inflating: custom-x.cramfs.img inflating: InstallDesc inflating: logo-x.cramfs.img inflating: romfs-x.cramfs.img inflating: u-boot.bin.img inflating: user-x.cramfs.img inflating: web-x.cramfs.img $ file romfs-x.cramfs.img romfs-x.cramfs.img: u-boot legacy uImage, linux, Linux/ARM, OS Kernel Image (gzip), 3481600 bytes, Thu Sep 26 03:12:37 2019, Load Address: 0x00050000, Entry Point: 0x00430000, Header CRC: 0x050D9A23, Data CRC: 0x0525E509 $ dd bs=1 skip=64 if=romfs-x.cramfs.img of=romfs-x.cramfs 3481600+0 records in 3481600+0 records out 3481600 bytes (3,5 MB, 3,3 MiB) copied, 405,923 s, 8,6 kB/s $ file romfs-x.cramfs romfs-x.cramfs: Squashfs filesystem, little endian, version 4.0, 3481434 bytes, 217 inodes, blocksize: 262144 bytes, created: Thu Sep 26 03:12:37 2019 $ sudo unsquashfs romfs-x.cramfs Parallel unsquashfs: Using 4 processors 184 inodes (197 blocks) to write created 50 files created 33 directories created 0 symlinks created 0 devices created 0 fifos The result was: squashfs-root/ Inside the squashfs-root/, we have: total 16 drwxrwx--- 1 root vboxsf 4096 set 26 2019 ./ drwxrwx--- 1 root vboxsf 4096 dez 16 17:32 ../ drwxrwx--- 1 root vboxsf 0 set 26 2019 bin/ drwxrwx--- 1 root vboxsf 0 set 26 2019 boot/ drwxrwx--- 1 root vboxsf 0 abr 24 2010 dev/ drwxrwx--- 1 root vboxsf 4096 fev 7 2018 etc/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 home/ drwxrwx--- 1 root vboxsf 4096 set 26 2019 lib/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 mnt/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 opt/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 proc/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 root/ drwxrwx--- 1 root vboxsf 0 set 26 2019 sbin/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 share/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 slv/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 sys/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 usr/ drwxrwx--- 1 root vboxsf 0 abr 20 2010 var/ After edit the /etc/init.d, I made the squashfs: $ mksquashfs squashfs-root/ custom-x.cramfs If I compare the romfs-x.cramfs before edit and after, I can see the diference on inodes number: --> Before unsquashfs and edit: $ file romfs-x.cramfs romfs-x.cramfs: Squashfs filesystem, little endian, version 4.0, 3481434 bytes, 217 inodes, blocksize: 262144 bytes, created: Thu Sep 26 03:12:37 2019 --> After the squashfs and edit $ file romfs-x.cramfs romfs-x.cramfs: Squashfs filesystem, little endian, version 4.0, 3833358 bytes, 83 inodes, blocksize: 131072 bytes, created: Thu Dec 17 01:14:53 2020 Then i made the image whit edited romfs: $ mkimage -A arm -O linux -T kernel -n "linux" -e 0x00430000 -a 0x00050000 -d romfs-x.cramfs romfs-x.cramfs.img Image Name: linux Created: Wed Dec 16 17:30:40 2020 Image Type: ARM Linux Kernel Image (gzip compressed) Data Size: 3833856 Bytes = 3744.00 KiB = 3.66 MiB Load Address: 00050000 Entry Point: 00430000 After upload the DVR by TFTP and u-boot command, the download was executed perfectly. But, after the reset, the process stops and an infinite loop with u-boot start and fail became my actual situation. It can be solved if I reload the original romfs-x.cramfs.img file. What am I doing wrong in the image repack process? Thanks in advance. Share this post Link to post Share on other sites