TI中文支持网
TI专业的中文技术问题搜集分享网站

AM437X uboot TFTP下载问题?

kernel: linux-3.14.43

platform:AM437X

nand 分区:
0x00000000-0x0003ffff-->mtd0: 00040000 00020000 "NAND.SPL"---(256Kib) 0x00040000-0x0007ffff-->mtd1: 00040000 00020000 "NAND.SPL.backup1"---(256Kib) 0x00080000-0x000bffff-->mtd2: 00040000 00020000 "NAND.SPL.backup2"---(256Kib) 0x000c0000-0x000effff-->mtd3: 00040000 00020000 "NAND.SPL.backup3"---(256Kib) 0x00100000-0x0017ffff-->mtd4: 00080000 00020000 "NAND.u-boot-spl-os" ---(512Kib) 0x00180000-0x0027ffff-->mtd5: 00100000 00020000 "NAND.u-boot"---(1024Kib) 0x00280000-0x002bffff-->mtd6: 00040000 00020000 "NAND.u-boot-env"---(256Kib) 0x002c0000-0x002effff-->mtd7: 00040000 00020000 "NAND.u-boot-env.backup1"---(256Kib) 0x00300000-0x009effff-->mtd8: 00700000 00020000 "NAND.kernel"---(7168Kib) 0x00a00000-0x0fefffff-->mtd9: 0f600000 00020000 "NAND.file-system" ---(251904Kib)
uboot

arch=arm
baudrate=115200
board=am43xx
board_name=myd_c437x
board_rev=1.0
boot_targets=mmc  usb nand
bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootcmd_mmc=selmmcboot;
bootcmd_mmc0=setenv devnum 0; setenv mmcroot /dev/mmcblk1p2 rw; setenv bootpart 0:1; setenv rootpart 2; run mmc_boot;
bootcmd_mmc1=setenv devnum 1; setenv mmcroot /dev/mmcblk0p2 rw; setenv bootpart 1:1; setenv rootpart 2; run mmc_boot;
bootcmd_nand=run nandboot;
bootcmd_usb=setenv devnum 0; run usb_boot;
bootdelay=1
bootenv=uEnv.txt
bootfile=zImage
console=ttyO0,115200n8
cpu=armv7
eth1addr=a0:f6:fd:59:cb:e4
ethact=cpsw
ethaddr=a0:f6:fd:59:cb:e2
fdt_high=0xa0000000
fdtaddr=0x80F80000
fdtfile=undefined
fdtsize=0x10000
findfdt=if test $board_name = AM43EPOS; then setenv fdtfile am43x-epos-evm.dtb; fi; if test $board_name = myd_c437x; then setenv fdtfile myd_c437x.dtb; fi; if test $fdtfile = undefined; then echo WARNING: Could not determine device tree; fi;
importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize
kernelsize=0x500000
loadaddr=0x80200000
loadbootenv=load mmc ${devnum} ${loadaddr} ${bootenv}
loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
loadramdisk=load mmc ${devnum} ${rdaddr} ramdisk.gz
mmc_boot=setenv devtype mmc; if mmc dev ${devnum}; then run scan_boot; if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;run mmcboot;fi
mmcargs=setenv bootargs console=${console} ${optargs} root=${mmcroot} rootfstype=${mmcrootfstype}
mmcboot=if mmc dev ${devnum}; then if run loadimage; then run findfdt;run loadfdt; echo Booting from mmc${devnum} ...; run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi;fi;
mmcrootfstype=ext4 rootwait
mtdids=nand0=nand.0
mtdparts=mtdparts=nand.0:256k(NAND.SPL),256k(NAND.SPL.backup1),256k(NAND.SPL.backup2),256k(NAND.SPL.backup3),512k(NAND.u-boot-spl-os),1m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup1),7m(NAND.kernel),-(NAND.file-system)
nand_erasesize=20000
nand_oobsize=80
nand_writesize=800
nandargs=setenv bootargs console=${console} ${optargs} root=${nandroot} rootfstype=${nandrootfstype}
nandboot=echo Booting from nand ...; run nandargs; nand read ${fdtaddr} NAND.u-boot-spl-os; nand read ${loadaddr} NAND.kernel; bootz ${loadaddr} - ${fdtaddr}
nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048
nandrootfstype=ubifs rootwait=1
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${loadaddr} ${bootfile}; tftp ${fdtaddr} ${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr}
nfsopts=nolock
optargs=omapdss.def_disp=display1 omapfb.mode=display1:1024x768MR-24@60
partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}
ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
ramroot=/dev/ram0 rw ramdisk_size=131072 initrd=0x81000000,64M
ramrootfstype=ext2
rdaddr=0x81000000
rootpart=2
rootpath=/export/rootfs
scan_boot=echo Scanning ${devtype} ${devnum}...; for prefix in ${bootdir}; do for script in ${bootfile}; do run script_boot; done; done;
script_boot=if load ${devtype} ${devnum}:${rootpart} ${loadaddr} ${bootdir}/${bootfile}; then run findfdt; load ${devtype} ${devnum}:${rootpart} ${fdtaddr} ${bootdir}/${fdtfile};fi;
soc=am33xx
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial
stdin=serial
stdout=serial
usb_boot=setenv devtype usb; run usb_init; if usb dev 0; then run usbargs;run scan_boot; bootz ${loadaddr} - ${fdtaddr}; fi
usb_init=usb start 0;
usbargs=setenv bootargs console=${console} ${optargs} root=${usbroot} rootfstype=${usbrootfstype}
usbroot=/dev/sda2 rw
usbrootfstype=ext4 rootwait
vendor=ti

最近在改驱动,需要经常要修改设备数,但用SD卡下载速度太慢了,还有其他方法没(快点滴)?比如tftp,USB….

我尝试下TFTP,但有问题

1.tftp下载有相关文档吗 

2.uboot通过tftp下载内核文件uImage

      编译产生uImage : make -j4 uImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOADADDR=0x80008000   ( LOADADDR设置对了吗 )

     下载后一直停在Starting kernel …

谢谢!
PS:TI有像NXP的mfgtool一样的工具吗?一键搞定啊!!!

qingyulan:

回复 Jian Zhou:

请问通过tftp加载设备树的地址是哪个?在哪里能找到资料?多谢

tftp 0x??? am437x-gp-evm.dtb

yongqing wang:

回复 qingyulan:

参考这个看看:wenku.baidu.com/…/b94d7efe185f312b3169a45177232f60ddcce72b.html

赞(0)
未经允许不得转载:TI中文支持网 » AM437X uboot TFTP下载问题?
分享到: 更多 (0)