Use Tftp to burn the Linux kernel to the target board

Source: Internet
Author: User
Article title: use Tftp to burn the Linux kernel process to the target board. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Platform: vmware 6 virtual machine Redhat9.0 up-tech2410s arm9-( because viiv comes with the installation of tftp-client, so you can use the tftp service to burn the kernel to the target board, etc)

1) execute minicom on the terminal to set the serial port

Note: if you disable minicom abnormally, several files (LCK *) will be created under/var/lock. these files prevent the running of minicom and can be restored after they are deleted)

2) (if the tftp-server-0.32-4.i386.rpm is not installed, you can find it on the third redhat disc. Install tftfp-server: rpm-ivh tftp-server-0.32-4.i386.rpm)

Set the tftp shared directory: Enter the/etc/xinetd. d/tftp file and modify the directory in the server_args item, as follows:

Service tftp

{Socket_type = dgram

Protocol = udp

Wait = yes

User = root

Server =/usr/sbin/in. tftpd

Server_args =-s/tftpboot-c

Disable = no

Per_source = 11

CPIs = 100 2

Flags = IPv4

}

Note: The modification item server_args =-s-c can be changed to the root directory of your tftp-server. the parameter-s specifies chroot, and-c specifies that files can be created.

Note: do not select a privileged directory such as/root for the shared directory. Otherwise, the file will fail to be transferred. accwss denied)

Service xinetd restart (restart the service and start the tftp service)

3) put the compiled kernel (for example, zImage) into the tftp shared folder. (The kernel compilation process is not described)

4) power on the development board, press any key (not enter) to enter vivi

Note: start minicom before powering on the development board.

5) set the IP addresses of the tftp server and client (the IP address on my VM is 219.222.170.14)

Therefore, input the following command on the terminal: vivi> set c 219.222.170.100 (development board ip address)

Viivi> set s 219.222.170.14 (host ip address) the third ip address must be the same

Tftp flash kernel zImage

Fast.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.