跳转至

Mstar Tools

烧写工具支持

安装SNANDer

  • 下载获取SNANDer: https://cowtransfer.com/s/a6f7006b4fd64f 下载成功后直接拷贝到Ubuntu系统的home目录下。 之后参考如下示例拷贝到系统目录下
    chmod +x   SNANDer
    sudo cp  SNANDer /usr/bin/
    sudo  apt install udev   libusb
    

使用说明

SNANDer - Serial Nor/nAND/Eeprom programmeR v.1.7.2 by McMCC <mcmcc@mail.ru>

  Usage:
 -h             display this message
 -p             programmer {ch341a|mstarddc} (default ch341a)
 -c             programmer connection string
 -d             disable internal ECC(use read and write page size + OOB size)
 -I             ECC ignore errors(for read test only)
 -L             print list support chips
 -i             read the chip ID info
 -E             select I2C EEPROM {24c01|24c02|24c04|24c08|24c16|24c32|24c64|24c128|24c256|24c512|24c1024}
                select Microwire EEPROM {93c06|93c16|93c46|93c56|93c66|93c76|93c86|93c96} (need SPI-to-MW adapter)
 -8             set organization 8-bit for Microwire EEPROM(default 16-bit) and set jumper on SPI-to-MW adapter
 -f <addr len>  set manual address size in bits for Microwire EEPROM(default auto)
 -e             erase chip(full or use with -a [-l])
 -l <bytes>     manually set length
 -a <address>   manually set address
 -w <filename>  write chip with data from filename
 -r <filename>  read chip and save data to filename
 -v             verify after write on chip

烧写Linux板u-boot

*参考这个页面 http://linux-chenxing.org/infinity2/dongshanpione/

烧写原厂boot示例

注意:烧写命令中 -l参数指定的是烧写文件的长度(大小),如果你修改了u-boot_spinand.xz.img.bin文件,请确认大小是否在这个区域内。

sudo SNANDer -p mstarddc -c /dev/i2c-0:49 -e

sudo SNANDer -p mstarddc -c /dev/i2c-0:49 -w GCIS.bin

sudo SNANDer -p mstarddc -c /dev/i2c-0:49 -a 0x140000 -l 0x6000 -w IPL.bin

sudo SNANDer -p mstarddc -c /dev/i2c-0:49 -a 0x200000 -l 0x5800 -w IPL_CUST.bin

sudo SNANDer -p mstarddc -c /dev/i2c-0:49 -a 0x2C0000 -l 0x3B800 -w u-boot_spinand.xz.img.bin

Back to top