| Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verze |
| airos [2016/11/06 15:58] – [Co s tím tedy je?] djbuldog | airos [2025/08/28 10:09] (aktuální) – upraveno mimo DokuWiki 127.0.0.1 |
|---|
| * http://www.authpuppy.org/doc/Compile_Airos | * http://www.authpuppy.org/doc/Compile_Airos |
| * https://community.ubnt.com/t5/airOS-Software-Configuration/Done-VPN-PPTP-Client-on-AirOS/td-p/446983 | * https://community.ubnt.com/t5/airOS-Software-Configuration/Done-VPN-PPTP-Client-on-AirOS/td-p/446983 |
| | |
| | * BACHA BACHA... AirOS už neposkytuje SDK, pouze GPL archív s modifikacemi GPL kódu!! |
| | * udělat si vlastní modifikaci AirOS je tedy složitější něž dříve |
| |
| ===== upload fw ===== | ===== upload fw ===== |
| * a kolik si vzal u-boot? [[http://unix.stackexchange.com/questions/39777/how-can-i-tell-what-memory-ram-address-range-is-being-used-by-uboot|prý]] se dává na konec, tedy na poslední adresu bez velikosti u-boot | * a kolik si vzal u-boot? [[http://unix.stackexchange.com/questions/39777/how-can-i-tell-what-memory-ram-address-range-is-being-used-by-uboot|prý]] se dává na konec, tedy na poslední adresu bez velikosti u-boot |
| * offset 0x9f000000 je 2544 MB, takže RAM může být klidně před ním? | * offset 0x9f000000 je 2544 MB, takže RAM může být klidně před ním? |
| * https://github.com/unwireddevices/u-boot/blob/master/u-boot/include/configs/ar7240.h | |
| * CFG_SDRAM_BASE 0x80000000 - tady asi začíná fyzicky paměť | * <del>https://github.com/unwireddevices/u-boot/blob/master/u-boot/include/configs/ar7240.h</del> |
| * tftpboot 0x80000000 XM.v5.6.9.29546.160819.1157.bin | * <del>CFG_SDRAM_BASE 0x80000000 - tady asi začíná fyzicky paměť</del> |
| * a nic.. bad magic :/ | * <del>tftpboot 0x80000000 XM.v5.6.9.29546.160819.1157.bin</del> |
| | * <del>a nic.. bad magic :/</del> |
| * podle mě ten bin obsahuje u-boot script, který provádí teprve to rozbalení atd.. | * podle mě ten bin obsahuje u-boot script, který provádí teprve to rozbalení atd.. |
| |
| * http://free-electrons.com/blog/creating-flashing-ubi-ubifs-images/ | * http://free-electrons.com/blog/creating-flashing-ubi-ubifs-images/ |
| |
| * http://free-electrons.com/doc/training/embedded-linux/ zde je super pdf, komplexně vše o embedded | * zkusíme to po staru přes ghex |
| | * pokud tam jsou nějaké u-boot skripty, musí to jít najít přes stringy!! |
| | * dal jsem vyhledat "Setting U-Boot environment" a hele co to máme na offsetu 0003203A :D |
| | * vypadá to ale jako stringy nějaké binárky než skript. Že by tak vypadal ten U-Boot script image? |
| |
| * https://sites.google.com/site/shihsung/rc32xxx-soc/analyze-firmware | |
| * http://binwalk.org/ | * http://binwalk.org/ |
| | <code> |
| | binwalk /home/djbuldog/Downloads/XM.v5.6.9.29546.160819.1157.bin |
| | |
| | DECIMAL HEXADECIMAL DESCRIPTION |
| | -------------------------------------------------------------------------------- |
| | 0 0x0 Ubiquiti firmware header, header size: 264 bytes, ~CRC32: 0x8DAC2BC9, version: "XM.ar7240.v5.6.9.29546.160819.1157" |
| | 260 0x104 Ubiquiti partition header, header size: 56 bytes, name: "PARTu-boot", base address: 0x00000000, data size: 0 bytes |
| | 140580 0x22524 U-Boot version string, "U-Boot 1.1.4.2-s956 (Jun 10 2015 - 10:54:50)" |
| | 140772 0x225E4 CRC32 polynomial table, big endian |
| | 161032 0x27508 Ubiquiti firmware header, header size: 264 bytes, ~CRC32: 0x65746831, version: " APP Magic mismatch, addr=%x, magic=%x " |
| | 203044 0x31924 CRC32 polynomial table, big endian |
| | 209568 0x332A0 Ubiquiti partition header, header size: 56 bytes, name: "PARTkernel", base address: 0x00000001, data size: -2147475456 bytes |
| | 209632 0x332E0 uImage header, header size: 64 bytes, header CRC: 0x4DF2A4D3, created: 2016-08-19 08:58:26, image size: 1008812 bytes, Data Address: 0x80002000, Entry Point: 0x80002000, data CRC: 0x9788B2CA, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: lzma, image name: "MIPS Ubiquiti Linux-2.6.32.68" |
| | 209696 0x33320 LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 2931300 bytes |
| | 1218508 0x1297CC Ubiquiti partition header, header size: 56 bytes, name: "PARTrootfs", base address: 0x00000002, data size: 0 bytes |
| | 1218572 0x12980C Squashfs filesystem, little endian, version 4.0, compression:lzma, size: 6077311 bytes, 1372 inodes, blocksize: 131072 bytes, created: 2016-08-19 08:58:28 |
| | 7510092 0x72984C gzip compressed data, from Unix, last modified: 2016-08-19 08:56:51 |
| | </code> |
| | |
| | * https://sites.google.com/site/shihsung/rc32xxx-soc/analyze-firmware |
| | * http://free-electrons.com/doc/training/embedded-linux/ zde je super pdf, komplexně vše o embedded |
| |
| ===== Co s tím tedy je? ===== | ===== Co s tím tedy je? ===== |