Mounting file system on mini2440

Publisher:blq0681Latest update time:2022-05-17 Source: eefocusKeywords:mini2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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

Keywords:mini2440 Reference address:Mounting file system on mini2440

Previous article:Mini2440 bare metal program burning (MDK+Jlink)
Next article:Mini2440 bare metal program LED

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号