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)
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