Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
u-boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
v2024.5
entered Soft Feature Freeze, no additional features will be accepted •
schedule
Show more breadcrumbs
pkg
u-boot
Commits
94927930
Commit
94927930
authored
2 years ago
by
Dylan Aïssi
Browse files
Options
Downloads
Patches
Plain Diff
Refresh imx6_hab/0009-i.mx6-HAB-prevent-from-booting-with-legacy-image.patch
parent
e950b778
No related branches found
No related tags found
2 merge requests
!92
Backport Debian Bullseye Security/Updates
,
!90
Update from debian/sid for apertis/v2024dev1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/patches/apertis/imx6_hab/0009-i.mx6-HAB-prevent-from-booting-with-legacy-image.patch
+2
-4
2 additions, 4 deletions
...09-i.mx6-HAB-prevent-from-booting-with-legacy-image.patch
with
2 additions
and
4 deletions
debian/patches/apertis/imx6_hab/0009-i.mx6-HAB-prevent-from-booting-with-legacy-image.patch
+
2
−
4
View file @
94927930
...
...
@@ -10,11 +10,9 @@ Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
arch/arm/mach-imx/hab.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c
index cd57a72..6b4396e 100644
--- a/arch/arm/mach-imx/hab.c
+++ b/arch/arm/mach-imx/hab.c
@@ -58
8
,6 +58
8
,11 @@
static ulong get_image_ivt_offset(ulong img_addr)
@@ -58
9
,6 +58
9
,11 @@
switch (genimg_get_format(buf)) {
#if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
case IMAGE_FORMAT_LEGACY:
...
...
@@ -23,6 +21,6 @@ index cd57a72..6b4396e 100644
+ printf("i.MX HAB: legacy images are prohibited on closed devices\n");
+ return 0;
+ }
return (image_get_image_size((
image_header_t
*)img_addr)
return (image_get_image_size((
struct legacy_img_hdr
*)img_addr)
+ 0x1000 - 1) & ~(0x1000 - 1);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment