u-boot引导
run bootcmd
interface = SGMII_LINK_MAC_PHYFORCED
priv->slave_port-1 = 0
netcp@2000000 Waiting for SGMII auto negotiation to complete. done
Using netcp@2000000 device
TFTP from server 192.168.1.203; our IP address is 192.168.1.50
Filename 'uImage'.
Load address: 0x88000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#####################################
2.5 MiB/s
done
Bytes transferred = 4346432 (425240 hex)
interface = SGMII_LINK_MAC_PHYFORCED
priv->slave_port-1 = 0
netcp@2000000 Waiting for SGMII auto negotiation to complete. done
Using netcp@2000000 device
TFTP from server 192.168.1.203; our IP address is 192.168.1.50
Filename 'storlead.dtb'.
Load address: 0x89000000
Loading: ###
396.5 KiB/s
done
Bytes transferred = 39066 (989a hex)
## Booting kernel from Legacy Image at 88000000 …
Image Name: storlead
Created: 2021-01-13 8:58:46 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4346368 Bytes = 4.1 MiB
Load Address: 88000000
Entry Point: 88000040
Verifying Checksum … OK
## Flattened Device Tree blob at 89000000
Booting using the fdt blob at 0x89000000
Loading Kernel Image … OK
Loading Device Tree to 8fff3000, end 8ffff899 … OK
Starting kernel …
———————————————————————————————————————————————————————————————————————–
将zImage转换为u-Image
mkimage -A arm -O linux -T kernel -C none -a 0x82000000 -e 0x82000000 -n "abcdefg" -d zImage uImage
———————————————————————————————————————————————————————————————————————–
u-boot默认设置
args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1 mtdparts=spi0.0:1m(u-boot-spl)ro,-(misc);
args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
args_ramfs=setenv bootargs ${bootargs} rdinit=/sbin/init rw root=/dev/ram0 initrd=0x808080000,80M
args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048
———————————————————————————————————————————————————————————————————————–
setenv bootcmd tftp 82000000 uImage\;tftp 83000000 storlead.dtb\;bootm 82000000 – 83000000
setenv bootargs root=/dev/nfs nfsroot=192.168.1.203:/home/linux/source/rootfs rw console=ttySAC0,115200 clk_ignore_unused init=/linuxrc ip=192.168.1.100
———————————————————————————————————————————————————————————————————————–
请问linux内核设置需要配置些什么东西吗,有什么文档参考吗,谢谢。或者u-boot中的环境变量需要设置那些地址呢?谢谢您。
Shine:
请问用的是哪个版本的SDK? 是自己的板子还是EVM板?
TengSong TengSong:
回复 Shine:
ti-processor-sdk-linux-k2hk-evm-06.03.00.106
自制板。
内核是root@ubuntu:/opt/ti-processor-sdk-linux-k2hk-evm-06.03.00.106/board-support/linux-4.19.94+gitAUTOINC+be5389fd85-gbe5389fd85/arch/arm/boot# 中编译出来的。
确实无从下手了,您这边能提供什么思路或者文档吗,谢谢。
Shine:
回复 TengSong TengSong:
我把您的问题发到e2e上了,请关注下面的帖子。
e2e.ti.com/…/971202
TengSong TengSong:
回复 Shine:
好的谢谢
Shine:
回复 TengSong TengSong:
请看一下是否没有安装Boot Monitor?
software-dl.ti.com/…/Foundational_Components_Boot_Monitor.html
TengSong TengSong:
回复 Shine:
好的谢谢您。
TI中文支持网




