Use Uboot to boot the kernel and mount the NFS root file system

Source: Internet
Author: User

After configuring the kernel, copy the generated kernel file uimage to/tftpboot/, download the kernel to the board via the TFTP server, and use the command: TFTP 31000000 uimage. Configure the Bootargs environment variable after the download is complete: setenv Bootargs noinitrd console=ttysac0,115200 init=/init root=/dev/nfs rw nfsroot=192.168.1.118:/home/rootfs,proto=tcp, Nfsvers=3 Ip=192.168.1.119:192.168.1.118:192.168.1.1:255.255.255.0::eth0:off
Because the UDP protocol is used by default when mounting NFS file systems, dm9000 frequently drops packets (with a packet drop rate greater than 50%) and changes the network protocol to TCP to resolve the problem.


Run Bootm 31000000 to boot the kernel and mount the NFS system after configuring the startup parameters.
But burn the kernel file to NAND Flash and configure the Bootcmd command: setenv bootcmd NAND write 31000000 300000 300000\;bootm 31000000

Reboot the board to discover that the kernel started successfully but mounted the root file system failed:

The error message indicates that the network card could not be found, and the experiment found that if the TFTP command was run before the BOOTM command, the system could mount successfully and BOOTM would not succeed if the TFTP command was not running. Online search found that the Development Board running in the Uboot state only use network commands to enable the NIC, so the problem may be that the kernel corresponding to the network card driver does not enable the network card caused.

Use Uboot to boot the kernel and mount the NFS root file system

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.