RK3568启动配置

硬件环境

连上电脑,这时候默认是uboot启动linux,因此我们需要进入uboot的命令行界面,通过网络加载oneos运行。启动后按空格:

Rockchip watchdog timeout: 15 sec
Net:   eth0: ethernet@fe2a0000, eth1: ethernet@fe010000
Hit key to stop autoboot('Spacebar'):  0
---------------------------------------------
0:Exit to console
1:Reboot
2:Display type

选择0,进入uboot命令行,键入help可查看常用命令:

=>
=>
=> help
?       - alias for 'help'
android_print_hdr- print android image header
atags   - Dump all atags
base    - print or set address offset
bdinfo  - print Board Info structure

现在可以配置了,其实主要就是网络配置,目的就是为了可以通过网络tftp加载运行oneos:

先看看主机ip是多少?

以太网适配器 网桥:

   连接特定的 DNS 后缀 . . . . . . . : www.tendawifi.com
   IPv4 地址 . . . . . . . . . . . . : 192.168.0.101
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . : 192.168.0.1

然后配置rk3568开发板,并保存:

=> setenv ipaddr 192.168.0.102
=> setenv serverip 192.168.0.101
=> setenv gatewayip 192.168.0.1
=> setenv netmask 255.255.255.0
=> setenv yy 'tftp 0x208000 oneos.bin;go 0x208000'
=> saveenv
Saving Environment to ENV_BLK...
Writing to mmc(0)... done
setenv ipaddr 192.168.0.103
setenv serverip 192.168.0.102
setenv gatewayip 192.168.0.1
setenv netmask 255.255.255.0
setenv yy 'tftp 0x208000 oneos.bin;go 0x208000'
saveenv

测试连接:

=> ping 192.168.0.1
Using ethernet@fe2a0000 device
host 192.168.0.1 is alive

直接ping主机可能ping不通。

主机使用tftp服务器,并配置好目录为oneos.bin所在位置:

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

执行run yy加载oneos并启动:

=> run yy
ethernet@fe2a0000 Waiting for PHY auto negotiation to complete. done
Using ethernet@fe2a0000 device
TFTP from server 192.168.0.101; our IP address is 192.168.0.102
Filename 'oneos.bin'.
Load address: 0x208000
Loading: #############################################################
         1.4 MiB/s
done
Bytes transferred = 892768 (d9f60 hex)
## Starting application at 0x00208000 ...
booting 4 cpus
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值