Skip to content

Commit

Permalink
airoha: initial support for airoha fit partitions
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
  • Loading branch information
Ansuel committed Sep 4, 2024
1 parent b6da2e0 commit 4f1eed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions target/linux/airoha/dts/en7581-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@
};
tclinux@80000 {
label = "tclinux";
compatible = "denx,fit";
reg = <0x00080000 0x02800000>;

openwrt,fit-offset = <0x2100>;
};
tclinux_slave@2880000 {
label = "tclinux_slave";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ mtdsplit_fit_parse(struct mtd_info *mtd,
enum mtdsplit_part_type type;

/* Search for the rootfs partition after the FIT image */
ret = mtd_find_rootfs_from(mtd, fit_offset + fit_size + offset_start, mtd->size,
// ret = mtd_find_rootfs_from(mtd, fit_offset + fit_size + offset_start, mtd->size,
ret = mtd_find_rootfs_from(mtd, fit_offset, mtd->size,
&rootfs_offset, &type);
if (ret) {
pr_info("no rootfs found after FIT image in \"%s\"\n",
Expand Down

0 comments on commit 4f1eed5

Please sign in to comment.