OpenWrt Forum Archive

Topic: SquashFS Help

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Here's what I get from Binwalk:
155672        0x26018         LZMA compressed data, properties: 0x5D, dictionary size: 65536 bytes, uncompressed size: 298576 bytes
234067        0x39253         TRX firmware header, little endian, image size: 1724416 bytes, CRC32: 0xB101D87D, flags: 0x0, version: 1, header size: 28 bytes, loader offset: 0x1C, linux kernel offset: 0x0, rootfs offset: 0x0
234095        0x3926F         LZMA compressed data, properties: 0x5D, dictionary size: 65536 bytes, uncompressed size: 4233472 bytes
1958484       0x1DE254        Squashfs filesystem, little endian, version 4.0, compression:xz, size: 8811412 bytes, 818 inodes, blocksize: 131072 bytes, created: 2016-04-29 11:22:14

My question is - can I simply 'mksquashfs'- and dd the first three items, and then append the squashfs partition at the end, or does something need to happen in the offset at 234095.

I think I can simply replace that squashfs part, but I worry there's a size or similar defined in the LZMA, or, the LZMA contains data relevant to the squashfs system...

Are they related, or am I right to simply go ahead and put the new squashfs in place of the old and then load it up?

They are related, squashfs doesn't include the kernel, it's the kernel which uncompress and mount the squashfs, the squashfs files (the whole SO but the kernel) must be compatible with that kernel.

iasimov wrote:

They are related, squashfs doesn't include the kernel, it's the kernel which uncompress and mount the squashfs, the squashfs files (the whole SO but the kernel) must be compatible with that kernel.

First please @tocpcs accepts my appologise to put the question here.

Hello iasimov

I am doing master thesis. I faces some problem im my implementation as I saw you have a strong experience in what I want to ask;
First: How to read the RSSI for disassociated mobile because I doing App similar thatn localization using wifi
Second:
I want to install b43 driver folder in the kernel to be able to access to memory shared
more detail about that here:
https://forum.openwrt.org/viewtopic.php?id=66527
I know it is too much but at least I need any information to start .
thank you in advanc.

The discussion might have continued from here.