Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # This looks horrible af, i know. But hey, atleast it wörks! :D
- echo -e "\n\e[93m*** Numworks multiboot automation thingy by DSch *** \n"
- echo -e "\e[91mTHINGS TO NOTE:\e[39m"
- echo -e "Build qspi_loader and multiboot beforehand!"
- echo -e "run 'make epsilon.bin' to get the binfiles for extflash"
- echo -e "name files like this: 'xepsilon.bin' where x is the number for the firmware slot\n"
- echo -e "\e[94m[1] \e[39mInstalling Multiboot"
- echo -e "\e[36m[*] \e[91mConnect calculator and press reset."
- echo -e "\e[39mPress enter to continue"
- read -i ""
- cd ../multiboot
- make flash_multiboot
- cd ../tools
- echo -e "\e[36m[*] \e[91mmultiboot loaded onto device."
- echo -e "\e[94m[2] \e[39mRunning qspi_loader"
- #echo -e "\e[36m[*] \e[91mConnect calculator and press reset."
- echo -e "\e[39mPress enter to continue"
- read -i ""
- cd ../qspi_loader
- make run_qspi_loader
- cd ../tools
- echo -e "\e[36m[*] \e[91mqspi_loader is now in ram ;)"
- echo -e "\e[94m[3] \e[39mMaking extflash image"
- dd if=/dev/zero bs=8M count=1 | tr "\000" "\377" > flashme.bin
- dd if=1epsilon.bin of=flashme.bin bs=1M seek=4 conv=notrunc
- dd if=2epsilon.bin of=flashme.bin bs=1M seek=5 conv=notrunc
- dd if=3epsilon.bin of=flashme.bin bs=1M seek=6 conv=notrunc
- dd if=4epsilon.bin of=flashme.bin bs=1M seek=7 conv=notrunc
- echo -e "\n\e[36m[*] \e[39mDone :) | \e[91mPress enter to flash flashme.bin to the external flash.\e[39m"
- read -i ""
- flashrom -p serprog:dev=/dev/ttyACM0:115200 -w flashme.bin
- echo -e "\e[36m[*] \e[39mDone :)\n"
- echo -e "\e[91mPress [Reset], HOLD [Home] and Press [1] when the LED is Green\e[39m\n"
- echo -e "\e[39mPress enter to continue"
- read -i ""
- cd ../multiboot
- make run_multiboot
- cd ../tools
- echo -e "\n\e[39m\e[91mHOW TO START THE CALCULATOR:\n\e[96m[1]: \e[39mHold [Home]\n\e[96m[2]: \e[39mPress [RESET] on the calculator\n\e[96m[3]: \e[39mLed should light up in BLUE\n\e[96m[4]: \e[39mPress [1]-[4] to load the firmware.\n (!!!UNPLUG USB CABLE!!!)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement