Shofel payloader source & prebuild for jib with some old payloads i had made
these payloads may not work , i have no clue honestly i attached them , also there are 2 helper py scripts that might work with some of these payloads
This commit is contained in:
28
Shofel4Jibo/memloader/mm/sample/uboot/BUILD.txt
Normal file
28
Shofel4Jibo/memloader/mm/sample/uboot/BUILD.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
U-Boot source from https://github.com/fail0verflow/switch-u-boot.git (at the time, commit a2d885d448eacb72085f262f9b28951384a8e678 was the latest, which was used)
|
||||
After the clone, the following changes were made before build:
|
||||
In arch/arm/dts/tegra210-nintendo-switch.dts: max-frequency = <200000000>; was added to the end of sdhci@700b0000 and sdhci@700b0600 sections (for stability)
|
||||
After make nintendo-switch_defconfig, the resulting .config file was edited to have CONFIG_BOOTDELAY=0 , CONFIG_USE_BOOTCOMMAND=y and CONFIG_BOOTCOMMAND="source 80100000"
|
||||
For compatibility/driver reasons, .config file was edited again to have CONFIG_USB_GADGET_VENDOR_NUM=0x10C4 and CONFIG_USB_GADGET_PRODUCT_NUM=0x8B01
|
||||
In make menuconfig, the following options were unselected to prevent partition/filesystem scanning (which adds delays and can fail) before the bootcommand is executed:
|
||||
General setup:
|
||||
Uncheck "Select defaults suitable for booting general purpose Linux distributions"
|
||||
Command line interface -> Device access commands:
|
||||
Uncheck "part"
|
||||
Command line interface -> Filesystem commands:
|
||||
Uncheck "ext2 commmand support"
|
||||
Uncheck "ext4 commmand support"
|
||||
Uncheck "FAT command support"
|
||||
Uncheck "filesystem commands"
|
||||
Partition types:
|
||||
Uncheck "Enable MS Dos partition table"
|
||||
Uncheck "Enable ISO partition table"
|
||||
Uncheck "Enable EFI GPT partition table"
|
||||
File systems:
|
||||
Uncheck "Enable FAT filesystem support"
|
||||
Then a make was issued which built the u-boot.elf, included in this binary release
|
||||
|
||||
The *.scr.img files were built with the following commands:
|
||||
./tools/mkimage -A arm64 -T script -C none -n "eMMC ums mode" -d ums_emmc.scr ums_emmc.scr.img
|
||||
./tools/mkimage -A arm64 -T script -C none -n "eMMC boot0 ums mode" -d ums_emmc_boot0.scr ums_emmc_boot0.scr.img
|
||||
./tools/mkimage -A arm64 -T script -C none -n "eMMC boot1 ums mode" -d ums_emmc_boot1.scr ums_emmc_boot1.scr.img
|
||||
./tools/mkimage -A arm64 -T script -C none -n "sd ums mode" -d ums_sd.scr ums_sd.scr.img
|
||||
1
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc.scr
Normal file
1
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc.scr
Normal file
@@ -0,0 +1 @@
|
||||
ums 1 mmc 0.0
|
||||
BIN
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc.scr.img
Normal file
BIN
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc.scr.img
Normal file
Binary file not shown.
1
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc_boot0.scr
Normal file
1
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc_boot0.scr
Normal file
@@ -0,0 +1 @@
|
||||
ums 1 mmc 0.1
|
||||
BIN
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc_boot0.scr.img
Normal file
BIN
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc_boot0.scr.img
Normal file
Binary file not shown.
1
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc_boot1.scr
Normal file
1
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc_boot1.scr
Normal file
@@ -0,0 +1 @@
|
||||
ums 1 mmc 0.2
|
||||
BIN
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc_boot1.scr.img
Normal file
BIN
Shofel4Jibo/memloader/mm/sample/uboot/ums_emmc_boot1.scr.img
Normal file
Binary file not shown.
2
Shofel4Jibo/memloader/mm/sample/uboot/ums_sd.scr
Normal file
2
Shofel4Jibo/memloader/mm/sample/uboot/ums_sd.scr
Normal file
@@ -0,0 +1,2 @@
|
||||
ums 1 mmc 1
|
||||
|
||||
BIN
Shofel4Jibo/memloader/mm/sample/uboot/ums_sd.scr.img
Normal file
BIN
Shofel4Jibo/memloader/mm/sample/uboot/ums_sd.scr.img
Normal file
Binary file not shown.
14
Shofel4Jibo/memloader/mm/sample/ums_boot0.ini
Normal file
14
Shofel4Jibo/memloader/mm/sample/ums_boot0.ini
Normal file
@@ -0,0 +1,14 @@
|
||||
[load:PH_0]
|
||||
if=uboot/u-boot.elf
|
||||
skip=0x00010000
|
||||
count=0x0006e13f
|
||||
dst=0x80110000
|
||||
|
||||
[load:script]
|
||||
if=uboot/ums_emmc_boot0.scr.img
|
||||
dst=0x80100000
|
||||
|
||||
[boot:ENTRY]
|
||||
pc=0x80110000
|
||||
maxMemoryFreq=200
|
||||
pwroffHoldTime=4
|
||||
14
Shofel4Jibo/memloader/mm/sample/ums_boot1.ini
Normal file
14
Shofel4Jibo/memloader/mm/sample/ums_boot1.ini
Normal file
@@ -0,0 +1,14 @@
|
||||
[load:PH_0]
|
||||
if=uboot/u-boot.elf
|
||||
skip=0x00010000
|
||||
count=0x0006e13f
|
||||
dst=0x80110000
|
||||
|
||||
[load:script]
|
||||
if=uboot/ums_emmc_boot1.scr.img
|
||||
dst=0x80100000
|
||||
|
||||
[boot:ENTRY]
|
||||
pc=0x80110000
|
||||
maxMemoryFreq=-1600
|
||||
pwroffHoldTime=4
|
||||
13
Shofel4Jibo/memloader/mm/sample/ums_emmc.ini
Normal file
13
Shofel4Jibo/memloader/mm/sample/ums_emmc.ini
Normal file
@@ -0,0 +1,13 @@
|
||||
[load:PH_0]
|
||||
if=uboot/u-boot.elf
|
||||
skip=0x00010000
|
||||
count=0x0006e13f
|
||||
dst=0x80110000
|
||||
|
||||
[load:script]
|
||||
if=uboot/ums_emmc.scr.img
|
||||
dst=0x80100000
|
||||
|
||||
[boot:ENTRY]
|
||||
pc=0x80110000
|
||||
pwroffHoldTime=4
|
||||
13
Shofel4Jibo/memloader/mm/sample/ums_sd.ini
Normal file
13
Shofel4Jibo/memloader/mm/sample/ums_sd.ini
Normal file
@@ -0,0 +1,13 @@
|
||||
[load:PH_0]
|
||||
if=uboot/u-boot.elf
|
||||
skip=0x00010000
|
||||
count=0x0006e13f
|
||||
dst=0x80110000
|
||||
|
||||
[load:script]
|
||||
if=uboot/ums_sd.scr.img
|
||||
dst=0x80100000
|
||||
|
||||
[boot:ENTRY]
|
||||
pc=0x80110000
|
||||
pwroffHoldTime=4
|
||||
Reference in New Issue
Block a user