|
本帖最后由 jiuweiljp 于 2020-7-14 08:58 编辑
1、spi nor版本u-boot
注:没有基础的朋友,请自行在论坛上查找刷写方法,如果没有特别要求最好不要随意更换自己的Uboot。
自己编译的版本,找了一些资料就是没有找到让这个uboot支持内存256MB,这个版本只支持128MB内存。
2、ram版本u-boot
这个版本大家随意使用没有危险,载入地址0x81000000
(1)在u-boot中使用
tftp 0x81000000 dw33d_u-boot_ram.bin
go 0x81000000
(2)在breed中使用
wget 0x81000000 http://192.168.1.x/dw33d_u-boot_ram.bin (x为你电脑的ip)
mem crc32 0x81000000 0x31078 (我也不知道为什么breed中使用ram版的uboot为什么需要校验下,如果不校验有较大概率死机)
boot raw 0x81000000
3、nand版本的u-boot
可以将dw33d的nor flash的第10脚与第16脚短接后上电,就能进入nand启动模式。
- ============启动界面,按esc 可以中断========
- __________________sri____________________
- 944x BootROM Ver. (asic) 1.0 [Nov 8 2011 13:42:57]
- _________________________________________
- find_hif: bootstrap = 0x31e58
- Nand Flash init
- otp_get_nand_table: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
- ONFI: Control Setting = 0xb44
- hdr: [0xbd004000 : 0xbd004000 : 0x2000 : 0x39fbdb14]
- nand_load_fw: read 4 pages
- nand_load_fw: 0x10000 0x800 0xbd0047f0
- nand_load_fw: 0x20000 0x800 0xbd004ff0
- nand_load_fw: 0x30000 0x800 0xbd0057f0
- f/w 0 read complete, jumping to 0xbd004000
- initialize PLL & DDR
- sri
- Scorpion 1.0
- ath_ddr_initial_config(322): (32bit) ddr2 init
- ... done
- *** Warning *** : PCIe WLAN Module not found !!!
- *** Warning *** : PCIe WLAN Module not found !!!
- ... done
- fw1: Nand Init
- hdr:[0xbd004000 : 0xbd004000 : 0x2000 : 0x39fbdb14]
- nand_boot:skip 4 pages
- hdr:[0xa0100000 : 0xa0100000 : 0x81000 : 0x5c7a069a]
- nand_boot:read 258 pages
- f/w 1 read complete, jumping to 0xa0100000
- U-Boot 2016.01-00030-g2fa4604 (Aug 18 2016 - 17:23:32 +0300)
- =========================================
- Caraboot v3.1 (QCA9557, NAND) U-Boot
- http://www.8devices.com/
- -----------------------------------------
- DRAM: 128 MiB
- NAND: 128 MiB
- *** Warning - bad CRC, using default environment
- Net: eth0, eth1
- Hit <ESC> key to stop autoboot: 0
复制代码
- ==============u-boot中的命令比nor中的多了不少====================
- ath>help
- ? - alias for 'help'
- base - print or set address offset
- bdinfo - print Board Info structure
- boot - boot default, i.e., run 'bootcmd'
- bootd - boot default, i.e., run 'bootcmd'
- bootm - boot application image from memory
- bootp - boot image via network using BOOTP/TFTP protocol
- chpart - change active partition
- cmp - memory compare
- coninfo - print console devices and information
- cp - memory copy
- crc32 - checksum calculation
- dhcp - boot image via network using DHCP/TFTP protocol
- dumpmii - MII utility commands
- echo - echo args to console
- editenv - edit environment variable
- env - environment handling commands
- erase - erase FLASH memory
- exit - exit script
- ext4load- load binary file from a Ext4 filesystem
- ext4ls - list files in a directory (default /)
- ext4size- determine a file's size
- false - do nothing, unsuccessfully
- fatinfo - print information about filesystem
- fatload - load binary file from a dos filesystem
- fatls - list files in a directory (default /)
- fatsize - determine a file's size
- flinfo - print FLASH memory information
- go - start application at address 'addr'
- help - print command description/usage
- iminfo - print header information for application image
- imxtract- extract a part of a multi-image
- itest - return true/false on integer compare
- loadb - load binary file over serial line (kermit mode)
- loads - load S-Record file over serial line
- loadx - load binary file over serial line (xmodem mode)
- loady - load binary file over serial line (ymodem mode)
- loop - infinite loop on address range
- md - memory display
- mdio - MDIO utility commands
- mii - MII utility commands
- mm - memory modify (auto-incrementing address)
- mtdparts- define flash/nand partitions
- mtest - simple RAM read/write test
- mw - memory write (fill)
- nand - NAND sub-system
- nboot - boot from NAND device
- nfs - boot image via network using NFS protocol
- nm - memory modify (constant address)
- pci - list and access PCI Configuration Space
- ping - send ICMP ECHO_REQUEST to network host
- printenv- print environment variables
- protect - enable or disable FLASH write protection
- reset - Perform RESET of the CPU
- run - run commands in an environment variable
- saveenv - save environment variables to persistent storage
- setenv - set environment variables
- setexpr - set environment variable as the result of eval expression
- showvar - print local hushshell variables
- sleep - delay execution for some time
- source - run script from memory
- test - minimal test like /bin/sh
- tftpboot- boot image via network using TFTP protocol
- tftpput - TFTP put command, for uploading files to a server
- true - do nothing, successfully
- ubi - ubi commands
- ubifsload- load file from an UBIFS filesystem
- ubifsls - list files in a directory
- ubifsmount- mount UBIFS volume
- ubifsumount- unmount UBIFS volume
- usb - USB sub-system
- usb_boot_file- usb_boot_file - Automatic boot/recovery from file in USB drive
- usbboot - boot from USB device
- version - print monitor, compiler and linker version
- ath>
复制代码 注:竟然还支持USB启动,ubi也在这个版本中支持了
- ath> help nand
- nand - NAND sub-system
- Usage:
- nand info - show available NAND devices
- nand device [dev] - show or set current device
- nand read - addr off|partition size
- nand write - addr off|partition size
- read/write 'size' bytes starting at offset 'off'
- to/from memory address 'addr', skipping bad blocks.
- nand read.raw - addr off|partition [count]
- nand write.raw - addr off|partition [count]
- Use read.raw/write.raw to avoid ECC and access the flash as-is.
- nand erase[.spread] [clean] off size - erase 'size' bytes from offset 'off'
- With '.spread', erase enough for given file size, otherwise,
- 'size' includes skipped bad blocks.
- nand erase.part [clean] partition - erase entire mtd partition'
- nand erase.chip [clean] - erase entire chip'
- nand bad - show bad blocks
- nand dump[.oob] off - dump page
- nand scrub [-y] off size | scrub.part partition | scrub.chip
- really clean NAND erasing bad blocks (UNSAFE)
- nand markbad off [...] - mark bad block(s) at offset (UNSAFE)
- nand biterr off - make a bit error at offset (UNSAFE)
复制代码 对nand的命令也支持多了不少,有兴趣自己研究吧!
- ath> help usb
- usb - USB sub-system
- Usage:
- usb start - start (scan) USB controller
- usb reset - reset (rescan) USB controller
- usb stop [f] - stop USB [f]=force stop
- usb tree - show USB device tree
- usb info [dev] - show available USB devices
- usb test [dev] [port] [mode] - set USB 2.0 test mode
- (specify port 0 to indicate the device's upstream port)
- Available modes: J, K, S[E0_NAK], P[acket], F[orce_Enable]
- usb storage - show details of USB storage devices
- usb dev [dev] - show or set current USB storage device
- usb part [dev] - print partition table of one or all USB storage devices
- usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'
- to memory address `addr'
- usb write addr blk# cnt - write `cnt' blocks starting at block `blk#'
- from memory address `addr'
- ath> help usbboot
- usbboot - boot from USB device
- Usage:
- usbboot loadAddr dev:part
- ath> help usb_boot_file
- usb_boot_file - usb_boot_file - Automatic boot/recovery from file in USB drive
- Usage:
- usb_boot_file
复制代码
刷写这个nand固件也很简单在openwrt中使用
- mtd erase /dev/mtd7
- nandwrite -a -m /dev/mtd7 文件名
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|