I'm trying to know more about tftp boot in DM388 csk device. I'm reading, by tftp we can load Linux images directly into the board. Does that mean we can eliminate flashing and loading files using SD card if we are using boot through tftp?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm trying to know more about tftp boot in DM388 csk device. I'm reading, by tftp we can load Linux images directly into the board. Does that mean we can eliminate flashing and loading files using SD card if we are using boot through tftp?
Thank you Nishal for the help.
It worked.
I was able to get data into my SD card. I see the data is stored in root/home directory in the SD card. Does the modifications I did in code take effect when I reboot the board? As the uImage, etc are in boot directory of SD card.
Regards,
Nithin
Hi Nithin,
booting kernel is possible or even nandboot is possible. you can even use tftpboot(for kernel) with NFS (filesystem). u-boot as command tftpboot (tftpboot $addr $file) , address should be respective load address . you need to modify your boot command(bootcmd) for the same. Since Without interruption at u-boot bootcmd runs on reset.
I modified my u-boot like this;
DM38x-CSK# print
arch=arm
baudrate=115200
board=dm38x
board_name=dm38x
bootcmd=csk_ff_init 1;run nfsboot;run mmcboot;run nandboot;
bootdelay=1
bootfile=uImage
console=ttyS0,115200n8
cpu=armv7
ethact=cpsw
ethaddr=7c:66:9d:f9:0e:ca
fdt_high=0x84500000
fdtcontroladdr=bfe7fc98
fdtfile=dm38x-csk.dtb
ipaddr=192.168.1.50
loadaddr=0x82000000
loaddtbaddr=0x84000000
loaddtbimage=fatload mmc ${mmcdev} ${loaddtbaddr} ${fdtfile}
loaduimage=fatload mmc ${mmcdev} ${loadaddr} ${bootfile}
mem=80M
mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};echo Booting from mmc ...; run mmcargs; if run l;
mmcdev=0
mmcroot=/dev/mmcblk0p2 rootwait rw
nfsargs=console=${console} root=/dev/nfs rw mem=${mem} nfsroot=$serverip:$rootpath ip=dhcp vram=${vram} ${optargs}
nfsboot=run nfsargs;run loaduimage ; run loaddtbimage; bootm ${loadaddr} - ${loaddtbaddr};
optargs=cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 notifyk.vpssm3_sva=0xBFD00000 earlyprintk
rootpath=/home/test/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/target/filesys
serverip=192.168.1.15
soc=am33xx
stderr=serial
stdin=serial
stdout=serial
vendor=ti
ver=U-Boot 2016.05 (Sep 22 2017 - 12:03:55 +0530)
vram=4M
after saving, gave this command
tftpboot 0x82000000 192.168.1.15:uImage
DM38x-CSK# tftpboot 0x82000000 192.168.1.15:uImage
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.1.15; our IP address is 192.168.1.50
Filename 'uImage'.
Load address: 0x82000000
Loading: T T T T T T T T T T T T T T T T T T T T
Retry count exceeded; starting again
Where I'm wrong?
Regards.
HI Dwarakesh,
I'm trying to use TFTP boot from some time...I started trying with installing TFTP server, moving image files to tftp boot based on some documents. I might have done something wrong.
Can you please guide me with proper steps from installing.
Thank you,
Reagrds
Hi Nithin,
I have shared a link above. Please make sure you try that. Also make sure you have uninstalled any other thing other than in the above link. Also check in ps if any other tftp daemon is running.