archang has quit [Remote host closed the connection]
archang has joined #qi-hardware
fengling has quit [Ping timeout: 252 seconds]
fengling has joined #qi-hardware
Haswell has quit [Quit: Saliendo]
atommann has joined #qi-hardware
archang has quit [Remote host closed the connection]
archang has joined #qi-hardware
kristianpaul has joined #qi-hardware
Textmode has joined #qi-hardware
archang has quit [Read error: Connection reset by peer]
wej has quit [Ping timeout: 246 seconds]
jwhitmore has joined #qi-hardware
wej has joined #qi-hardware
jwhitmore has quit [Ping timeout: 252 seconds]
jwhitmore has joined #qi-hardware
rjeffries has quit [Ping timeout: 272 seconds]
DracoDan has quit []
fengling has quit [Quit: WeeChat 1.1.1]
fengling has joined #qi-hardware
Haqpyfeet has quit [Ping timeout: 250 seconds]
Haqpyfeet has joined #qi-hardware
wolfspraul has joined #qi-hardware
atommann has quit [Quit: Leaving]
wej has quit [Ping timeout: 248 seconds]
wej has joined #qi-hardware
Textmode has quit [Quit: "It was one dev, naked in a room with a carton of cigarettes, a thermos full of coffee and bourbon, and all his summoned angels."]
<paul_boddie>
Anyone have any hints about running standalone programs from U-Boot on the NanoNote?
<pcercuei>
ELFs?
<paul_boddie>
The binary portions of ELFs bundled as uImages. Not sure if that's sane or not, but it works over USB boot.
<paul_boddie>
Maybe I should be using plain ELFs in uImage files.
<paul_boddie>
I think the executable launches, but if so I can't easily verify it because I need to reset the display, and I'm not sure if that's working, either.
<paul_boddie>
U-Boot seems to want to load the binary at 0x80600000. Sound familiar to anyone?
<pcercuei>
the Linux kernel expect to be loaded at 0x80010000
<pcercuei>
expects
<pcercuei>
for the jz4740 at least
<paul_boddie>
I'm trying to re-use a stage 2 payload that works over USB boot. That does some relocation hacks to deal with being loaded in a different place by usbboot.
<paul_boddie>
U-Boot says "Booting kernel from Legacy Image at 80600000 ..." and then shows the image details.
<paul_boddie>
It ends with "Loading Standalone Program ... OK", then "OK", then... well, maybe it runs. ;-)
<paul_boddie>
However, if I choose load/entry addresses of 0x80600000, I get "XIP Standalone Program ... OK" and then "OK".
<paul_boddie>
(This isn't a Linux kernel, obviously.)
<pcercuei>
but what address did you compile your program for?
<paul_boddie>
I've tried 0x80000000 and 0x80010000 giving the "Loading Standalone Program" message.
<paul_boddie>
And 0x80600000 gives the "XIP Standalone Program" message.
<paul_boddie>
In other words, I've specified the load and entry addresses when running mkimage. The binary itself should be relocateable, but maybe that's my big mistake.
<paul_boddie>
I'll be back later, but I'll check the logs if you have any hints, particularly about obvious mistakes I've made. ;-)