Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
u-boot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
u-boot
Commits
20508789
Commit
20508789
authored
Aug 09, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed booting of Raspberry Pi 4 Model B
parent
5009d9cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
Makefile
Makefile
+15
-12
rpi4-firmware.tar.xz
rpi4-firmware.tar.xz
+0
-0
No files found.
Makefile
View file @
20508789
...
...
@@ -379,6 +379,8 @@ rpi4b: rpi4b-boot-cmd rpi4b-fw_env.config rpi4b-config
tar
xf u-boot-2020.04.tar.bz2
patch
-Np1
-d
u-boot-2020.04 < u-boot-2020.04-serial-number-fix.patch
$(MAKE)
-C
u-boot-2020.04 rpi_4_defconfig
@
echo
"CONFIG_ARCH_FIXUP_FDT_MEMORY=y"
>>
u-boot-2020.04/.config
$(MAKE)
-C
u-boot-2020.04 oldconfig
$(MAKE)
-C
u-boot-2020.04
mkdir
/uboot
mkfs
-t
vfat
-n
UBOOT /dev/
$(DISK)
1
...
...
@@ -388,6 +390,8 @@ rpi4b: rpi4b-boot-cmd rpi4b-fw_env.config rpi4b-config
@
echo
"
$$
BOOTCMD_RPI4"
>
u-boot-2020.04/boot.cmd
u-boot-2020.04/tools/mkimage
-C
none
-A
arm
-T
script
-d
u-boot-2020.04/boot.cmd /uboot/boot.scr
@
echo
"
$$
RPI4CONFIG"
>
/uboot/config.txt
tar
xf rpi4-firmware.tar.xz
-C
/uboot
--no-same-owner
cp
/boot/dtbs/5.4.51/broadcom/bcm2711-rpi-4-b.dtb /uboot/bcm2711-rpi-4-b.dtb
$(MAKE)
-C
u-boot-2020.04 envtools
cp
u-boot-2020.04/tools/env/fw_printenv /sbin/fw_printenv
ln
-sf
/sbin/fw_printenv /sbin/fw_setenv
...
...
@@ -421,14 +425,12 @@ max_framebuffers=2
[all]
arm_64bit
=
1
device_tree_address
=
0x03000000
enable_uart
=
1
dtparam
=
i2c
=
on
dtparam
=
spi
=
on
dtparam
=
act_led_trigger
=
heartbeat
dtparam
=
pwr_led_trigger
=
mmc0
dtparam
=
audio
=
on
device_tree_address
=
0x02000000
dtoverlay
=
vc4-fkms-v3d,cma-128
dtparam
=
i2c_arm
=
on
dtparam
=
spi
=
on
avoid_warnings
=
2
endef
export
RPI4CONFIG
...
...
@@ -437,6 +439,7 @@ rpi4b-mender: rpi4b-boot-cmd-mender rpi4b-fw_env.config-mender rpi4b-config-mend
patch
-Np1
-d
u-boot-2020.04 < u-boot-2020.04-serial-number-fix.patch
patch
-Np1
-d
u-boot-2020.04 < u-boot-2020.04-mender.patch
$(MAKE)
-C
u-boot-2020.04 rpi_4_defconfig
@
echo
"CONFIG_ARCH_FIXUP_FDT_MEMORY=y"
>>
u-boot-2020.04/.config
@
echo
"# CONFIG_ENV_IS_NOWHERE is not set"
>>
u-boot-2020.04/.config
@
echo
"# CONFIG_ENV_IS_IN_FAT is not set"
>>
u-boot-2020.04/.config
@
echo
"CONFIG_ENV_IS_IN_MMC=y"
>>
u-boot-2020.04/.config
...
...
@@ -450,6 +453,8 @@ rpi4b-mender: rpi4b-boot-cmd-mender rpi4b-fw_env.config-mender rpi4b-config-mend
@
echo
"
$$
BOOTCMD_RPI4_MENDER"
>
u-boot-2020.04/boot.cmd
u-boot-2020.04/tools/mkimage
-C
none
-A
arm
-T
script
-d
u-boot-2020.04/boot.cmd /uboot/boot.scr
@
echo
"
$$
RPI4CONFIG_MENDER"
>
/uboot/config.txt
tar
xf rpi4-firmware.tar.xz
-C
/uboot
--no-same-owner
cp
/boot/dtbs/5.4.51/broadcom/bcm2711-rpi-4-b.dtb /uboot/bcm2711-rpi-4-b.dtb
$(MAKE)
-C
u-boot-2020.04 envtools
cp
u-boot-2020.04/tools/env/fw_printenv /sbin/fw_printenv
ln
-svf
/sbin/fw_printenv /sbin/fw_setenv
...
...
@@ -485,14 +490,12 @@ max_framebuffers=2
[all]
arm_64bit
=
1
device_tree_address
=
0x03000000
enable_uart
=
1
dtparam
=
i2c
=
on
dtparam
=
spi
=
on
dtparam
=
act_led_trigger
=
heartbeat
dtparam
=
pwr_led_trigger
=
mmc0
dtparam
=
audio
=
on
device_tree_address
=
0x02000000
dtoverlay
=
vc4-fkms-v3d,cma-128
dtparam
=
i2c_arm
=
on
dtparam
=
spi
=
on
avoid_warnings
=
2
endef
export
RPI4CONFIG_MENDER
...
...
rpi4-firmware.tar.xz
0 → 100644
View file @
20508789
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment