GithubHelp home page GithubHelp logo

melsem / openwrt-19.07.7-spi Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 8.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 People

Contributors

melsem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openwrt-19.07.7-spi's Issues

Orange Pi Zero LTS - firmware write "Failed to erase block"

Hi.
Thanks for great work. ๐Ÿ‘

I have an error in the process of writing firmware to SPI, maybe you could help me to solve it.

Hardware:

  • Orange Pi Zero LTS 512 MB
  • Onboard SPI chip MX25L1606E - 16 MB

Software:

What I did:

  1. Flash image on SD card. Replaced original dtb file with your's. Also put mkdir on SD, and put here dt, uboot, firmware files.
  2. Boot from SD successfully. Mount SD card, copy 3 files to /tmp folder.
  3. Change work directory to /tmp and run
mtd -e uboot write sun8i-h2-plus_orangepi-zero-lts-boot.bin uboot
mtd -e dtb write sun8i-h2-plus-orangepi-zero-lts-dtb dtb
mtd -e firmware write sun8i-h2-plus-orangepi-zero-lts-squashfs-sysupgrade.bin firmware

uboot and dtb finishing with no errors, but firmware always returns [e]Failed to erase block.

I tried to erase the firmware separately mtd erase firmware - there are no errors. But when I try to write - I get erase block error.
When I try to boot it seems that device in something like recovery mode, - network LEDs acts, but no IP address at all.

I have also tried using the files from the classic Orange Pi Zero as described on the main repository page. I did not get success, which is expected. ๐Ÿ˜

Logs:

root@OpenWrt:/tmp# mtd -e uboot write sun8i-h2-plus_orangepi-zero-lts-boot.bin uboot
Unlocking uboot ...
Erasing uboot ...
Writing from sun8i-h2-plus_orangepi-zero-lts-boot.bin to uboot ...     

root@OpenWrt:/tmp# mtd -e dtb write sun8i-h2-plus-orangepi-zero-lts-dtb dtb
Unlocking dtb ...
Erasing dtb ...
Writing from sun8i-h2-plus-orangepi-zero-lts-dtb to dtb ...     

root@OpenWrt:/tmp# mtd -e firmware write sun8i-h2-plus-orangepi-zero-lts-squashfs-sysupgrade.bin firmware
Unlocking firmware ...
Erasing firmware ...
Writing from sun8i-h2-plus-orangepi-zero-lts-squashfs-sysupgrade.bin to firmware ...  [e]Failed to erase block
root@OpenWrt:/tmp# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00010000 00010000 "dtb"
mtd2: 00170000 00010000 "firmware"
root@OpenWrt:/tmp# ls -l
-rw-r--r--    1 root     root             4 Feb 15 15:22 TZ
-rw-r--r--    1 root     root           173 Jan  1  1970 board.json
-rw-r--r--    1 root     root            69 Feb 15 15:23 dhcp.leases
drwxr-xr-x    2 root     root            40 Feb 15 15:22 dnsmasq.d
drwxr-xr-x    3 root     root            80 Feb 15 15:22 etc
drwxr-xr-x    2 root     root            60 Feb 15 15:22 hosts
drwxr-xr-x    3 root     root            60 Feb 15 15:22 lib
drwxr-xr-x    2 root     root           380 Feb 15 15:33 lock
drwxr-xr-x    2 root     root            80 Feb 15 15:22 log
-rw-r--r--    1 root     root            32 Feb 15 15:22 resolv.conf
-rw-r--r--    1 root     root             0 Feb 15 15:22 resolv.conf.auto
drwxr-xr-x    4 root     root           220 Feb 15 15:23 run
drwxrwxrwt    2 root     root            40 Jan  1  1970 shm
drwxr-xr-x    2 root     root            60 Feb 15 15:22 state
-rwxr-xr-x    1 root     root         24576 Feb 15 15:23 sun8i-h2-plus-orangepi-zero-lts-dtb
-rwxr-xr-x    1 root     root      15286546 Feb 15 15:23 sun8i-h2-plus-orangepi-zero-lts-squashfs-sysupgrade.bin
-rwxr-xr-x    1 root     root        475136 Feb 15 15:23 sun8i-h2-plus_orangepi-zero-lts-boot.bin
drwxr-xr-x    2 root     root            80 Jan  1  1970 sysinfo
drwxr-xr-x    2 root     root            40 Feb 15 15:22 tmp

Tried twice. Files reloaded and overwritten.

What am I doing wrong?

Orange Pi R1 Plus LTS

Hi!
what is the magic behind your work? i can build my own image for an Orange Pi R1 Plus LTS and run it via MMC, but how can i build the files you are distributed in your repo: boot.bin and an dtb, how can i create this files by my own for an Orange Pi R1 Plus LTS?

any hints? thx!

SPI for 2MB version

Hello
Thanks for your work. I have a OPi Zero 2MB SPI version. Is it possible to install the image on it. Is it possible to use WiFi on the SD version?
MfG Steve

Some errors while trying to build image yourself

I'm trying to build my own image using instruction placed here but I have some errors.
Maybe you could help?

I am using Ubuntu 20.04.3 LTS and trying to build image for Orange Pi Zero LTS.
I have installed all listed tools, cloned this repository, installed python 2.7 to use in virtual environment. After that updated feeds, installed feeds, selecter Orange Pi Zero LTC using menuconfig and tried to build using make.

I have been using next commands:

Update and install feeds commands return some warnings about dependencies which could not be found. menuconfig also adds some lines about "recursive dependency detected".
Do I understand correctly that you should not pay attention to these warnings?
But when I run the build using make - I get errors that I don't know how I can fix because I don't understand the error itself.
I have posted full log files on pastebin and attached links.

I will appreciate any help

How to rollback to SD boot?

Hi,
I followed your instructions and successfully managed to get the boot over SPI.
Quick question, how do I rollback to uSD boot?

Thanks

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.