From: Alessandro R. <ru...@gn...> - 2001-11-22 12:19:08
|
> 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. /alessandro |