bringing along other files in lar.
i want to bring vsa into lar. And I don't recall how we want to do this. Any ideas?
thanks
ron
ron minnich wrote:
bringing along other files in lar.
i want to bring vsa into lar. And I don't recall how we want to do this. Any ideas?
thanks
ron
lar folks might have a better understanding but I think it can be done as another binary to jump to. It will return when it is finished. As for the build side I think this might be where buildrom comes in and does the wget etc.
Marc
On 07.01.2008 23:50, Marc Jones wrote:
ron minnich wrote:
i want to bring vsa into lar. And I don't recall how we want to do this. Any ideas?
lar folks might have a better understanding but I think it can be done as another binary to jump to. It will return when it is finished. As for the build side I think this might be where buildrom comes in and does the wget etc.
IIRC we now have the VSA sources available, so we should be able to build a custom VSA.
For storing the VSA in the LAR, I have to know a few things. - Is the VSA a blob with no header and/or signature? - Do we have to load it at a specific address? - How do we determine the entry point? - What's the exact calling convention?
If at all possible, I'd like to handle the VSA like any ELF file in the LAR, that means parsing and compressing it for storage in flash, then uncompressing and loading it to a specified address and executing it at the specified entry point.
Regards, Carl-Daniel
Carl-Daniel Hailfinger wrote:
IIRC we now have the VSA sources available, so we should be able to build a custom VSA.
Yes, the source is out but it hasn't been ported to gcc so you don't want to do that. Just use the (nrv2b compressed) compiled binary.
For storing the VSA in the LAR, I have to know a few things.
- Is the VSA a blob with no header and/or signature?
It would need a elf/lar header.
- Do we have to load it at a specific address?
I don't think so but below 1MB to be safe.
- How do we determine the entry point?
- What's the exact calling convention?
Same as used in v2
If at all possible, I'd like to handle the VSA like any ELF file in the LAR, that means parsing and compressing it for storage in flash, then uncompressing and loading it to a specified address and executing it at the specified entry point.
I agree, this is exactly how it should work.
Marc
On 08/01/08 00:11 +0100, Carl-Daniel Hailfinger wrote:
On 07.01.2008 23:50, Marc Jones wrote:
ron minnich wrote:
i want to bring vsa into lar. And I don't recall how we want to do this. Any ideas?
lar folks might have a better understanding but I think it can be done as another binary to jump to. It will return when it is finished. As for the build side I think this might be where buildrom comes in and does the wget etc.
IIRC we now have the VSA sources available, so we should be able to build a custom VSA.
No, you are far, far away from being able to build the VSA, let alone a custom VSA. We've discussed this in the past, but in short, somebody will need to figure out how to port the current VSA to the GNU compiler.
Jordan
On 07/01/08 15:50 -0700, Marc Jones wrote:
ron minnich wrote:
bringing along other files in lar.
i want to bring vsa into lar. And I don't recall how we want to do this. Any ideas?
thanks
ron
lar folks might have a better understanding but I think it can be done as another binary to jump to. It will return when it is finished. As for the build side I think this might be where buildrom comes in and does the wget etc.
It would probably have to be done slightly different, but yeah - thats the general idea. LAR is already set up for including arbitrary blobs for this very reason.
Jordan