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: