From: Cord S. <cs...@em...> - 2001-11-22 19:01:09
|
Hi Alessandro, On Thu, 22 Nov 2001, Alessandro Rubini wrote: > > > I've to use S-records, which I generate with objcopy. But the loader only > > permits one upload with one start address. Guess, I've to combine two > > S-records into one file. That should work, shouldn't it? > > You can also link the ramdisk inside the kernel. I've done that for > mips one year ago (it was the standard for PDA devices), and I'm going > to it today or tomorrow on my sh box. > > What you should do is this: > - convert the ext2/whatever image to an object file with > objcopy and set the __rd_start and __rd_end symbols > - link it in by adding the object file to the Makefile > - add this in place of the code that uses the empy_zero_page header: > > extern void * __rd_start, * __rd_end; > initrd_start = (unsigned long)&__rd_start; > initrd_end = (unsigned long)&__rd_end; > initrd_below_start_ok = 1; > > That should work. If you or someone else is interested in my > implementation, I'll post the real code and script tomorrow. Yes, please. Since I'm having wired problems with initrd (see my response to Stuart), I would try your way next. Is the SH port perhaps missing something for initrd to work? Cord |