|
此UBOOT适用于跟Arduino2560通信
刷UBOOT可以参考之前串口刷机教程。
串口刷机时,波特率为57600,过程如下:
1、电脑 TTL串口连接5.0模块,网口通过转接线连接5.0模块
注意:5.0模块上的跳线帽要拔掉
2、关闭防火墙
3、设置需要使用网口IP地址为 192.168.100.54
4、打开tftp
5、打开串口工具,选择串口,设置波特率57600
6、模块上电,输入指令,等待烧录完成,自动重启。
刷机完成。
烧录UBOOT过程如下截图:
烧录UBOOT
话说论坛出的5.0 WiFi模块,配置如下:
CPU:MT7620N 580MHz
FLASH:SPI (GD/W)25Q64 8MByte
DDR:DDRⅡ, NT5TU32M16DG-BE,BGA84 32*16=521Mb=64MByte
而实际识别出来只有32MByte的DRAM,上电打印如下:
- U-Boot 1.1.3 (Sep 21 2014 - 09:29:11)
- Board: Ralink APSoC DRAM: 32 MB
- relocate_code Pointer at: 81fb8000
- enable ephy clock...done. rf reg 29 = 5
- SSC disabled.
- spi_wait_nsec: 29
- spi device id: c8 40 17 c8 40 (4017c840)
- Warning: un-recognized chip ID, please update bootloader!
- raspi_read: from:30000 len:1000
- raspi_read: from:30000 len:1000
- ============================================
- Ralink UBoot Version: 10.9.0.0
- --------------------------------------------
- ASIC 7620_MP (Port5<->None)
- DRAM component: 256 Mbits DDR, width 16
- DRAM bus: 16 bit
- Total memory: 32 MBytes
- Flash component: 8 MBytes NOR Flash
- Date:Sep 21 2014 Time:09:29:11
- ============================================
- icache: sets:512, ways:4, linesz:32 ,total:65536
- dcache: sets:256, ways:4, linesz:32 ,total:32768
- ##### The CPU freq = 580 MHZ ####
- estimate memory size =32 Mbytes
复制代码 重新编译了一个UBOOT,烧录后上电打印如下,识别到64M DRAM:
- U-Boot 1.1.3 (Dec 17 2016 - 12:44:43)
- Board: Ralink APSoC DRAM: 64 MB
- relocate_code Pointer at: 83fb8000
- enable ephy clock...done. rf reg 29 = 5
- SSC disabled.
- spi_wait_nsec: 29
- spi device id: c8 40 17 c8 40 (4017c840)
- Warning: un-recognized chip ID, please update bootloader!
- raspi_read: from:30000 len:1000
- raspi_read: from:30000 len:1000
- ============================================
- Ralink UBoot Version: 4.2.1.0
- --------------------------------------------
- ASIC 7620_MP (Port5<->None)
- DRAM component: 512 Mbits DDR, width 16
- DRAM bus: 16 bit
- Total memory: 64 MBytes
- Flash component: SPI Flash
- Date:Dec 17 2016 Time:12:44:43
- ============================================
- icache: sets:512, ways:4, linesz:32 ,total:65536
- dcache: sets:256, ways:4, linesz:32 ,total:32768
- ##### The CPU freq = 580 MHZ ####
- estimate memory size =64 Mbytes
复制代码 系统运行后,通过输入:top,得到系统参数如下,可以看到已使用20540K 还有40708K可用~~~~~~想DIY的童鞋们 刷uboot吧。- Mem: 20540K used, 40708K free, 68K shrd, 2348K buff, 7008K cached
- CPU: 0% usr 9% sys 0% nic 90% idle 0% io 0% irq 0% sirq
- Load average: 0.01 0.04 0.03 1/37 1164
- PID PPID USER STAT VSZ %VSZ %CPU COMMAND
- 1164 410 root R 1320 2% 9% top
- 818 1 root S 1984 3% 0% /usr/sbin/uhttpd -f -h /www -r Robot_
- 1065 1 root S 1820 3% 0% /usr/sbin/hostapd -P /var/run/wifi-ph
- 745 1 root S 1704 3% 0% /sbin/netifd
- 1 0 root S 1572 3% 0% /sbin/procd
- 712 1 root S 1488 2% 0% /sbin/rpcd
- 762 1 root S 1324 2% 0% /usr/sbin/odhcpd
- root@Robot_Link_5:/#
复制代码
|
|