0% found this document useful (0 votes)
132 views2 pages

Usb Auto Update Mb62

This document contains instructions for configuring partitions on an embedded device's NAND memory and installing software to those partitions, including a kernel, root filesystem, and vendor files. It sets environment variables for booting, erases NAND partitions, writes files to the partitions, checks CRCs, and resets the device.

Uploaded by

brasero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views2 pages

Usb Auto Update Mb62

This document contains instructions for configuring partitions on an embedded device's NAND memory and installing software to those partitions, including a kernel, root filesystem, and vendor files. It sets environment variables for booting, erases NAND partitions, writes files to the partitions, checks CRCs, and resets the device.

Uploaded by

brasero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

# <- this is for comment / total file size must be less than 4KB

#set partition
dynpart edb64M-nand:0x320000(KL),0xB20000(CONF),0x1600000(UBIA),0x1900000(UBIB),
-(NA)
saveenv
#mboot
fatload usb 0:1 80400000 mboot.bin
spi_wrc 0x80400000 0x00000000 0x00DFFFF
#mb62.bin
fatload usb 0:1 80400000 mb62_en.bin
aes_test 0x80400000 0x82000000 0x01920010
## Must erase NAND before making factory.bin
nand bad
nand scrub
nand bad
## Add fake bad block BEFORE making factory.bin ONLY!!!
## 0x10 = 16; 16x512x32=0.25M
## "rsv" command is available since mboot V105
#rsv bad KL A
#rsv bad CONF 10
#rsv bad UBIA 10
#kernel
#nand erase KL
nand write.e 0x82000010 KL 0x320000
#nand erase UBIA
ubi part UBIA
ubi create RFS 0x600000
ubi create VEN 0xE00000
#ROOTFS
ubi write 0x82320010 RFS 0x600000
#VENDOR
ubi write 0x82920010 VEN 0xE00000
#CLEAN CRC32
mw 0x81000000 0xFFFFFFFF 0x04
spi_wrc 0x81000000 0xF1000 0x04
#CRC32 Create
#ubifsmount VEN
#ubifsload 0x82000000 /vendor/aurora.elf
#crc32 0x82000000 0x000000 0x81F00000
#md 0x81F00000
#spi_wrc 0x81F00000 0xF1000 0x04
#conf, please mark below 4 line if you want to keep conf
#nand erase CONF
ubi part CONF
ubi create CON 0xA00000
ubi write 0x83720010 CON 0x200000
#bootargs

setenv MS_UBI ubi.mtd=1 ubi.mtd=2,512 root=ubi1:RFS rootfstype=ubifs rw


setenv MS_MEM LX_MEM=0x3400000 EMAC_MEM=0 DRAM_LEN=0x8000000
setenv bootargs console=ttyS0,115200 $(MS_UBI) $(MS_MEM) $(mtdparts)
saveenv
#bootcmd
setenv bootcmd ' nand read.e 81000000 KL; bootm 81000000;
saveenv
#bootdelay
setenv bootdelay 0
saveenv
printenv
## Read all 64M to RAM,
## then copy 64M from RAM to USB
#rsv good
#nand read.raw 80400000 0x0 0x41CE800
#fatwrite usb 0:1 80400000 factory.bin 0x41CE800
## KL=0x0, size=0x30FC00
## CONF=0x339000, size=0xB37000
## UBIA=0xEB2000, size=0x166E000
## PARA=0x41BE000,size=0x4200
#reset
% <- this is end of file symbol

You might also like