Detailed description of the linux platform chip Burning Process
The details will be updated continuously!
Connect the Development Board and restart it. Go to the u-boot interactive interface and perform the following operations:
1. Configure the network
# Pri
# Setenv ipaddr 192.168.64.11 (Note: ipaddr is the IP address of the Development Board)
# Setenv serverip 192.168.64.12 (Note: serverip is the Windows Host IP address)
# Setenv gatewayip 192.168.64.1 (Note: gatewayip is the gateway)
# Saveenv
# Ping 192.168.64.12 (if it works, continue)
2. Download the system file (download it from tftp to ddr, and then burn it to nandflash)
First, start the tftp service, select the path of the target file to be downloaded, and perform the following actions:
Note: You can first use tftp to the memory, and then use "bootm address" to start the test. You do not need to erase nandflash.
1) Burn and write the kernel
// Download the kernel image to the memory
# Tftp 0x40000000 uImage
// You can use this command to verify whether the kernel can be started properly, so as not to erase the original normal
# Bootm 0x40000000
// Erase nandflash space of 0x500000 bytes starting from address 0x600000
# Nand erase 0x600000 0x500000
// Burn the kernel image in the memory to nandflash
# Nand write 0x40000000 0x600000 0x500000
2) Burn and write fs
# Tftp 0x40000000 rootfs. img
# Nand erase 0xe00000 0xf200000
# Nand write. yaffs 0x40000000 0xe00000 0 xxxxx (0xxxxx is determined based on the size of the downloaded tftp 0x40000000 rootfs. img)
3) Burn u-boot
# Tftp 0x40000000 u-boot.bin
# Nand erase 0x0 0x600000
# Nand write 0x40000000 0x0 0x600000
3. Restart to enter the u-boot interactive interface and configure uboot startup parameters.
Test 1 (start the kernel ):
// Set the startup command: Read the memory from nandflash, and then start the kernel from memory.
# Setenv bootcmd nand read 0x40000000 0x600000 0x500000 \; bootm 0x40000000
// Save the preceding settings
# Saveenv
Restart and observe the effect.
Test 2 (set the machine code ):
# Setenv machid 0 xXXX (depending on your situation)
# Saveenv
Restart and observe the effect.
Test 3 (start the local file system ):
# Setenv bootargs root =/dev/mtdblock4 init =/sbin/init console = ttySAC0, 115200 rootfstype = yaffs rw
# Saveenv
Restart and observe the effect.
4. to mount the file system to nfs, perform the following operations:
1. Make sure that the NIC in virtualbox is a wired NIC (because it is mounted through a network cable)
2. Set IP addresses
# Setenv serverip 192.168.64.13
# Setenv ipaddr 192.168.64.11
# Setenv gatewayip 192.168.64.1
# Saveenv
Note: serverip is the ubuntu IP address in virtualbox in Windows.
Test 4 (mount the root file system in ubuntu ):
# Setenv bootargs root =/dev/nfs nfsroot = 192.168.64.13:/mini_rootfs ip = 192.168.64.11: 192.168.64.1: 255.255.255.0: eth0: off init =/linuxrc
Console = fig, 115200
# Saveenv
Restart and observe the effect.