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中的环境变量需要设置那些地址呢?谢谢您。