Write Linux to NAND Flash

Source: Internet
Author: User

I. Burn uboot. bin to NAND Flash

(1) J-link arm
(2) r
(3) Speed 12000 // set TCK
(4) initialize SDRAM
Loadbin D: \ init. Bin 0
Setpc 0
G
(5) download the u-boot.bin_openjtag to SDRAM and run
H
Loadbin D: \ u-boot.bin_openjtag 0x33f80000
Setpc 0x33f80000
G
(6) download u-boot.bin to SDRAM
H
Loadbin D: \ u-boot.bin 0x30000000
G

(7) In the terminal through the u-boot.bin_openjtag to burn the u-boot.bin to the NAND Flash
Nand scrub // erase the entire NAND Flash
Y
Nand write. jffs2 0x30000000 0 0x400000
// Copy the previously downloaded 0x30000000ProgramBurn to NAND Block 0

Ii. Burn the kernel

(1) create a uimage
(2) Burn writing

Smdk2440a> TFTP 0x30008000 uimage
Smdk2440a> NAND erase 60000 500000
Smdk2440a> NAND write 0x30008000 0x60000 0x500000

Bootm

3. Create an NFS root file system

(1)root_qtopia.tar.gz root file system source code package

(2) configure the NFS shared directory of the NFS service

Set NFS shared directory
Start NFS service
Set U-boot parameters to start the kernel Mount network root file system:
......

Setenv bootargs console = ttysac0 root =/dev/nfs nfsroot = 192.168.1.102:/home/student/root_qtopia IP = 192.168.1.226: 192.168.1.102: 192.168.1.102: 255.255.255.0: Disabled: eth0: Off

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.