mirror of https://github.com/hak5/openwrt.git
images without tagid now fallback to the untouched partition layout (#6093)
SVN-Revision: 18288lede-17.01
parent
7f75186333
commit
9a84de9e01
|
@ -199,8 +199,15 @@ static int parse_cfe_partitions( struct mtd_info *master, struct mtd_partition *
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tagid_match) {
|
if (!tagid_match) {
|
||||||
printk(KERN_ERR PFX "Failed to find a valid tag id\n");
|
tagid = "bcram";
|
||||||
return -EIO;
|
sscanf(buf->bccfe.rootAddress,"%u", &rootfsaddr);
|
||||||
|
sscanf(buf->bccfe.rootLength, "%u", &rootfslen);
|
||||||
|
sscanf(buf->bccfe.kernelAddress, "%u", &kerneladdr);
|
||||||
|
sscanf(buf->bccfe.kernelLength, "%u", &kernellen);
|
||||||
|
sscanf(buf->bccfe.totalLength, "%u", &totallen);
|
||||||
|
tagidcrc = *(uint32_t *)&(buf->bccfe.tagIdCRC[0]);
|
||||||
|
tagversion = &(buf->bccfe.tagVersion[0]);
|
||||||
|
boardid = &(buf->bccfe.boardid[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
printk(KERN_INFO PFX "CFE boot tag found with version %s, board type %s, and tagid %s.\n",tagversion,boardid,tagid);
|
printk(KERN_INFO PFX "CFE boot tag found with version %s, board type %s, and tagid %s.\n",tagversion,boardid,tagid);
|
||||||
|
|
Loading…
Reference in New Issue