Skip to content

Commit e5777b7

Browse files
authored
Merge pull request #50 from jonasblixt/imx8dxl
Imx8dxl support
2 parents c26a594 + 9def315 commit e5777b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+7674
-5022
lines changed

.github/workflows/punchboot-tools.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ jobs:
5555
output-dir: wheelhouse
5656
config-file: "pyproject.toml"
5757

58-
- uses: actions/upload-artifact@v3
58+
- uses: actions/upload-artifact@v4
5959
with:
60+
name: punchboot-tools-${{ strategy.job-index }}
6061
path: ./wheelhouse/*.whl
6162

6263
build_sdist:
@@ -68,8 +69,9 @@ jobs:
6869
- name: Build sdist
6970
run: pipx run build --sdist
7071

71-
- uses: actions/upload-artifact@v3
72+
- uses: actions/upload-artifact@v4
7273
with:
74+
name: punchboot-tools-sdist
7375
path: dist/*.tar.gz
7476

7577
upload_pypi_test:
@@ -81,16 +83,17 @@ jobs:
8183
id-token: write
8284
if: github.repository == 'jonasblixt/punchboot' && github.event_name == 'workflow_dispatch'
8385
steps:
84-
- uses: actions/download-artifact@v3
86+
- uses: actions/download-artifact@v4
8587
with:
86-
name: artifact
87-
path: dist
88+
pattern: punchboot-tools-*
89+
merge-multiple: true
8890
- uses: pypa/[email protected]
8991
with:
9092
user: __token__
9193
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
9294
repository_url: https://test.pypi.org/legacy/
9395
skip_existing: true
96+
packages_dir: ./
9497

9598
upload_pypi:
9699
name: Upload to PyPi
@@ -101,7 +104,7 @@ jobs:
101104
id-token: write
102105
if: github.repository == 'jonasblixt/punchboot' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
103106
steps:
104-
- uses: actions/download-artifact@v3
107+
- uses: actions/download-artifact@v4
105108
with:
106109
name: artifact
107110
path: dist
@@ -110,3 +113,4 @@ jobs:
110113
user: __token__
111114
password: ${{ secrets.PYPI_API_TOKEN }}
112115
skip_existing: true
116+
packages_dir: ./

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
exclude: ^(src/plat/imx8x/sci|include/plat/imx8x/sci)
12
repos:
23
- repo: https://github.com/pre-commit/pre-commit-hooks
34
rev: v4.5.0

configs/imx8dxlevk_defconfig

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
CONFIG_ARCH_ARMV8=y
2+
# CONFIG_ARCH_ARMV7 is not set
3+
# CONFIG_ARCH_ARMV7M is not set
4+
CONFIG_ARMV8_EL3=y
5+
6+
#
7+
# Platform support
8+
#
9+
CONFIG_SOC_FAMILY_IMX=y
10+
CONFIG_PLAT_IMX8X_COMMON=y
11+
# CONFIG_PLAT_IMX8X is not set
12+
CONFIG_PLAT_IMX8XL=y
13+
# CONFIG_PLAT_IMX8M is not set
14+
15+
#
16+
# imx8x configuration
17+
#
18+
19+
#
20+
# imx8x configuration
21+
#
22+
# CONFIG_IMX8X_FUSE_DRY_RUN is not set
23+
# end of imx8x configuration
24+
25+
#
26+
# Output image
27+
#
28+
CONFIG_IMX8X_CREATE_IMX_IMAGE=y
29+
# CONFIG_IMX8X_SIGN_IMAGE is not set
30+
# end of Output image
31+
# end of Platform support
32+
33+
#
34+
# Generic options
35+
#
36+
CONFIG_KEYSTORE="keystore.bpak"
37+
CONFIG_LOGLEVEL=3
38+
CONFIG_ENABLE_WATCHDOG=y
39+
CONFIG_PRINT_BOOT_BANNER=y
40+
CONFIG_WATCHDOG_TIMEOUT=10
41+
# CONFIG_ENABLE_TIMESTAMPING is not set
42+
CONFIG_DEVICE_UUID=y
43+
CONFIG_CRYPTO=y
44+
CONFIG_CRYPTO_MAX_HASH_OPS=1
45+
CONFIG_CRYPTO_MAX_DSA_OPS=1
46+
CONFIG_BIO_CORE=y
47+
CONFIG_BIO_MAX_DEVS=128
48+
# CONFIG_SELF_TEST is not set
49+
CONFIG_EXECUTE_IN_RAM=y
50+
# CONFIG_EXECUTE_IN_FLASH is not set
51+
# end of Generic options
52+
53+
#
54+
# Build configuration
55+
#
56+
CONFIG_OPTIMIZE="2"
57+
# CONFIG_DEBUG_SYMBOLS is not set
58+
# CONFIG_STACK_USAGE is not set
59+
CONFIG_STACK_SIZE_KiB=16
60+
CONFIG_LINK_FILE="src/link.lds"
61+
# end of Build configuration
62+
63+
#
64+
# Boot
65+
#
66+
CONFIG_BOOT_CORE=y
67+
CONFIG_BOOT_BPAK_IMAGE_HELPERS=y
68+
CONFIG_BOOT_AB_DRIVER=y
69+
CONFIG_BOOT_LINUX=y
70+
# CONFIG_BOOT_ARMV7M_BAREMETAL is not set
71+
CONFIG_BOOT_LOAD_CHUNK_kB=4096
72+
# end of Boot
73+
74+
#
75+
# Drivers
76+
#
77+
78+
#
79+
# Crypto
80+
#
81+
CONFIG_DRIVERS_IMX_CAAM=y
82+
# CONFIG_DRIVERS_CRYPTO_MBEDTLS is not set
83+
# end of Crypto
84+
85+
#
86+
# Filesystem
87+
#
88+
# CONFIG_LITTLE_FS is not set
89+
# end of Filesystem
90+
91+
#
92+
# Fusebox
93+
#
94+
# CONFIG_DRIVERS_FUSE_TEST is not set
95+
# CONFIG_DRIVERS_FUSE_IMX_OCOTP is not set
96+
# end of Fusebox
97+
98+
#
99+
# GPIO
100+
#
101+
CONFIG_DRIVERS_IMX_GPIO=y
102+
# end of GPIO
103+
104+
#
105+
# Memory Controller Drivers
106+
#
107+
# CONFIG_IMX_FLEXSPI is not set
108+
# end of Memory Controller Drivers
109+
110+
#
111+
# MMC Host drivers
112+
#
113+
CONFIG_MMC_CORE=y
114+
# CONFIG_MMC_CORE_DEBUG_CMDS is not set
115+
# CONFIG_MMC_CORE_DEBUG_IOS is not set
116+
# CONFIG_MMC_CORE_HS200_TUNE is not set
117+
# CONFIG_MMC_CORE_OVERRIDE_BOOT_PART_SZ is not set
118+
CONFIG_IMX_USDHC=y
119+
# CONFIG_IMX_USDHC_XTRA_DEBUG is not set
120+
# end of MMC Host drivers
121+
122+
#
123+
# Partition table drivers
124+
#
125+
CONFIG_PARTITION_GPT=y
126+
# CONFIG_PARTITION_STATIC is not set
127+
# end of Partition table drivers
128+
129+
#
130+
# Timers
131+
#
132+
CONFIG_DRIVERS_IMX_GPT=y
133+
# end of Timers
134+
135+
#
136+
# Uart
137+
#
138+
CONFIG_DRIVERS_IMX_LPUART=y
139+
# CONFIG_DRIVERS_IMX_UART is not set
140+
# end of Uart
141+
142+
#
143+
# USB
144+
#
145+
CONFIG_DRIVER_USB_DEVICE=y
146+
CONFIG_DRIVER_IMX_USB2_PHY=y
147+
CONFIG_DRIVER_IMX_CI_UDC=y
148+
CONFIG_DRIVER_IMX_USBDCD=y
149+
# CONFIG_DRIVER_IMX_CDNS3_UDC is not set
150+
# CONFIG_DRIVER_IMX_DWC3_UDC is not set
151+
# CONFIG_DRIVER_IMX8M_PHY is not set
152+
CONFIG_DRIVER_USB_PB_CLS=y
153+
# end of USB
154+
155+
#
156+
# Virtio
157+
#
158+
# CONFIG_DRIVER_VIRTIO_BLOCK is not set
159+
# CONFIG_DRIVER_VIRTIO_SERIAL is not set
160+
# end of Virtio
161+
162+
#
163+
# Watchdog
164+
#
165+
# CONFIG_DRIVERS_IMX_WDOG is not set
166+
# end of Watchdog
167+
# end of Drivers
168+
169+
#
170+
# Command mode
171+
#
172+
CONFIG_CM=y
173+
CONFIG_CM_BUF_SIZE_KiB=4096
174+
CONFIG_CM_TRANSPORT_READY_TIMEOUT=10
175+
CONFIG_CM_AUTH=y
176+
CONFIG_CM_AUTH_TOKEN=y
177+
CONFIG_CM_AUTH_PASSWORD=y
178+
# end of Command mode
179+
180+
#
181+
# Library
182+
#
183+
CONFIG_LIB_ZLIB_CRC=y
184+
CONFIG_LIB_BPAK=y
185+
CONFIG_LIB_DER_HELPERS=y
186+
CONFIG_LIB_FDT=y
187+
CONFIG_LIB_UUID=y
188+
CONFIG_LIB_UUID3=y
189+
CONFIG_LIB_XLAT_TBLS=y
190+
CONFIG_LIB_XLAT_TBLS_ARMV8=y
191+
# end of Library

configs/imx8qxmek_defconfig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ CONFIG_ARMV8_EL3=y
77
# Platform support
88
#
99
CONFIG_SOC_FAMILY_IMX=y
10+
CONFIG_PLAT_IMX8X_COMMON=y
1011
CONFIG_PLAT_IMX8X=y
12+
# CONFIG_PLAT_IMX8XL is not set
1113
# CONFIG_PLAT_IMX8M is not set
1214

1315
#
@@ -17,10 +19,6 @@ CONFIG_PLAT_IMX8X=y
1719
#
1820
# imx8x configuration
1921
#
20-
CONFIG_IMX8X_CONSOLE_UART0=y
21-
# CONFIG_IMX8X_CONSOLE_UART1 is not set
22-
# CONFIG_IMX8X_CONSOLE_UART2 is not set
23-
CONFIG_IMX8X_CONSOLE_BAUDRATE=115200
2422
CONFIG_IMX8X_FUSE_DRY_RUN=y
2523
# end of imx8x configuration
2624

configs/test_defconfig

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# CONFIG_ARCH_ARMV8 is not set
22
CONFIG_ARCH_ARMV7=y
3+
# CONFIG_ARCH_ARMV7M is not set
34

45
#
56
# Platform support
@@ -33,6 +34,8 @@ CONFIG_CRYPTO_MAX_DSA_OPS=1
3334
CONFIG_BIO_CORE=y
3435
CONFIG_BIO_MAX_DEVS=32
3536
CONFIG_SELF_TEST=y
37+
CONFIG_EXECUTE_IN_RAM=y
38+
# CONFIG_EXECUTE_IN_FLASH is not set
3639
# end of Generic options
3740

3841
#
@@ -42,6 +45,7 @@ CONFIG_OPTIMIZE="2"
4245
CONFIG_DEBUG_SYMBOLS=y
4346
CONFIG_STACK_USAGE=y
4447
CONFIG_STACK_SIZE_KiB=16
48+
CONFIG_LINK_FILE="src/link.lds"
4549
# end of Build configuration
4650

4751
#
@@ -51,7 +55,8 @@ CONFIG_BOOT_CORE=y
5155
CONFIG_BOOT_BPAK_IMAGE_HELPERS=y
5256
CONFIG_BOOT_AB_DRIVER=y
5357
CONFIG_BOOT_LINUX=y
54-
CONFIG_BOOT_LOAD_CHUNK_KiB=4096
58+
# CONFIG_BOOT_ARMV7M_BAREMETAL is not set
59+
CONFIG_BOOT_LOAD_CHUNK_kB=4096
5560
# end of Boot
5661

5762
#
@@ -70,6 +75,12 @@ CONFIG_MBEDTLS_ECDSA=y
7075
CONFIG_MBEDTLS_STRERROR=y
7176
# end of Crypto
7277

78+
#
79+
# Filesystem
80+
#
81+
# CONFIG_LITTLE_FS is not set
82+
# end of Filesystem
83+
7384
#
7485
# Fusebox
7586
#
@@ -81,6 +92,11 @@ CONFIG_DRIVERS_FUSE_TEST=y
8192
#
8293
# end of GPIO
8394

95+
#
96+
# Memory Controller Drivers
97+
#
98+
# end of Memory Controller Drivers
99+
84100
#
85101
# MMC Host drivers
86102
#
@@ -91,6 +107,7 @@ CONFIG_DRIVERS_FUSE_TEST=y
91107
# Partition table drivers
92108
#
93109
CONFIG_PARTITION_GPT=y
110+
# CONFIG_PARTITION_STATIC is not set
94111
# end of Partition table drivers
95112

96113
#

0 commit comments

Comments
 (0)