![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <config.h>#include <log.h>#include <timer.h>#include <common.h>#include <jmp.h>#include <mmu.h>#include <cli.h>#include <cli_shell.h>#include <cli_termesc.h>#include <image_loader.h>#include "sys-dram.h"#include "sys-rtc.h"#include "sys-sid.h"#include "sys-spi.h"#include "sys-dma.h"#include "sys-spi-nand.h"#include "ff.h"#include "libfdt.h"#include "uart.h"
Classes | |
| struct | image_info_t |
Macros | |
| #define | CONFIG_KERNEL_FILENAME "zImage" |
| #define | CONFIG_DTB_FILENAME "sunxi.dtb" |
| #define | CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| #define | CONFIG_DTB_LOAD_ADDR (0x41008000) |
| #define | CONFIG_KERNEL_LOAD_ADDR (0x41800000) |
| #define | CONFIG_SPINAND_DTB_ADDR (128 * 2048) |
| #define | CONFIG_SPINAND_KERNEL_ADDR (256 * 2048) |
| #define | CONFIG_DEFAULT_BOOTDELAY 5 |
| #define | FILENAME_MAX_LEN 64 |
Functions | |
| int | load_spi_nand (sunxi_spi_t *spi, image_info_t *image) |
| static int | abortboot_single_key (int bootdelay) |
| msh_declare_command (reload) | |
| msh_define_help (reload, "rescan SPI NAND and reload DTB, Kernel zImage", "Usage: reload\n") | |
| int | cmd_reload (int argc, const char **argv) |
| msh_declare_command (boot) | |
| msh_define_help (boot, "boot to linux", "Usage: boot\n") | |
| int | cmd_boot (int argc, const char **argv) |
| int | main (void) |
Variables | |
| sunxi_serial_t | uart_dbg |
| sunxi_spi_t | sunxi_spi0 |
| dram_para_t | dram_para |
| image_info_t | image |
| const msh_command_entry | commands [] |
| #define CONFIG_DEFAULT_BOOTDELAY 5 |
| #define CONFIG_DTB_FILENAME "sunxi.dtb" |
| #define CONFIG_DTB_LOAD_ADDR (0x41008000) |
| #define CONFIG_KERNEL_FILENAME "zImage" |
| #define CONFIG_KERNEL_LOAD_ADDR (0x41800000) |
| #define CONFIG_SDMMC_SPEED_TEST_SIZE 1024 |
| #define CONFIG_SPINAND_DTB_ADDR (128 * 2048) |
| #define CONFIG_SPINAND_KERNEL_ADDR (256 * 2048) |
| #define FILENAME_MAX_LEN 64 |
|
static |
| int cmd_boot | ( | int | argc, |
| const char ** | argv | ||
| ) |
| int cmd_reload | ( | int | argc, |
| const char ** | argv | ||
| ) |
| int load_spi_nand | ( | sunxi_spi_t * | spi, |
| image_info_t * | image | ||
| ) |
| int main | ( | void | ) |
| msh_declare_command | ( | boot | ) |
| msh_declare_command | ( | reload | ) |
| msh_define_help | ( | boot | , |
| "boot to linux" | , | ||
| "Usage: boot\n" | |||
| ) |
| msh_define_help | ( | reload | , |
| "rescan SPI NAND and reload | DTB, | ||
| Kernel zImage" | , | ||
| "Usage: reload\n" | |||
| ) |
| const msh_command_entry commands[] |
|
extern |
| image_info_t image |
|
extern |
|
extern |