Home/Support/Support Forum/Using tftpboot, need help
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Using tftpboot, need help

0 votes
Hello,

I do not understand the operation of tftpboot.

It is used in U-boot is that it?

The command is tftpboot <loadAddress> <bootfilename>

How do I find the address or save the image?
Is it a hexadecimal value that should be given.

Once you download that must be done? The documentation is very limited information.

Thank you for your help
asked Oct 2, 2012 in Linux by ChristopheSV New to the Community (14 points)
recategorized Dec 4, 2013 by tuxembb

Please log in or register to answer this question.

6 Answers

0 votes
Hi,

I don't what is the "right" address but I have used 200000 with cme9210 and it has worked well. It is hexadecimal value.

#tftp 200000 [image_file_name]
#update [partition_name] ram [loaded_image_size]

First you need working tftp server and ip settings.
answered Oct 4, 2012 by Lauri New to the Community (2 points)
0 votes
which module do you have? by default the load address is stored in uboot variables.
type 'printenv' &amp; 'printenv_dynamic' in uboot prompt.
It will list all the variables.

in Digi uboot you dont need to type in the loadaddress, instead it make use of uboot variables.
answered Oct 8, 2012 by tuxembb Veteran of the Digi Community (288 points)
0 votes
Hello,
Sorry for the delays but I was on another project.

So my module is a DIGI9210.

I come now to the TFTP, the firewall is blocking the UDP port 69.

I can not make the cme9210js-bootscript.
Neither Linux nor Windows XP.

Here are the contents of the file "myscript.txt"

setenv serverip 10.234.1.46
update linux tftp
update rootfs tftp
setenv loadbootsc no
setenv bootcmd dboot linux flash
saveenv
reset

Linux:
In the manual it is noted that it is necessary to put in the U-Boot directory and run the command:

tools / mkimage-T script-n "bootscript"-C none-d myscript.txt
cme9210js-bootscript

But it does not work, it does not find "mkimage"

Windows is not I "dos2unix.exe" to "dos2unix.exe myscript.txt"

Thank you for your help.
answered Oct 16, 2012 by ChristopheSV New to the Community (14 points)
0 votes
I did not create the project U-Boot.

This is done, I have a file in mkimage "home/actech/Documents/NCS/Workspace/Projet1/build/U-Boot/tools /"

but when I run the command: mkimage -T script -n "bootscript" -C none-d myscript.txt cme9210js-bootscript

I have this error message:

The program 'mkimage' is currently not installed. You can install it by typing:
sudo apt-get install uboot-mkimage
bash: mkimage: command not found



So I tried "sudo apt-get install uboot-mkimage" but I also have an error message:

Reading package lists ... Done
Building dependency tree
Reading state information ... Done
E: Could not find package uboot-mkimage



Thank
answered Oct 16, 2012 by ChristopheSV New to the Community (14 points)
0 votes
Ok, it works.
It is now that I can partition the bootscript Rootft in the JFFS2 instead of SQUASHFS.

Desired partition:

Nr Flags Start Size
0 | U-Boot | 0 | 0x30000
1 | NVRAM | 0x30000 | 0x20000
2 | Kernel | 0x50000 | 0x140000
3 | rootfs | 0x190000 | 0x260000 JFFS2
4 | UserFS | 0x3f0000 | 0x10000 JFFS2
answered Oct 17, 2012 by ChristopheSV New to the Community (14 points)
0 votes
It's good.
I deleted the partition 4 then increase the size of the partition 3

Bootscript:

setenv serverip 10.234.1.46
intnvram set partition select=4 del
intnvram set partition select=3 size=0x270000
intnvram set partition select=3 flag_fs_type=JFFS2
intnvram save
update linux tftp
update rootfs tftp
setenv loadbootsc no
setenv bootcmd dboot linux flash
saveenv
reset


Is it possible to add a condition???

setenv serverip 10.234.1.46

If the partition 4 is present
{
intnvram set partition select = 4 del
intnvram set partition select = 3 size = 0x270000
intnvram set partition select = 3 = flag_fs_type JFFS2
intnvram save
}
update linux tftp
update rootfs tftp
setenv loadbootsc no
setenv bootcmd dboot linux flash
saveenv
reset
answered Oct 17, 2012 by ChristopheSV New to the Community (14 points)
...