03-04-2022, 05:49 AM
I've been digging into a copy of the dumped firmware and looking at the u-boot logs. The MTD storage is basically as follows:
First 512KB: u-boot
Next 1024KB: unknown, perhaps some Broadcom second stage boot loader?
Remaining 131MB: General storage (dump has total 132MB, but the flash chip is only 128MB, don't understand this).
Mount info:
df:
Bootlogs are here: https://deviwiki.com/wiki/Pace_5268AC and you can very clearly see how the partitions should be on the NAND flash:
So again, clearly mtd0 is 512KB, mtd1 is 1MB and mtd2 is 126.5MB, totally 128MB as the chip specs say. Part I dont understand is why there's not separated partitions for one or two software images to be loaded into ram on each boot and then a couple r/w partitions for persistent storage or certs or something. Why is it all piled into one partition?
First 512KB: u-boot
Next 1024KB: unknown, perhaps some Broadcom second stage boot loader?
Remaining 131MB: General storage (dump has total 132MB, but the flash chip is only 128MB, don't understand this).
Mount info:
Code:
# mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,relatime)
sys on /sys type sysfs (rw,relatime)
/dev on /dev type tmpfs (rw,relatime)
/tmp on /tmp type tmpfs (rw,relatime)
/dev/opentla4 on /rwdata type ext2 (rw,relatime)
/dev/loop0 on / type squashfs (ro,relatime)
etc on /etc type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/loop1 on /mnt/web type squashfs (ro,relatime)
df:
Code:
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/opentla4 119.0M 37.2M 80.6M 32% /rwdata
/dev/loop0 29.6M 29.6M 0 100% /
/dev/loop1 1.4M 1.4M 0 100% /mnt/web
Bootlogs are here: https://deviwiki.com/wiki/Pace_5268AC and you can very clearly see how the partitions should be on the NAND flash:
Code:
[ 2.282000] MTD partition(0) offset=0 size=524288 num=3
[ 2.287000] MTD partition(1) offset=524288 size=1048576 num=3
[ 2.293000] MTD partition(2) offset=1572864 size=132644864 num=3
So again, clearly mtd0 is 512KB, mtd1 is 1MB and mtd2 is 126.5MB, totally 128MB as the chip specs say. Part I dont understand is why there's not separated partitions for one or two software images to be loaded into ram on each boot and then a couple r/w partitions for persistent storage or certs or something. Why is it all piled into one partition?