How to boot linux image once and for all

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to boot linux image once and for all

1,375 Views
735382270
Contributor II

I finish boot up the system,and execute the following commands to TFTP the images to the board, then boot into Linux.

 =>tftp 1000000 <uImage_name>  //uImage-t4240qds.bin

    =>tftp 5000000 fsl-image-core-<platform>.ext2.gz.u-boot  //fsl-image-minimal-t4240qds.ext2.gz.u-boot

    =>tftp 2000000 <platform_dtb_name>   //uImage-t4240qds.dtb

    =>bootm 1000000 5000000 2000000  

but every time I restart the system,I must repeat the steps above,is there anyway I can done this once and for all?

0 Kudos
Reply
6 Replies

1,286 Views
yipingwang
NXP TechSupport
NXP TechSupport

=> setenv bootcmd "setenv bootargs root=/dev/ram rw console=ttyS0,115200;tftp 1000000 uImage-t4240qds.bin;tftp 5000000 fsl-image-minimal-t4240qds.ext2.gz.u-boot;tftp 2000000 uImage-t4240qds.dtb;bootm 1000000 5000000 2000000"

=>saveenv

=>boot

1,286 Views
735382270
Contributor II

Another question is :when I boot t4240,I already have a uImage-t4240qds.dtb,do I need another .dtb file during cross-compile?

0 Kudos
Reply

1,286 Views
yipingwang
NXP TechSupport
NXP TechSupport

You could use pre-built uImage-t4240qds.dtb.

0 Kudos
Reply

1,286 Views
735382270
Contributor II

Do you mean if I use pre-built there is no need for another .dtb file during cross-compile?

Could you please tell me in which step do I need pre-built and what commond can I use ?

0 Kudos
Reply

1,286 Views
yipingwang
NXP TechSupport
NXP TechSupport

No need another .dtb file during cross-compile.

0 Kudos
Reply

1,286 Views
735382270
Contributor II

1.After I log in the system using "root",I need to install python-2.7.9.tgz and a .zip file,can I tranfer those file through tftp and install them directly?

2.Is there any example of PPC cross-compiled that can be recommended to me,thanks a lot!

0 Kudos
Reply