<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>I'm having a problem finding/loading/executing a payload from seabios which is now using the romfile<br>functions for cbfs (commit 59d6ca52a7eba5).<br>I do have the cpu_to_be32() patch to get the correct payload destination address.<br><br>Here's what I had previously that worked before the change...<br><br><span style="white-space:pre"> </span> // Output the LCD splash image to the Explorer board<br><span style="white-space:pre"> </span> struct cbfs_file *file;<br><span style="white-space:pre"> </span> dprintf(1,"Looking for Explorer LCD splash payload ... ");<br><span style="white-space:pre"> </span> file = cbfs_finddatafile("img/explorer-splash");<br><span style="white-space:pre"> </span> if(file)<br><span style="white-space:pre"> </span> {<br><span style="white-space:pre"> </span> dprintf(1," found file [%s]. Loading it...\n ",file->filename);<br><span style="white-space:pre"> </span> cbfs_run_payload(file);<br><span style="white-space:pre"> </span> }<br><span style="white-space:pre"> </span> else dprintf(1,"could NOT find it!\n");<br><br>This is where I'm at after the change ...<br><br><span style="white-space:pre"> </span> // Output the LCD splash image to the Explorer board<br><span style="white-space:pre"> </span> struct romfile_s *file;<br><span style="white-space:pre"> </span> dprintf(1,"Looking for Explorer LCD splash payload ... ");<br><span style="white-space:pre"> </span> file = romfile_find("img/explorer-splash");<br><span style="white-space:pre"> </span> if(file)<br><span style="white-space:pre"> </span> {<br><span style="white-space:pre"> </span> dprintf(1," found file [%s]. Loading it...\n ",file->name); <=== everything works up to here<br><span style="white-space:pre"> </span> // cbfs_run_payload();<br><span style="white-space:pre"> </span> }<br><span style="white-space:pre"> </span> else dprintf(1,"could NOT find it!\n");<br><br>The cbfs_run_payload is expecting (cbfs_file *). How do I extract what cbfs_run_payload() wants from what<br>I got back from romfile_find() ?<br><br>Thanks in advance,<br>Dave<br></div></body></html>