Skip to content

Commit 4a70ef1

Browse files
authored
Merge pull request #3470 from FragrantOrchid/main
Add support for lckfb-tspi-3m
2 parents 237e7dc + c3483f8 commit 4a70ef1

13 files changed

Lines changed: 95 additions & 0 deletions

File tree

.github/workflows/build-armbian-arm64-server-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ on:
8787
- king3399
8888
- kylin3399
8989
- lckfb-tspi
90+
- lckfb-tspi-3m
9091
- leez
9192
- lx-r3s
9293
- lyt-t68m

.github/workflows/build-armbian-using-official-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ on:
8181
- king3399
8282
- kylin3399
8383
- lckfb-tspi
84+
- lckfb-tspi-3m
8485
- leez
8586
- lx-r3s
8687
- lyt-t68m

.github/workflows/build-armbian-using-releases-files.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ on:
8787
- king3399
8888
- kylin3399
8989
- lckfb-tspi
90+
- lckfb-tspi-3m
9091
- leez
9192
- lx-r3s
9293
- lyt-t68m

build-armbian/armbian-files/common-files/etc/model_database.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ r706 :Inspur-CD1000-Cloud-PC :rk3528 :rk3528-cd1000.
381381
# 1.ID 2.MODEL 3.SOC 4.FDTFILE 5.TRUST_IMG 6.MAINLINE_UBOOT 7.BOOTLOADER_IMG 8.DESCRIPTION 9.KERNEL_TAGS 10.PLATFORM 11.FAMILY 12.BOOT_CONF 13.CONTRIBUTORS 14.BOARD 15.BUILD
382382
#-------+----------------------------------------------+---------+-----------------------------------------+-----------------------------+------------------------------------+--------------------------------+-------------------------------------------+----------------------+------------+-------------+----------------+-----------------------------------------------------+--------------------+----------
383383
r801 :NanoPi-m5 :rk3576 :rk3576-nanopi-m5.dtb :NA :u-boot.itb :idbloader.img :4/8/16GB-Mem,8/16G-eMMC,2x1Gb-Nic :stable/6.12.y :rockchip :rk3576 :armbianEnv.txt :RokkakuM :nanopi-m5 :yes
384+
r802 :LCKFB-Taishan-Pi-3M :rk3576 :rk3576-tspi-3m.dtb :NA :uboot.img :bootloader.img :4GB-LRDDR5,64GB-eMMC,1Gb-Nic :rk35xx/6.1.y :rockchip :rk3576 :armbianEnv.txt :FragrantOrchid :lckfb-tspi-3m :yes
384385

385386

386387
# Allwinner h6 Family
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
verbosity=7
2+
bootlogo=true
3+
consoleargs=console=ttyFIQ0
4+
overlay_prefix=
5+
overlays=
6+
user_overlays=
7+
fdtfile=rockchip/rk3576-tspi-3m.dtb
8+
rootdev=/dev/mmcblk0p2
9+
rootfstype=ext4
10+
earlycon=on
11+
earlyconargs=earlycon=uart8250,mmio32,0x2ad40000
12+
extraargs=rcupdate.rcu_expedited=1 rcu_nocbs=all
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# DO NOT EDIT THIS FILE
2+
#
3+
# Please edit /boot/armbianEnv.txt to set supported parameters
4+
#
5+
6+
setenv load_addr "0x48000000"
7+
setenv overlay_error "false"
8+
setenv prefix "/"
9+
# default values
10+
setenv rootdev "/dev/mmcblk0p2"
11+
setenv verbosity "1"
12+
setenv console "both"
13+
setenv bootlogo "false"
14+
setenv rootfstype "ext4"
15+
setenv docker_optimizations "on"
16+
17+
18+
echo "Boot script loaded from ${devtype} ${devnum}"
19+
20+
if test -e ${devtype} ${devnum} ${prefix}armbianEnv.txt; then
21+
load ${devtype} ${devnum} ${load_addr} ${prefix}armbianEnv.txt
22+
env import -t ${load_addr} ${filesize}
23+
fi
24+
25+
if test "${earlycon}" = "on"; then setenv consoleargs "${earlyconargs} ${consoleargs}"; fi
26+
if test "${bootlogo}" = "true"; then setenv consoleargs "bootsplash.bootfile=bootsplash.armbian ${consoleargs}"; fi
27+
28+
29+
30+
# Load Image fdt and uInitrd
31+
load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}Image
32+
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}
33+
load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd
34+
35+
# overlay fdt
36+
fdt addr ${fdt_addr_r}
37+
fdt resize 65536
38+
for overlay_file in ${overlays}; do
39+
if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb/rockchip/overlay/${overlay_prefix}-${overlay_file}.dtbo; then
40+
echo "Applying kernel provided DT overlay ${overlay_prefix}-${overlay_file}.dtbo"
41+
fdt apply ${load_addr} || setenv overlay_error "true"
42+
fi
43+
done
44+
for overlay_file in ${user_overlays}; do
45+
if load ${devtype} ${devnum} ${load_addr} ${prefix}overlay-user/${overlay_file}.dtbo; then
46+
echo "Applying user provided DT overlay ${overlay_file}.dtbo"
47+
fdt apply ${load_addr} || setenv overlay_error "true"
48+
fi
49+
done
50+
if test "${overlay_error}" = "true"; then
51+
echo "Error applying DT overlays, restoring original DT"
52+
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}
53+
else
54+
if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb/rockchip/overlay/${overlay_prefix}-fixup.scr; then
55+
echo "Applying kernel provided DT fixup script (${overlay_prefix}-fixup.scr)"
56+
source ${load_addr}
57+
fi
58+
if test -e ${devtype} ${devnum} ${prefix}fixup.scr; then
59+
load ${devtype} ${devnum} ${load_addr} ${prefix}fixup.scr
60+
echo "Applying user provided fixup script (fixup.scr)"
61+
source ${load_addr}
62+
fi
63+
fi
64+
65+
# boot the kernel
66+
setenv bootargs "root=${rootdev} rw rootwait rootfstype=${rootfstype} ${consoleargs} ${extraargs} loglevel=${verbosity}"
67+
echo "Boot with args ${bootargs}"
68+
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
69+
70+
# Recompile with:
71+
# Correct Version need
72+
# mkimage version 2017.09-g54aee35-dirty #vscode is OK
73+
# You can get it by SDK/u-boot/tools/mkimage
74+
# mkimage -C none -A arm -T script -n 'flatmax load script' -d /boot/boot.cmd /boot/boot.scr
75+
76+
77+
78+
79+
Binary file not shown.

0 commit comments

Comments
 (0)