Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:hh40v [2023/04/08 17:33] – Andreas Böhler | projects:hh40v [2023/04/27 21:20] (current) – [Installing OpenWrt] Andreas Böhler | ||
---|---|---|---|
Line 164: | Line 164: | ||
</ | </ | ||
- | Once you have SSH access, you can proceed with installin | + | Once you have SSH access, you can proceed with installing |
+ | |||
+ | ==== Backup file format ==== | ||
+ | |||
+ | Very brief overview of the file format after decryption. | ||
+ | |||
+ | < | ||
+ | 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 | ||
+ | </ | ||
===== Installing OpenWrt ===== | ===== Installing OpenWrt ===== | ||
+ | |||
+ | OpenWrt support to snapshot was added on 2023/04/23 with commit https:// | ||
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, | + | To restore stock, you need a system image. Unfortunately, |
- Power off the device | - Power off the device |