This repository was archived by the owner on Jan 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
S32g3 #644
Merged
Merged
S32g3 #644
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ef72487
add NXP S32G-VND-RDB3 flasher
michalskrivanek 2a5973d
bump kernel-automotive and rename
michalskrivanek 5c37cee
switch kernel from buildroot to Fedora 42
michalskrivanek 93b67ef
switch compression to LZ4
michalskrivanek 3ceb233
extract subimages manually on TI
michalskrivanek d400a67
forcefully load micrel driver on NXPS32G
michalskrivanek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...oci_bundles/aarch64-itb/replace_kernel.sh → ..._bundles/aarch64-itb/kernel_automotive.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
packages/jumpstarter-driver-flashers/oci_bundles/aarch64-itb/kernel_fedora.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| #!/bin/bash | ||
|
|
||
| KMOD=( | ||
| # S32G3 storage | ||
| sdhci_esdhc_imx | ||
| mmc_block | ||
| # S32G3 networking | ||
| dwmac_s32 | ||
| micrel | ||
| # TI storage | ||
| sdhci_am654 | ||
| mmc_block | ||
| # TI networking | ||
| phy_gmii_sel | ||
| syscon_clk | ||
| dp83867 | ||
| reset_ti_sci | ||
| davinci_mdio | ||
| am65_cpts | ||
| gpio_davinci | ||
| k3_udma | ||
| rti_wdt | ||
| i2c_omap | ||
| i2c_mux_pca954x | ||
| irq_ti_sci_intr | ||
| omap_mailbox | ||
| omap_hwspinlock | ||
| phy_j721e_wiz | ||
| ti_k3_r5_remoteproc | ||
| ti_k3_dsp_remoteproc | ||
| k3_j72xx_bandgap | ||
| pinctrl_tps6594 | ||
| tps6594_pfsm | ||
| tps6594_i2c | ||
| tps6594_regulator | ||
| rtc_tps6594 | ||
| phy_cadence_torrent | ||
| mux_core | ||
| mux_gpio | ||
| mux_mmio | ||
| virtio_rpmsg_bus | ||
| rpmsg_ctrl | ||
| irq_ti_sci_inta | ||
| optee | ||
| omap_rng | ||
| optee_rng | ||
| ti_am65_cpsw_nuss | ||
| ) | ||
|
|
||
| [ $# -ne 1 ] && { echo "$0 [target_overlay_dir]"; exit 1; } | ||
| ODIR=$1 | ||
| mkdir -p ./kernel-fedora | ||
| pushd ./kernel-fedora | ||
|
|
||
| KVER=$(rpm -q kernel | head -1 | cut -d - -f 2,3) | ||
| if [ "$(uname -m)" != "aarch64" ]; then | ||
| echo "ERROR: kernel_fedora.sh must run in an aarch64 container" | ||
| exit 1 | ||
| fi | ||
| unzboot /usr/lib/modules/$KVER/vmlinuz vmlinuz | ||
| lz4 -f -12 vmlinuz vmlinuz.lz4 | ||
| ln -sfn /lib/modules/$KVER/dtb dtb | ||
| echo "building required modules list ..." | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| for mod in ${KMOD[@]}; do | ||
| modprobe -S $KVER --show-depends $mod | ||
| done | sed "s|^builtin|# builtin|; s|\\.ko\\.xz|.ko|" > modlist | ||
|
|
||
| popd | ||
|
|
||
| echo "installing modules into overlay dir ..." | ||
| mkdir -p $ODIR/etc/init.d || exit 1 | ||
| sed -nr 's|^insmod ||p' < ./kernel-fedora/modlist | while read mod; do | ||
| echo $mod | ||
| mkdir -p "$ODIR$(dirname $mod)" | ||
| xz -dc "$mod.xz" > "$ODIR$mod" | ||
| done | ||
|
|
||
| echo "updating module deps ..." | ||
| depmod --errsyms --filesyms /lib/modules/$KVER/System.map --basedir $1 $KVER | ||
|
|
||
| echo "adding modules start-up script to overlay ..." | ||
| script=$ODIR/etc/init.d/S01modules | ||
| cat >$script <<EOF | ||
| #!/bin/sh | ||
|
|
||
| if [ "\$1" = "start" ]; then | ||
| if dmesg | head | grep -i S32G-VNP-RDB3; then | ||
| modprobe micrel | ||
| fi | ||
| fi | ||
| EOF | ||
| chmod +x $script | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.