SDS1102CML+ and using TFTP to flash firmware - Page 1
Forum section: electronics / testgear

author: smittyinthesky
author_rank: Newbie
timestamp: July 16, 2023, 04:54:25 pm
content: Still having issues with a missing /dev/ttyO0 when I boot my 'scope, but wanted to share this bit of info.Using the files provided by tautech in this threadhttps://www.eevblog.com/forum/testgear/siglent-sds1102cml-non-responsive-any-ideas/msg3554063/#msg3554063, I populated a directory C:\tftp on my desktop and unzipped those files into it. (I seem to be missing a rootfs.img?)Then, using the interrupted U-Boot session, I updated the 'scope's networking settings using the following commands:editenv gatewayipeditenv ipaddreditenv serveripby default these settings are:gatewayip=10.11.13.1ipaddr=10.11.13.250serverip=10.11.13.19I downloaded tftp64 to use as my TFTP server. Using most of the defaults works, just need to point it to your files at C:\tftp.If we examine printenv, we can see some command syntaxes pre-populated.Code:a=echo tftp download MLO,u-boot.img,uImage,ubi.img image fpga nand ...; run m; run u; run k; run f; run b; run r; run dThis command "a" downloads via TFTP the files named:MLOu-boot.imguImagerootfs.imglogo.bmpfirmdata0.imgdatafs.imgYou can then kick off a TFTP based update of your device like this:Code:U-Boot SPL 2013.01.01-svn29730 (Mar 27 2017 - 19:02:34)config ddr_pll_config()++config ddr_pll_config()--nand_init+++++nand_init-----Lcd_Init()++SetUpLCD()++SetUpLCD()--error: logo_header->sign(Logo from buffer image1[]: base=0x0; end=0x0; end-base=0x0; rwsize=0x177000; r=0xffffffffLcd_Init()--U-Boot 2013.01.01-svn29730 (Mar 27 2017 - 19:02:34)I2C: readyDRAM: 128 MiBNAND: 256 MiBMMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1Using default environmentset_default_env::7864musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)musb-hdrc: MHDRC RTL version 2.0musb-hdrc: setup fifo_mode 4musb-hdrc: 28/31 max ep, 16384/16384 memoryUSB Peripheral mode controller at 47401000 using PIO, IRQ 0musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)musb-hdrc: MHDRC RTL version 2.0musb-hdrc: setup fifo_mode 4musb-hdrc: 28/31 max ep, 16384/16384 memoryUSB Host mode controller at 47401800 using PIO, IRQ 0Net: <ethaddr> not set. Validating first E-fuse MACcpswHit any key to stop autobootU-Boot#U-Boot#U-Boot#U-Boot# editenv gatewayipUnknown command 'editenv' - try 'help'U-Boot# editenv gatewayipedit: 192.168.1.1U-Boot# editenv ipaddredit: 192.168.1.234U-Boot# editevn serveripUnknown command 'editevn' - try 'help'U-Boot# editenv serveripedit: 192.168.1.118U-Boot# run atftp download MLO,u-boot.img,uImage,ubi.img image fpga nand ...Upgrade the MLO by tftp ...link up on port 0, speed 100, full duplexUsing cpsw deviceTFTP from server 192.168.1.118; our IP address is 192.168.1.234Filename 'MLO'.Load address: 0x82000000Loading: ######420.9 KiB/sdoneBytes transferred = 79809 (137c1 hex)NAND erase: device 0 offset 0x0, size 0x20000Erasing at 0x0 -- 100% complete.OKNAND write: device 0 offset 0x0, size 0x20000131072 bytes written: OKUpgrade the u-boot.img by tftp ...link up on port 0, speed 100, full duplexUsing cpsw deviceTFTP from server 192.168.1.118; our IP address is 192.168.1.234Filename 'u-boot.img'.Load address: 0x82000000Loading: #########################124 KiB/sdoneBytes transferred = 357280 (573a0 hex)NAND erase: device 0 offset 0x80000, size 0x1e0000Erasing at 0x240000 -- 100% complete.OKNAND write: device 0 offset 0x80000, size 0x1e00001966080 bytes written: OKUpgrade the uImage by tftp ...link up on port 0, speed 100, full duplexUsing cpsw deviceTFTP from server 192.168.1.118; our IP address is 192.168.1.234Filename 'uImage'.Load address: 0x82000000Loading: ###################################################################################################################################################447.3 KiB/sdoneBytes transferred = 2157832 (20ed08 hex)NAND erase: device 0 offset 0x3080000, size 0x600000Erasing at 0x3660000 -- 100% complete.OKNAND write: device 0 offset 0x3080000, size 0x6000006291456 bytes written: OKUpgrade the rootfs.img by tftp ...link up on port 0, speed 100, full duplexUsing cpsw deviceTFTP from server 192.168.1.118; our IP address is 192.168.1.234Filename 'rootfs.img'.Load address: 0x82000000Loading: *TFTP error: 'File not found' (1)Not retrying...tftp download logo.bmp to nand ...link up on port 0, speed 100, full duplexUsing cpsw deviceTFTP from server 192.168.1.118; our IP address is 192.168.1.234Filename 'logo.bmp'.Load address: 0x83000000Loading: *TFTP error: 'File not found' (1)Not retrying...ERROR:signature(** get_bmp_rgb(0x82000000, 0x83000000, 0x0) failed! **bmpload - Get RGB from .bmp pictureNAND erase: device 0 offset 0x280000, size 0x300000Erasing at 0x560000 -- 100% complete.OKNAND write: device 0 offset 0x280000, size 0x3000003145728 bytes written: OKUpgrade the firmdata0.img by tftp ...link up on port 0, speed 100, full duplexUsing cpsw deviceTFTP from server 192.168.1.118; our IP address is 192.168.1.234Filename 'firmdata0.img'.Load address: 0x82000000Loading: ###############################################################################################################################################447.3 KiB/sdoneBytes transferred = 2097152 (200000 hex)NAND erase: device 0 offset 0x3680000, size 0x3200000Erasing at 0x6860000 -- 100% complete.OKNAND write: device 0 offset 0x3680000, size 0x320000052428800 bytes written: OKUpgrade the datafs.img by tftp ...link up on port 0, speed 100, full duplexUsing cpsw deviceTFTP from server 192.168.1.118; our IP address is 192.168.1.234Filename 'datafs.img'.Load address: 0x82000000Loading: ###############################################################################################################################################444.3 KiB/sdoneBytes transferred = 2097152 (200000 hex)NAND erase: device 0 offset 0x9a80000, size 0x6580000Erasing at 0xffe0000 -- 100% complete.OKNAND write: device 0 offset 0x9a80000, size 0x150000022020096 bytes written: OKU-Boot# run nandboot(Re)start USB...USB0: lowlevel init failedUSB error: all controllers failed lowlevel initDownload Linux from USB to Nandflash...** Bad device usb 0 **** Bad device usb 0 **** Bad device usb 0 **** Bad device usb 0 **Booting from nand ...NAND read: device 0 offset 0x3080000, size 0x3000003145728 bytes read: OK## Booting kernel from Legacy Image at 80200000 ...Image Name: Linux-3.2.0+Image Type: ARM Linux Kernel Image (uncompressed)Data Size: 2157768 Bytes = 2.1 MiBLoad Address: 80008000Entry Point: 80008000Verifying Checksum ... OKLoading Kernel Image ... OKOKStarting kernel ...Uncompressing Linux... done, booting the kernel.