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

JDCloud RE-CP-03: set to build BL2 + FIP and fix ENV OFFSET #35

Merged
merged 2 commits into from
Dec 14, 2023
Merged

JDCloud RE-CP-03: set to build BL2 + FIP and fix ENV OFFSET #35

merged 2 commits into from
Dec 14, 2023

Conversation

lgs2007m
Copy link
Contributor

The stock BL2 and FIP of JDCloud RE-CP-03 were builted WITH secure boot, we should build and replace them together. Only replacing FIP will cause bricks.

But The stock BL2 and FIP of CMCC RAX3000M eMMC were builded WITHOUT secure boot, we only need to build and replace FIP.

The single boot gpt of JDCloud RE-CP-03 and CMCC RAX3000M eMMC is like that:

Device Start End Sectors Size Name
/dev/mmcblk0p1 8192 9215 1024 512K u-boot-env
/dev/mmcblk0p2 9216 13311 4096 2M factory
/dev/mmcblk0p3 13312 17407 4096 2M FIP
/dev/mmcblk0p4 17408 50175 32768 16M kernel
/dev/mmcblk0p5 50176 1098751 1048576 512M rootfs

We can see the u-boot-env offset is 8192 sectors * 512 bytes per sector = 4194304 bytes = 0x400000 bytes.

@hanwckf hanwckf merged commit 34446a9 into hanwckf:master Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants