-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add Ritmix RZX-50 and RZX-27 #12
base: master
Are you sure you want to change the base?
Conversation
…x-27/50 NAND and MMC headers might be different on same SoCs. Go split them. Catches unknown Header:SoC situations. Add MMC header variants for JZ4725b and JZ4755 for further patches to support Ritmix handhelds. Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
Replaces MMC_ID/MMC_ID2 by MMC_IDS array, boot process will try all MMCs in order. To properly map SoC's MSC ids to Linux's block devices MMC_BLKIDS array is used, each entry in MMC_IDS shall have entry in MMC_BLKIDS. Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
Support Ritmix boards at the moment. Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
db7829a
to
84aa3fc
Compare
Ah, sorry! I missed your PR! |
I reworked your MMC refactor, please have a look: 7728d2d For your RZX-27 and RXZ-50 boards, I'm annoyed that a lot of code is duplicated (PLL init code, memory init code). This code is SoC-specific and not board-specific, so it should be common to these two. If the code ends up similar to what's already in board-lepus.c (although the SoC is different), then it would be a good idea to share as much code as possible. |
Hi @pcercuei ,
Looks good, but it missed one important thing for me - easy changing the boot order: its useful during development to boot from external MMC first and fall back to internal then and finally try original firmware on the internal MMC slot. Also this algo is applicable for normal usage, what do you think?
Indeed, although these two are closer to
|
@SiarheiVolkau with your original MMC refactor commit ubiboot would "try all MMCs in order", I did not change that. We could make it try to boot from external SDs first, yes, I think it makes sense. |
But you don't use the MMC_BLKIDS which is crucial to that feature. |
RZX-50 - JZ4755 based handheld with 64Mb SDRAM
RZX-27 - JZ4725b based handheld with 32Mb SDRAM
These patches allows to initialize SDRAM and load & execute OpenDingux as well as original firmwares.
Also these patches unify firmware header creation and MMC boot order.
The firmware headers are separated to NAND headers and MMC headers.
In contrast to JZ4760/70 JZ4725 have slightly different "MSPL" header.
For JZ4760+ header structure is:
For JZ4725b it is:
JZ4755 have no specific header, but entry point is at beginning of firmware:
So, for those 2 SoCs UBIBoot header also includes space for MBR into binary:
-DHAVE_MBR
option.Regarding MMC boot order,
MMC_ID
andMMC_ID2
are replaced byMMC_IDS
andMMC_BLKIDS
arraysMMC_IDS
.