software/bios/boot: remove specific linux commands (not needed with device tree)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 14 May 2019 09:44:15 +0000 (11:44 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 14 May 2019 09:45:16 +0000 (11:45 +0200)
litex/soc/software/bios/boot.c
litex/soc/software/bios/sfl.h

index 39b8e02ec9606fc8ba88ee99ed968d75675281a7..822bfb8076e178a67f3e842652bd72e3ab8dcb89 100644 (file)
@@ -84,7 +84,6 @@ int serialboot(void)
 {
        struct sfl_frame frame;
        int failed;
-       unsigned long cmdline_adr, initrdstart_adr, initrdend_adr;
        static const char str[SFL_MAGIC_LEN+1] = SFL_MAGIC_REQ;
        const char *c;
        int ack_status;
@@ -109,7 +108,6 @@ int serialboot(void)
        /* assume ACK_OK */
 
        failed = 0;
-       cmdline_adr = initrdstart_adr = initrdend_adr = 0;
        while(1) {
                int i;
                int actualcrc;
@@ -165,33 +163,9 @@ int serialboot(void)
                                        |((unsigned long)frame.payload[2] <<  8)
                                        |((unsigned long)frame.payload[3] <<  0);
                                uart_write(SFL_ACK_SUCCESS);
-                               boot(cmdline_adr, initrdstart_adr, initrdend_adr, addr);
+                               boot(0, 0, 0, addr);
                                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:
                                failed++;
                                if(failed == MAX_FAILED) {
index c496aed3a77a4ce7e0f3a6eb5004b5ff63194594..ac1aa9f75205967d8782ce48e3fb60c125936446 100644 (file)
@@ -17,11 +17,6 @@ struct sfl_frame {
 #define SFL_CMD_LOAD           0x01
 #define SFL_CMD_JUMP           0x02
 
-/* Linux-specific commands */
-#define SFL_CMD_CMDLINE                0x03
-#define SFL_CMD_INITRDSTART    0x04
-#define SFL_CMD_INITRDEND      0x05
-
 /* Replies */
 #define SFL_ACK_SUCCESS                'K'
 #define SFL_ACK_CRCERROR       'C'