mirror of
https://github.com/Icenowy/aw-el2-barebone.git
synced 2025-04-18 10:24:49 +00:00
retarget to H6
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
This commit is contained in:
parent
f9929b5f52
commit
31cbddf291
8 changed files with 21 additions and 7 deletions
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ OBJCOPY = $(CROSS_COMPILE)objcopy
|
|||
|
||||
INCLUDES = -I $(PWD)/include -I $(PWD)/uboot-headers -ffreestanding
|
||||
|
||||
DEFINES = -DSOC_HEADER="\"a64.h\""
|
||||
DEFINES = -DSOC_HEADER="\"h6.h\""
|
||||
|
||||
ASFLAGS = $(INCLUDES) $(DEFINES) -D__ASSEMBLY__
|
||||
CFLAGS = $(INCLUDES) $(DEFINES) -O2
|
||||
|
|
12
boot.sh
12
boot.sh
|
@ -1,9 +1,9 @@
|
|||
sudo sunxi-fel -v -p \
|
||||
spl uboot/spl32_a64_lpddr3.bin \
|
||||
write 0x4a000000 uboot/u-boot_a64.bin \
|
||||
write 0x44000 uboot/bl31_a64_40010000.bin \
|
||||
write 0x4fc00000 uboot/uEnv_a64.txt \
|
||||
spl uboot/spl32_h6_lpddr3.bin \
|
||||
write 0x4a000000 uboot/u-boot_h6.bin \
|
||||
write 0x104000 uboot/bl31_h6_40010000.bin \
|
||||
write 0x4fc00000 uboot/uEnv_h6.txt \
|
||||
write 0x40080000 uboot/kernel \
|
||||
write 0x4fa00000 uboot/sun50i-a64-pinephone-1.1.dtb \
|
||||
write 0x4fa00000 uboot/sun50i-h6-pine-h64-model-b.dtb \
|
||||
write 0x40010000 el2-bb.bin \
|
||||
reset64 0x44000
|
||||
reset64 0x104000
|
||||
|
|
11
include/h6.h
Normal file
11
include/h6.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef _A64_H_
|
||||
#define _A64_H_
|
||||
|
||||
#define SOC_UART0 0x05000000
|
||||
|
||||
#define SOC_EL2_RESV_START 0x40010000
|
||||
#define SOC_EL2_RESV_SIZE 0x00070000
|
||||
|
||||
#define SOC_NEXT_STAGE 0x4a000000
|
||||
|
||||
#endif
|
BIN
uboot/bl31_h6_40010000.bin
Executable file
BIN
uboot/bl31_h6_40010000.bin
Executable file
Binary file not shown.
BIN
uboot/spl32_h6_lpddr3.bin
Normal file
BIN
uboot/spl32_h6_lpddr3.bin
Normal file
Binary file not shown.
BIN
uboot/sun50i-h6-pine-h64-model-b.dtb
Normal file
BIN
uboot/sun50i-h6-pine-h64-model-b.dtb
Normal file
Binary file not shown.
BIN
uboot/u-boot_h6.bin
Normal file
BIN
uboot/u-boot_h6.bin
Normal file
Binary file not shown.
3
uboot/uEnv_h6.txt
Normal file
3
uboot/uEnv_h6.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
#=uEnv
|
||||
bootcmd=fdt addr 4fa00000;fdt resize;fdt rsvmem add 40010000 70000;booti 40080000 - 4fa00000
|
||||
bootargs=rootdelay=2 panic=10 console=ttyS0,115200 earlycon=uart,mmio32,0x05000000
|
Loading…
Add table
Reference in a new issue