Giter Site home page Giter Site logo

migee99 / u-boot-qca956x Goto Github PK

View Code? Open in Web Editor NEW

This project forked from j-d-r/u-boot-qca956x

0.0 0.0 0.0 18.83 MB

U-Boot 1.1.4 modification for routers with QCA956x support

License: GNU General Public License v2.0

Shell 0.30% C++ 3.23% C 91.94% Objective-C 0.48% Assembly 2.42% Makefile 1.62%

u-boot-qca956x's Introduction

U-Boot_mod with support of QCA956x

This repository is a fork of https://github.com/pepe2k/u-boot_mod with extra work to support a QCA956x device.

Releases

Binary versions at https://github.com/j-d-r/u-boot-QCA956x/releases are mostly untested because I don't have the devices. They may not boot at all, USE THEM AT YOUR OWN RISK.

Main differences with pepe2k version

  • Support for TP-Link EAP245 v1:
    • a QCA9563 device
    • AR8033 ethernet PHY handled by bit-banging over GPIO
    • 16MiB NOR
  • Add bootelf
  • Display more information on boot
  • Optimize binary size: builtin division, change decompression algorithm, tuning in lzma compression, etc.
  • Add completion with tab in command, variable names, and help
  • Add command line history
  • Fix in network: vlan handling, use tftpdstp and tftpsrcp to change TFTP ports
  • Enable many compiler warnings and fix them
  • Many changes in build system: out of source, parallel compilation, LTO, etc.
  • Merge of https://github.com/psyborg55/u-boot_mod

TL;DR

Full Readme from pepe2k is here, here are few examples:

Configure

u-boot> setenv ipaddr 192.168.0.1

or

u-boot> dhcp
u-boot> setenv serverip 192.168.0.2
u-boot> setenv tftpdstp 6969
u-boot> setenv ncport 8888
u-boot> setenv uboot_name u-boot.bin
u-boot> setenv bootfile openwrt-ath79-generic-tplink_eap245-v1-squashfs-sysupgrade.bin
u-boot> setenv fw_addr 0x9F040000
u-boot> saveenv

TFTP

u-boot> tftpboot 0x80800000 $bootfile
u-boot> erase $fw_addr +$filesize
u-boot> cp.b $fileaddr $fw_addr $filesize

or

u-boot> run uboot_upg

or

u-boot> run fw_upg

HTTP server

u-boot> httpd

Netconsole

u-boot> startnc

connect from PC:

$ nc -u -p 6666 192.168.0.1 6666

go back to serial:

u-boot> startsc

Overclock

u-boot> setclk

recover from bad settings, press reset button before plug power, safe frequencies value will be used.

Without serial

Press reset 1 or 2 seconds after power up then leds flash once per second.

Keep button pressed for at least:

  • 3s for web based recovery
  • 5s for U-Boot console
  • 7s for network console

When HTTP server is running leds are pulsing

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.