[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Root file system on CF card questions...
Mike Thompson wrote:
2. I created my own simple boot loader than runs in the FPGA BRAM to
copy the uClinux image.bin file from the CF card in to DDR memory to
run. How would I go about passing in the kernel command line when I
first jump to the kernel from my bootloader to specify an alternate
root filesystem and device?
Hi Mike,
look at this example:
typedef void (*void_fn)(char *);
//Kernel command line
static char *cmdline = "root=/dev/mtdblock0 rootfstype=romfs console=ttyS0";
static void uclinux_jump(unsigned long start_address)
{
void_fn kernel_start;
kernel_start = (void_fn)start_address;
xil_printf("Jumping to kernel startup... (%08lx)\r\n", start_address);
(*kernel_start)(cmdline); // Never returns
print("ERROR! Kernel returned\r\n");
}
Cheers,
Claudio Lanconelli
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/