1
0
mirror of https://github.com/NextThingCo/CHIP-tools-backup synced 2025-07-18 00:43:22 +00:00

initial commit

This commit is contained in:
Wans Hurst
2018-10-06 12:16:03 +02:00
commit 85a0746ab4
12 changed files with 1447 additions and 0 deletions

31
chip-fel-upload.sh Executable file
View File

@ -0,0 +1,31 @@
#! /bin/bash
SPL=$1
UBOOT=$2
KERNEL=$3
DTB=$4
INITRD=$5
SCRIPT=$6
echo == upload the SPL to SRAM and execute it ==
fel spl $SPL
sleep 1 # wait for DRAM initialization to complete
echo == upload the main u-boot binary to DRAM ==
fel write 0x4a000000 $UBOOT
echo == upload the kernel ==
fel write 0x42000000 $KERNEL
echo == upload the DTB file ==
fel write 0x43000000 $DTB
echo == upload the boot.scr file ==
fel write 0x43100000 $SCRIPT
echo == upload the initramfs file ==
fel write 0x43300000 $INITRD
echo == execute the main u-boot binary ==
fel exe 0x4a000000