openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
20.62k stars 10.58k forks source link

FS#3919 - TPLink RE450 wrong DTS #8914

Open openwrt-bot opened 3 years ago

openwrt-bot commented 3 years ago

kpoman:

Supply the following if possible:

Apparently wrong dts here: https://github.com/openwrt/openwrt/blob/master/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts in particular:

partition@630000 {
    label = "config";
    reg = <0x630000 **0x020000**>;
    read-only;
};

art: partition@7f0000 {
    label = "art";
    reg = <0x7f0000 0x010000>;
    read-only;
};

should be changed to:

partition@630000 {
    label = "config";
    reg = <0x630000 **0x01c0000**>;
    read-only;
};

art: partition@7f0000 {
    label = "art";
    reg = <0x7f0000 0x010000>;
    read-only;
};
openwrt-bot commented 3 years ago

kpoman:

Bumping this and clarifying: in the original dts, the 'config' partition starts at 0x630000 and the next one at 0x7f0000, which gives us 1C0000 free space for it. However, we only use 0x020000 (~320kB) instead of 0x1C0000 (~1.8MB), which makes this device pretty unusable if one wants to install even base packages. I confirm that changing the dts made more room on it. However the change is not on the main repo so every update, the change is lost.

openwrt-bot commented 3 years ago

kpoman:

Another look at partitions on a booted re450-v2 using 21.02:

[ 0.402453] 0x000000520000-0x0000005e0000 : "rootfs_data" [ 0.408910] 0x000000600000-0x000000610000 : "partition-table" [ 0.415738] 0x000000610000-0x000000630000 : "info" [ 0.421570] 0x000000630000-0x000000650000 : "config" [ 0.427596] 0x0000007f0000-0x000000800000 : "art"

rootfs_data is way too small !

kpoman commented 2 years ago

Could anyone take a look at this please ? I just tried building the firmware without any different package and situation is worse than before:

Building images...
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on /home/kpoman/Downloads/openwrt-ath79-20220427/openwrt-imagebuilder-ath79-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_generic/root.squashfs, block size 262144.
Pseudo file "/dev" exists in source filesystem "/home/kpoman/Downloads/openwrt-ath79-20220427/openwrt-imagebuilder-ath79-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ath79/dev".
Ignoring, exclude it (-e/-ef) to override.
[===================================================================================================================================================================================================/] 723/723 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
        compressed data, compressed metadata, compressed fragments,
        no xattrs, compressed ids
        duplicates are removed
Filesystem size 3482.19 Kbytes (3.40 Mbytes)
        35.84% of uncompressed filesystem size (9716.80 Kbytes)
Inode table size 6472 bytes (6.32 Kbytes)
        19.88% of uncompressed inode table size (32555 bytes)
Directory table size 9530 bytes (9.31 Kbytes)
        45.33% of uncompressed directory table size (21023 bytes)
Number of duplicate files found 116
Number of inodes 981
Number of files 714
Number of fragments 20
Number of symbolic links  186
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 80
Number of ids (unique uids + gids) 1
Number of uids 1
        unknown (0)
Number of gids 1
        unknown (0)
6964+1 records in
6964+1 records out
3565758 bytes (3.6 MB, 3.4 MiB) copied, 0.0153657 s, 232 MB/s
6964+1 records in
6964+1 records out
3565758 bytes (3.6 MB, 3.4 MiB) copied, 0.0146822 s, 243 MB/s
file-system partition too big (more than 3604480 bytes): Success
cp: cannot stat '/home/kpoman/Downloads/openwrt-ath79-20220427/openwrt-imagebuilder-ath79-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-ath79-generic-tplink_re450-v2-squashfs-factory.bin': No such file or directory
Skip JSON creation for non existing file /home/kpoman/Downloads/openwrt-ath79-20220427/openwrt-imagebuilder-ath79-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-ath79-generic-tplink_re450-v2-squashfs-factory.bin

Calculating checksums...
kpoman@kpoman-ThinkPad-P50:~/Downloads/openwrt-ath79-20220427/openwrt-imagebuilder-ath79-generic.Linux-x86_64$

thanks and feel free to ask if I can test or do something to help.