Home Live Radio Podcast Live TV Vodcast Forum Files Login Register :     Contact : 
 
Forum index Forum: Device: SkyTC - KMP510 (Envivo Otek Xenta Arnova) Topic: Serial console and boot via usb Last replied to: May 9, 2017, 11:40 pm Back to post view
AuthorPostOptions
Posted by probutus Message # 1     Posted at April 22, 2012, 1:42 pm,     subject: Serial console and boot via usb  
Messages: 17 posts
Registration date: March 27, 2012
Status: Offline

As already stated, I have a serial console on the Xoro HMT350. Interestingly, if I connect the UART to my PC before switching on the device, the Xoro goes straight into USB boot mode.
When I connect the uart later on I usually missed the first ouput from U-Boot. There is a way around it:

If you connect the UART after switching on the device you can activate a serial console by pressing <Enter> If you now enter "reboot" the system reboots and you get the full serial output including access to U-Boot prompt. (It looks like the BOOT_SEL pins are only sampled on cold boot ):

U-Boot 1.1.6 (Oct 20 2011 - 15:44:08)

Board: Ingenic CETUS (CPU Speed 378 MHz)
DRAM:  64 MB
Top of RAM usable for U-Boot at: 84000000
LCD panel info: 320 x 240, 32 bit/pix
Reserving 304k for LCD Framebuffer at: 83fb4000
Reserving 419k for U-Boot at: 83f48000
Reserving 8192k for malloc() at: 83747e00
Reserving 44 Bytes for Board Info at: 83747dd4
Reserving 60 Bytes for Global Data at: 83747d98
Reserving 128k for boot params() at: 83727d98
Stack Pointer at: 83727d78
Now running in RAM - U-Boot at: 83f48000
Flash:  0 kB
Build: 101222-0, based on patch-090903
Support custom u-boot logo in NAND
SD init ok
*** Warning - MMC/SD first load, using default environment

MAC address = XX:XX:XX:XX:XX:XX
Use default Remote On Key
Use default Remote User ID
Remote User ID = 0x00, Power On Key = 0x0A
Power on by on/off key
[LCD] Initializing LCD frambuffer at 83fb4000
Now reset KMP510 TFT panel
palette_mem_size = 0x00000200
[LCD] Drawing the logo...
Show default logo
Logo: width 320  height 240  colors 256  cmap 512
In:    serial
Out:   lcd
Err:   lcd
### main_loop entered: bootdelay=1

### main_loop: bootcmd="smartstart"
Hit any key to stop autoboot:  0 
KMP510V12# 

I wonder if it is possible to boot from SD-card instead of the internal eMMC
 
Posted by penbex Message # 2     Posted at April 22, 2012, 3:55 pm,     subject: Serial console and boot via usb  
Messages: 2216 posts
Registration date: May 21, 2009
Status: Offline

Nope, tried that.. even with a board modification.. but you cant boot from the sd card.. I figure thats because the internal flash is already assigned the bootable usb slot.

 
Posted by probutus Message # 3     Posted at April 22, 2012, 9:45 pm,     subject: Serial console and boot via usb  
Messages: 17 posts
Registration date: March 27, 2012
Status: Offline

Quote:
Nope, tried that.. even with a board modification.. but you cant boot from the sd card.. I figure thats because the internal flash is already assigned the bootable usb slot.

That's true, you can't boot DIRECTLY from sd-card but it should be possible to continue booting from the second SD-card slot in U-boot. As far as I know, the second port is not enabled but it shouldn't be too complicated to add support for the second slot...

I managed to get the usbboot- tool running:

I connected the device to the PC and installed the usbboot driver:


Now, I could start the usb_boot.exe:

 Welcome!
 USB Boot Host Software!
 USB Boot Software current version: 1.4b
 Handling user command.
 USBBoot :> list

 Device number can connect :0
 USBBoot :> list

 Device number can connect :1
 USBBoot :> boot 0

 Checking state of No.0 device: Unboot
 Now booting No.0 device:
 Download stage one program and execute at 0x80002000: Pass
 Download stage two program and execute at 0x80c00000: Pass
 Boot success!
 Now configure No.0 device:
 Now checking whether all configure args valid:
 Current device information: CPU is Jz4750
 Crystal work at 24MHz, the CCLK up to 336MHz and PMH_CLK up to 112MHz
 Total SDRAM size is 16 MB, work in 4 bank and 16 bit mode
 Nand page size 4096, ECC offset 24, bad block ID 127, use 1 plane mode
 Configure success!
 USBBoot :> help

 Command support in current version:
 help          print this help;
 boot          boot device and make it in stage2;
 list          show current device number can connect;
 fconfig       set USB Boot config file;
 nquery        query NAND flash info;
 nread         read NAND flash data with checking bad block and ECC;
 nreadraw      read NAND flash data without checking bad block and ECC;
 nreadoob      read NAND flash oob without checking bad block and ECC;
 nerase        erase NAND flash;
 nprog         program NAND flash with data and ECC;
 nmark         mark a bad block in NAND flash;
 go            execute program in SDRAM;
 version       show current USB Boot software version;
 exit          quit from telnet session;
 readnand      read data from nand flash and store to SDRAM;
 load          load file data to SDRAM;
 run           run command script in file;
 memtest       do SDRAM test;
 gpios         let one GPIO to high level;
 gpioc         let one GPIO to low level;
 sdprog        program SD card;
 sdread        read data from SD card;
 USBBoot :>

I already dumped the internal emmc card to the PC but I get read errors above 1.5 G (the same when I try to do a dd in the shell...)

It is possible to read and write the eMMC card and it's also possible to load and start a modified u-boot.bin to ram and start it 
 
Posted by nders Message # 4     Posted at June 17, 2012, 11:38 am,     subject: Serial console and boot via usb  
Messages: 6 posts
Registration date: May 13, 2012
Status: Offline

Hej Probutus, since you have the usbboot running,
could you dump the first 4M  from the flash and send it to me.

I have tried to compile and load a new u-boot image, but the machine
wont boot with it. It will save me hours not to have to debug the
startup.

BR
  Anders

Ps. if you do nreadraw I think the tool will create a dump.bin (at least mine does). Ds.
 
Posted by yugaja123 Message # 5     Posted at December 7, 2016, 9:03 am,     subject: Serial console and boot via usb  
Messages: 8 posts
Registration date: October 27, 2016
Status: Offline

Hello,

I am sorry for raising this old theme, but I was wandering if any of you has dump of whole eMMC no matter what fw is inside? I have bricked device, with working U-boot, kernel and with non working  rootfs... I do not know how to bring back device.I was thinking that full reflash will do the job..
 
 
Posted by penbex Message # 6     Posted at December 8, 2016, 1:58 pm,     subject: Serial console and boot via usb  
Messages: 2216 posts
Registration date: May 21, 2009
Status: Offline

As far as I know, not available.. 
 
Posted by nders Message # 7     Posted at May 9, 2017, 11:40 pm,     subject: Serial console and boot via usb  
Messages: 6 posts
Registration date: May 13, 2012
Status: Offline

Quote:
Hello,

I am sorry for raising this old theme, but I was wandering if any of you has dump of whole eMMC no matter what fw is inside? I have bricked device, with working U-boot, kernel and with non working  rootfs... I do not know how to bring back device.I was thinking that full reflash will do the job..,

This can easly be done without sending away your radio, you can do it from the usb-tool or, boot from SD and reflash live.
/A