6410 Learning Notes-write the kernel zimage, file system to Nandflash

Source: Internet
Author: User

1, has already written uboot to Nandflash inside, next will kernel zimage, file system write to Nandflash.

2. Compile the kernel

    • CD linux-2.6.28_smdk6410
    • Make clean
    • Make Distclean
    • CP smdk6410_config. config
    • Make Menuconfig

Connect Device Drivers---Graphics support---> support for frame buffer devices---> select LCD Type Resolution to 480*272 Save (to calibrate the screen later)

    • Make

Copy the/arch/arm/boot/zimage to/var/lib/tftpboot (TFTP transfers the zimage to the Development Board) after make completes

3. Write zimage to Nandflash and set to Automatic

    • Uboot start
    • NAND erase 100000 400000--------------erase 1M to 4M of memory
    • TFTP 50008000 zimage---------------The kernel to the DRAM 50008000 address
    • NAND write 50008000 100000 400000-----------------write the kernel to the Nandflash 1m-4m room
    • Set Bootcmd NAND read 50008000 100000 400000\;BOOTM 50008000----------------------on to automatically read Nandflash 1m-4m kernel files to dram 50008 000 Address and start
    • Save-----------------Saved

Complete!

4. Write the file system to Nandflash and set it to automatic

After entering the file system, we still use NFS, the file system on the PC.

    • ls/dev/mtdblock*-----------------View Nandflash generally has four pieces
    • Mount/dev/mtdblock3/mnt---------------here to mount the third block to the/mnt directory, the/mnt operation is equivalent to the MTDBLOCK3 operation
    • CP rootfs-qt-2.2.0.tar.gz./
    • Tar XF rootfs-qt-2.2.0.tar.gz
    • Cd..
    • chmod 777/mnt/*-R
    • Set bootages console=ttysac0 root=/dev/mtdblock3 ROOTFS=YAFFS2--------------------------Now write the file system in Mtdblock3 to automatically Mount it!
    • Save

Complete! Now you don't have to plug in the cable! You can run naked with a power supply.

5. Screen Calibration

Plug in the power 64,101-way bare-ben to boot complete!

VI Bin/qtopia

Remove the comment symbol before/usr/local/bin/ts_calibrate #

Restart 6410 to enter the calibration interface, complete, and then add the/usr/local/bin/ts_calibrate before the note symbol #, or every time to calibrate!

6410 Learning Notes-write the kernel zimage, file system to Nandflash

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.