Skip to content

Commit

Permalink
Add more BK7231N Lightleak types, remove JTAG profile
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed Mar 19, 2024
1 parent d4a941f commit b9dc1c6
Show file tree
Hide file tree
Showing 12 changed files with 529 additions and 9 deletions.
2 changes: 1 addition & 1 deletion profiles/lightleak-bk7231n-type1-addr1-xor.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Lightleak - BK7231N - Type 1 / Addr 1 (XOR)",
"name": "Lightleak - BK7231N - Type 1 (XOR) / Addr 1",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Lightleak - BK7231N - Type 1 / Addr X (XOR JTAG)",
"name": "Lightleak - BK7231N - Type 1 (XOR) / Addr 2",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
Expand Down Expand Up @@ -29,30 +29,30 @@
{
"name": "ddev_open",
"intf_offset": 4,
"address": "0x14781",
"address": "0x14579",
"branch_offset": "0x08"
},
{
"name": "ddev_close",
"intf_offset": 8,
"address": "0x14889",
"address": "0x14681",
"branch_offset": "0x1C"
},
{
"name": "ddev_read",
"intf_offset": 12,
"address": "0x14919"
"address": "0x14711"
},
{
"name": "ddev_write",
"intf_offset": 16,
"address": "0x14951",
"address": "0x14749",
"branch_offset": "0x12"
},
{
"name": "ddev_control",
"intf_offset": 20,
"address": "0x14989",
"address": "0x14781",
"branch_offset": "0x18"
},
{
Expand Down
65 changes: 65 additions & 0 deletions profiles/lightleak-bk7231n-type1-addr3-xor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "Lightleak - BK7231N - Type 1 (XOR) / Addr 3",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
"type": "BK7231N",
"bins": {
"stager": "bk7231n-stager-v1-xor.bin",
"proper": "bk7231n-proper-v1.bin"
},
"address_map": {
"stager": "0x1B5AC1",
"buffer": "0x42E000",
"handle": "0x42E800",
"temp": "0x42E804",
"intf": "0x42E810"
},
"gadgets": [
{
"name": "proper",
"address": "0x120001",
"branch_offset": "0x02"
},
{
"name": "finish",
"address": "0x0",
"branch_offset": "0x1F"
},
{
"name": "ddev_open",
"intf_offset": 4,
"address": "0x14571",
"branch_offset": "0x08"
},
{
"name": "ddev_close",
"intf_offset": 8,
"address": "0x14679",
"branch_offset": "0x1C"
},
{
"name": "ddev_read",
"intf_offset": 12,
"address": "0x14709"
},
{
"name": "ddev_write",
"intf_offset": 16,
"address": "0x14741",
"branch_offset": "0x12"
},
{
"name": "ddev_control",
"intf_offset": 20,
"address": "0x14779",
"branch_offset": "0x18"
},
{
"name": "crc32",
"intf_offset": 24,
"address": "0x73CC"
}
]
}
}
65 changes: 65 additions & 0 deletions profiles/lightleak-bk7231n-type1-addr4-xor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "Lightleak - BK7231N - Type 1 (XOR) / Addr 4",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
"type": "BK7231N",
"bins": {
"stager": "bk7231n-stager-v1-xor.bin",
"proper": "bk7231n-proper-v1.bin"
},
"address_map": {
"stager": "0x1B5AC1",
"buffer": "0x42E000",
"handle": "0x42E800",
"temp": "0x42E804",
"intf": "0x42E810"
},
"gadgets": [
{
"name": "proper",
"address": "0x120001",
"branch_offset": "0x02"
},
{
"name": "finish",
"address": "0x0",
"branch_offset": "0x1F"
},
{
"name": "ddev_open",
"intf_offset": 4,
"address": "0x147C1",
"branch_offset": "0x08"
},
{
"name": "ddev_close",
"intf_offset": 8,
"address": "0x148C9",
"branch_offset": "0x1C"
},
{
"name": "ddev_read",
"intf_offset": 12,
"address": "0x14959"
},
{
"name": "ddev_write",
"intf_offset": 16,
"address": "0x14991",
"branch_offset": "0x12"
},
{
"name": "ddev_control",
"intf_offset": 20,
"address": "0x149C9",
"branch_offset": "0x18"
},
{
"name": "crc32",
"intf_offset": 24,
"address": "0x73CC"
}
]
}
}
2 changes: 1 addition & 1 deletion profiles/lightleak-bk7231n-type2-addr1-standard.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Lightleak - BK7231N - Type 2 / Addr 1 (Standard)",
"name": "Lightleak - BK7231N - Type 2 (Standard) / Addr 1",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
Expand Down
65 changes: 65 additions & 0 deletions profiles/lightleak-bk7231n-type2-addr2-standard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "Lightleak - BK7231N - Type 2 (Standard) / Addr 2",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
"type": "BK7231N",
"bins": {
"stager": "bk7231n-stager-v1-standard.bin",
"proper": "bk7231n-proper-v1.bin"
},
"address_map": {
"stager": "0x1B5AC1",
"buffer": "0x42E000",
"handle": "0x42E800",
"temp": "0x42E804",
"intf": "0x42E810"
},
"gadgets": [
{
"name": "proper",
"address": "0x120001",
"branch_offset": "0x02"
},
{
"name": "finish",
"address": "0x0",
"branch_offset": "0x1F"
},
{
"name": "ddev_open",
"intf_offset": 4,
"address": "0x14579",
"branch_offset": "0x08"
},
{
"name": "ddev_close",
"intf_offset": 8,
"address": "0x14681",
"branch_offset": "0x1C"
},
{
"name": "ddev_read",
"intf_offset": 12,
"address": "0x14711"
},
{
"name": "ddev_write",
"intf_offset": 16,
"address": "0x14749",
"branch_offset": "0x12"
},
{
"name": "ddev_control",
"intf_offset": 20,
"address": "0x14781",
"branch_offset": "0x18"
},
{
"name": "crc32",
"intf_offset": 24,
"address": "0x73CC"
}
]
}
}
65 changes: 65 additions & 0 deletions profiles/lightleak-bk7231n-type2-addr3-standard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "Lightleak - BK7231N - Type 2 (Standard) / Addr 3",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
"type": "BK7231N",
"bins": {
"stager": "bk7231n-stager-v1-standard.bin",
"proper": "bk7231n-proper-v1.bin"
},
"address_map": {
"stager": "0x1B5AC1",
"buffer": "0x42E000",
"handle": "0x42E800",
"temp": "0x42E804",
"intf": "0x42E810"
},
"gadgets": [
{
"name": "proper",
"address": "0x120001",
"branch_offset": "0x02"
},
{
"name": "finish",
"address": "0x0",
"branch_offset": "0x1F"
},
{
"name": "ddev_open",
"intf_offset": 4,
"address": "0x14571",
"branch_offset": "0x08"
},
{
"name": "ddev_close",
"intf_offset": 8,
"address": "0x14679",
"branch_offset": "0x1C"
},
{
"name": "ddev_read",
"intf_offset": 12,
"address": "0x14709"
},
{
"name": "ddev_write",
"intf_offset": 16,
"address": "0x14741",
"branch_offset": "0x12"
},
{
"name": "ddev_control",
"intf_offset": 20,
"address": "0x14779",
"branch_offset": "0x18"
},
{
"name": "crc32",
"intf_offset": 24,
"address": "0x73CC"
}
]
}
}
65 changes: 65 additions & 0 deletions profiles/lightleak-bk7231n-type2-addr4-standard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "Lightleak - BK7231N - Type 2 (Standard) / Addr 4",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
"type": "BK7231N",
"bins": {
"stager": "bk7231n-stager-v1-standard.bin",
"proper": "bk7231n-proper-v1.bin"
},
"address_map": {
"stager": "0x1B5AC1",
"buffer": "0x42E000",
"handle": "0x42E800",
"temp": "0x42E804",
"intf": "0x42E810"
},
"gadgets": [
{
"name": "proper",
"address": "0x120001",
"branch_offset": "0x02"
},
{
"name": "finish",
"address": "0x0",
"branch_offset": "0x1F"
},
{
"name": "ddev_open",
"intf_offset": 4,
"address": "0x147C1",
"branch_offset": "0x08"
},
{
"name": "ddev_close",
"intf_offset": 8,
"address": "0x148C9",
"branch_offset": "0x1C"
},
{
"name": "ddev_read",
"intf_offset": 12,
"address": "0x14959"
},
{
"name": "ddev_write",
"intf_offset": 16,
"address": "0x14991",
"branch_offset": "0x12"
},
{
"name": "ddev_control",
"intf_offset": 20,
"address": "0x149C9",
"branch_offset": "0x18"
},
{
"name": "crc32",
"intf_offset": 24,
"address": "0x73CC"
}
]
}
}
2 changes: 1 addition & 1 deletion profiles/lightleak-bk7231n-type3-addr1-ip.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Lightleak - BK7231N - Type 3 / Addr 1 (IP)",
"name": "Lightleak - BK7231N - Type 3 (IP) / Addr 1",
"type": "LIGHTLEAK",
"icon": "cloud-download-outline",
"data": {
Expand Down
Loading

0 comments on commit b9dc1c6

Please sign in to comment.