|
|
About ::
TODO ::
Blog ::
RSS ::
Old blog ::
Projects ::
GIT ::
Gallery ::
Notes
Mon, 28 May 2007
Sector reading code.
Ok, I've written a code which resides in MBR and
reads a sector into the RAM and jumps there, but it only
works if I read the same zero sector - I get recursive call
of the same .start routine, which prints
"Starting from MBR" to the serial console, but if I change
source address, system freezes. Likely this is because of
wrong sector->LBA translation (I need second or third sector,
but I must provide an LBA address), at least
if I blindly use 2 for the third sector, it reads something
different than third sector. SuperH LILO source I have
use some tricky asm to convert from one system to another,
which I do not yet understand, and it also uses some strange
constants (likely hardcoded address of the second stage loader),
so it is not very useful source of information.
Thinking...
/devel/sh :: Link / Comments (0)
Please solve this captcha to be allowed to post (need to reload in a minute): 82 + 58
|