Giter VIP home page Giter VIP logo

uboot-ipq40xx's Introduction

compile

clone uboot code

git clone https://github.com/gl-inet/uboot-ipq40xx.git

clone sdk, ie. toolchain to compile uboot:

git clone https://github.com/gl-inet-builder/openwrt-sdk-ipq806x-qsdk53

edit toplevel Makefile: change STAGING_DIR varable to point to openwrt-sdk-ipq806x/staging_dir you just clone.

make

the uboot binary will be: bin/openwrt-ipq40xx-u-boot-stripped.elf

using uboot web:

  1. connect lan and PC by ethernet, your PC's ip should be 192.168.1.x
  2. push reset button and power on, about 10 seconds later release the button, until wifi led stop flashing and the middle led light on.
  3. using browser: access http://192.168.1.1 to flash firmware. access http://192.168.1.1/uboot.html to flash uboot.

tftp upgrade by uboot cmd line:

connect by serial port, use keyboard input

gl

to get into uboot cmd line.

setup tftpd server at ip 192.168.1.2, put firmware.bin(change name according to board, will be prompted by issue the following command) at tftpd root directory. flash firmware(factory firmware or openwrt firmware) by:

run lf

setup tftpd server at ip 192.168.1.2, put openwrt-ipq40xx-u-boot-stripped.elf(change name according to board, will be prompted by issue the following command) at tftpd root directory. flash uboot by:

run lu

automatic tftp upgrade:

This function is disabled by default, turn it on by

setenv tftp_upgrade 1
saveenv

  1. setup tftpd server at ip 192.168.1.2, put firmware.bin(change name according to board, will be prompted by issue 'run lf' command) at tftpd root directory.
  2. connect the device and tfppd server, when the device power on, it will detect tftpd server to do flashing automatically.

uboot-ipq40xx's People

Contributors

arachsys avatar handongming avatar

Stargazers

 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

uboot-ipq40xx's Issues

httpd

Hi:
I see httpd related code in your code, I want to know if your uboot supports httpd to upgrade firmware ?
Thank you very much !

Fix documentation

Hello,

Please fix documentation on how to build this u-boot.
The best would be to link to a staging dir of current openwrt (21.02 stable)

device got brick

After loading the uboot.bin created after building, it's bricking the device.

bleow is the error message it's showing

U-Boot 2012.07 [local,local] (Aug 15 2022 - 21:55:26)

smem ram ptable found: ver: 1 len: 3
DRAM:  256 MiB
machid : 0x8010001
NAND:  ID = 9580f12c
Vendor = 2c
Device = f1
ONFI device found
SF: Detected W25Q16 with page size 4 KiB, total 2 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x200000
130 MiB
MMC:   qca_mmc: 0
In:    serial
Out:   serial
Err:   serial
machid: 8010001
flash_type: 0

Net:   Card did not respond to voltage select!
MAC0 addr:78:a2:5c:50:5e:7c
PHY ID1: 0xffff
PHY ID2: 0xffff
ipq40xx_ess_sw_init done
eth0
Hit "gl" key to stop booting:  2Unknown speed
Unknown speed
Unknown speed
Unknown speed
Unknown speed
 1Unknown speed
Unknown speed
Unknown speed
Unknown speed
Unknown speed
 0


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.