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
00a50c25
Commit
00a50c25
authored
Mar 23, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added mender support to u-boot
parent
b0689d5e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
798 additions
and
0 deletions
+798
-0
Makefile
Makefile
+141
-0
u-boot-2018.05-mender.patch
u-boot-2018.05-mender.patch
+302
-0
u-boot-2018.05-sunxi_wdt.patch
u-boot-2018.05-sunxi_wdt.patch
+355
-0
No files found.
Makefile
View file @
00a50c25
...
@@ -35,6 +35,49 @@ define FW_ENV_OPIPLUS2E
...
@@ -35,6 +35,49 @@ define FW_ENV_OPIPLUS2E
endef
endef
export
FW_ENV_OPIPLUS2E
export
FW_ENV_OPIPLUS2E
opiplus2e-mender
:
opiplus2e-boot-cmd-mender opiplus2e-fw_env.config-mender
tar
xf u-boot-2018.05.tar.gz
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-serial-number-fix.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-sunxi-h3-Fix-PLL1-setup-to-never-use-dividers.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-mender.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-sunxi_wdt.patch
$(MAKE)
-C
u-boot-2018.05 orangepi_plus2e_defconfig
@
echo
"CONFIG_ENV_IS_IN_MMC=y"
>>
u-boot-2018.05/.config
@
echo
"CONFIG_WDT=y"
>>
u-boot-2018.05/.config
@
echo
"CONFIG_WDT_SUNXI=y"
>>
u-boot-2018.05/.config
$(MAKE)
-C
u-boot-2018.05 oldconfig
$(MAKE)
-C
u-boot-2018.05
mount /dev/
$(DISK)
1 /uboot
dd
if
=
/dev/zero
of
=
/dev/
$(ROOT_DEVICE)
bs
=
512
seek
=
1
count
=
49151
dd
if
=
u-boot-2018.05/u-boot-sunxi-with-spl.bin
of
=
/dev/
$(ROOT_DEVICE)
bs
=
1024
seek
=
8
@
echo
"
$$
BOOTCMD_OPIPLUS2E_MENDER"
>
u-boot-2018.05/boot.cmd
u-boot-2018.05/tools/mkimage
-C
none
-A
arm
-T
script
-d
u-boot-2018.05/boot.cmd /uboot/boot.scr
$(MAKE)
-C
u-boot-2018.05 envtools
cp
u-boot-2018.05/tools/env/fw_printenv /sbin/fw_printenv
ln
-sf
/sbin/fw_printenv /sbin/fw_setenv
@
echo
"
$$
FW_ENV_OPIPLUS2E_MENDER"
>
/etc/fw_env.config
/sbin/fw_setenv reset
umount /dev/
$(DISK)
1
rm
-rf
u-boot-2018.05
opiplus2e-boot-cmd-mender
:
define
BOOTCMD_OPIPLUS2E_MENDER
run
mender_setup
load
$${mender_uboot_root}
$${kernel_addr_r}
boot/zImage
load
$${mender_uboot_root}
$${fdt_addr_r}
boot/machine.dtb
setenv
bootargs
console
=
tty1
panic
=
10
panic_on_oops
=
1
root
=
$
${mender_kernel_root}
rootfstype
=
ext4 ro rootwait
elevator
=
noop sunxi-wdt.nowayout
=
1 quiet
loglevel
=
3 systemd.show_status
=
1
bootz
$${kernel_addr_r}
-
$${fdt_addr_r}
run
mender_try_to_recover
endef
export
BOOTCMD_OPIPLUS2E_MENDER
opiplus2e-fw_env.config-mender
:
define
FW_ENV_OPIPLUS2E_MENDER
/dev/$(ROOT_DEVICE)
0x400000
0x20000
/dev/$(ROOT_DEVICE)
0x800000
0x20000
endef
export
FW_ENV_OPIPLUS2E_MENDER
opipcplus
:
opipcplus-boot-cmd opipcplus-fw_env.config
opipcplus
:
opipcplus-boot-cmd opipcplus-fw_env.config
tar
xf u-boot-2018.05.tar.gz
tar
xf u-boot-2018.05.tar.gz
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-serial-number-fix.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-serial-number-fix.patch
...
@@ -72,6 +115,49 @@ define FW_ENV_OPIPCPLUS
...
@@ -72,6 +115,49 @@ define FW_ENV_OPIPCPLUS
endef
endef
export
FW_ENV_OPIPCPLUS
export
FW_ENV_OPIPCPLUS
opipcplus-mender
:
opipcplus-boot-cmd-mender opipcplus-fw_env.config-mender
tar
xf u-boot-2018.05.tar.gz
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-serial-number-fix.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-sunxi-h3-Fix-PLL1-setup-to-never-use-dividers.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-mender.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-sunxi_wdt.patch
$(MAKE)
-C
u-boot-2018.05 orangepi_pc_plus_defconfig
@
echo
"CONFIG_ENV_IS_IN_MMC=y"
>>
u-boot-2018.05/.config
@
echo
"CONFIG_WDT=y"
>>
u-boot-2018.05/.config
@
echo
"CONFIG_WDT_SUNXI=y"
>>
u-boot-2018.05/.config
$(MAKE)
-C
u-boot-2018.05 oldconfig
$(MAKE)
-C
u-boot-2018.05
mount /dev/
$(DISK)
1 /uboot
dd
if
=
/dev/zero
of
=
/dev/
$(ROOT_DEVICE)
bs
=
512
seek
=
1
count
=
49151
dd
if
=
u-boot-2018.05/u-boot-sunxi-with-spl.bin
of
=
/dev/
$(ROOT_DEVICE)
bs
=
1024
seek
=
8
@
echo
"
$$
BOOTCMD_OPIPCPLUS_MENDER"
>
u-boot-2018.05/boot.cmd
u-boot-2018.05/tools/mkimage
-C
none
-A
arm
-T
script
-d
u-boot-2018.05/boot.cmd /uboot/boot.scr
$(MAKE)
-C
u-boot-2018.05 envtools
cp
u-boot-2018.05/tools/env/fw_printenv /sbin/fw_printenv
ln
-sf
/sbin/fw_printenv /sbin/fw_setenv
@
echo
"
$$
FW_ENV_OPIPCPLUS_MENDER"
>
/etc/fw_env.config
/sbin/fw_setenv reset
umount /dev/
$(DISK)
1
rm
-rf
u-boot-2018.05
opipcplus-boot-cmd-mender
:
define
BOOTCMD_OPIPCPLUS_MENDER
run
mender_setup
load
$${mender_uboot_root}
$${kernel_addr_r}
boot/zImage
load
$${mender_uboot_root}
$${fdt_addr_r}
boot/machine.dtb
setenv
bootargs
console
=
tty1
panic
=
10
panic_on_oops
=
1
root
=
$
${mender_kernel_root}
rootfstype
=
ext4 ro rootwait
elevator
=
noop sunxi-wdt.nowayout
=
1 quiet
loglevel
=
3 systemd.show_status
=
1
bootz
$${kernel_addr_r}
-
$${fdt_addr_r}
run
mender_try_to_recover
endef
export
BOOTCMD_OPIPCPLUS_MENDER
opipcplus-fw_env.config-mender
:
define
FW_ENV_OPIPCPLUS_MENDER
/dev/$(ROOT_DEVICE)
0x400000
0x20000
/dev/$(ROOT_DEVICE)
0x800000
0x20000
endef
export
FW_ENV_OPIPCPLUS_MENDER
rpi3b
:
rpi3b-boot-cmd rpi3b-fw_env.config rpi3b-config
rpi3b
:
rpi3b-boot-cmd rpi3b-fw_env.config rpi3b-config
tar
xf u-boot-2018.05.tar.gz
tar
xf u-boot-2018.05.tar.gz
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-serial-number-fix.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-serial-number-fix.patch
...
@@ -122,3 +208,58 @@ dtparam=spi=on
...
@@ -122,3 +208,58 @@ dtparam=spi=on
avoid_warnings
=
2
avoid_warnings
=
2
endef
endef
export
RPI3CONFIG
export
RPI3CONFIG
rpi3b-mender
:
rpi3b-boot-cmd-mender rpi3b-fw_env.config-mender rpi3b-config-mender
tar
xf u-boot-2018.05.tar.gz
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-serial-number-fix.patch
patch
-Np1
-d
u-boot-2018.05 < u-boot-2018.05-mender.patch
$(MAKE)
-C
u-boot-2018.05 rpi_3_defconfig
@
echo
"CONFIG_ENV_IS_IN_MMC=y"
>>
u-boot-2018.05/.config
@
echo
"CONFIG_BCM2835_WDT=y"
>>
u-boot-2018.05/.config
$(MAKE)
-C
u-boot-2018.05 oldconfig
$(MAKE)
-C
u-boot-2018.05
mount /dev/
$(DISK)
1 /uboot
dd
if
=
/dev/zero
of
=
/dev/
$(ROOT_DEVICE)
bs
=
512
seek
=
1
count
=
49151
cp
u-boot-2018.05/u-boot.bin /uboot/u-boot.bin
@
echo
"
$$
BOOTCMD_RPI3_MENDER"
>
u-boot-2018.05/boot.cmd
u-boot-2018.05/tools/mkimage
-C
none
-A
arm
-T
script
-d
u-boot-2018.05/boot.cmd /uboot/boot.scr
@
echo
"
$$
RPI3CONFIG_MENDER"
>
/uboot/config.txt
tar
xf rpi3-firmware.tar.xz
--no-same-owner
-C
/uboot
$(MAKE)
-C
u-boot-2018.05 envtools
cp
u-boot-2018.05/tools/env/fw_printenv /sbin/fw_printenv
ln
-svf
/sbin/fw_printenv /sbin/fw_setenv
@
echo
"
$$
FW_ENV_RPI3_MENDER"
>
/etc/fw_env.config
/sbin/fw_setenv reset
umount /dev/
$(DISK)
1
rm
-rf
u-boot-2018.05
rpi3b-boot-cmd-mender
:
define
BOOTCMD_RPI3_MENDER
run
mender_setup
load
$${mender_uboot_root}
$${kernel_addr_r}
boot/Image
load
$${mender_uboot_root}
$${fdt_addr_r}
boot/machine.dtb
setenv
bootargs
console
=
tty1
panic
=
10
panic_on_oops
=
1
root
=
$
${mender_kernel_root}
rootfstype
=
ext4 ro rootwait
elevator
=
noop bcm2835-wdt.nowayout
=
1 quiet
loglevel
=
3 systemd.show_status
=
1
booti
$${kernel_addr_r}
-
$${fdt_addr_r}
run
mender_try_to_recover
endef
export
BOOTCMD_RPI3_MENDER
rpi3b-fw_env.config-mender
:
define
FW_ENV_RPI3
/dev/$(ROOT_DEVICE)
0x400000
0x20000
/dev/$(ROOT_DEVICE)
0x800000
0x20000
endef
export
FW_ENV_RPI3_MENDER
rpi3b-config-mender
:
define
RPI3CONFIG_MENDER
enable_uart
=
1
arm_control
=
0x200
device_tree_address
=
0x100
device_tree_end
=
0x8000
kernel
=
u-boot.bin
dtparam
=
i2c_arm
=
on
dtparam
=
spi
=
on
avoid_warnings
=
1
endef
export
RPI3CONFIG_MENDER
u-boot-2018.05-mender.patch
0 → 100644
View file @
00a50c25
This diff is collapsed.
Click to expand it.
u-boot-2018.05-sunxi_wdt.patch
0 → 100644
View file @
00a50c25
This diff is collapsed.
Click to expand it.
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