From 1b014634365edbde950dedfbf9c6f75848f84606 Mon Sep 17 00:00:00 2001 From: Igor Zalatov <zigfisher@yandex.com> Date: Thu, 21 Sep 2023 21:41:25 +0300 Subject: [PATCH] Update faq.md --- en/faq.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/en/faq.md b/en/faq.md index f2be13e..4662d1e 100644 --- a/en/faq.md +++ b/en/faq.md @@ -98,6 +98,32 @@ on the camera afterwards. If you need to know what is in the command, search for `ipctool` in the `/etc/profile` file. +### How to replace the bootloader from Linux? A dangerous operation for dummies! + +Commands are executed separately by each line with a wait for the end of execution. +The full name of the replacement bootloader and its availability can be checked [here][3] + +Before running the commands, don't forget to enter the correct bootloader name! + +``` +export LOADER=u-boot-SOC-TYPE.bin +curl -k -L -o /tmp/${LOADER} https://github.com/OpenIPC/firmware/releases/download/latest/${LOADER} +flashcp -v /tmp/${LOADER} /dev/mtd0 +flash_eraseall /dev/mtd1 +``` + +### How to update the ancient as shit OpenIPC firmware ? + +Commands are executed separately by each line with a wait for the end of execution. +The first command updates a utility whose algorithm was changed in February 2023. +If you need to update the utility on T31 processors, please add the -mips suffix to the URL of the downloaded utility. +The second command updates the firmware components themselves. + +``` +curl -L -o /tmp/ipcinfo https://github.com/OpenIPC/ipctool/releases/download/latest/ipcinfo && chmod +x /tmp/ipcinfo; /tmp/ipcinfo -csF +curl -s https://raw.githubusercontent.com/OpenIPC/firmware/master/general/overlay/usr/sbin/sysupgrade | sh -s -- -k -r -n +``` + ### How to dump full firmware to an NFS share This could work if you are lucky, you gained access into Linux shell on stock @@ -227,3 +253,4 @@ scp -O ~/myfile root@192.168.1.65:/tmp/ [1]: https://openipc.org/wiki/en/gpio-settings.html [2]: https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool +[3]: https://github.com/OpenIPC/firmware/releases/tag/latest