Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3919 - TPLink RE450 wrong DTS #8914

Open
openwrt-bot opened this issue Jul 7, 2021 · 3 comments
Open

FS#3919 - TPLink RE450 wrong DTS #8914

openwrt-bot opened this issue Jul 7, 2021 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Jul 7, 2021

kpoman:

Supply the following if possible:

  • Device problem occurs on:
    TPLink RE450 v2

  • Software versions of OpenWrt/LEDE release, packages, etc.
    openwrt snapshot 21.02

  • Steps to reproduce
    install basic firmware, check for available space, which is <500kB even if the firmware is 5MB and the device has 8MB flash.

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
Copy link
Author

@openwrt-bot openwrt-bot commented Oct 21, 2021

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
Copy link
Author

@openwrt-bot openwrt-bot commented Oct 21, 2021

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
Copy link

@kpoman kpoman commented Apr 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants