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

Can EMMC be used as the first startup item? #39

Open
wants to merge 156 commits into
base: release
Choose a base branch
from

Conversation

ycllwl
Copy link

@ycllwl ycllwl commented Feb 21, 2019

Can EMMC be used as the first startup item?
Thank you!
I'm a rookie and I can't compile
Changes after installation will prompt file damage

rock64_upgrade_bootloader.sh

/dev/sdp6|/dev/mmcblkp6|/dev/mapper/loopp6|/dev/mapper/nvmep6

This allows you to start and change EMMC via SD card

SuperDavidWu and others added 30 commits December 21, 2017 23:00
Except for 3036 and 3228 Socs, which don't support SARADC,
enable the ROCKCHIP_SARADC config at the other Socs' defconfig.

Signed-off-by: David Wu <[email protected]>
Add defconfig for rk8xx and regulator and i2c controller.

Signed-off-by: Elaine Zhang <[email protected]>
Signed-off-by: Kever Yang <[email protected]>
Acked-by: Philipp Tomsich <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
In rk3328, some function pin may have more than one choice, and muxed
with more than one IO, for example, the UART2 controller IO,
TX and RX, have 3 choice(setting in com_iomux):
- M0 which mux with GPIO1A0/GPIO1A1
- M1 which mux with GPIO2A0/GPIO2A1
- usb2phy which mux with USB2.0 DP/DM pin.

We should set these IO routing in board file.

Change-Id: If6f6fd890d8e225cdb584a4025aac578198764e6
Signed-off-by: Kever Yang <[email protected]>
Rockchip TPL is not going to use both sram and dram, so
we will use a separate link file.

Change-Id: I336bdff8033ca2d49521a3639fbf182c293463b5
Signed-off-by: Kever Yang <[email protected]>
Enable TPL/SPL support and some related option in Kconfig.

Change-Id: Ifde2835d06cfd69933487a66ebce63956b12407e
Signed-off-by: Kever Yang <[email protected]>
Enable driver options for TPL/SPL in evb-rk3328_defconfig.

Change-Id: I8f9e378b3d459d976e2522884b607b68b0fdf9fd
Signed-off-by: Kever Yang <[email protected]>
Enable SPL_FRAMEWORK and TPL/SPL related base addr and size.

Cover-letter:
rockchip: enable TPL/SPL for rk3328

TPL do the ddr sdram init and then return to bootrom;
SPL load trust/ATF and U-Boot from storage and boot into trust.

SDRAM driver is out of this patch set because it suppose to come
after there is a common code for sdram driver, so I send that as
separate RFC patch set.

The link file and the atf script generate file should able to re-use
for all Rockchip armv8 SoCs. Comments are welcome.

END

Change-Id: I59ee5675b66ec63c531931be7ba43606718c527f
Signed-off-by: Kever Yang <[email protected]>
OP-TEE is an open source trusted OS, in armv7, its loading and
running are like this:
loading:
- SPL load both OP-TEE and U-Boot
running:
- SPL run into OP-TEE in secure mode;
- OP-TEE run into U-Boot in non-secure mode;

More detail:
https://github.com/OP-TEE/optee_os
and search for 'boot arguments' for detail entry parameter in:
core/arch/arm/kernel/generic_entry_a32.S

Change-Id: I1344a35dd11bd69ca00e9b99909e1eb610648d86
Signed-off-by: Kever Yang <[email protected]>
Rename the bl31_entry() function with 'spl_' prefix and add one
parameter for bl31 entry address since we can get it from spl_image header.

Change-Id: I4b6125f1d7138f26c2256ab86f449be4a6f1c4cc
Signed-off-by: Kever Yang <[email protected]>
Change-Id: I860e3e8ee107ef9efda3b98e6637ea78fd52160a
Change-Id: Ifb3e36ed106108a678147202e52b5df104501c59
Change-Id: I57c17ba1a9c9f50bede7191f6505778f0cf87195
Change-Id: I6b0a53996ba6afeec097318baa2827755b81ea62
Change-Id: I5301a7b068667160733a64cf83003cfa80665835
Change-Id: I4d3891b9bee68d86c622b46346477727286caef4
Change-Id: Ie9011d26562fb3bed9b01ce81a09b32980445a62
Change-Id: Ie586995d0161bf7fb4e0c6dfad2ce666e0e7e470
Change-Id: I62f88918b86a51cf706323c91c3ad951df93c607
Change-Id: I2c3dc4c87c64bb85283148cd778be2fb9f336974
robclark and others added 4 commits October 26, 2018 10:35
Signed-off-by: Rob Clark <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
Get rid of the hacky fake boot-device and duplicate device-path
constructing (which needs to match what efi_disk and efi_net do).
Instead convert over to use efi_device_path helpers to construct
device-paths, and use that to look up the actual boot device.

Also, extract out a helper to plug things in properly to the
loaded_image.  In a following patch we'll want to re-use this in
efi_load_image() to handle the case of loading an image from a
file_path.

Signed-off-by: Rob Clark <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
Change-Id: I2e729184fc84e47a31e0523a55a704f1121637a7
Change-Id: Iffb4297157c7e07bbe466c3ecd04520b6a6cc502
Change-Id: I9b27b4cbdeac7dfe7303e65136876250b3a6c907
Change-Id: I6e652d6964406642325d231950125046a6457311
Change-Id: Ibab5622c98573ab1f9515acad5217f89844dbe15
@ayufan ayufan force-pushed the rockchip-master branch 5 times, most recently from 62351dc to f324aa8 Compare May 27, 2019 10:20
@ayufan ayufan force-pushed the rockchip-master branch 2 times, most recently from 2244673 to a6ade94 Compare June 5, 2019 09:24
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.

6 participants