Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # FIP taken from https://github.com/hardkernel/u-boot/archive/odroidc2-v2015.01.tar.gz
- FIPDIR="fip"
- DEV="/dev/disk/by-id/usb-TS-RDF5_SD_Transcend_000000000037-0:0"
- if [ ! -L "$DEV" ]; then
- echo "Device $DEV not present"
- exit
- fi
- make -j12
- ${FIPDIR}/fip_create --bl30 ${FIPDIR}/gxb/bl30.bin \
- --bl301 ${FIPDIR}/gxb/bl301.bin \
- --bl31 ${FIPDIR}/gxb/bl31.bin \
- --bl33 u-boot.bin \
- fip.bin
- ${FIPDIR}/fip_create --dump fip.bin
- cat ${FIPDIR}/gxb/bl2.package fip.bin > boot_new.bin
- ${FIPDIR}/gxb/aml_encrypt_gxb --bootsig \
- --input boot_new.bin \
- --output u-boot.img
- sudo dd if=${FIPDIR}/bl1.bin.hardkernel of=$DEV conv=fsync,notrunc bs=1 count=442
- sudo dd if=${FIPDIR}/bl1.bin.hardkernel of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1
- sudo dd if=u-boot.img of=$DEV conv=fsync,notrunc bs=512 skip=96 seek=97
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement