mirror of
git://projects.qi-hardware.com/nn-usb-fpga.git
synced 2025-04-21 10:37:27 +03:00
move all reflash scripts to reflash/ folder
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
parent
1ef32f42c7
commit
80e8ce9f93
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ROOTFS=openwrt-xburst-qi_lb60-root.ubi
|
ROOTFS=openwrt-xburst-qi_lb60-root.ubi
|
||||||
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "boot"
|
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "boot"
|
||||||
|
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "nerase 16 512 0 0"
|
||||||
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "nprog 2048 $ROOTFS 0 0 -n"
|
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "nprog 2048 $ROOTFS 0 0 -n"
|
2
binaries/reflash/flash_u-boot.sh
Executable file
2
binaries/reflash/flash_u-boot.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "boot"
|
||||||
|
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "nprog 0 openwrt-xburst-qi_lb60-u-boot.bin 0 0 -n"
|
@ -1,11 +0,0 @@
|
|||||||
::sysinit:/etc/init.d/rcS S boot
|
|
||||||
::shutdown:/etc/init.d/rcS K stop
|
|
||||||
tts/0::askfirst:/bin/ash --login
|
|
||||||
tty1::askfirst:/bin/ash --login
|
|
||||||
tty2::askfirst:/bin/ash --login
|
|
||||||
tty3::askfirst:/bin/ash --login
|
|
||||||
tty4::askfirst:/bin/ash --login
|
|
||||||
tty5::askfirst:/bin/ash --login
|
|
||||||
tty6::askfirst:/bin/ash --login
|
|
||||||
tty7::askfirst:/bin/ash --login
|
|
||||||
tty8::askfirst:/bin/ash --login
|
|
@ -1,2 +0,0 @@
|
|||||||
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "boot"
|
|
||||||
sudo usbboot -f ./usbboot_2gb_nand.cfg -c "nprog 0 openwrt-xburst-qi_lb60-u-boot.bin 0 0 -n"
|
|
@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# usbboot configuration file
|
|
||||||
#
|
|
||||||
# Utility to respond to the Ingenic XBurst USB boot protocol, provide
|
|
||||||
# initial boot stages and ability to access NAND on device.
|
|
||||||
#
|
|
||||||
# Authors: Ingenic Semiconductor, Inc.
|
|
||||||
# Xiangfu Liu <xiangfu@qi-hardware.com>
|
|
||||||
# Marek Lindner <lindner_marek@yahoo.de>
|
|
||||||
# Wolfgang Spraul <wolfgang@qi-hardware.com>
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
# [PLL]
|
|
||||||
EXTCLK = 12 #Define the external crystal in MHz
|
|
||||||
CPUSPEED = 252 #Define the PLL output frequency
|
|
||||||
PHMDIV = 3 #Define the frequency divider ratio of PLL=CCLK:PCLK=HCLK=MCLK
|
|
||||||
BOUDRATE = 57600 #Define the uart boudrate
|
|
||||||
USEUART = 0 #Use which uart, 0/1 for jz4740,0/1/2/3 for jz4750
|
|
||||||
|
|
||||||
# [SDRAM]
|
|
||||||
BUSWIDTH = 16 #The bus width of the SDRAM in bits (16|32)
|
|
||||||
BANKS = 4 #The bank number (2|4)
|
|
||||||
ROWADDR = 13 #Row address width in bits (11-13)
|
|
||||||
COLADDR = 9 #Column address width in bits (8-12)
|
|
||||||
ISMOBILE = 0 #Define whether SDRAM is mobile SDRAM, this only valid for Jz4750 ,1:yes 0:no
|
|
||||||
ISBUSSHARE = 1 #Define whether SDRAM bus share with NAND 1:shared 0:unshared
|
|
||||||
DEBUGOPS = 0
|
|
||||||
|
|
||||||
# [NAND]
|
|
||||||
NAND_BUSWIDTH = 8 #The width of the NAND flash chip in bits (8|16|32)
|
|
||||||
NAND_ROWCYCLES = 3 #The row address cycles (2|3)
|
|
||||||
NAND_PAGESIZE = 4096 #The page size of the NAND chip in bytes(512|2048|4096)
|
|
||||||
NAND_PAGEPERBLOCK = 128 #The page number per block
|
|
||||||
NAND_FORCEERASE = 1 #The force to erase flag (0|1)
|
|
||||||
NAND_OOBSIZE = 128 #oob size in byte
|
|
||||||
NAND_ECCPOS = 12 #Specify the ECC offset inside the oob data (0-[oobsize-1])
|
|
||||||
NAND_BADBLOCKPOS = 0 #Specify the badblock flag offset inside the oob (0-[oobsize-1])
|
|
||||||
NAND_BADBLOCKPAGE = 127 #Specify the page number of badblock flag inside a block(0-[PAGEPERBLOCK-1])
|
|
||||||
NAND_PLANENUM = 1 #The planes number of target nand flash
|
|
||||||
NAND_BCHBIT = 4 #Specify the hardware BCH algorithm for 4750 (4|8)
|
|
||||||
NAND_WPPIN = 0 #Specify the write protect pin number
|
|
||||||
NAND_BLOCKPERCHIP = 0 #Specify the block number per chip,0 means ignore
|
|
||||||
|
|
||||||
#The program will calculate the total SDRAM size by : size = 2^(ROWADDR + COLADDR) * BANKNUM * (SDRAMWIDTH / 4)
|
|
||||||
#The CPUSPEED has restriction as: ( CPUSPEED % EXTCLK == 0 ) && ( CPUSPEED % 12 == 0 )
|
|
||||||
#For jz4750, the program just init BANK0(DSC0).
|
|
||||||
#Beware all variables must be set correct!
|
|
Loading…
x
Reference in New Issue
Block a user