GithubHelp home page GithubHelp logo

dexildeen / openwrt-19.07.7-spi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from melsem/openwrt-19.07.7-spi

0.0 0.0 0.0 151.07 MB

Orange Pi Zero / R1: Download uboot-dtb-firware from Spi-flash. This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins or for reporting issues. https://forum.openwrt.org/t/xunlong-orange-pi-r1-boot-from-flash/57700

License: GNU General Public License v2.0

Makefile 18.70% Awk 0.02% Shell 8.83% C 62.09% Assembly 1.77% Objective-C 0.15% C++ 4.46% M4 1.25% CMake 0.01% Perl 2.22% Lex 0.07% Yacc 0.13% Python 0.31%

openwrt-19.07.7-spi's Introduction

Example write in spi-flash 16MB for orangepi-zero.

make menuconfig

https://github.com/melsem/openwrt-19.07.7-spi/blob/master/make-menuconfig.png

  1. Download the usual firmware image for MMС: https://downloads.openwrt.org/releases/19.07.7/targets/sunxi/cortexa7/openwrt-19.07.7-sunxi-cortexa7-sun8i-h2-plus-orangepi-zero-ext4-sdcard.img.gz

  2. Record it on MMС.

  3. On the MMC flash drive, in the recorded firmware image, in the /boot folder, delete the dtb file.

  4. Download the dtb file to /boot folder: (https://github.com/melsem/openwrt-19.07.7-spi/raw/master/sun8i-h2-plus-orangepi-zero-dtb) And rename it to dtb.

  5. Insert this MMC flash drive into orangepi and apply power.

  6. And on orangepi do it:

cd /tmp
mtd -e uboot write sun8i-h2-plus_orangepi-zero-boot.bin uboot
mtd -e dtb write sun8i-h2-plus-orangepi-zero-dtb dtb
mtd -e firmware write sun8i-h2-plus-orangepi-zero-squashfs-sysupgrade.bin firmware
  • Wait for each command to complete and turn off the power.
  • Remove the MMC flash drive and turn on the power.
  • And the orangepi will boot from the SPI flash drive ..
  1. Edit basic boot configuration: http://192.168.10.1/boot
on/off wifi, audio, i2c, usb2-3, irc, gpio-keys-user, rotary encoder.
  1. Set checkmarks, click save. And then click Apply. Orange Pi reboots.

But in order for the Wi-Fi to work, you need to give the "reboot" command again. Or turn the power off and on.

And then, as always, tune in to Luci. 192.168.10.1

[    0.422624] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.444590] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 42, base_baud = 1500000) is a U6_16550A
[    1.046026] console [ttyS0] enabled
[    1.054254] loop: module loaded
[    1.059496] m25p80 spi0.0: found w25q128, expected mx25l1606e
[    1.069941] random: fast init done
[    1.075995] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    1.080735] 3 fixed-partitions partitions found on MTD device spi0.0
[    1.087109] Creating 3 MTD partitions on "spi0.0":
[    1.091920] 0x000000000000-0x000000080000 : "uboot"
[    1.097540] 0x000000080000-0x000000090000 : "dtb"
[    1.102842] 0x000000090000-0x000001000000 : "firmware"
[    1.108866] 2 uimage-fw partitions found on MTD device firmware
[    1.114799] Creating 2 MTD partitions on "firmware":
[    1.119793] 0x000000000000-0x0000002a21c8 : "kernel"
[    1.125439] 0x0000002a21c8-0x000000f70000 : "rootfs"
[    1.131001] mtd: device 4 (rootfs) set to be root filesystem
[    1.136825] 1 squashfs-split partitions found on MTD device rootfs
[    1.143015] 0x000000c90000-0x000000f70000 : "rootfs_data"
[    1.149795] libphy: Fixed MDIO Bus: probed
[    1.154339] dwmac-sun8i 1c30000.ethernet: PTP uses main clock

===================================================================


| |.-----.-----.-----.| | | |.----.| |_ | - || _ | -| || | | || || | |_____|| |||||___||| |____| || W I R E L E S S F R E E D O M

This is the buildsystem for the OpenWrt Linux distribution.

To build your own firmware you need a Linux, BSD or MacOSX system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system.

You need gcc, binutils, bzip2, flex, python, perl, make, find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers installed.

  1. Run "./scripts/feeds update -a" to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default

  2. Run "./scripts/feeds install -a" to install symlinks for all obtained packages into package/feeds/

  3. Run "make menuconfig" to select your preferred configuration for the toolchain, target system & firmware packages.

  4. Run "make" to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the Linux kernel & all chosen applications for your target system.

Sunshine! Your OpenWrt Community http://www.openwrt.org

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.