|
发表于 2014-8-24 22:05:25
|
显示全部楼层
本帖最后由 critor 于 2014-8-24 22:13 编辑
Hi guys,
After a whole year digging into Toto, we've finally achieved some interesting things.
Toto has no keyboard and its few keys let you input only 8 characters.
But the above prompt we're getting is U-Boot.
And U-Boot has a serial USB console, which can be used to input characters.
You just need to setup the /dev/ttyUSB0 device with the 'usbserial' driver on a Linux computer.
The 'help' and 'version' commands then definately prove it's U-Boot:
- root@debian:/home/critor# echo help > /dev/ttyUSB0
- h
- ? - alias for 'help'
- autoscr - run script from memory
- base - print or set address offset
- bdinfo - print Board Info structure
- boot - boot default, i.e., run 'bootcmd'
- bootd - boot default, i.e., run 'bootcmd'
- bootm - boot application image from memory
- bootp - boot image via network using BootP/TFTP protocol
- chpart - change active partition
- cmp - memory compare
- coninfo - print console devices and informations
- cp - memory copy
- crc32 - checksum calculation
- deregister - Remove an I/O device from use
- dhcp - invoke DHCP client to obtain IP/boot params
- echo - echo args to console
- erase - erase FLASH memory
- fatinfo - print information about filesystem
- fatload - load binary file from a dos filesystem
- fatls - list files in a directory (default /)
- flinfo - print FLASH memory information
- fsinfo - print information about filesystems
- fsload - load binary file from a filesystem image
- go - start application at address 'addr'
- help - print online help
- iminfo - print header information for application image
- imls - list all images found in flash
- loadb - load binary file over serial line (kermit mode)
- loads - load S-Record file over serial line
- loop - infinite loop on address range
- ls - list files in a directory (default /)
- md - memory display
- mm - memory modify (auto-incrementing)
- mmcinit - init mmc card
- mtest - simple RAM test
- mw - memory write (fill)
- nand - NAND sub-system
- nboot - boot from NAND device
- nm - memory modify (constant address)
- printenv- print environment variables
- protect - enable or disable FLASH write protection
- rarpboot- boot image via network using RARP/TFTP protocol
- register - Register an I/O device for use
- reset - Perform RESET of the CPU
- run - run commands in an environment variable
- saveenv - save environment variables to persistent storage
- setenv - set environment variables
- setslink - select device to use for loadb/loads transfers
- sleep - delay execution for some time
- tftpboot- boot image via network using TFTP protocol
- tiboot - boot linux uImage or zImage kernel in a jffs2 partition on Toto board
- tidiag - perform Toto board diagnostics
- tiinstallos - install OS to Toto board NAND flash
- version - print monitor version
- omap_toto #
- root@debian:/home/critor# echo version > /dev/ttyUSB0
- U-Boot 1.0.0 (Jan 13 2004 - 15:33:07)
- omap_toto #
- root@debian:/home/critor#
复制代码
Note that some commands are undocumented, because they've been added by TI:
- tidiag
- tiinstallos
- tiboot
The 'tidiag' command does launch the diagnostic software, and definately proves us that Toto has a color screen.Watch it for the first time on the Internet : ;)
Video: https://www.youtube.com/watch?fe ... edded&v=aHIUFIKLuwY
Source: http://tiplanet.org/forum/viewtopic.php?t=15107&p=169005#p169005
The 'tiboot' command does start a "MontaVista Linux", but unfortunately it does end up with some filesystem errors and a "Kernel panic"
But good news - both NOR and NAND chips have now been dumped thanks to U-Boot commands:
Toto NOR chip - 512KB (with U-Boot)
Toto NAND chip - first 2MB (with MontaVista Linux)
(the reste of the 32MB NAND chip seemed to only return 0xFF bytes)
Video: https://www.youtube.com/watch?fe ... edded&v=SWSV8kHnamk
Source: http://tiplanet.org/forum/viewtopic.php?t=15113&p=169076#p169076
Thank you very much for trusting us - thanks to you, Toto is now saved and safe.
And please tell us if you ever find another Toto unit, as the 'tiboot' command may reveal a working MontaVista Linux on the difference ;)
|
评分
-
查看全部评分
|