{"id":13567132,"url":"https://github.com/OpenIPC/burn","last_synced_at":"2025-04-04T01:31:05.144Z","repository":{"id":46227670,"uuid":"248440686","full_name":"OpenIPC/burn","owner":"OpenIPC","description":"OpenSource tool to unbrick HiSilicon and Goke devices","archived":false,"fork":false,"pushed_at":"2024-10-15T13:24:03.000Z","size":345,"stargazers_count":36,"open_issues_count":5,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T18:48:01.004Z","etag":null,"topics":["burn","openipc"],"latest_commit_sha":null,"homepage":"https://openipc.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenIPC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"openipc"}},"created_at":"2020-03-19T07:43:50.000Z","updated_at":"2024-10-15T13:34:55.000Z","dependencies_parsed_at":"2022-09-01T23:21:32.445Z","dependency_job_id":"45c3257f-1c84-4a99-938d-8100d5fe23d4","html_url":"https://github.com/OpenIPC/burn","commit_stats":{"total_commits":38,"total_committers":11,"mean_commits":"3.4545454545454546","dds":0.736842105263158,"last_synced_commit":"0c453b0c74466338e6f98c1efa59fba761bba5a9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenIPC%2Fburn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenIPC%2Fburn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenIPC%2Fburn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenIPC%2Fburn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenIPC","download_url":"https://codeload.github.com/OpenIPC/burn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107816,"owners_count":20884793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["burn","openipc"],"created_at":"2024-08-01T13:02:24.494Z","updated_at":"2025-04-04T01:31:02.970Z","avatar_url":"https://github.com/OpenIPC.png","language":"Python","readme":"# Burn\n\n## Video Tutorials\n![YoutubeScreenshot](https://github.com/OpenIPC/burn/assets/37488/7c19fd75-1806-40c3-901e-ff087f5e35e4)\n\n[OpenIPC BURN Utility Playlist][youtube_burn]\n\n## Archive of current bootloaders for devices\n\n**Please use only this [Archive of current bootloaders for devices][uboot_archive] !!!**\n\n## Features of use in MacOS\n\n**Attention !** There are some problems with using Burn in MacOS and you can participate in the [discussion](https://github.com/OpenIPC/burn/issues/16)\n\n## Basic usage\n\n```console\nusage: burn [-h] -c\n                   {hi3516ev200,hi3520dv100,hi3518ev200,hi3516ev100,hi3518ev201,gk7205v300,hi3516ev300,hi3520dv200,hi3516cv500,hi3556v100,hi3516cv200,hi3516cv300,gk7205v200}\n                   -f FILE [-p PORT] [-b] [-d]\n\noptions:\n  -h, --help            show this help message and exit\n  -c {hi3516ev200,hi3520dv100,hi3518ev200,hi3516ev100,hi3518ev201,gk7205v300,hi3516ev300,hi3520dv200,hi3516cv500,hi3556v100,hi3516cv200,hi3516cv300,gk7205v200}, --chip {hi3516ev200,hi3520dv100,hi3518ev200,hi3516ev100,hi3518ev201,gk7205v300,hi3516ev300,hi3520dv200,hi3516cv500,hi3556v100,hi3516cv200,hi3516cv300,gk7205v200}\n                        Chip model name\n  -f FILE, --file FILE  U-Boot binary file to upload\n  -p PORT, --port PORT  Serial port device name\n  -b, --break           Send Ctrl-C just after upload\n  -d, --debug           Set debug mode\n```\n\nIf burn complains about **missing python modules**, you should install the list of modules by running:\n\n```\npip install -r requirements.txt\n```\n\n### HI3516CV300\n\nDownload [general\nversion](https://github.com/OpenIPC/firmware/releases/download/latest/u-boot-hi3516cv300-universal.bin)\nof U-Boot.\n\n```\n./burn --chip hi3516cv300 --file=u-boot-hi3516cv300-universal.bin --break; screen -L /dev/ttyUSB0 115200\n```\n\n### Hi3516EV300\n\nDownload [general\nversion](https://github.com/OpenIPC/firmware/releases/download/latest/u-boot-hi3516ev300-universal.bin)\nof U-Boot.\n\n```console\n$ ./burn --chip hi3516ev300 --file=u-boot-hi3516ev300-universal.bin --break; screen -L /dev/ttyUSB0 115200\n```\n\n### Unlock flash on gk7205v200 and gk7205v210\n\n```console\n$ ./burn --chip gk7205v200 --file=u-boot/gk7205v200.bin --break; screen -L /dev/ttyUSB0 115200\ngoke # sf probe\n@do_spi_flash_probe() flash-\u003eerase_size: 65536, flash-\u003esector_size: 0\ngoke # sf lock 0\nunlock all block.\n```\n\n### Unlock flash on gk7205v300\n\n```console\n$ ./burn --chip gk7205v300 --file=u-boot/gk7205v300.bin --break; screen -L /dev/ttyUSB0 115200\ngoke # sf probe\n@do_spi_flash_probe() flash-\u003eerase_size: 65536, flash-\u003esector_size: 0\ngoke # sf lock 0\nunlock all block.\n```\n\n### Start kernel from memory\n\n```console\nsetenv ipaddr 192.168.1.1; setenv serverip 192.168.1.10; mw.b 0x42000000 ff 1000000; tftpboot 0x42000000 uImage.${soc}; bootm 0x42000000\n```\n\n## U-Boot continuous integration\n\nReal world example on U-Boot developing for CV300 board:\n\n```bash\nset -e\n\n# In case of buggy USB UART adapter\nsudo usbreset /dev/bus/usb/005/007\n\n# In U-Boot directory:\nmake ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- -j$(nproc)\ncp u-boot.bin full-boot.bin\ncp reg_info_hi3516cv300.bin ./hi3516cv300.reg\nmake CPU=hi3516cv300 ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- mini-boot.bin\n\n#./mkboot.sh reg_info_hi3516cv300.bin u-boot-ok.bin\ncp mini-boot.bin ~/git/burn\n\ncd ~/git/burn\n# Custom script to power reset camera via network switch\n./restart_eth4.sh\n./burn --chip hi3516cv300 --file=mini-boot.bin\nscreen /dev/ttyUSB0 115200\n```\n\n[youtube_burn]: https://youtube.com/playlist?list=PLh0sgk8j8CfsMPq9OraSt5dobTIe8NXmw\n[uboot_archive]: https://github.com/OpenIPC/firmware/releases/tag/latest\n","funding_links":["https://opencollective.com/openipc"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenIPC%2Fburn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOpenIPC%2Fburn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenIPC%2Fburn/lists"}