-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VCU118 FPGA Updates + FireMarshal on Prototypes #849
Changes from 2 commits
f334d57
5a41c5d
2cfd930
be13781
985faa4
565ef2e
e159c4f
436c235
bbf4fc1
8ed61d6
b152bbd
9cee20e
1dd2698
325f65e
39c3756
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,12 @@ | |
#define DEBUG | ||
#include "kprintf.h" | ||
|
||
#define MAX_CORES 8 | ||
|
||
// A sector is 512 bytes, so ((1 << 11) * 512) = 1 MiB | ||
#define PAYLOAD_SIZE (16 << 11) | ||
// Total payload in B | ||
#define PAYLOAD_SIZE_B (30 << 20) // default: 30MiB | ||
// A sector is 512 bytes, so (1 << 11) * 512B = 1 MiB | ||
#define SECTOR_SIZE_B 512 | ||
// Payload size in # of sectors | ||
#define PAYLOAD_SIZE (PAYLOAD_SIZE_B / SECTOR_SIZE_B) | ||
|
||
// The sector at which the BBL partition starts | ||
#define BBL_PARTITION_START_SECTOR 34 | ||
|
@@ -168,9 +170,12 @@ static int copy(void) | |
int rc = 0; | ||
|
||
dputs("CMD18"); | ||
|
||
kprintf("LOADING 0x%lxB PAYLOAD\r\n", PAYLOAD_SIZE_B); | ||
kprintf("LOADING "); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need both of these messages? The second loading seems redundant. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a nice spinner that comes up next to the loading so I just left this. Technically I can put the spinner next to the |
||
|
||
// John: Let's go slow until we get this working | ||
// TODO: Can this be sped up? | ||
// John Wright: Let's go slow until we get this working | ||
//REG32(spi, SPI_REG_SCKDIV) = (F_CLK / 16666666UL); | ||
REG32(spi, SPI_REG_SCKDIV) = (F_CLK / 5000000UL); | ||
if (sd_cmd(0x52, BBL_PARTITION_START_SECTOR, 0xE1) != 0x00) { | ||
|
@@ -182,7 +187,7 @@ static int copy(void) | |
long n; | ||
|
||
crc = 0; | ||
n = 512; | ||
n = SECTOR_SIZE_B; | ||
while (sd_dummy() != 0xFE); | ||
do { | ||
uint8_t x = sd_dummy(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How much extra room is there here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Linux binary with FireMarshal is around 20-25MiB so 5MiB room.