{"action":"created","comment":{"url":"https://api.github.com/repos/openwrt/openwrt/pulls/comments/257523226","pull_request_review_id":204580195,"id":257523226,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NzUyMzIyNg==","diff_hunk":"@@ -0,0 +1,194 @@\n+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT\n+/dts-v1/;\n+\n+#include \"mt7621.dtsi\"\n+\n+#include <dt-bindings/gpio/gpio.h>\n+#include <dt-bindings/input/input.h>\n+\n+/ {\n+\tcompatible = \"xiaomi,mir3p\", \"mediatek,mt7621-soc\";\n+\tmodel = \"Xiaomi Mi Router 3 Pro\";\n+\n+\taliases {\n+\t\tled-boot = &led_status_blue;\n+\t\tled-failsafe = &led_status_blue;\n+\t\tled-running = &led_status_blue;\n+\t\tled-upgrade = &led_status_blue;\n+\t};\n+\tmemory@0 {\n+\t\tdevice_type = \"memory\";\n+\t\treg = <0x0 0x1c000000>, <0x20000000 0x04000000>;\n+\t};\n+\n+\tchosen {\n+\t\tbootargs = \"console=ttyS0,115200n8\";\n+\t};\n+\tgpio-leds {","path":"target/linux/ramips/dts/MIR3P.dts","position":27,"original_position":27,"commit_id":"db5a1e49d674200299fd21e19d4556d39ffc4d2e","original_commit_id":"db5a1e49d674200299fd21e19d4556d39ffc4d2e","user":{"login":"iscilyas","id":47330372,"node_id":"MDQ6VXNlcjQ3MzMwMzcy","avatar_url":"https://avatars3.githubusercontent.com/u/47330372?v=4","gravatar_id":"","url":"https://api.github.com/users/iscilyas","html_url":"https://github.com/iscilyas","followers_url":"https://api.github.com/users/iscilyas/followers","following_url":"https://api.github.com/users/iscilyas/following{/other_user}","gists_url":"https://api.github.com/users/iscilyas/gists{/gist_id}","starred_url":"https://api.github.com/users/iscilyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iscilyas/subscriptions","organizations_url":"https://api.github.com/users/iscilyas/orgs","repos_url":"https://api.github.com/users/iscilyas/repos","events_url":"https://api.github.com/users/iscilyas/events{/privacy}","received_events_url":"https://api.github.com/users/iscilyas/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2019-02-17T21:06:23Z","updated_at":"2019-02-17T21:06:23Z","html_url":"https://github.com/openwrt/openwrt/pull/1823#discussion_r257523226","pull_request_url":"https://api.github.com/repos/openwrt/openwrt/pulls/1823","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/openwrt/openwrt/pulls/comments/257523226"},"html":{"href":"https://github.com/openwrt/openwrt/pull/1823#discussion_r257523226"},"pull_request":{"href":"https://api.github.com/repos/openwrt/openwrt/pulls/1823"}},"in_reply_to_id":257512670},"pull_request":{"url":"https://api.github.com/repos/openwrt/openwrt/pulls/1823","id":253073137,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUzMDczMTM3","html_url":"https://github.com/openwrt/openwrt/pull/1823","diff_url":"https://github.com/openwrt/openwrt/pull/1823.diff","patch_url":"https://github.com/openwrt/openwrt/pull/1823.patch","issue_url":"https://api.github.com/repos/openwrt/openwrt/issues/1823","number":1823,"state":"open","locked":false,"title":"ramips: add support for Xiaomi Mi Router 3 Pro","user":{"login":"iscilyas","id":47330372,"node_id":"MDQ6VXNlcjQ3MzMwMzcy","avatar_url":"https://avatars3.githubusercontent.com/u/47330372?v=4","gravatar_id":"","url":"https://api.github.com/users/iscilyas","html_url":"https://github.com/iscilyas","followers_url":"https://api.github.com/users/iscilyas/followers","following_url":"https://api.github.com/users/iscilyas/following{/other_user}","gists_url":"https://api.github.com/users/iscilyas/gists{/gist_id}","starred_url":"https://api.github.com/users/iscilyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iscilyas/subscriptions","organizations_url":"https://api.github.com/users/iscilyas/orgs","repos_url":"https://api.github.com/users/iscilyas/repos","events_url":"https://api.github.com/users/iscilyas/events{/privacy}","received_events_url":"https://api.github.com/users/iscilyas/received_events","type":"User","site_admin":false},"body":"Hardware:\r\n\r\nCPU:   MediaTek MT7621 (2x800MHz)\r\nRAM:   512MB DDR3\r\nFLASH: 256MB NAND\r\nWiFi:  2.4GHz 4x4 MT7615 b/g/n\r\nWiFI:  5GHz 4x4 MT7615 a/n/ac\r\nUSB:   1x 3.0\r\nETH:   1x WAN 10/100/1000 3x LAN 10/100/1000\r\nLED:   Power/Status\r\nBTN:   RESET\r\nUART:  115200 8n1\r\n\r\nInstallation:\r\n\r\nStock Xiaomi firmware has the MTD split into (among others)\r\n\r\n- kernel0\r\n- kernel1 (4MB)\r\n- rootfs0\r\n- rootfs1\r\n- overlay (ubi)\r\n\r\nSimilar to the Xiaomi MIR3G, we keep stock Xiaomi firmware in\r\nkernel0 for ease of recovery, and install OpenWRT into kernel1 and\r\nafter.\r\n\r\nThe installation file for OpenWRT is a *squashfs-factory.bin file that\r\ncontains the kernel and a ubi partition. This is flashed as follows:\r\n\r\nnvram set flag_try_sys1_failed=1\r\nnvram set flag_try_sys2_failed=0\r\nnvram commit\r\ndd if=factory.bin bs=1M count=4 | mtd write - kernel1\r\ndd if=factory.bin bs=1M skip=4 | mtd write - rootfs0\r\nreboot\r\n\r\nReverting to stock:\r\n\r\nThe part of stock firmware we've kept in kernel0 allows us to run stock\r\nrecovery, which will re-flash stock firmware from a *.bin file on a USB.\r\n\r\nFor this we do the following:\r\n\r\nfw_setenv flag_try_sys1_failed 0\r\nfw_setenv flag_try_sys2_failed 1\r\nreboot\r\n\r\nAfter reboot the LED status light will blink red, at which point pressing\r\nthe 'reset' button will cause stock firmware to be installed from USB.\r\n\r\nSigned-off-by: Ozgur Can Leonard <ozgurcan@gmail.com>\r\n","created_at":"2019-02-14T13:32:37Z","updated_at":"2019-02-17T21:06:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79fe92e0b593e75cc3e60965ed84267b03aa3f6e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":793819876,"node_id":"MDU6TGFiZWw3OTM4MTk4NzY=","url":"https://api.github.com/repos/openwrt/openwrt/labels/target/ramips","name":"target/ramips","color":"0043e4","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openwrt/openwrt/pulls/1823/commits","review_comments_url":"https://api.github.com/repos/openwrt/openwrt/pulls/1823/comments","review_comment_url":"https://api.github.com/repos/openwrt/openwrt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openwrt/openwrt/issues/1823/comments","statuses_url":"https://api.github.com/repos/openwrt/openwrt/statuses/db5a1e49d674200299fd21e19d4556d39ffc4d2e","head":{"label":"iscilyas:openwrt-push","ref":"openwrt-push","sha":"db5a1e49d674200299fd21e19d4556d39ffc4d2e","user":{"login":"iscilyas","id":47330372,"node_id":"MDQ6VXNlcjQ3MzMwMzcy","avatar_url":"https://avatars3.githubusercontent.com/u/47330372?v=4","gravatar_id":"","url":"https://api.github.com/users/iscilyas","html_url":"https://github.com/iscilyas","followers_url":"https://api.github.com/users/iscilyas/followers","following_url":"https://api.github.com/users/iscilyas/following{/other_user}","gists_url":"https://api.github.com/users/iscilyas/gists{/gist_id}","starred_url":"https://api.github.com/users/iscilyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iscilyas/subscriptions","organizations_url":"https://api.github.com/users/iscilyas/orgs","repos_url":"https://api.github.com/users/iscilyas/repos","events_url":"https://api.github.com/users/iscilyas/events{/privacy}","received_events_url":"https://api.github.com/users/iscilyas/received_events","type":"User","site_admin":false},"repo":{"id":170694545,"node_id":"MDEwOlJlcG9zaXRvcnkxNzA2OTQ1NDU=","name":"openwrt","full_name":"iscilyas/openwrt","private":false,"owner":{"login":"iscilyas","id":47330372,"node_id":"MDQ6VXNlcjQ3MzMwMzcy","avatar_url":"https://avatars3.githubusercontent.com/u/47330372?v=4","gravatar_id":"","url":"https://api.github.com/users/iscilyas","html_url":"https://github.com/iscilyas","followers_url":"https://api.github.com/users/iscilyas/followers","following_url":"https://api.github.com/users/iscilyas/following{/other_user}","gists_url":"https://api.github.com/users/iscilyas/gists{/gist_id}","starred_url":"https://api.github.com/users/iscilyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iscilyas/subscriptions","organizations_url":"https://api.github.com/users/iscilyas/orgs","repos_url":"https://api.github.com/users/iscilyas/repos","events_url":"https://api.github.com/users/iscilyas/events{/privacy}","received_events_url":"https://api.github.com/users/iscilyas/received_events","type":"User","site_admin":false},"html_url":"https://github.com/iscilyas/openwrt","description":"This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins or for reporting issues.  We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git. All issues should be reported at: https://bugs.openwrt.org","fork":true,"url":"https://api.github.com/repos/iscilyas/openwrt","forks_url":"https://api.github.com/repos/iscilyas/openwrt/forks","keys_url":"https://api.github.com/repos/iscilyas/openwrt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iscilyas/openwrt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iscilyas/openwrt/teams","hooks_url":"https://api.github.com/repos/iscilyas/openwrt/hooks","issue_events_url":"https://api.github.com/repos/iscilyas/openwrt/issues/events{/number}","events_url":"https://api.github.com/repos/iscilyas/openwrt/events","assignees_url":"https://api.github.com/repos/iscilyas/openwrt/assignees{/user}","branches_url":"https://api.github.com/repos/iscilyas/openwrt/branches{/branch}","tags_url":"https://api.github.com/repos/iscilyas/openwrt/tags","blobs_url":"https://api.github.com/repos/iscilyas/openwrt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iscilyas/openwrt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iscilyas/openwrt/git/refs{/sha}","trees_url":"https://api.github.com/repos/iscilyas/openwrt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iscilyas/openwrt/statuses/{sha}","languages_url":"https://api.github.com/repos/iscilyas/openwrt/languages","stargazers_url":"https://api.github.com/repos/iscilyas/openwrt/stargazers","contributors_url":"https://api.github.com/repos/iscilyas/openwrt/contributors","subscribers_url":"https://api.github.com/repos/iscilyas/openwrt/subscribers","subscription_url":"https://api.github.com/repos/iscilyas/openwrt/subscription","commits_url":"https://api.github.com/repos/iscilyas/openwrt/commits{/sha}","git_commits_url":"https://api.github.com/repos/iscilyas/openwrt/git/commits{/sha}","comments_url":"https://api.github.com/repos/iscilyas/openwrt/comments{/number}","issue_comment_url":"https://api.github.com/repos/iscilyas/openwrt/issues/comments{/number}","contents_url":"https://api.github.com/repos/iscilyas/openwrt/contents/{+path}","compare_url":"https://api.github.com/repos/iscilyas/openwrt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iscilyas/openwrt/merges","archive_url":"https://api.github.com/repos/iscilyas/openwrt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iscilyas/openwrt/downloads","issues_url":"https://api.github.com/repos/iscilyas/openwrt/issues{/number}","pulls_url":"https://api.github.com/repos/iscilyas/openwrt/pulls{/number}","milestones_url":"https://api.github.com/repos/iscilyas/openwrt/milestones{/number}","notifications_url":"https://api.github.com/repos/iscilyas/openwrt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iscilyas/openwrt/labels{/name}","releases_url":"https://api.github.com/repos/iscilyas/openwrt/releases{/id}","deployments_url":"https://api.github.com/repos/iscilyas/openwrt/deployments","created_at":"2019-02-14T13:21:26Z","updated_at":"2019-02-14T13:30:23Z","pushed_at":"2019-02-14T13:30:21Z","git_url":"git://github.com/iscilyas/openwrt.git","ssh_url":"git@github.com:iscilyas/openwrt.git","clone_url":"https://github.com/iscilyas/openwrt.git","svn_url":"https://github.com/iscilyas/openwrt","homepage":"","size":161273,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openwrt:master","ref":"master","sha":"880f8e6d32871ade7d2bb2ec541eea113183e9a9","user":{"login":"openwrt","id":2528830,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1Mjg4MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/2528830?v=4","gravatar_id":"","url":"https://api.github.com/users/openwrt","html_url":"https://github.com/openwrt","followers_url":"https://api.github.com/users/openwrt/followers","following_url":"https://api.github.com/users/openwrt/following{/other_user}","gists_url":"https://api.github.com/users/openwrt/gists{/gist_id}","starred_url":"https://api.github.com/users/openwrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwrt/subscriptions","organizations_url":"https://api.github.com/users/openwrt/orgs","repos_url":"https://api.github.com/users/openwrt/repos","events_url":"https://api.github.com/users/openwrt/events{/privacy}","received_events_url":"https://api.github.com/users/openwrt/received_events","type":"Organization","site_admin":false},"repo":{"id":45821540,"node_id":"MDEwOlJlcG9zaXRvcnk0NTgyMTU0MA==","name":"openwrt","full_name":"openwrt/openwrt","private":false,"owner":{"login":"openwrt","id":2528830,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1Mjg4MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/2528830?v=4","gravatar_id":"","url":"https://api.github.com/users/openwrt","html_url":"https://github.com/openwrt","followers_url":"https://api.github.com/users/openwrt/followers","following_url":"https://api.github.com/users/openwrt/following{/other_user}","gists_url":"https://api.github.com/users/openwrt/gists{/gist_id}","starred_url":"https://api.github.com/users/openwrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwrt/subscriptions","organizations_url":"https://api.github.com/users/openwrt/orgs","repos_url":"https://api.github.com/users/openwrt/repos","events_url":"https://api.github.com/users/openwrt/events{/privacy}","received_events_url":"https://api.github.com/users/openwrt/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openwrt/openwrt","description":"This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins or for reporting issues.  We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git. All issues should be reported at: https://bugs.openwrt.org","fork":false,"url":"https://api.github.com/repos/openwrt/openwrt","forks_url":"https://api.github.com/repos/openwrt/openwrt/forks","keys_url":"https://api.github.com/repos/openwrt/openwrt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openwrt/openwrt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openwrt/openwrt/teams","hooks_url":"https://api.github.com/repos/openwrt/openwrt/hooks","issue_events_url":"https://api.github.com/repos/openwrt/openwrt/issues/events{/number}","events_url":"https://api.github.com/repos/openwrt/openwrt/events","assignees_url":"https://api.github.com/repos/openwrt/openwrt/assignees{/user}","branches_url":"https://api.github.com/repos/openwrt/openwrt/branches{/branch}","tags_url":"https://api.github.com/repos/openwrt/openwrt/tags","blobs_url":"https://api.github.com/repos/openwrt/openwrt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openwrt/openwrt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openwrt/openwrt/git/refs{/sha}","trees_url":"https://api.github.com/repos/openwrt/openwrt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openwrt/openwrt/statuses/{sha}","languages_url":"https://api.github.com/repos/openwrt/openwrt/languages","stargazers_url":"https://api.github.com/repos/openwrt/openwrt/stargazers","contributors_url":"https://api.github.com/repos/openwrt/openwrt/contributors","subscribers_url":"https://api.github.com/repos/openwrt/openwrt/subscribers","subscription_url":"https://api.github.com/repos/openwrt/openwrt/subscription","commits_url":"https://api.github.com/repos/openwrt/openwrt/commits{/sha}","git_commits_url":"https://api.github.com/repos/openwrt/openwrt/git/commits{/sha}","comments_url":"https://api.github.com/repos/openwrt/openwrt/comments{/number}","issue_comment_url":"https://api.github.com/repos/openwrt/openwrt/issues/comments{/number}","contents_url":"https://api.github.com/repos/openwrt/openwrt/contents/{+path}","compare_url":"https://api.github.com/repos/openwrt/openwrt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openwrt/openwrt/merges","archive_url":"https://api.github.com/repos/openwrt/openwrt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openwrt/openwrt/downloads","issues_url":"https://api.github.com/repos/openwrt/openwrt/issues{/number}","pulls_url":"https://api.github.com/repos/openwrt/openwrt/pulls{/number}","milestones_url":"https://api.github.com/repos/openwrt/openwrt/milestones{/number}","notifications_url":"https://api.github.com/repos/openwrt/openwrt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openwrt/openwrt/labels{/name}","releases_url":"https://api.github.com/repos/openwrt/openwrt/releases{/id}","deployments_url":"https://api.github.com/repos/openwrt/openwrt/deployments","created_at":"2015-11-09T07:13:55Z","updated_at":"2019-02-17T18:38:59Z","pushed_at":"2019-02-17T20:54:02Z","git_url":"git://github.com/openwrt/openwrt.git","ssh_url":"git@github.com:openwrt/openwrt.git","clone_url":"https://github.com/openwrt/openwrt.git","svn_url":"https://github.com/openwrt/openwrt","homepage":"","size":161299,"stargazers_count":3529,"watchers_count":3529,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2168,"mirror_url":null,"archived":false,"open_issues_count":318,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":2168,"open_issues":318,"watchers":3529,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openwrt/openwrt/pulls/1823"},"html":{"href":"https://github.com/openwrt/openwrt/pull/1823"},"issue":{"href":"https://api.github.com/repos/openwrt/openwrt/issues/1823"},"comments":{"href":"https://api.github.com/repos/openwrt/openwrt/issues/1823/comments"},"review_comments":{"href":"https://api.github.com/repos/openwrt/openwrt/pulls/1823/comments"},"review_comment":{"href":"https://api.github.com/repos/openwrt/openwrt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openwrt/openwrt/pulls/1823/commits"},"statuses":{"href":"https://api.github.com/repos/openwrt/openwrt/statuses/db5a1e49d674200299fd21e19d4556d39ffc4d2e"}},"author_association":"NONE"}}
{"actor":{"display_login":"iscilyas"}}