1. Nfs mounts the root file system
1.1 mini2440 chooses to burn u-boot.bin to NAND flash under NOR
1.2 Mini2440 selects NAND flash to boot and enters the u-boot command line
1.3 Use print to print the development board system information, set the u-boot command, set
printenv
setenv ipaddr 192.168.1.100 // Development board IP
setenv serverip 192.168.1.101 //Windows IP
setenv gatewayip 192.168.1.1 // Gateway
to clay
1.4 Put uImage in the tftpboot directory and load it automatically
Burn uImage to nand Flash
Copy uImage to /tftpboot/
Enter in SecureCRT:
SMDK2440A>tftp 0x30008000 uImage
SMDK2440A>nand erase 0x60000 0x500000
SMDK2440A>nand write 0x30008000 0x60000 0x500000
1.5 And enable NFS file sharing and automatically mount the root file system
1.5.1 Setting up the configuration shared directory
vim /etc/exports
添加:/home/nfsshare/root_qtopia *(rw,sync,no_root_squash)
1.5.2 Set and check:
exportfs -ra
exportfs -v
1.5.3 Enable nfs service
Service nfs restart
1.5.4 Development board parameter settings:
Start the uboot command line and modify the boot parameters:
Setenv bootargs console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.101:/home/nfsshare/root_qtopia ip=192.168.1.100:192.168.1.101:192.168.1.1:255.255.255.0:SMDK2440A.arm9.net:eth0:off
1.6 The overall parameter settings are as follows:
[u-boot@SMDK2440A]# print
bootcmd=nand read 0x30008000 60000 500000;bootm 0x30008000
bootdelay=1
baudrate=115200
ethaddr=08:08:11:18:12:27
embedclub=bmp d 70000
stdin=serial
stdout=serial
stderr=serial
lcdtype=w
ethact=dm9000
filesize=22E50C
fileaddr=30008000
gatewayip=192.168.1.1
netmask=255.255.255.0
ipaddr=192.168.1.100
serverip=192.168.1.101
bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.101:/home/nfsshare/root_qtopia ip=192.168.1.100:192.168.1.101:192.168.1.1:255.255.255.0:SMDK2440A.arm9.net:eth0:off
2. Use yaffs to mount the root file system
2.1. The operation directory is in the /home/yaffs/ directory
Use the mkyaffs2image-128M command to compress root_qtopia into the root_qtopia.img image file
2.2. Start YAFFS startup parameters:
setenv bootargs noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
2.3、Burn YAFFS to NandFlash
Copy root_qtopia.img to /tftpboot/
Enter in SecureCRT:
SMDK2440A>tftp 0x30008000 root_qtopia.img
// Download root_qtopia.img to the development board memory at address 0x30008000 through tftp server
SMDK2440A>nand erase 0x560000 $filesize
//First erase Nand Flash starting from 0x560000, the size of 0x3dac00 to store root_qtopia.img
SMDK2440A>nand write.yaffs 0x30008000 0x560000 $filesize
//Burn root_qtopia.img to Nand Flash starting at 0x560000
SMDK2440A> boot //Start the Linux system
Previous article:Mini2440 bare metal program burning (MDK+Jlink)
Next article:Mini2440 bare metal program LED
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- [Mil MYC-JX8MPQ Review] 3. GPIO Application Programming
- 【GD32F307E-START】+connected to UASRT interface power supply
- 【Laser target detector】I2C and SPI
- MOS tube knowledge
- PCB technology: PROTEL's metal slot method
- [ATmega4809 Curiosity Nano Review] Using MCC to configure TCA
- circuitpy compass
- In a blink of an eye, half of this year has passed.
- Four opportunities for RF technology in the retail market
- The shield affects the sensitivity, and the inductor close to the DCDC affects the sensitivity