software/bios/boot: remove specific linux commands (not needed with device tree)

This commit is contained in:
Florent Kermarrec 2019-05-14 11:44:15 +02:00
parent 938d00c283
commit f25707012f
2 changed files with 1 additions and 32 deletions

View File

@ -84,7 +84,6 @@ int serialboot(void)
{ {
struct sfl_frame frame; struct sfl_frame frame;
int failed; int failed;
unsigned long cmdline_adr, initrdstart_adr, initrdend_adr;
static const char str[SFL_MAGIC_LEN+1] = SFL_MAGIC_REQ; static const char str[SFL_MAGIC_LEN+1] = SFL_MAGIC_REQ;
const char *c; const char *c;
int ack_status; int ack_status;
@ -109,7 +108,6 @@ int serialboot(void)
/* assume ACK_OK */ /* assume ACK_OK */
failed = 0; failed = 0;
cmdline_adr = initrdstart_adr = initrdend_adr = 0;
while(1) { while(1) {
int i; int i;
int actualcrc; int actualcrc;
@ -165,33 +163,9 @@ int serialboot(void)
|((unsigned long)frame.payload[2] << 8) |((unsigned long)frame.payload[2] << 8)
|((unsigned long)frame.payload[3] << 0); |((unsigned long)frame.payload[3] << 0);
uart_write(SFL_ACK_SUCCESS); uart_write(SFL_ACK_SUCCESS);
boot(cmdline_adr, initrdstart_adr, initrdend_adr, addr); boot(0, 0, 0, addr);
break; break;
} }
case SFL_CMD_CMDLINE:
failed = 0;
cmdline_adr = ((unsigned long)frame.payload[0] << 24)
|((unsigned long)frame.payload[1] << 16)
|((unsigned long)frame.payload[2] << 8)
|((unsigned long)frame.payload[3] << 0);
uart_write(SFL_ACK_SUCCESS);
break;
case SFL_CMD_INITRDSTART:
failed = 0;
initrdstart_adr = ((unsigned long)frame.payload[0] << 24)
|((unsigned long)frame.payload[1] << 16)
|((unsigned long)frame.payload[2] << 8)
|((unsigned long)frame.payload[3] << 0);
uart_write(SFL_ACK_SUCCESS);
break;
case SFL_CMD_INITRDEND:
failed = 0;
initrdend_adr = ((unsigned long)frame.payload[0] << 24)
|((unsigned long)frame.payload[1] << 16)
|((unsigned long)frame.payload[2] << 8)
|((unsigned long)frame.payload[3] << 0);
uart_write(SFL_ACK_SUCCESS);
break;
default: default:
failed++; failed++;
if(failed == MAX_FAILED) { if(failed == MAX_FAILED) {

View File

@ -17,11 +17,6 @@ struct sfl_frame {
#define SFL_CMD_LOAD 0x01 #define SFL_CMD_LOAD 0x01
#define SFL_CMD_JUMP 0x02 #define SFL_CMD_JUMP 0x02
/* Linux-specific commands */
#define SFL_CMD_CMDLINE 0x03
#define SFL_CMD_INITRDSTART 0x04
#define SFL_CMD_INITRDEND 0x05
/* Replies */ /* Replies */
#define SFL_ACK_SUCCESS 'K' #define SFL_ACK_SUCCESS 'K'
#define SFL_ACK_CRCERROR 'C' #define SFL_ACK_CRCERROR 'C'