From afea42d650c7275143b519dc9966e8bd0aa8ba15 Mon Sep 17 00:00:00 2001 From: David Schrammel <51957010+davidschrammel@users.noreply.github.com> Date: Thu, 4 Mar 2021 09:48:04 +0100 Subject: [PATCH] Copy actual partition size instead of hardcoded 16MB (#627) Signed-off-by: David Schrammel --- fpga/src/bootrom/bootrom.h | 1038 +++++++++++++++-------------- fpga/src/bootrom/bootrom.sv | 568 ++++++++-------- fpga/src/bootrom/src/gpt.c | 4 +- openpiton/bootrom/linux/src/gpt.c | 2 +- 4 files changed, 833 insertions(+), 779 deletions(-) diff --git a/fpga/src/bootrom/bootrom.h b/fpga/src/bootrom/bootrom.h index c7e3c30a2..bf159d17e 100644 --- a/fpga/src/bootrom/bootrom.h +++ b/fpga/src/bootrom/bootrom.h @@ -1,6 +1,6 @@ // Auto-generated code -const int reset_vec_size = 1732; +const int reset_vec_size = 1768; uint32_t reset_vec[reset_vec_size] = { 0x00800913, @@ -10,7 +10,7 @@ uint32_t reset_vec[reset_vec_size] = { 0x03249663, 0x0210011b, 0x01a11113, - 0x25f000ef, + 0x27f000ef, 0x020004b7, 0x00100913, 0x0124a023, @@ -154,541 +154,549 @@ uint32_t reset_vec[reset_vec_size] = { 0x60e2ecff, 0x80826105, 0x8082c10c, - 0x80824108, - 0x00001517, - 0x05131101, - 0xec065c05, - 0xe426e822, - 0xf05ff0ef, - 0x200007b7, - 0xc3b84729, - 0x000147a9, - 0xfff537fd, - 0x20000437, - 0x10400793, - 0x5064d03c, - 0x00001517, - 0x5a050513, - 0xeddff0ef, - 0x95132481, - 0x91010204, - 0xf53ff0ef, - 0x00001517, - 0x5a850513, - 0xec5ff0ef, - 0x16600793, - 0x5064d03c, - 0x00001517, - 0x57450513, - 0xeb1ff0ef, - 0x95132481, - 0x91010204, - 0xf27ff0ef, - 0x00001517, - 0x57c50513, - 0xe99ff0ef, - 0xd03c4799, - 0x60e26442, - 0x151764a2, - 0x05130000, - 0x61055565, - 0xe81ff06f, - 0x07b71101, - 0xec062000, - 0xe426e822, - 0xdbb85779, - 0x0793d7a8, - 0x00010640, - 0xfff537fd, - 0x200007b7, - 0x10600713, - 0x53f8d3b8, - 0x06478493, - 0xff658b05, - 0x53fc57e0, - 0x8b852401, - 0x1517e395, - 0x05130000, - 0xf0ef5265, - 0x4088e3bf, - 0x91011502, - 0xeb3ff0ef, - 0x00001517, - 0x50850513, - 0xe25ff0ef, - 0x200007b7, - 0x7513577d, - 0x60e20ff4, - 0xdbb86442, - 0xd3b84719, - 0x610564a2, - 0x07938082, - 0xec631000, - 0x07b706b7, - 0x57792000, - 0x06b7dbb8, - 0x87aa2000, - 0x40a7873b, - 0x04b76163, - 0x03200793, - 0x37fd0001, - 0x0713fff5, - 0x07b71060, - 0xd3b82000, - 0x20000737, - 0x8b85537c, - 0x0537fff5, - 0x08372000, - 0x869b2000, - 0xef630007, - 0x07b700b6, - 0x577d2000, - 0x4719dbb8, - 0x4501d3b8, - 0xc7038082, - 0x07850007, - 0xbf4dd6b8, - 0x8b055178, - 0x2683ff79, - 0x073306c8, - 0x078500f6, - 0x00d70023, - 0x557db7e9, - 0x05138082, - 0xf06f0ff0, - 0x7179f07f, - 0xe432f406, - 0xec26f022, - 0x84aa842e, - 0xfebff0ef, - 0x0404e513, - 0xeedff0ef, - 0x0184551b, - 0x0ff57513, - 0xee1ff0ef, - 0x0104551b, - 0x0ff57513, - 0xed5ff0ef, - 0x0084551b, - 0x0ff57513, - 0xec9ff0ef, - 0x0ff47513, - 0xec1ff0ef, - 0x04136622, - 0x85320640, - 0xeb5ff0ef, - 0xfa7ff0ef, - 0x0185179b, - 0x4187d79b, - 0x0007d463, - 0xf47d147d, - 0x740270a2, - 0x614564e2, - 0x11018082, - 0x842ae822, - 0x00001517, - 0x40450513, - 0xe42eec06, - 0xcfdff0ef, - 0xf0ef8522, - 0x1517cf7f, - 0x05130000, - 0xf0ef3fe5, - 0x65a2cebf, - 0xf0ef852e, - 0x6442da7f, - 0x151760e2, - 0x05130000, - 0x61053b65, - 0xcd1ff06f, - 0xe8221101, - 0xe4266409, - 0xe04aec06, - 0x71040413, - 0x06134485, - 0x45810950, - 0xf0ef4501, - 0x347df35f, - 0xf0ef892a, - 0xc00df25f, - 0xfe9915e3, - 0x00001517, - 0x3bc50513, - 0xf0ef4585, - 0x4505f89f, - 0x644260e2, - 0x690264a2, - 0x80826105, - 0xbfcd4501, - 0x06131101, - 0x05930870, - 0x45211aa0, + 0x25014108, + 0x15178082, + 0x11010000, + 0x64e50513, 0xe822ec06, - 0xe04ae426, - 0xeefff0ef, - 0xf0ef892a, - 0xf0efee1f, - 0xf0efeddf, - 0x84aaed9f, - 0xed3ff0ef, - 0xf0ef842a, - 0xf0efecdf, - 0x4785ec9f, - 0x1b634501, - 0x88bd00f9, - 0x01249863, - 0x0004051b, - 0xf5650513, - 0x00153513, + 0xf0efe426, + 0x07b7f03f, + 0x47292000, + 0x47a9c3b8, + 0x37fd0001, + 0x0437fff5, + 0x07932000, + 0xd03c1040, + 0x15175064, + 0x05130000, + 0xf0ef62e5, + 0x2481edbf, + 0x02049513, + 0xf0ef9101, + 0x1517f51f, + 0x05130000, + 0xf0ef6365, + 0x0793ec3f, + 0xd03c1660, + 0x15175064, + 0x05130000, + 0xf0ef6025, + 0x2481eaff, + 0x02049513, + 0xf0ef9101, + 0x1517f25f, + 0x05130000, + 0xf0ef60a5, + 0x4799e97f, + 0x6442d03c, + 0x64a260e2, + 0x00001517, + 0x5e450513, + 0xf06f6105, + 0x1101e7ff, + 0x200007b7, + 0xe822ec06, + 0x5779e426, + 0xd7a8dbb8, + 0x06400793, + 0x37fd0001, + 0x07b7fff5, + 0x07132000, + 0xd3b81060, + 0x849353f8, + 0x8b050647, + 0x57e0ff65, + 0x240153fc, + 0xe3958b85, + 0x00001517, + 0x5b450513, + 0xe39ff0ef, + 0x15024088, + 0xf0ef9101, + 0x1517eb1f, + 0x05130000, + 0xf0ef5965, + 0x07b7e23f, + 0x577d2000, + 0x0ff47513, 0x644260e2, - 0x690264a2, + 0x4719dbb8, + 0x64a2d3b8, 0x80826105, - 0x06131141, - 0x45810650, - 0x03700513, - 0xe022e406, - 0xe97ff0ef, - 0xf0ef842a, - 0x1517e89f, - 0x85a20000, - 0x32e50513, - 0xef3ff0ef, - 0x0004051b, - 0x640260a2, - 0x3513157d, - 0x01410015, - 0x11018082, - 0xec06e426, - 0x4485e822, - 0xfbdff0ef, - 0x07700613, - 0x400005b7, - 0x02900513, - 0xe53ff0ef, - 0x85aa842a, - 0x00001517, - 0x2f450513, - 0xeb3ff0ef, - 0xe37ff0ef, - 0xfc940ce3, - 0x0004051b, - 0x644260e2, - 0x351364a2, - 0x61050015, - 0x11418082, - 0xe022e406, - 0xc89ff0ef, - 0x00001517, - 0x2cc50513, - 0xb91ff0ef, - 0x347d4429, - 0xe03ff0ef, - 0xf0effc6d, - 0x57fdeb7f, - 0xf0efc911, - 0x57f9efbf, - 0xf0efc511, - 0x57f5f89f, - 0x4781c111, - 0x640260a2, - 0x0141853e, - 0x8de98082, - 0x0075d79b, - 0x0045d51b, - 0x8d2d8d3d, - 0x00451593, - 0x75138d2d, - 0x808207f5, - 0x0085579b, - 0x8d5d0522, - 0x91411542, - 0xd51b8da9, - 0x893d0045, - 0x95138da9, - 0x8d2d00c5, - 0x0105151b, - 0x4105551b, - 0x0105179b, - 0x0107d79b, - 0x17016709, - 0x0057979b, - 0x8d3d8ff9, - 0x91411542, - 0x71558082, - 0x1993f54e, - 0xe1a20206, - 0xe586fd26, - 0xf152f94a, - 0xe95aed56, - 0x84aae55e, - 0xd993842e, - 0x47810209, - 0x0713567d, - 0x06b30800, - 0x802300f1, - 0x078500c6, - 0xfee79be3, - 0x0184559b, - 0x0ff5f593, - 0xf0ef4501, - 0x559bf69f, - 0xf5930104, + 0x10000793, + 0x06b7ee63, + 0x200007b7, + 0xdbb85779, + 0x200006b7, + 0x871b4781, + 0x61630007, + 0x079304b7, + 0x00010320, + 0xfff537fd, + 0x10600713, + 0x200007b7, + 0x0737d3b8, + 0x537c2000, + 0xfff58b85, + 0x20000537, + 0x20000837, + 0x0007869b, + 0x02b6e163, + 0x200007b7, + 0xdbb8577d, + 0xd3b84719, + 0x80824501, + 0x00f50733, + 0x00074703, + 0xd6b80785, + 0x5178b77d, + 0xff698b05, + 0x06c82683, + 0x00f60733, + 0x00230785, + 0xb7d900d7, + 0x8082557d, + 0x0ff00513, + 0xf03ff06f, + 0xf4067179, + 0xf022e432, + 0x842eec26, + 0xf0ef84aa, + 0xe513febf, + 0xf0ef0404, + 0x551bee9f, + 0xf0ef0184, + 0x551bee1f, + 0x75130104, 0xf0ef0ff5, - 0x559bf5df, - 0xf5930084, + 0x551bed5f, + 0x75130084, 0xf0ef0ff5, - 0x7593f51f, + 0x7513ec9f, 0xf0ef0ff4, - 0x161bf49f, - 0x66130015, - 0x76130016, - 0x85a20ff6, - 0xf0ef4549, - 0xe951d15f, - 0x0fe00a13, - 0x3e800a93, - 0xcffff0ef, - 0xff451ee3, - 0x20048b13, - 0x49018426, + 0x6622ec1f, + 0x06400413, + 0xf0ef8532, + 0xf0efeb5f, + 0x179bfabf, + 0xd79b0185, + 0xd4634187, + 0x147d0007, + 0x70a2f47d, + 0x64e27402, + 0x80826145, + 0xe8221101, + 0x1517842a, + 0x05130000, + 0xec064925, + 0xf0efe42e, + 0x8522cfbf, + 0xcf5ff0ef, + 0x00001517, + 0x48c50513, + 0xce9ff0ef, + 0x852e65a2, + 0xda5ff0ef, + 0x60e26442, + 0x00001517, + 0x44450513, + 0xf06f6105, + 0x1101ccff, + 0x6409e822, + 0xec06e426, + 0x0413e04a, + 0x44857104, + 0x09500613, + 0x45014581, + 0xf39ff0ef, + 0x892a347d, + 0xf29ff0ef, + 0x15e3c00d, + 0x1517fe99, + 0x05130000, + 0x458544a5, + 0xf89ff0ef, + 0x60e24505, + 0x64a26442, + 0x61056902, + 0x45018082, + 0x1101bfcd, + 0x08700613, + 0x1aa00593, + 0xec064521, + 0xe426e822, + 0xf0efe04a, + 0x892aef3f, + 0xee5ff0ef, + 0xee1ff0ef, + 0xeddff0ef, + 0xf0ef84aa, + 0x842aed7f, + 0xed1ff0ef, + 0xecdff0ef, + 0x45014785, + 0x00f91b63, + 0x986388bd, + 0x051b0124, + 0x05130004, + 0x3513f565, + 0x60e20015, + 0x64a26442, + 0x61056902, + 0x11418082, + 0x06500613, + 0x05134581, + 0xe4060370, + 0xf0efe022, + 0x842ae9bf, + 0xe8dff0ef, + 0x00001517, + 0x051385a2, + 0xf0ef3bc5, + 0x051bef3f, + 0x60a20004, + 0x157d6402, + 0x00153513, + 0x80820141, + 0xe4261101, + 0xe822ec06, + 0xf0ef4485, + 0x0613fbdf, + 0x05b70770, + 0x05134000, + 0xf0ef0290, + 0x842ae57f, + 0x151785aa, + 0x05130000, + 0xf0ef3825, + 0xf0efeb3f, + 0x0ce3e3bf, + 0x051bfc94, + 0x60e20004, + 0x64a26442, + 0x00153513, + 0x80826105, + 0xe4061141, + 0xf0efe022, + 0x1517c89f, + 0x05130000, + 0xf0ef35a5, + 0x4429b8ff, + 0xf0ef347d, + 0xfc6de07f, + 0xeb7ff0ef, + 0xc91157fd, + 0xefbff0ef, + 0xc51157f9, + 0xf89ff0ef, + 0xe1114781, + 0x60a257f5, + 0x853e6402, + 0x80820141, + 0xd79b8de9, + 0xd51b0075, + 0x8d3d0045, + 0x15938d2d, + 0x8d2d0045, + 0x07f57513, + 0x579b8082, + 0x05220085, + 0x15428d5d, + 0x8da99141, + 0x0045d51b, + 0x8da9893d, + 0x00c59513, + 0x151b8d2d, + 0x551b0105, + 0x179b4105, + 0xd79b0105, + 0x67090107, + 0x979b1701, + 0x8ff90057, + 0x15428d3d, + 0x80829141, + 0xf54e7155, + 0x02061993, + 0xfd26e1a2, + 0xf94ae586, + 0xed56f152, + 0xe55ee95a, + 0x842e84aa, + 0x0209d993, + 0x567d4781, + 0x08000713, + 0x00f106b3, + 0x00c68023, + 0x9be30785, + 0x559bfee7, + 0x45010184, + 0xf6dff0ef, + 0x0104559b, + 0x0ff5f593, + 0xf61ff0ef, + 0x0084559b, + 0x0ff5f593, + 0xf55ff0ef, + 0x0ff47593, + 0xf4dff0ef, + 0x0015161b, + 0x00166613, + 0x0ff67613, + 0x454985a2, + 0xd1dff0ef, + 0x20048493, + 0x0a93e951, + 0x0b130fe0, + 0x84133e80, + 0xf0efe004, + 0x1ee3cfff, + 0x4901ff55, 0x05938622, 0x850a0400, - 0xc67ff0ef, - 0x0b934481, + 0xc69ff0ef, + 0x0b934a01, 0x07b30400, - 0xc5830094, + 0xc5830144, 0x854a0007, - 0xf0ef0485, - 0x892af13f, - 0xff7497e3, + 0xf0ef0a05, + 0x892af15f, + 0xff7a17e3, 0x04040413, - 0xfd641ae3, - 0xcbfff0ef, + 0xfc941ae3, + 0xcc5ff0ef, 0x0085151b, - 0x141384a2, - 0x90410305, - 0xcafff0ef, - 0x14428c49, - 0x29019041, - 0x07241a63, - 0x0359e7b3, - 0x1517e799, + 0x03051413, + 0xf0ef9041, + 0x8c49cb7f, + 0x29011442, + 0x1c639041, + 0xe7b30689, + 0xe7990369, + 0x00001517, + 0x21c50513, + 0xa19ff0ef, + 0x849319fd, + 0x46e32004, + 0x4401f930, + 0x45814605, + 0xf0ef4531, + 0xf0efc8bf, + 0xa805c7ff, + 0xc79ff0ef, + 0xc75ff0ef, + 0xc71ff0ef, + 0xc6dff0ef, + 0xc69ff0ef, + 0xc65ff0ef, + 0xc61ff0ef, + 0xc5dff0ef, + 0x00001517, + 0x1b450513, + 0x9d1ff0ef, + 0x8522547d, + 0x640e60ae, + 0x794a74ea, + 0x7a0a79aa, + 0x6b4a6aea, + 0x61696baa, + 0x54798082, + 0x711db765, + 0xf456e8a2, + 0xec86ec5e, + 0xe0cae4a6, + 0xf852fc4e, + 0xe862f05a, + 0xe06ae466, + 0x8aaa1080, + 0xf0ef8bae, + 0xc90ddeff, + 0x00001517, + 0x18c50513, + 0x981ff0ef, + 0x011354fd, + 0x60e6fa04, + 0x64468526, + 0x690664a6, + 0x7a4279e2, + 0x7b027aa2, + 0x6c426be2, + 0x6d026ca2, + 0x80826125, + 0x00001517, + 0x18450513, + 0x951ff0ef, + 0x46057101, + 0x850a4585, + 0xe41ff0ef, + 0x84aa890a, + 0x1517c905, + 0x05130000, + 0xf0ef17e5, + 0x1517933f, 0x05130000, 0xf0ef18a5, - 0x19fda17f, - 0xf93046e3, - 0x46054401, - 0x45314581, - 0xc87ff0ef, - 0xc7bff0ef, - 0xf0efa805, - 0xf0efc75f, - 0xf0efc71f, - 0xf0efc6df, - 0xf0efc69f, - 0xf0efc65f, - 0xf0efc61f, - 0xf0efc5df, - 0x1517c59f, - 0x05130000, - 0xf0ef1265, - 0x547d9d3f, - 0x60ae8522, - 0x74ea640e, - 0x79aa794a, - 0x6aea7a0a, - 0x6baa6b4a, - 0x80826169, - 0xb7655479, - 0xe0a2715d, - 0xe85af052, - 0xfc26e486, - 0xf44ef84a, - 0xe45eec56, - 0x0880e062, - 0x8b2e8a2a, - 0xdf3ff0ef, - 0x1517c51d, - 0x05130000, - 0xf0ef1025, - 0x54fd987f, - 0xfb040113, - 0x852660a6, - 0x74e26406, - 0x79a27942, - 0x6ae27a02, - 0x6ba26b42, - 0x61616c02, - 0x15178082, - 0x05130000, - 0xf0ef0fe5, - 0x710195bf, - 0x45854605, - 0xf0ef850a, - 0x890ae49f, - 0xc90584aa, + 0x8526927f, + 0x9a3ff0ef, 0x00001517, - 0x0f850513, - 0x93dff0ef, + 0x08850513, + 0x915ff0ef, + 0xbf5154f9, 0x00001517, - 0x10450513, - 0x931ff0ef, - 0xf0ef8526, - 0x15179adf, - 0x05130000, - 0xf0ef0025, - 0x54f991ff, - 0x1517bf61, - 0x05130000, - 0xf0ef0fa5, - 0x151790ff, - 0x05130000, - 0xf0ef10e5, - 0x6502903f, - 0xf0ef4b91, - 0x151797df, - 0x05130000, - 0xf0ef10a5, - 0x45228eff, - 0x92bff0ef, + 0x18050513, + 0x905ff0ef, 0x00001517, - 0x10850513, - 0x8ddff0ef, - 0xf0ef4532, - 0x1517919f, + 0x19450513, + 0x8f9ff0ef, + 0xf0ef6502, + 0x1517975f, 0x05130000, - 0xf0ef1065, - 0x45428cbf, - 0x907ff0ef, - 0x00001517, - 0x10450513, - 0x8b9ff0ef, - 0xf0ef4552, - 0x15178f5f, - 0x05130000, - 0xf0ef1025, - 0x65628a7f, + 0xf0ef1925, + 0x45228e7f, 0x923ff0ef, 0x00001517, - 0x10850513, - 0x895ff0ef, - 0xf0ef7502, + 0x19050513, + 0x8d5ff0ef, + 0xf0ef4532, 0x1517911f, 0x05130000, - 0xf0ef1065, - 0x6526883f, + 0xf0ef18e5, + 0x45428c3f, 0x8ffff0ef, 0x00001517, - 0x11450513, - 0x871ff0ef, - 0xf0ef4546, - 0x15178adf, + 0x18c50513, + 0x8b1ff0ef, + 0xf0ef4552, + 0x15178edf, 0x05130000, - 0xf0ef1225, - 0x455685ff, - 0x89bff0ef, + 0xf0ef18a5, + 0x656289ff, + 0x91bff0ef, 0x00001517, - 0xf3050513, - 0x84dff0ef, + 0x19050513, + 0x88dff0ef, + 0xf0ef7502, + 0x1517909f, + 0x05130000, + 0xf0ef18e5, + 0x652687bf, + 0x8f7ff0ef, + 0x00001517, + 0x19c50513, + 0x869ff0ef, + 0xf0ef4546, + 0x15178a5f, + 0x05130000, + 0xf0ef1aa5, + 0x4556857f, + 0x893ff0ef, + 0x00001517, + 0xfb850513, + 0x845ff0ef, 0x04892583, 0x46057101, 0xf0ef850a, - 0x8a8ad39f, - 0x080489aa, - 0x1517c50d, + 0x8b0ad33f, + 0x099384aa, + 0x09130801, + 0x1b630201, + 0x4cc11005, + 0x15174c11, 0x05130000, - 0xf0effe65, - 0x151782bf, + 0xf0ef18a5, + 0xf513817f, + 0xf0ef0ff4, + 0x15178d3f, 0x05130000, - 0xf0efff25, - 0x854e81ff, - 0x89bff0ef, - 0x00001517, - 0xef050513, - 0x1517b5fd, + 0x8d1318e5, + 0xf0eff809, + 0x4a01ffef, + 0x014d07b3, + 0x0007c503, + 0xf0ef0a05, + 0x19e38b3f, + 0x1517ff9a, 0x05130000, - 0xf0ef0e65, - 0xf513803f, - 0xf0ef0ff9, - 0x15178bff, + 0xf0ef18a5, + 0x8a13fdef, + 0x4503f909, + 0x0a05000a, + 0x895ff0ef, + 0xff2a1be3, + 0x00001517, + 0x18c50513, + 0xfc0ff0ef, + 0x00093503, + 0xfb898a13, + 0x837ff0ef, + 0x00001517, + 0x18450513, + 0xfa8ff0ef, + 0x00893503, + 0x823ff0ef, + 0x00001517, + 0x18050513, + 0xf94ff0ef, + 0x01093503, + 0x80fff0ef, + 0x00001517, + 0x17c50513, + 0xf80ff0ef, + 0x000a4503, + 0xf0ef0a05, + 0x1be383bf, + 0x1517ff3a, 0x05130000, - 0xf0ef0ea5, - 0x8913feef, - 0x4503ff04, - 0x09050009, - 0x8a5ff0ef, - 0xfe991be3, + 0x2485eda5, + 0xf64ff0ef, + 0x080a0993, + 0x08090913, + 0xf3849de3, 0x00001517, - 0x0ec50513, - 0xfd0ff0ef, - 0x01090c13, - 0x00094503, - 0xf0ef0905, - 0x1be3887f, - 0x1517ff2c, - 0x05130000, - 0xf0ef0ee5, - 0x6888fb2f, - 0x02848913, - 0x07048c13, - 0x827ff0ef, + 0x15850513, + 0xf4cff0ef, + 0x020b2583, + 0x8556865e, + 0xc3dff0ef, + 0xc92984aa, 0x00001517, - 0x0e450513, - 0xf98ff0ef, - 0xf0ef6c88, - 0x1517815f, - 0x05130000, - 0xf0ef0e25, - 0x7088f86f, - 0x803ff0ef, + 0xf7c50513, + 0xf30ff0ef, 0x00001517, - 0x0e050513, - 0xf74ff0ef, - 0x00094503, - 0xf0ef0905, - 0x1be382ff, - 0x1517ff2c, - 0x05130000, - 0x2985e3e5, - 0xf58ff0ef, - 0x08048493, - 0xf57993e3, - 0x00001517, - 0x0c050513, - 0xf44ff0ef, - 0x020aa583, - 0x8552865a, - 0xc33ff0ef, - 0xc50d84aa, - 0x00001517, - 0xee450513, - 0xf28ff0ef, - 0x00001517, - 0xef050513, - 0xf1cff0ef, + 0xf8850513, + 0xf24ff0ef, 0xf0ef8526, - 0x1517f98f, + 0x1517fa0f, 0x05130000, - 0xb3f5dee5, + 0xbbfde865, 0x00001517, - 0x09450513, - 0xf00ff0ef, - 0x65f1bbb5, + 0xf5450513, + 0xf08ff0ef, + 0x00001517, + 0xf6050513, + 0xefcff0ef, + 0xf0ef8526, + 0x1517f78f, + 0x05130000, + 0xbbd9e5e5, + 0x00001517, + 0x10450513, + 0xee0ff0ef, + 0x65f1b38d, 0x02faf537, 0x85931141, 0x05132005, 0xe4060805, - 0xea4ff0ef, + 0xe84ff0ef, 0x00001517, - 0xd8050513, - 0xedcff0ef, + 0xdf050513, + 0xebcff0ef, 0x65a14505, 0xf0ef057e, - 0xe911d23f, + 0xe911d05f, 0x0010041b, 0x01f41413, 0x00000597, - 0x15058593, + 0x13058593, 0xa0018402, 0x00000000, 0x00000000, @@ -699,14 +707,6 @@ uint32_t reset_vec[reset_vec_size] = { 0x00000000, 0x00000000, 0x00000000, - 0x00000000, - 0x00000000, - 0x00000000, - 0x00000000, - 0x00000000, - 0x00000000, - 0x00000000, - 0x00000000, 0x33323130, 0x37363534, 0x42413938, @@ -772,15 +772,15 @@ uint32_t reset_vec[reset_vec_size] = { 0x00000000, 0x00000000, 0xedfe0dd0, - 0x100c0000, + 0xa00c0000, 0x38000000, - 0x38090000, + 0xc8090000, 0x28000000, 0x11000000, 0x10000000, 0x00000000, 0xd8020000, - 0x00090000, + 0x90090000, 0x00000000, 0x00000000, 0x00000000, @@ -838,7 +838,7 @@ uint32_t reset_vec[reset_vec_size] = { 0x03000000, 0x04000000, 0x38000000, - 0xc0e1e400, + 0x40787d01, 0x01000000, 0x40757063, 0x00000030, @@ -1066,7 +1066,7 @@ uint32_t reset_vec[reset_vec_size] = { 0x03000000, 0x04000000, 0x2e010000, - 0x03000000, + 0x1e000000, 0x03000000, 0x04000000, 0xb5000000, @@ -1150,6 +1150,42 @@ uint32_t reset_vec[reset_vec_size] = { 0x04000000, 0x02000000, 0x01000000, + 0x656d6974, + 0x38314072, + 0x30303030, + 0x00003030, + 0x03000000, + 0x0f000000, + 0x1b000000, + 0x706c7570, + 0x6270612c, + 0x6d69745f, + 0x00007265, + 0x03000000, + 0x10000000, + 0x58010000, + 0x04000000, + 0x05000000, + 0x06000000, + 0x07000000, + 0x03000000, + 0x10000000, + 0x67000000, + 0x00000000, + 0x00000018, + 0x00000000, + 0x00100000, + 0x03000000, + 0x04000000, + 0x47010000, + 0x03000000, + 0x03000000, + 0x08000000, + 0x11010000, + 0x746e6f63, + 0x006c6f72, + 0x02000000, + 0x01000000, 0x2d737078, 0x40697073, 0x30303032, diff --git a/fpga/src/bootrom/bootrom.sv b/fpga/src/bootrom/bootrom.sv index 5987194f9..251310ac4 100644 --- a/fpga/src/bootrom/bootrom.sv +++ b/fpga/src/bootrom/bootrom.sv @@ -20,7 +20,7 @@ module bootrom ( input logic [63:0] addr_i, output logic [63:0] rdata_o ); - localparam int RomSize = 866; + localparam int RomSize = 884; const logic [RomSize-1:0][63:0] mem = { 64'h00000000_00000000, @@ -316,6 +316,24 @@ module bootrom ( 64'h00000000_30303030, 64'h30303032_40697073, 64'h2d737078_01000000, + 64'h02000000_006c6f72, + 64'h746e6f63_11010000, + 64'h08000000_03000000, + 64'h03000000_47010000, + 64'h04000000_03000000, + 64'h00100000_00000000, + 64'h00000018_00000000, + 64'h67000000_10000000, + 64'h03000000_07000000, + 64'h06000000_05000000, + 64'h04000000_58010000, + 64'h10000000_03000000, + 64'h00007265_6d69745f, + 64'h6270612c_706c7570, + 64'h1b000000_0f000000, + 64'h03000000_00003030, + 64'h30303030_38314072, + 64'h656d6974_01000000, 64'h02000000_04000000, 64'h6d010000_04000000, 64'h03000000_02000000, @@ -357,7 +375,7 @@ module bootrom ( 64'h04000000_03000000, 64'h03000000_b5000000, 64'h04000000_03000000, - 64'h03000000_2e010000, + 64'h1e000000_2e010000, 64'h04000000_03000000, 64'h07000000_1b010000, 64'h04000000_03000000, @@ -471,7 +489,7 @@ module bootrom ( 64'h4b000000_04000000, 64'h03000000_00000030, 64'h40757063_01000000, - 64'hc0e1e400_38000000, + 64'h40787d01_38000000, 64'h04000000_03000000, 64'h00000000_0f000000, 64'h04000000_03000000, @@ -500,11 +518,11 @@ module bootrom ( 64'h00000000_01000000, 64'h00000000_00000000, 64'h00000000_00000000, - 64'h00090000_d8020000, + 64'h90090000_d8020000, 64'h00000000_10000000, 64'h11000000_28000000, - 64'h38090000_38000000, - 64'h100c0000_edfe0dd0, + 64'hc8090000_38000000, + 64'ha00c0000_edfe0dd0, 64'h00000000_00000000, 64'h00000000_00000000, 64'h00000000_00000000, @@ -541,279 +559,279 @@ module bootrom ( 64'h00000000_00000000, 64'h00000000_00000000, 64'h00000000_00000000, - 64'h00000000_00000000, - 64'h00000000_00000000, - 64'h00000000_00000000, - 64'h00000000_00000000, 64'h00000000_a0018402, - 64'h15058593_00000597, + 64'h13058593_00000597, 64'h01f41413_0010041b, - 64'he911d23f_f0ef057e, - 64'h65a14505_edcff0ef, - 64'hd8050513_00001517, - 64'hea4ff0ef_e4060805, + 64'he911d05f_f0ef057e, + 64'h65a14505_ebcff0ef, + 64'hdf050513_00001517, + 64'he84ff0ef_e4060805, 64'h05132005_85931141, - 64'h02faf537_65f1bbb5, - 64'hf00ff0ef_09450513, - 64'h00001517_b3f5dee5, - 64'h05130000_1517f98f, - 64'hf0ef8526_f1cff0ef, - 64'hef050513_00001517, - 64'hf28ff0ef_ee450513, - 64'h00001517_c50d84aa, - 64'hc33ff0ef_8552865a, - 64'h020aa583_f44ff0ef, - 64'h0c050513_00001517, - 64'hf57993e3_08048493, - 64'hf58ff0ef_2985e3e5, - 64'h05130000_1517ff2c, - 64'h1be382ff_f0ef0905, - 64'h00094503_f74ff0ef, - 64'h0e050513_00001517, - 64'h803ff0ef_7088f86f, - 64'hf0ef0e25_05130000, - 64'h1517815f_f0ef6c88, - 64'hf98ff0ef_0e450513, - 64'h00001517_827ff0ef, - 64'h07048c13_02848913, - 64'h6888fb2f_f0ef0ee5, - 64'h05130000_1517ff2c, - 64'h1be3887f_f0ef0905, - 64'h00094503_01090c13, - 64'hfd0ff0ef_0ec50513, - 64'h00001517_fe991be3, - 64'h8a5ff0ef_09050009, - 64'h4503ff04_8913feef, - 64'hf0ef0ea5_05130000, - 64'h15178bff_f0ef0ff9, - 64'hf513803f_f0ef0e65, - 64'h05130000_1517b5fd, - 64'hef050513_00001517, - 64'h89bff0ef_854e81ff, - 64'hf0efff25_05130000, - 64'h151782bf_f0effe65, - 64'h05130000_1517c50d, - 64'h080489aa_8a8ad39f, - 64'hf0ef850a_46057101, - 64'h04892583_84dff0ef, - 64'hf3050513_00001517, - 64'h89bff0ef_455685ff, - 64'hf0ef1225_05130000, - 64'h15178adf_f0ef4546, - 64'h871ff0ef_11450513, - 64'h00001517_8ffff0ef, - 64'h6526883f_f0ef1065, - 64'h05130000_1517911f, - 64'hf0ef7502_895ff0ef, - 64'h10850513_00001517, - 64'h923ff0ef_65628a7f, - 64'hf0ef1025_05130000, - 64'h15178f5f_f0ef4552, - 64'h8b9ff0ef_10450513, - 64'h00001517_907ff0ef, - 64'h45428cbf_f0ef1065, - 64'h05130000_1517919f, - 64'hf0ef4532_8ddff0ef, - 64'h10850513_00001517, - 64'h92bff0ef_45228eff, - 64'hf0ef10a5_05130000, - 64'h151797df_f0ef4b91, - 64'h6502903f_f0ef10e5, - 64'h05130000_151790ff, - 64'hf0ef0fa5_05130000, - 64'h1517bf61_54f991ff, - 64'hf0ef0025_05130000, - 64'h15179adf_f0ef8526, - 64'h931ff0ef_10450513, - 64'h00001517_93dff0ef, - 64'h0f850513_00001517, - 64'hc90584aa_890ae49f, - 64'hf0ef850a_45854605, - 64'h710195bf_f0ef0fe5, - 64'h05130000_15178082, - 64'h61616c02_6ba26b42, - 64'h6ae27a02_79a27942, - 64'h74e26406_852660a6, - 64'hfb040113_54fd987f, - 64'hf0ef1025_05130000, - 64'h1517c51d_df3ff0ef, - 64'h8b2e8a2a_0880e062, - 64'he45eec56_f44ef84a, - 64'hfc26e486_e85af052, - 64'he0a2715d_b7655479, - 64'h80826169_6baa6b4a, - 64'h6aea7a0a_79aa794a, - 64'h74ea640e_60ae8522, - 64'h547d9d3f_f0ef1265, - 64'h05130000_1517c59f, - 64'hf0efc5df_f0efc61f, - 64'hf0efc65f_f0efc69f, - 64'hf0efc6df_f0efc71f, - 64'hf0efc75f_f0efa805, - 64'hc7bff0ef_c87ff0ef, - 64'h45314581_46054401, - 64'hf93046e3_19fda17f, + 64'h02faf537_65f1b38d, + 64'hee0ff0ef_10450513, + 64'h00001517_bbd9e5e5, + 64'h05130000_1517f78f, + 64'hf0ef8526_efcff0ef, + 64'hf6050513_00001517, + 64'hf08ff0ef_f5450513, + 64'h00001517_bbfde865, + 64'h05130000_1517fa0f, + 64'hf0ef8526_f24ff0ef, + 64'hf8850513_00001517, + 64'hf30ff0ef_f7c50513, + 64'h00001517_c92984aa, + 64'hc3dff0ef_8556865e, + 64'h020b2583_f4cff0ef, + 64'h15850513_00001517, + 64'hf3849de3_08090913, + 64'h080a0993_f64ff0ef, + 64'h2485eda5_05130000, + 64'h1517ff3a_1be383bf, + 64'hf0ef0a05_000a4503, + 64'hf80ff0ef_17c50513, + 64'h00001517_80fff0ef, + 64'h01093503_f94ff0ef, + 64'h18050513_00001517, + 64'h823ff0ef_00893503, + 64'hfa8ff0ef_18450513, + 64'h00001517_837ff0ef, + 64'hfb898a13_00093503, + 64'hfc0ff0ef_18c50513, + 64'h00001517_ff2a1be3, + 64'h895ff0ef_0a05000a, + 64'h4503f909_8a13fdef, 64'hf0ef18a5_05130000, - 64'h1517e799_0359e7b3, - 64'h07241a63_29019041, - 64'h14428c49_cafff0ef, - 64'h90410305_141384a2, - 64'h0085151b_cbfff0ef, - 64'hfd641ae3_04040413, - 64'hff7497e3_892af13f, - 64'hf0ef0485_854a0007, - 64'hc5830094_07b30400, - 64'h0b934481_c67ff0ef, + 64'h1517ff9a_19e38b3f, + 64'hf0ef0a05_0007c503, + 64'h014d07b3_4a01ffef, + 64'hf0eff809_8d1318e5, + 64'h05130000_15178d3f, + 64'hf0ef0ff4_f513817f, + 64'hf0ef18a5_05130000, + 64'h15174c11_4cc11005, + 64'h1b630201_09130801, + 64'h099384aa_8b0ad33f, + 64'hf0ef850a_46057101, + 64'h04892583_845ff0ef, + 64'hfb850513_00001517, + 64'h893ff0ef_4556857f, + 64'hf0ef1aa5_05130000, + 64'h15178a5f_f0ef4546, + 64'h869ff0ef_19c50513, + 64'h00001517_8f7ff0ef, + 64'h652687bf_f0ef18e5, + 64'h05130000_1517909f, + 64'hf0ef7502_88dff0ef, + 64'h19050513_00001517, + 64'h91bff0ef_656289ff, + 64'hf0ef18a5_05130000, + 64'h15178edf_f0ef4552, + 64'h8b1ff0ef_18c50513, + 64'h00001517_8ffff0ef, + 64'h45428c3f_f0ef18e5, + 64'h05130000_1517911f, + 64'hf0ef4532_8d5ff0ef, + 64'h19050513_00001517, + 64'h923ff0ef_45228e7f, + 64'hf0ef1925_05130000, + 64'h1517975f_f0ef6502, + 64'h8f9ff0ef_19450513, + 64'h00001517_905ff0ef, + 64'h18050513_00001517, + 64'hbf5154f9_915ff0ef, + 64'h08850513_00001517, + 64'h9a3ff0ef_8526927f, + 64'hf0ef18a5_05130000, + 64'h1517933f_f0ef17e5, + 64'h05130000_1517c905, + 64'h84aa890a_e41ff0ef, + 64'h850a4585_46057101, + 64'h951ff0ef_18450513, + 64'h00001517_80826125, + 64'h6d026ca2_6c426be2, + 64'h7b027aa2_7a4279e2, + 64'h690664a6_64468526, + 64'h60e6fa04_011354fd, + 64'h981ff0ef_18c50513, + 64'h00001517_c90ddeff, + 64'hf0ef8bae_8aaa1080, + 64'he06ae466_e862f05a, + 64'hf852fc4e_e0cae4a6, + 64'hec86ec5e_f456e8a2, + 64'h711db765_54798082, + 64'h61696baa_6b4a6aea, + 64'h7a0a79aa_794a74ea, + 64'h640e60ae_8522547d, + 64'h9d1ff0ef_1b450513, + 64'h00001517_c5dff0ef, + 64'hc61ff0ef_c65ff0ef, + 64'hc69ff0ef_c6dff0ef, + 64'hc71ff0ef_c75ff0ef, + 64'hc79ff0ef_a805c7ff, + 64'hf0efc8bf_f0ef4531, + 64'h45814605_4401f930, + 64'h46e32004_849319fd, + 64'ha19ff0ef_21c50513, + 64'h00001517_e7990369, + 64'he7b30689_1c639041, + 64'h29011442_8c49cb7f, + 64'hf0ef9041_03051413, + 64'h0085151b_cc5ff0ef, + 64'hfc941ae3_04040413, + 64'hff7a17e3_892af15f, + 64'hf0ef0a05_854a0007, + 64'hc5830144_07b30400, + 64'h0b934a01_c69ff0ef, 64'h850a0400_05938622, - 64'h49018426_20048b13, - 64'hff451ee3_cffff0ef, - 64'h3e800a93_0fe00a13, - 64'he951d15f_f0ef4549, - 64'h85a20ff6_76130016, - 64'h66130015_161bf49f, - 64'hf0ef0ff4_7593f51f, - 64'hf0ef0ff5_f5930084, - 64'h559bf5df_f0ef0ff5, - 64'hf5930104_559bf69f, - 64'hf0ef4501_0ff5f593, - 64'h0184559b_fee79be3, - 64'h078500c6_802300f1, - 64'h06b30800_0713567d, - 64'h47810209_d993842e, - 64'h84aae55e_e95aed56, - 64'hf152f94a_e586fd26, - 64'he1a20206_1993f54e, - 64'h71558082_91411542, - 64'h8d3d8ff9_0057979b, - 64'h17016709_0107d79b, - 64'h0105179b_4105551b, - 64'h0105151b_8d2d00c5, - 64'h95138da9_893d0045, - 64'hd51b8da9_91411542, - 64'h8d5d0522_0085579b, - 64'h808207f5_75138d2d, - 64'h00451593_8d2d8d3d, - 64'h0045d51b_0075d79b, - 64'h8de98082_0141853e, - 64'h640260a2_4781c111, - 64'h57f5f89f_f0efc511, - 64'h57f9efbf_f0efc911, - 64'h57fdeb7f_f0effc6d, - 64'he03ff0ef_347d4429, - 64'hb91ff0ef_2cc50513, - 64'h00001517_c89ff0ef, - 64'he022e406_11418082, - 64'h61050015_351364a2, - 64'h644260e2_0004051b, - 64'hfc940ce3_e37ff0ef, - 64'heb3ff0ef_2f450513, - 64'h00001517_85aa842a, - 64'he53ff0ef_02900513, - 64'h400005b7_07700613, - 64'hfbdff0ef_4485e822, - 64'hec06e426_11018082, - 64'h01410015_3513157d, - 64'h640260a2_0004051b, - 64'hef3ff0ef_32e50513, - 64'h85a20000_1517e89f, - 64'hf0ef842a_e97ff0ef, - 64'he022e406_03700513, - 64'h45810650_06131141, - 64'h80826105_690264a2, - 64'h644260e2_00153513, - 64'hf5650513_0004051b, - 64'h01249863_88bd00f9, - 64'h1b634501_4785ec9f, - 64'hf0efecdf_f0ef842a, - 64'hed3ff0ef_84aaed9f, - 64'hf0efeddf_f0efee1f, - 64'hf0ef892a_eefff0ef, - 64'he04ae426_e822ec06, - 64'h45211aa0_05930870, - 64'h06131101_bfcd4501, - 64'h80826105_690264a2, - 64'h644260e2_4505f89f, - 64'hf0ef4585_3bc50513, - 64'h00001517_fe9915e3, - 64'hc00df25f_f0ef892a, - 64'h347df35f_f0ef4501, - 64'h45810950_06134485, - 64'h71040413_e04aec06, - 64'he4266409_e8221101, - 64'hcd1ff06f_61053b65, - 64'h05130000_151760e2, - 64'h6442da7f_f0ef852e, - 64'h65a2cebf_f0ef3fe5, - 64'h05130000_1517cf7f, - 64'hf0ef8522_cfdff0ef, - 64'he42eec06_40450513, - 64'h00001517_842ae822, - 64'h11018082_614564e2, - 64'h740270a2_f47d147d, - 64'h0007d463_4187d79b, - 64'h0185179b_fa7ff0ef, - 64'heb5ff0ef_85320640, - 64'h04136622_ec1ff0ef, - 64'h0ff47513_ec9ff0ef, - 64'h0ff57513_0084551b, - 64'hed5ff0ef_0ff57513, - 64'h0104551b_ee1ff0ef, - 64'h0ff57513_0184551b, - 64'heedff0ef_0404e513, - 64'hfebff0ef_84aa842e, - 64'hec26f022_e432f406, - 64'h7179f07f_f06f0ff0, - 64'h05138082_557db7e9, - 64'h00d70023_078500f6, - 64'h073306c8_2683ff79, - 64'h8b055178_bf4dd6b8, - 64'h07850007_c7038082, - 64'h4501d3b8_4719dbb8, - 64'h577d2000_07b700b6, - 64'hef630007_869b2000, - 64'h08372000_0537fff5, - 64'h8b85537c_20000737, - 64'hd3b82000_07b71060, - 64'h0713fff5_37fd0001, - 64'h03200793_04b76163, - 64'h40a7873b_87aa2000, - 64'h06b7dbb8_57792000, - 64'h07b706b7_ec631000, - 64'h07938082_610564a2, - 64'hd3b84719_dbb86442, - 64'h60e20ff4_7513577d, - 64'h200007b7_e25ff0ef, - 64'h50850513_00001517, - 64'heb3ff0ef_91011502, - 64'h4088e3bf_f0ef5265, - 64'h05130000_1517e395, - 64'h8b852401_53fc57e0, - 64'hff658b05_06478493, - 64'h53f8d3b8_10600713, - 64'h200007b7_fff537fd, - 64'h00010640_0793d7a8, - 64'hdbb85779_e426e822, - 64'hec062000_07b71101, - 64'he81ff06f_61055565, - 64'h05130000_151764a2, - 64'h60e26442_d03c4799, - 64'he99ff0ef_57c50513, - 64'h00001517_f27ff0ef, - 64'h91010204_95132481, - 64'heb1ff0ef_57450513, - 64'h00001517_5064d03c, - 64'h16600793_ec5ff0ef, - 64'h5a850513_00001517, - 64'hf53ff0ef_91010204, - 64'h95132481_eddff0ef, - 64'h5a050513_00001517, - 64'h5064d03c_10400793, - 64'h20000437_fff537fd, - 64'h000147a9_c3b84729, - 64'h200007b7_f05ff0ef, - 64'he426e822_ec065c05, - 64'h05131101_00001517, - 64'h80824108_8082c10c, + 64'h4901ff55_1ee3cfff, + 64'hf0efe004_84133e80, + 64'h0b130fe0_0a93e951, + 64'h20048493_d1dff0ef, + 64'h454985a2_0ff67613, + 64'h00166613_0015161b, + 64'hf4dff0ef_0ff47593, + 64'hf55ff0ef_0ff5f593, + 64'h0084559b_f61ff0ef, + 64'h0ff5f593_0104559b, + 64'hf6dff0ef_45010184, + 64'h559bfee7_9be30785, + 64'h00c68023_00f106b3, + 64'h08000713_567d4781, + 64'h0209d993_842e84aa, + 64'he55ee95a_ed56f152, + 64'hf94ae586_fd26e1a2, + 64'h02061993_f54e7155, + 64'h80829141_15428d3d, + 64'h8ff90057_979b1701, + 64'h67090107_d79b0105, + 64'h179b4105_551b0105, + 64'h151b8d2d_00c59513, + 64'h8da9893d_0045d51b, + 64'h8da99141_15428d5d, + 64'h05220085_579b8082, + 64'h07f57513_8d2d0045, + 64'h15938d2d_8d3d0045, + 64'hd51b0075_d79b8de9, + 64'h80820141_853e6402, + 64'h60a257f5_e1114781, + 64'hf89ff0ef_c51157f9, + 64'hefbff0ef_c91157fd, + 64'heb7ff0ef_fc6de07f, + 64'hf0ef347d_4429b8ff, + 64'hf0ef35a5_05130000, + 64'h1517c89f_f0efe022, + 64'he4061141_80826105, + 64'h00153513_64a26442, + 64'h60e20004_051bfc94, + 64'h0ce3e3bf_f0efeb3f, + 64'hf0ef3825_05130000, + 64'h151785aa_842ae57f, + 64'hf0ef0290_05134000, + 64'h05b70770_0613fbdf, + 64'hf0ef4485_e822ec06, + 64'he4261101_80820141, + 64'h00153513_157d6402, + 64'h60a20004_051bef3f, + 64'hf0ef3bc5_051385a2, + 64'h00001517_e8dff0ef, + 64'h842ae9bf_f0efe022, + 64'he4060370_05134581, + 64'h06500613_11418082, + 64'h61056902_64a26442, + 64'h60e20015_3513f565, + 64'h05130004_051b0124, + 64'h986388bd_00f91b63, + 64'h45014785_ecdff0ef, + 64'hed1ff0ef_842aed7f, + 64'hf0ef84aa_eddff0ef, + 64'hee1ff0ef_ee5ff0ef, + 64'h892aef3f_f0efe04a, + 64'he426e822_ec064521, + 64'h1aa00593_08700613, + 64'h1101bfcd_45018082, + 64'h61056902_64a26442, + 64'h60e24505_f89ff0ef, + 64'h458544a5_05130000, + 64'h1517fe99_15e3c00d, + 64'hf29ff0ef_892a347d, + 64'hf39ff0ef_45014581, + 64'h09500613_44857104, + 64'h0413e04a_ec06e426, + 64'h6409e822_1101ccff, + 64'hf06f6105_44450513, + 64'h00001517_60e26442, + 64'hda5ff0ef_852e65a2, + 64'hce9ff0ef_48c50513, + 64'h00001517_cf5ff0ef, + 64'h8522cfbf_f0efe42e, + 64'hec064925_05130000, + 64'h1517842a_e8221101, + 64'h80826145_64e27402, + 64'h70a2f47d_147d0007, + 64'hd4634187_d79b0185, + 64'h179bfabf_f0efeb5f, + 64'hf0ef8532_06400413, + 64'h6622ec1f_f0ef0ff4, + 64'h7513ec9f_f0ef0ff5, + 64'h75130084_551bed5f, + 64'hf0ef0ff5_75130104, + 64'h551bee1f_f0ef0184, + 64'h551bee9f_f0ef0404, + 64'he513febf_f0ef84aa, + 64'h842eec26_f022e432, + 64'hf4067179_f03ff06f, + 64'h0ff00513_8082557d, + 64'hb7d900d7_00230785, + 64'h00f60733_06c82683, + 64'hff698b05_5178b77d, + 64'hd6b80785_00074703, + 64'h00f50733_80824501, + 64'hd3b84719_dbb8577d, + 64'h200007b7_02b6e163, + 64'h0007869b_20000837, + 64'h20000537_fff58b85, + 64'h537c2000_0737d3b8, + 64'h200007b7_10600713, + 64'hfff537fd_00010320, + 64'h079304b7_61630007, + 64'h871b4781_200006b7, + 64'hdbb85779_200007b7, + 64'h06b7ee63_10000793, + 64'h80826105_64a2d3b8, + 64'h4719dbb8_644260e2, + 64'h0ff47513_577d2000, + 64'h07b7e23f_f0ef5965, + 64'h05130000_1517eb1f, + 64'hf0ef9101_15024088, + 64'he39ff0ef_5b450513, + 64'h00001517_e3958b85, + 64'h240153fc_57e0ff65, + 64'h8b050647_849353f8, + 64'hd3b81060_07132000, + 64'h07b7fff5_37fd0001, + 64'h06400793_d7a8dbb8, + 64'h5779e426_e822ec06, + 64'h200007b7_1101e7ff, + 64'hf06f6105_5e450513, + 64'h00001517_64a260e2, + 64'h6442d03c_4799e97f, + 64'hf0ef60a5_05130000, + 64'h1517f25f_f0ef9101, + 64'h02049513_2481eaff, + 64'hf0ef6025_05130000, + 64'h15175064_d03c1660, + 64'h0793ec3f_f0ef6365, + 64'h05130000_1517f51f, + 64'hf0ef9101_02049513, + 64'h2481edbf_f0ef62e5, + 64'h05130000_15175064, + 64'hd03c1040_07932000, + 64'h0437fff5_37fd0001, + 64'h47a9c3b8_47292000, + 64'h07b7f03f_f0efe426, + 64'he822ec06_64e50513, + 64'h11010000_15178082, + 64'h25014108_8082c10c, 64'h80826105_60e2ecff, 64'hf0ef0091_4503ed7f, 64'hf0ef0081_4503f55f, @@ -885,7 +903,7 @@ module bootrom ( 64'h4009091b_02000937, 64'h00448493_0124a023, 64'h00100913_020004b7, - 64'h25f000ef_01a11113, + 64'h27f000ef_01a11113, 64'h0210011b_03249663, 64'hf1402973_00000493, 64'h30491073_00800913 diff --git a/fpga/src/bootrom/src/gpt.c b/fpga/src/bootrom/src/gpt.c index 15c975110..0e0e00008 100644 --- a/fpga/src/bootrom/src/gpt.c +++ b/fpga/src/bootrom/src/gpt.c @@ -92,7 +92,7 @@ int gpt_find_boot_partition(uint8_t* dest, uint32_t size) partition_entries_t *boot = (partition_entries_t *)(lba2_buf); print_uart("copying boot image "); - res = sd_copy(dest, boot->first_lba, size); + res = sd_copy(dest, boot->first_lba, boot->last_lba - boot->first_lba + 1); if (res != 0) { @@ -105,4 +105,4 @@ int gpt_find_boot_partition(uint8_t* dest, uint32_t size) print_uart(" done!\r\n"); return 0; -} \ No newline at end of file +} diff --git a/openpiton/bootrom/linux/src/gpt.c b/openpiton/bootrom/linux/src/gpt.c index 061b5dafa..168115d76 100644 --- a/openpiton/bootrom/linux/src/gpt.c +++ b/openpiton/bootrom/linux/src/gpt.c @@ -93,7 +93,7 @@ int gpt_find_boot_partition(uint8_t* dest, uint32_t size) partition_entries_t *boot = (partition_entries_t *)(lba2_buf); print_uart("copying boot image "); print_uart("\r\n"); - res = sd_copy(dest, boot->first_lba, size); + res = sd_copy(dest, boot->first_lba, boot->last_lba - boot->first_lba + 1); if (res != 0) {