Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
u-boot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BayLibre
amlogic
Android TV
u-boot
Commits
a0ca308f
Commit
a0ca308f
authored
2 years ago
by
Safae Ouajih
Browse files
Options
Downloads
Patches
Plain Diff
configs: khadas vim3l bootflow: support boot image v4
Signed-off-by:
Safae Ouajih
<
souajih@baylibre.com
>
parent
9138b937
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/configs/khadas-vim3l_android.h
+4
-1
4 additions, 1 deletion
include/configs/khadas-vim3l_android.h
include/configs/meson64_android.h
+11
-5
11 additions, 5 deletions
include/configs/meson64_android.h
with
15 additions
and
6 deletions
include/configs/khadas-vim3l_android.h
+
4
−
1
View file @
a0ca308f
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
"name=vbmeta_b,size=512K,uuid=${uuid_gpt_vbmeta_b};" \
"name=vbmeta_b,size=512K,uuid=${uuid_gpt_vbmeta_b};" \
"name=boot_a,size=32M,bootable,uuid=${uuid_gpt_boot_a};" \
"name=boot_a,size=32M,bootable,uuid=${uuid_gpt_boot_a};" \
"name=boot_b,size=32M,bootable,uuid=${uuid_gpt_boot_b};" \
"name=boot_b,size=32M,bootable,uuid=${uuid_gpt_boot_b};" \
"name=vendor_boot_a,size=32M,uuid=${uuid_gpt_vendor_boot_a};" \
"name=vendor_boot_b,size=32M,uuid=${uuid_gpt_vendor_boot_b};" \
"name=super,size=3072M,uuid=${uuid_gpt_super};" \
"name=super,size=3072M,uuid=${uuid_gpt_super};" \
"name=userdata,size=11282M,uuid=${uuid_gpt_userdata};" \
"name=userdata,size=11282M,uuid=${uuid_gpt_userdata};" \
"name=rootfs,size=-,uuid=" ROOT_UUID
"name=rootfs,size=-,uuid=" ROOT_UUID
...
@@ -34,8 +36,9 @@
...
@@ -34,8 +36,9 @@
"name=dtbo,size=8M,uuid=${uuid_gpt_dtbo};" \
"name=dtbo,size=8M,uuid=${uuid_gpt_dtbo};" \
"name=vbmeta,size=512K,uuid=${uuid_gpt_vbmeta};" \
"name=vbmeta,size=512K,uuid=${uuid_gpt_vbmeta};" \
"name=boot,size=32M,bootable,uuid=${uuid_gpt_boot};" \
"name=boot,size=32M,bootable,uuid=${uuid_gpt_boot};" \
"name=vendor_boot,size=32M,uuid=${uuid_gpt_vendor_boot};" \
"name=recovery,size=32M,uuid=${uuid_gpt_recovery};" \
"name=recovery,size=32M,uuid=${uuid_gpt_recovery};" \
"name=cache,size=2
56
M,uuid=${uuid_gpt_cache};" \
"name=cache,size=2
24
M,uuid=${uuid_gpt_cache};" \
"name=super,size=1792M,uuid=${uuid_gpt_super};" \
"name=super,size=1792M,uuid=${uuid_gpt_super};" \
"name=userdata,size=12786M,uuid=${uuid_gpt_userdata};" \
"name=userdata,size=12786M,uuid=${uuid_gpt_userdata};" \
"name=rootfs,size=-,uuid=" ROOT_UUID
"name=rootfs,size=-,uuid=" ROOT_UUID
...
...
This diff is collapsed.
Click to expand it.
include/configs/meson64_android.h
+
11
−
5
View file @
a0ca308f
...
@@ -236,6 +236,7 @@
...
@@ -236,6 +236,7 @@
#define BOOTENV_DEV_SYSTEM(devtypeu, devtypel, instance) \
#define BOOTENV_DEV_SYSTEM(devtypeu, devtypel, instance) \
"bootcmd_system=" \
"bootcmd_system=" \
"echo Loading Android " BOOT_PARTITION " partition...;" \
"echo Loading Android " BOOT_PARTITION " partition...;" \
"setenv vloadaddr 0x50080000;" \
"mmc dev ${mmcdev};" \
"mmc dev ${mmcdev};" \
"setenv bootargs ${bootargs} androidboot.serialno=${serial#};" \
"setenv bootargs ${bootargs} androidboot.serialno=${serial#};" \
AB_SELECT_SLOT \
AB_SELECT_SLOT \
...
@@ -243,11 +244,16 @@
...
@@ -243,11 +244,16 @@
AVB_VERIFY_CHECK \
AVB_VERIFY_CHECK \
"part start mmc ${mmcdev} " BOOT_PARTITION "${slot_suffix} boot_start;" \
"part start mmc ${mmcdev} " BOOT_PARTITION "${slot_suffix} boot_start;" \
"part size mmc ${mmcdev} " BOOT_PARTITION "${slot_suffix} boot_size;" \
"part size mmc ${mmcdev} " BOOT_PARTITION "${slot_suffix} boot_size;" \
"part start mmc ${mmcdev} vendor_boot${slot_suffix} vendor_boot_start;" \
"part size mmc ${mmcdev} vendor_boot${slot_suffix} vendor_boot_size;" \
"if mmc read ${loadaddr} ${boot_start} ${boot_size}; then " \
"if mmc read ${loadaddr} ${boot_start} ${boot_size}; then " \
PREPARE_FDT \
"if mmc read $vloadaddr ${vendor_boot_start} ${vendor_boot_size}; then " \
"setenv bootargs \"${bootargs} " AB_BOOTARGS "\" ; " \
"abootimg addr $loadaddr $vloadaddr;"\
"echo Running Android...;" \
PREPARE_FDT \
BOOT_CMD \
"setenv bootargs \"${bootargs} " AB_BOOTARGS "\" ; " \
"echo Running Android...;" \
BOOT_CMD \
"fi;" \
"fi;" \
"fi;" \
"echo Failed to boot Android...;\0"
"echo Failed to boot Android...;\0"
...
@@ -300,7 +306,7 @@
...
@@ -300,7 +306,7 @@
"scriptaddr=0x08000000\0" \
"scriptaddr=0x08000000\0" \
"kernel_addr_r=0x01080000\0" \
"kernel_addr_r=0x01080000\0" \
"pxefile_addr_r=0x01080000\0" \
"pxefile_addr_r=0x01080000\0" \
"ramdisk_addr_r=0x
1
3000000\0" \
"ramdisk_addr_r=0x3
0
000000\0" \
"fdtfile=amlogic/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
"fdtfile=amlogic/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
BOOTENV
BOOTENV
...
...
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