GithubHelp home page GithubHelp logo

yuzukihd / syterkit Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 11.0 120.53 MB

SyterKit is a baremetal framework, As bootloader, MPU framework, Running on SRAM

Home Page: https://SyterKit.YuzukiHD.top

CMake 0.94% C 97.25% Assembly 1.69% Makefile 0.10% Shell 0.02%
bare-metal bootloader u-boot

syterkit's People

Contributors

916bgai avatar chainsx avatar samulkyull avatar yuzukitsuru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

syterkit's Issues

sdhci2 not initialized

I'm trying to make the TinyVision board boot from the onboard SD-NAND (I soldered a chip).
Added the sdhci2 structure to the board.c file

sdhci_t sdhci2 = {
        .name = "sdhci2",
        .reg = (sdhci_reg_t *) 0x04022000,
        .voltage = MMC_VDD_27_36,
        .width = MMC_BUS_WIDTH_4,
        .clock = MMC_CLK_50M,
        .removable = 0,
        .isspi = FALSE,
        .gpio_clk = {GPIO_PIN(GPIO_PORTC, 0), GPIO_PERIPH_MUX3},
        .gpio_cmd = {GPIO_PIN(GPIO_PORTC, 1), GPIO_PERIPH_MUX3},
        .gpio_d0 = {GPIO_PIN(GPIO_PORTC, 4), GPIO_PERIPH_MUX3},
        .gpio_d1 = {GPIO_PIN(GPIO_PORTC, 3), GPIO_PERIPH_MUX3},
        .gpio_d2 = {GPIO_PIN(GPIO_PORTC, 2), GPIO_PERIPH_MUX3},
        .gpio_d3 = {GPIO_PIN(GPIO_PORTC, 5), GPIO_PERIPH_MUX3},
};

added the initialization in the syter_boot/main.c file

    if (sunxi_sdhci_init(&sdhci2) != 0) {
        printk(LOG_LEVEL_ERROR, "SMHC2: %s controller init failed\n", sdhci2.name);
        goto _shell;
    } else {
        printk(LOG_LEVEL_INFO, "SMHC2: %s controller v%x initialized\n", sdhci2.name, sdhci2.reg->vers);
    }

    if (sdmmc_init(&card0, &sdhci2) != 0) {
        printk(LOG_LEVEL_WARNING, "SMHC2: init failed\n");
        goto _shell;
    }
  

compiled and flashed to the SD-NAND, this is the output when booting from it

[    0.000124][I]  _____     _           _____ _ _
[    0.005125][I] |   __|_ _| |_ ___ ___|  |  |_| |_
[    0.010160][I] |__   | | |  _| -_|  _|    -| | _|
[    0.015161][I] |_____|_  |_| |___|_| |__|__|_|_|
[    0.020170][I]       |___|
[    0.025171][I] ***********************************
[    0.030180][I]  SyterKit v0.2.4 Commit:
[    0.034262][I]  github.com/YuzukiHD/SyterKit
[    0.039263][I] ***********************************
[    0.044281][I]  Built by: arm-none-eabi-gcc 8.3.1
[    0.049204][I]
[    0.052332][I] DRAM: size = 64MB
[    0.058609][I] DRAM: simple test OK
[    0.068207][I] SMHC2: sdhci2 controller v0 initialized
[    0.173584][W] SMHC: wait timeout 0 status 0 flag 4
[    0.178431][W] SMHC: cmd timeout
[    0.181698][E] SMHC: set idle state failed
[    0.185824][W] SMHC2: init failed
SyterKit>

There is not hardware issues as I am able to enable the SD2 on the .dts and use it under OpenWRT (booting from SD Card).

This the output when bootng from SD Card

[    0.000125][I]  _____     _           _____ _ _
[    0.005143][I] |   __|_ _| |_ ___ ___|  |  |_| |_
[    0.010187][I] |__   | | |  _| -_|  _|    -| | _|
[    0.015240][I] |_____|_  |_| |___|_| |__|__|_|_|
[    0.020302][I]       |___|
[    0.025319][I] ***********************************
[    0.030346][I]  SyterKit v0.2.4 Commit:
[    0.034523][I]  github.com/YuzukiHD/SyterKit
[    0.039550][I] ***********************************
[    0.044585][I]  Built by: arm-none-eabi-gcc 8.3.1
[    0.049525][I]
[    0.052607][I] DRAM: size = 64MB
[    0.058479][I] DRAM: simple test OK
[    0.062458][I] SMHC0: sdhci0 controller v50400 initialized
[    0.083915][I] SMHC: capacity 31.9GB
[    0.088109][I] SHMC: SD card detected
[    0.165755][I] FATFS: read sunxi.dtb addr=41008000
[    0.183112][I] FATFS: read in 13ms at 2.32MB/S
[    0.187526][I] FATFS: read zImage addr=41800000
[    1.871819][I] FATFS: read in 1680ms at 3.02MB/S
[    1.876363][I] FATFS: read config.ini addr=40008000
[    1.881970][I] FATFS: read in 1ms at 0.19MB/S
[    1.886280][I] FATFS: done in 1722ms
[    1.902492][I] Hit any key to stop autoboot:  0
[    6.910329][I] disable mmu ok...
[    6.913726][I] disable dcache ok...
[    6.917401][I] disable icache ok...
[    6.921075][I] free interrupt ok...
[    6.924750][I] enable kernel smp ok...
[    6.928659][I] jump to kernel address: 0x41800000

Am I missing something to initialize the sdhci2 and boot from it?
Thanks.

SyterKit 会支持V3S吗?

作为这个系列的入门级的V3S,手工处理方便,在低端产品上使用不少。SyterKit有支持V3S的计划吗?

SyterKit是否适合用来给其他SoC做启动加速,例如君正X2000

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.