Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:hh40v [2023/04/08 17:33] Andreas Böhlerprojects:hh40v [2023/04/27 21:20] (current) – [Installing OpenWrt] Andreas Böhler
Line 164: Line 164:
 </code> </code>
  
-Once you have SSH access, you can proceed with installin OpenWrt.+Once you have SSH access, you can proceed with installing OpenWrt. 
 + 
 +==== Backup file format ==== 
 + 
 +Very brief overview of the file format after decryption. 
 + 
 +<code> 
 +String: ALCATEL BACKUP FILE HEAD 
 +0x00 
 +0x00 
 +0x00 
 +0xzz length of filename (without 0 terminator - maybe it's a ushort with the previous 0x00) 
 +String: filename 
 +0x00 
 +0x00 
 +0xzz file 
 +0xzz length (ushort) 
 +TAR GZ ARCHIVE 
 +0x00 
 +0x00 
 +0x00 
 +0xzz length of filename (without 0 terminator - maybe it's a ushort with the previous 0x00) 
 +Binary: file content 
 +String: filename 
 +0x00 
 +0x00 
 +0xzz number of bytes remaining in file (ushort) 
 +0xzz 
 +String: ALCATEL BACKUKP FILE HEAD 
 +0xf7 Lenght of file, different endian (originates from modem) 
 +0x3b 
 +0x00 
 +0x00 
 +Binary: file content 
 +Binary: Some sort of trailer, didn't attempt to decode 
 +</code>
  
 ===== Installing OpenWrt ===== ===== Installing OpenWrt =====
 +
 +OpenWrt support to snapshot was added on 2023/04/23 with commit https://github.com/openwrt/openwrt/commit/097f350aebc542963c7208af4973ff17e01ce76e.
  
 Running OpenWrt on this device requires a slightly different partition layout, because the kernel partition is fixed with 1.5MB and thus too small to run a recent kernel. However, there is enough space and initial installation requires a small modification of one U-Boot variable. As long as the system boots normally, there are no problems with this approach. Installing via TFTP (recovery) restores the variable back to default, forcing the installation of a stock firmware. Running OpenWrt on this device requires a slightly different partition layout, because the kernel partition is fixed with 1.5MB and thus too small to run a recent kernel. However, there is enough space and initial installation requires a small modification of one U-Boot variable. As long as the system boots normally, there are no problems with this approach. Installing via TFTP (recovery) restores the variable back to default, forcing the installation of a stock firmware.
Line 214: Line 251:
 ===== Restoring Stock ===== ===== Restoring Stock =====
  
-To restore stock, you need a system image. Unfortunately, you can't backup without disassembling and soldering serial headers. However, a firmware upgrade can be downloaded from https://alcatelfirmware.com/alcatel-onetouch-hh40v. Look for the file Firmware/DownloadImage/uprade_hh40v_all.tar.gz. Inside, you will finde the file "sysupgrade/firmware-system.bin". This firmware-system.bin can be installed via TFTP recovery. The TFTP recovery also resets any U-Boot variables so it will boot normally.+To restore stock, you need a system image. Unfortunately, you can't backup without disassembling and soldering serial headers. However, a firmware upgrade can be downloaded from https://alcatelfirmware.com/alcatel-onetouch-hh40v. Look for the file Firmware/DownloadImage/uprade_hh40v_all.tar.gz. Inside, you will find the file "sysupgrade/firmware-system.bin". This firmware-system.bin can be installed via TFTP recovery. The TFTP recovery also resets any U-Boot variables so it will boot normally.
  
   - Power off the device   - Power off the device