Transplantation of DM8168 dvr rdk nand System

Source: Internet
Author: User

Transplantation of DM8168 dvr rdk nand System

Nand boot preparation:

Method 1: Set the Startup Mode of DM8168 to SD card boot. After U-boot is started, run U-boot to write the applicable bootloader of nandflash to DM8168.

Method 2: This is also the method I have selected. It is simple and crude. Use the CCS project to write uboot_NAND_DM816X_TI_EVM to nandflash on the premise that there is a simulator.

I mentioned before the method of writing: http://blog.csdn.net/wu20093346/article/details/17115893

Nand boot U-boot:

Change the dialing Switch Status: SW [10] = 00100 10010. Open the power supply and press any key to enter the U-boot command status. Settings:

# Setenv serverip 172.20.21.96 (host Ubuntu)

# Setenv ipaddr 172.20.21.97 (DM8168)

Install the tftp service:

# Sudo apt-get install tftpd-hpa

# Gedit/etc/default/tftpd-hpa

Modify TFTP_DIRECTORY = "/home/name/dvrrdk/DVRRDK_04.01.00.02/tftphome"

Download the kernel image:

# Mw. B 0x81000000 0xff 0x300000

# Tftp 0x81000000 uImage_DM816X_TI_EVM

# Nand erase 0x580000 0x440000

# Nand write. I 0x81000000 0x580000 0x300000

Write UBI File System:

# Mw. B 0x81000000 0xff 0x4c00000

# Tftp 0x81000000 ubi_128_DM816X_TI_EVM.img

# Nand erase 0x9c0000 0xc820000

# Nand write 0x81000000 0x9c0000 0x4c00000

Set bootcmd:

# Setenv bootcmd 'nand read 0x81000000 0x00580000 0x300000; bootm 0x8000000'

Set bootargs:

# Setenv bootargs 'console = ttyO2, 115200n8 noinitrd ip = dhcp mem = 256 M rootwait = 1 rw ubi. mtd = 8, 2048 rootfstype = ubifs root = ubi0: rootfs init =/init vram = 20 M notifyk yk. vpssm3_sva = 0xBEE00000 stdin = serial ddr_mem = 1024m'

Save and restart. The uboot boot kernel will eventually mount the UBI File System:

# Saveenv

# Reset

Printenv log:


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.