This is the output from lolo:
================ begin lolo =====================
CPLD_CE_REG_REVISION: 0x37 (rev: b)
CPLD_CE_REG_MODE : 0xfe
default screen (54): 4 10bpp
Error, found no suitable display drivers
Error, couldn't get a display handle.
must 'video-open' before drawing!
*****************************************************************
LogicLoader
(c) Copyright 2002-2004, Logic Product Development, Inc.
All Rights Reserved.
Version 1.4.3.1-LLH7a400_10 0001
*****************************************************************
Type 'help all' for a list of commands.
losh> load elf
loading from stdin:
F
fseek(delta:-148) failed during load, possibly strange elf?
0xc0045be4 7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00 .ELF...a........
0xc0045bf4 02 00 28 00 01 00 00 00 d0 80 00 00 34 00 00 00 ..(.........4...
0xc0045c04 2c 25 06 00 02 00 00 00 34 00 20 00 03 00 28 00 ,%......4. ...(.
0xc0045c14 1a 00 17 00 ....
0xc0045b44 01 00 00 00 00 00 00 00 00 80 00 00 00 80 00 00 ................
0xc0045b54 c4 f9 05 00 c4 f9 05 00 05 00 00 00 00 80 00 00 ................
elf file type : 0x0002
machine type: 0028 version: 1
prog start addr : 0x000080d0
num prog headers: 3
num sect headers: 26
offset : 0x00000000 disk length: 0xc00c0000 mem len: 0x00000000
phyaddr: 0x00000094 vaddr : 0x00000003 dl addr: 0xc00c0000
elf load failed.
ignoring rest of file...done
losh>
=============== snip ==================
The file that I used as a test upload was the tmp test file compiled at the end of the crosstools build. I use the build.sh and defs from the
ftp://ftp.buici.com/pub/arm/crosstool/ site to build on a Linux host.
Running "file" on this elf image reports:
[tom@BeastBox tmp]$ file arm-linux-hello-static
arm-linux-hello-static: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, statically linked, not stripped
Just for giggles, I took an ELF file from another ARM project to see if that created the same problem. It does. The file was a stock "/bin/dd" taken from a Debian ARM woody distro.
Maybe what I am doing to do the upload is at fault? I have used blob quite a bit in the past to upload files into embedded arm systems and with blob, I simply start the upload (from within blob) and then "cat file > /dev/ttyS0". Would this present a problem?
I wouldn't think so as lolo announces "loading from stdin:" and /dev/ttyS0 is
uncooked. Unless lolo
cooks its' data passing through stdin from its' UART???