Giter VIP home page Giter VIP logo

hyphop / mizy-uboot Goto Github PK

View Code? Open in Web Editor NEW
35.0 9.0 7.0 80 KB

advanced u-boot (for sunxi Orange Pi Zero | Zero Plus2 h3 | R1, and another sunxi boards ), ready for full load linux from spi-flash, i2c display, FEL mode, and many other improvement

License: Other

Shell 20.42% C 32.87% Objective-C 40.48% Perl 6.24%
uboot uboot-mizy spi-flash i2c-display fel-mode linux sunxi orangepi-zero

mizy-uboot's Introduction

miZy-uboot

Build Status

Advanced u-boot (for sunxi Orange Pi Zero, another sunxi boards maybe work too ), ready for full load linux from spi-flash, i2c display, FEL mode, and many other improvement

Its just a part of miZy project, and same as other our parts can standalone used

SOCs / Boards

  • friendly arm NanoPi NEO - TESTED OK
  • MX3 h3 - TESTED OK ( boot from MMC, NAND in progress )
  • M16 LITE H3 - WAIT
  • Orange Pi ZeroZero h2+ - TESTED OK
  • Orange Pi Zero Plus2 h3 - TESTED OK
  • Orange Pi Zero R1 - TESTED OK
  • Orange Pi One - TESTED OK
  • Orange Pi PC - TESTED OK
  • Orange Pi PC+ - NOT TESTED
  • Orange Pi Plus2E - NOT TESTED
  • Orange Pi Lite - NOT TESTED

Features ( 04/30/2019 )

  • boot from h2+ h3 sunxi boards
  • boot from spi-flash and next full load linux from spi-flash is ready via new added spiread cmd
  • ready for fast uboot & full linux load, with boot-time about 0.5 & 4-8 sec (MMC-SPI), from power-on time
  • 4x increase SPI-flash reading speed in SPL-loader and UBOOT ( spi work on 24Mhz freq now )
  • improved i2c available for any gpios (configurable soft mode) not only for TWI0 (PA11 PA12) or TWI0 (PA18 PA19)
  • splash screen on ssd1306 i2c OLED 128x64 display TWI0 or TWI1 connected
  • ready for uboot splash screen customization
  • can fix (set or disable) FEL mode direct from uboot shell (write or clear FEL-loader on mmc)
  • support any LZMA LZO GZIP uboot packed images, and directly from uboot shell cmds
  • accept uboot images with bad crc
  • fast advanced configuration for build-in uboot environment, without recompilation
  • ready for next USB loading from any 3 usb ports
  • new improved building system full automated, speed + size optimized
  • easy write new patches with find_changes script
  • led indication and splash for boot process
  • many other small fixes
  • boot from NAND in progress ( 04/30/2019 ) for MX3

SPI NOTE

by default device can not have SPI flash or have only 2M bytes (mx25l1606e its enough for uboot only), needed re/install SPI flash to 4M or 8M or 16M bytes if u need full load linux from spi-flash. For example we have tested on W25q128 spi flash, and this worked well!

Get Source, Prepare, Build & Clear - need only 10-30 sec for build uboot

cd /tmp
mkdir zero_builder
cd  zero_builder

git clone https://github.com/hyphop/miZy-uboot
cd miZy-uboot

./uboot_prepare
./uboot_build

!note: if have permissions problems with modprobe|mount overlay try sudo bash before ./uboot_prepare ...

if everything is ok, compilled uboot must be there ./uboot-mizy.bin, and ready for usage! now we can clear building data.

./uboot_clear_all

Easy make - by one-line command

wget http://raw.githubusercontent.com/hyphop/miZy-uboot/master/make_it_easy -O- | sh -

Output

  • u-boot-sunxi-with-spl.bin -> ./uboot-mizy/u-boot-sunxi-with-spl.bin
  • uboot-mizy.bin -> ../bin/uboot/uboot-mizy.bin

Deps and cross compilation

  • dtc v1.4.3 (flex + bison)
  • toolchain-arm_cortex-a9+neon_gcc-5.3.0_musl-1.1.15_eabi

its easy and automated by scripts!

binary downloads

miZy

miZy - open source minimalistic tiny fast embedded Linux system, (for sunxi Orange Pi Zero, another sunxi boards maybe work too )

NOTES

some source code parts in low quality ( sorry but I'm new to uboot ), some parts not annotated not documented, we stay in active develop now! wellcome to join us improve & tidy this code.

LINKS

;)

miZy

mizy-uboot's People

Contributors

hyphop 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mizy-uboot's Issues

./uboot_build problem

OUTPUT ./uboot-mizy/u-boot-sunxi-with-spl.bin
ls: cannot access './uboot-mizy/u-boot-sunxi-with-spl.bin': No such file or directory

Linux ubuntu 4.4.0-67-generic #88-Ubuntu

2018.01

Hi! Any success updating to a recent u-boot version? Cheers

U-Boot image data size mismatch

Hello,
I have an issue when testing image with sunxi-fel uboot option. Here is output for both 8 and 16Mb images.

sudo ./sunxi-fel -v uboot orange_pi_zero_miZy-music_box-mpd-net-SPI-beta_test.SPI.8M.bin
Stack pointers: sp_irq=0x00002000, sp=0x00005E08
Reading the MMU translation table from 0x00008000
Disabling I-cache, MMU and branch prediction... done.
=> Executing the SPL... done.
Setting write-combine mapping for DRAM.
Setting cached mapping for BROM.
Writing back the MMU translation table.
Enabling I-cache, MMU and branch prediction... done.
U-Boot image data size mismatch: expected 8355776, got 431447
sudo ./sunxi-fel -v uboot orange_pi_zero_miZy-music_box-mpd-net-SPI-beta_test.SPI.16M.bin
Stack pointers: sp_irq=0x00002000, sp=0x00005E08
MMU is not enabled by BROM
Generating the new MMU translation table at 0x00008000
=> Executing the SPL... done.
Setting write-combine mapping for DRAM.
Setting cached mapping for BROM.
Writing back the MMU translation table.
Enabling I-cache, MMU and branch prediction... done.
U-Boot image data size mismatch: expected 16744384, got 431447

u-boot mainline v2017.09 works with this command.

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.