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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
ef4a8dc
configs: rockchip: Enable the ROCKCHIP_SARADC config
SuperDavidWu Sep 19, 2017
62d5c72
configs: rk3328: add support for pmic rk8xx and regulator and i2c driver
Sep 13, 2017
e70fea8
Add rk3328-gmac support
ayufan Aug 15, 2017
3f07103
Add rk3328-efuse support
ayufan Aug 19, 2017
81d8d72
Enable CONFIG_PREBOOT
ayufan Aug 19, 2017
afb19e0
Get serial and ethaddr from efuse
ayufan Aug 19, 2017
41a27b4
Add rock64-rk3328
ayufan Aug 20, 2017
fc05c8f
Add rk3328-spi support
ayufan Aug 20, 2017
71f4977
Discover boot_mode for rk3328
ayufan Aug 22, 2017
fe0a1ae
Force gmac to run in 100, it improves stability
ayufan Aug 27, 2017
ebcdae2
Enable USB GPIO to power USB2.0 ports
ayufan Aug 27, 2017
0360b8c
ayufan: include eth1addr
ayufan Aug 28, 2017
b237759
Define fdtfile for each device, to make it possible to use devicedirtree
ayufan Aug 31, 2017
07a6416
rockchip: evb-rk3328: set uart2 and sdmmc io routing
keveryang May 17, 2017
ec1a5c3
rockchip: rk3328: add a link file for tpl
keveryang Oct 26, 2017
df0d1c6
rockchip: Kconfig: enable TPL/SPL support for rk3328
keveryang Oct 26, 2017
9fe6e2e
rockchip: evb-rk3328: enable defconfig options for TPL/SPL
keveryang Oct 26, 2017
9e2afd3
rockchip: rk3328: add config option for TPL/SPL
keveryang Oct 26, 2017
6fd4ec0
spl: add support to booting with OP-TEE
keveryang Sep 6, 2017
f36e131
spl: update bl31_entry() with new name and parameter
keveryang Sep 7, 2017
2d08771
Normalize u-boot config for rock64-rk3328
ayufan Oct 29, 2017
e95a131
Enable LPDDR3 params for ROCK64
ayufan Oct 29, 2017
1572746
Fix configs to be able to compile TPL
ayufan Oct 29, 2017
1b1428c
Fix some bugs for SPL support
ayufan Oct 29, 2017
7d77da9
Make emmc to be MMC0
ayufan Oct 29, 2017
0e67904
sdmmc, emmc and spi are only present in SPL
ayufan Oct 29, 2017
5406edd
Extend malloc space for TPL
ayufan Oct 29, 2017
9a62ec0
Force fifo-mode to be able to read from SPL
ayufan Oct 30, 2017
83d5476
If bootsource is not detected, revert back to boot-rom
ayufan Oct 30, 2017
2106605
Make SPL to work
ayufan Oct 30, 2017
1bf4180
ayufan: fix rk_spi to support of_platdata
ayufan Oct 30, 2017
eb80fb3
Read FIT from the same location as on MMC
ayufan Oct 30, 2017
99cd72e
ayufan: dts: Enable SARADC for rk3328-evb
ayufan Oct 30, 2017
6e4f417
ayufan: synchronize rk3328-rock64 with rk3328-evb
ayufan Oct 30, 2017
dbcb319
ayufan: reorganize rock64-rk3328_defconfig
ayufan Oct 30, 2017
2ff1465
Enable CONFIG_MISC and ROCKCHIP_EFUSE
ayufan Oct 31, 2017
1b32411
ayufan: print DRAM frequency
ayufan Oct 31, 2017
821bc9a
Disable USB2 for now
ayufan Nov 2, 2017
d00b2a0
ayufan: remove duplicate boot mode support
ayufan Dec 18, 2017
7762575
Configure memory regions in TPL for ATF
ayufan Dec 18, 2017
3c376b0
Revert "Disable USB2 for now"
ayufan Dec 18, 2017
47a8ce5
Revert USB changes
ayufan Dec 18, 2017
1f1fab1
rockchip: pass ddr params to trustos
keveryang Dec 20, 2017
a4bd5ea
rockchip: rk3328: set ddr as non-secure in tpl
keveryang Dec 21, 2017
c4397dc
spl: atf: pass NULL for bl32_ep pc
keveryang Dec 20, 2017
86bf8cc
Revert "spl: atf: pass NULL for bl32_ep pc"
ayufan Dec 21, 2017
1ad2758
Add USB nodes to Rock64
ayufan Dec 21, 2017
6a362da
Fix compilation errors
ayufan Dec 21, 2017
ce513e6
spl: atf: pass NULL for bl32_ep pc
keveryang Dec 20, 2017
bcbfec2
ayufan: Use ATF_SUPPORT=y instead of ATF=y
ayufan Dec 21, 2017
4671003
Add pwrkey to rk805
ayufan Dec 21, 2017
74ba17f
ayufan: limit usb_storage transfer to avoid hitting timeouts on USB2/…
ayufan Jan 1, 2018
0872a4e
ayufan: properly configure USB GPIO for rk3328
ayufan Jan 1, 2018
1d12bc7
ayufan: update rock64 config
ayufan Jan 1, 2018
c1a9ef7
ayufan: Backport mmc drivers from upstream
ayufan Jan 2, 2018
f85e24a
Fix compilation error
ayufan Jan 2, 2018
416f704
Add CONFIG_SPI_FLASH_WINBOND support
ayufan Jan 3, 2018
788a706
HACK: restart dwc_otg_core_host_init to make it possible to use OTG p…
ayufan Jan 3, 2018
730abab
rk8xx: add support for rk8xx_led
ayufan Jan 3, 2018
307c51e
dts: rock64 add rk8xx_leds
ayufan Jan 3, 2018
90db2be
ayufan: rock64_defconfig: enable LED and PMIC management
ayufan Jan 3, 2018
ea6efec
ayufan: introduce recovery button mode selection
ayufan Jan 3, 2018
d634ca5
ayufan: fix rk8xx led status
ayufan Jan 4, 2018
f32465f
ayufan: rk3328: enable UDP checksums
ayufan Jan 7, 2018
c792aaf
ayufan: phy/realtek allow to configure RX/TX delay for RTL8211F
ayufan Jan 7, 2018
1abc9ab
ayufan: if end bootmode is reached return early
ayufan Jan 7, 2018
85b4cd3
ayufan: make rtl8211f to work on rock64: enable rx checksums, use 0x1…
ayufan Jan 7, 2018
880d550
ayufan: rock64: add CONFIG_CMD_MTDPARTS=y
ayufan Jan 9, 2018
80adc4c
ayufan: xhci-rockchip: phy_setup before core_init
ayufan Jan 9, 2018
638374e
ayufan: dwc3: allow to set maximum-speed
ayufan Jan 9, 2018
5a90a9a
ayufan: dts: rock64: set high-speed for xhci
ayufan Jan 9, 2018
384ded4
ayufan: dts: add initial support for rockpro64
ayufan Feb 5, 2018
010e523
ayufan: rockchip: fix compilation error of sdhci
ayufan Feb 5, 2018
a2b614a
ayufan: dts: rockpro64 uses lpddr3
ayufan Feb 6, 2018
d5fb96e
ayufan: rk3399: use bootdevice
ayufan Feb 6, 2018
fe641d8
ayufan: rockpro64: update dts to enable mmc1 booting
ayufan Feb 18, 2018
95791c2
ayufan: rk3328: fail hard mk_fit_atf if BL31 is missing
ayufan Feb 18, 2018
a0a2b48
ayufan: rk3399: fail hard mk_fit_atf if BL31 is missing
ayufan Feb 18, 2018
6b3dfa6
ayufan: rock64: for SPL build always use fifo-mode
ayufan May 21, 2018
4dc34c8
ayufan: dts: rk3399: order sdhci as first
ayufan May 22, 2018
9f67c25
ayufan: dts: rk3399: enable sdhci and sdmmc
ayufan May 22, 2018
ff0cf45
ayufan: rk3399: dirty: make SPL to just load u-boot, but not init DRAM
ayufan May 22, 2018
0120d6a
ayufan: dts: rk3328/rk3399: limit max size of SPL to prevent conflict…
ayufan May 22, 2018
ac312d5
ayufan: dts: rk3399: remove sdram config
ayufan May 22, 2018
03a332b
ayufan: rockpro64: reduce spl size
ayufan May 22, 2018
3f6a5ad
ayufan: dts: rockpro64: fix tx/rx delay
ayufan May 29, 2018
d6de86c
ayufan: defconfig: rock64 disable boot delay
ayufan May 29, 2018
ec1524d
ayufan: defconfig: rockpro64 disable boot delay
ayufan May 29, 2018
0e93e10
ayufan: rock64: store env in spi flash
ayufan Jun 3, 2018
60871f9
ayufan: rockpro64: store env in spi flash
ayufan Jun 3, 2018
a125acf
ayufan: rk3399: ensure that max spl size is properly configured to 64k
ayufan Jun 3, 2018
06e3565
ayufan: rockchip: spi flash env requires sect size to be configured
ayufan Jun 3, 2018
2e4646f
ayufan: rk3328/rk3399: remove leds support
ayufan Jun 3, 2018
c46c7b2
ayufan: dts: remove rockpro64 led specification
ayufan Jun 3, 2018
06eb9a7
Rockpro64: uncomment code changes related to rk3399
ayufan Jun 11, 2018
ffaeaf0
rockchip: sdhci: support 8bit bus-width
Mar 26, 2018
1949eef
rockpro64: set initial voltage regulator to 950mV
ayufan Jun 11, 2018
01d9927
ayufan: rk3399: use mmc-sdhci-sdma mode except SPL build (causes EL3 …
ayufan Jun 11, 2018
ce17994
ayufan: dts: rockpro64: fix regulators and pinctrls
ayufan Jul 3, 2018
54ff539
ayufan: dts: rockpro64 remove unused nodes
ayufan Jul 3, 2018
e11aad4
ayufan: dts: rockpro64: fix vsel1_gpio
ayufan Jul 3, 2018
29c4a4c
ayufan: dts: rockpro64: support power/standby led
ayufan Jul 3, 2018
7f83df3
ayufan: rockpro64: add full board specification
ayufan Jul 3, 2018
7a8f1aa
ayufan: dts: rockpro64: fix usb2/type-c support
ayufan Jul 3, 2018
e3eae80
ayufan: dts: rockpro64 loader starts from 0
ayufan Jul 3, 2018
a76a934
Add scripts for gitlab-ci build process
ayufan Jul 3, 2018
39caa9d
ayufan: rock64: scripts: support upgrade on loop
ayufan Jul 5, 2018
a33d89d
ayufan: ci: fix release version
ayufan Jul 5, 2018
841fcce
ayufan: package: fix package names
ayufan Jul 5, 2018
6a08855
ayufan: package: fix loader name in upgrade script
ayufan Jul 5, 2018
501b20d
ayufan: package: make upgrade script to detect loopback properly
ayufan Jul 6, 2018
979b816
ayufan: dts: rockpro64: set proper init-microvolt for vdd_center and …
ayufan Jul 15, 2018
9659690
ayufan: rockpro64: properly enable vdd_log
ayufan Jul 15, 2018
bfd91fa
ayufan: dts: rockpro64: reset vcc_sd to 3.3v (out of sdr104 mode)
ayufan Jul 19, 2018
e2d811b
dev.mk: fix rockchip helper commands
ayufan Jul 21, 2018
d982ad2
ayufan: gitignore: add /tmp/
ayufan Jul 21, 2018
6800469
ayufan: dts: rockpro64: limit sdhci speed to increase compatibility w…
ayufan Jul 21, 2018
7c33a66
Detect package, not the board. Warn if using on wrong board.
ayufan Jul 21, 2018
7bd50d7
Provides u-boot-virtual, conflicts and replaces
ayufan Jul 21, 2018
cb5a461
dev-ayufan: scripts: improve error messages
ayufan Jul 21, 2018
c2a1943
dev-ayufan: package: package name contains the version number
ayufan Jul 21, 2018
da75861
dev.mk: make proper replaces/provides/conflicts
ayufan Jul 26, 2018
482cd6e
dev.mk: everything is release
ayufan Jul 21, 2018
a851a05
dev.mk: update bootloader upgrade scripts
ayufan Aug 6, 2018
d93a87d
ayufan: dts: rockpro64: run spi with 50MHz
ayufan Aug 6, 2018
c5ac769
ayufan: rockpro64: load spi image from 0x400 sector
ayufan Aug 6, 2018
fb6d95f
dev.mk: add rockpro64 spi booting support
ayufan Aug 6, 2018
43ca192
dev.mk: rockpro64 uses 933MHz:1.13 and bl31:1.17
ayufan Aug 6, 2018
ba1f943
dev.mk: allow to erase bootloader.sh
ayufan Aug 6, 2018
df02018
ayufan: dts: rockpro64: sdmmc/spi does run at half of the speed
ayufan Aug 6, 2018
011c09a
efi: add some more device path structures
vathpela Sep 13, 2017
5768988
efi_loader: add device-path utils
robclark Sep 13, 2017
4d221cf
part: extract MBR signature from partitions
vathpela Sep 13, 2017
8694329
part: move efi_guid_t
robclark Sep 13, 2017
54f1fe9
efi_loader: use proper device-paths for partitions
robclark Sep 13, 2017
af5e67c
efi: add some missing __packed
robclark Sep 13, 2017
27d3eeb
efi_loader: use proper device-paths for net
robclark Sep 13, 2017
d646df0
efi_loader: refactor boot device and loaded_image handling
robclark Sep 13, 2017
f9f1911
Update rk3399 ddr to v1.19 and bl31 to 1.25
ayufan Mar 18, 2019
0671753
Add separate pinebook-pro configs
ayufan Mar 18, 2019
a256d96
ayufan: dts: pinebook-pro: update according to latest linux changes
ayufan Mar 20, 2019
9922d32
ayufan: dev: show current version
ayufan Mar 21, 2019
53c9252
ayufan: dts: rock64: fix `vcc5v0_otg` to `GPIO0_A2`
ayufan May 25, 2019
135bc82
ayufan: rock64: fix `vcc3v3_sdmmc` to support `v3` board
ayufan May 25, 2019
ad34e47
ayufan: rockpi4b: add https://github.com/armbian/build/blob/master/pa…
ayufan May 26, 2019
49104ce
ayufan: rockpi4b: add https://github.com/armbian/build/blob/master/pa…
ayufan May 26, 2019
e2de533
ayufan: dev.mk: add rockpi4b to build targets
ayufan May 26, 2019
56bd958
ayufan: dts: pinebook-pro: support v2
ayufan Jun 5, 2019
4cbafce
ayufan: defconfig: enable CMD_I2C=y
ayufan Jun 19, 2019
bb4886a
ayufan: rk3399: support i2c4
ayufan Jun 19, 2019
29843fb
ayufan: dev.mk: use .gzip for deb files, due to https://github.com/jo…
ayufan Jul 8, 2019
94c0766
ayufan: dts: pinebook-pro: add leds
ayufan Aug 18, 2019
ca097a4
ayufan: dts: pinebook-pro: fix standby led polarity
ayufan Aug 26, 2019
607e358
ayufan: spl: rk3399: power on standby/power LEDs
ayufan Aug 26, 2019
9df89e0
ayufan: spl: rk3328: fix setting of GPIO0_D6
ayufan Aug 26, 2019
95f6152
ayufan: dev.mk: add `deploy` target
ayufan Aug 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fit-dtb.blob
/spl/
/tpl/
/defconfig
/tmp/

#
# Generated include files
Expand Down
49 changes: 49 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
image: ayufan/rock64-dockerfiles:x86_64

variables:
GITHUB_USER: ayufan-rock64
GITHUB_REPO: linux-u-boot

USE_CCACHE: "true"
CCACHE_DIR: "/data/shared/ccache"

stages: [build]

before_script:
- ccache -M 0 -F 0

build:
stage: build
only: [branches]
script:
- rm -f ../*.deb
- export RELEASE=$((1000+$CI_PIPELINE_IID))
- ./dev-make BOARD_TARGET=rock64 -j5
- ./dev-make BOARD_TARGET=rockpro64 -j5
- ./dev-make BOARD_TARGET=pinebookpro -j5
- ./dev-make BOARD_TARGET=rockpi4b -j5
- |
set -x

export RELEASE_NAME="$(./dev-make version BOARD_TARGET=rock64)"
export RELEASE_TITLE="$(./dev-make version BOARD_TARGET=rock64)"
export DESCRIPTION="$CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID"

github-release release \
--tag "${RELEASE_NAME}" \
--name "${RELEASE_TITLE}" \
--description "${DESCRIPTION}" \
--target "${CI_COMMIT_SHA}" \
--draft

for i in *.deb *.img.xz; do
github-release upload \
--tag "${RELEASE_NAME}" \
--name "${i}" \
--file "${i}"
done

github-release edit \
--tag "${RELEASE_NAME}" \
--name "${RELEASE_TITLE}" \
--description "${DESCRIPTION}"
4 changes: 4 additions & 0 deletions arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,19 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
rk3288-veyron-mickey.dtb \
rk3288-veyron-minnie.dtb \
rk3328-evb.dtb \
rk3328-rock64.dtb \
rk3368-lion.dtb \
rk3368-sheep.dtb \
rk3368-geekbox.dtb \
rk3368-px5-evb.dtb \
rk3399-evb.dtb \
rk3399-firefly.dtb \
rk3399-pinebook-pro.dtb \
rk3399-puma-ddr1333.dtb \
rk3399-puma-ddr1600.dtb \
rk3399-puma-ddr1866.dtb \
rk3399-rockpi4b.dtb \
rk3399-rockpro64.dtb \
rv1108-evb.dtb
dtb-$(CONFIG_ARCH_MESON) += \
meson-gxbb-odroidc2.dtb
Expand Down
87 changes: 87 additions & 0 deletions arch/arm/dts/rk3328-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@
stdout-path = &uart2;
};

gmac_clkin: external-gmac-clock {
compatible = "fixed-clock";
clock-frequency = <125000000>;
clock-output-names = "gmac_clkin";
#clock-cells = <0>;
};

vcc_phy: vcc-phy-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc_phy";
regulator-always-on;
regulator-boot-on;
};

vcc3v3_sdmmc: sdmmc-pwren {
compatible = "regulator-fixed";
regulator-name = "vcc3v3";
Expand Down Expand Up @@ -214,6 +228,79 @@
regulator-on-in-suspend;
regulator-suspend-microvolt = <1000000>;
};
};
};
};
};

&gmac2io {
phy-supply = <&vcc_phy>;
phy-mode = "rgmii";
clock_in_out = "input";
snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
snps,reset-active-low;
snps,reset-delays-us = <0 10000 50000>;
assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
pinctrl-names = "default";
pinctrl-0 = <&rgmiim1_pins>;
tx_delay = <0x26>;
rx_delay = <0x11>;
status = "okay";
};

&spi0 {
status = "okay";

/* SPI DMA does not work currently */
/delete-property/ dmas;
/delete-property/ #dma-cells;
/delete-property/ dma-names;

spi-flash@0 {
#address-cells = <0x1>;
#size-cells = <1>;
compatible = "st,m25p128", "spi-flash";
reg = <0x0>;
spi-max-frequency = <25000000>;
status = "okay";
m25p,fast-read;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

system@0 {
label = "system";
reg = <0x0 0x8000>;
read-only;
};

loader@8000 {
label = "loader";
reg = <0x8000 0x3F8000>;
};

reserved@400000 {
label = "reserved";
reg = <0x400000 0x3C0000>;
read-only;
};

vendor@7c0000 {
label = "vendor";
reg = <0x7C0000 0x40000>;
};

uboot@800000 {
label = "uboot";
reg = <0x800000 0x400000>;
};

atf@c00000 {
label = "atf";
reg = <0xC00000 0x400000>;
};
};
};
Expand Down
Loading