Skip to content

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

Notifications You must be signed in to change notification settings

BSN32/openwrt-19.07.2-spi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example write in spi-flash for opi-R1.

  1. Download the usual firmware image for MMС: https://downloads.openwrt.org/releases/19.07.2/targets/sunxi/cortexa7/openwrt-19.07.2-sunxi-cortexa7-sun8i-h2-plus-orangepi-r1-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.2-spi/raw/master/sun8i-h2-plus-orangepi-r1.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 uboot_opi-zero_opi-r1.bin uboot
mtd -e dtb write sun8i-h2-plus-orangepi-r1.dtb dtb
mtd -e firmware write openwrt-sunxi-cortexa7-sun8i-h2-plus-orangepi-r1-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.

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 62.3%
  • Makefile 17.9%
  • Shell 8.9%
  • C++ 5.1%
  • Perl 2.2%
  • Assembly 1.8%
  • Other 1.8%