[uClinux-dev] finding the root device
I am running mainline Linux on the Freescale/Axiom M5234BCC with uboot 2011.09-0-g0562219 and have been carrying along a patch from the uClinux-dist, like shown below for v3.2.9. I create a image by concatenating the kernel with a romfs, and I boot it by loading over tftp and jumping to the image with the uboot 'go' command. My question: Is there a way to pass the kernel command line from uboot to specify the root device, instead of using this patch? Thanks, Richard diff --git a/drivers/mtd/maps/uclinux.c b/drivers/mtd/maps/uclinux.c index 6793074..9cf7df5 100644 --- a/drivers/mtd/maps/uclinux.c +++ b/drivers/mtd/maps/uclinux.c @@ -15,6 +15,7 @@ #include linux/fs.h #include linux/mm.h #include linux/major.h +#include linux/root_dev.h #include linux/mtd/mtd.h #include linux/mtd/map.h #include linux/mtd/partitions.h @@ -89,6 +90,7 @@ static int __init uclinux_mtd_init(void) mtd-priv = mapp; uclinux_ram_mtdinfo = mtd; + ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, 0); mtd_device_register(mtd, uclinux_romfs, NUM_PARTITIONS); return(0); ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Re: [uClinux-dev] finding the root device
Hi, you can use something like root=31:00 in the kernel cmdline. Regards, Erwin Am Thursday, den 20.09.2012, 12:38 +0200 schrieb Richard Cochran: I am running mainline Linux on the Freescale/Axiom M5234BCC with uboot 2011.09-0-g0562219 and have been carrying along a patch from the uClinux-dist, like shown below for v3.2.9. I create a image by concatenating the kernel with a romfs, and I boot it by loading over tftp and jumping to the image with the uboot 'go' command. My question: Is there a way to pass the kernel command line from uboot to specify the root device, instead of using this patch? Thanks, Richard diff --git a/drivers/mtd/maps/uclinux.c b/drivers/mtd/maps/uclinux.c index 6793074..9cf7df5 100644 --- a/drivers/mtd/maps/uclinux.c +++ b/drivers/mtd/maps/uclinux.c @@ -15,6 +15,7 @@ #include linux/fs.h #include linux/mm.h #include linux/major.h +#include linux/root_dev.h #include linux/mtd/mtd.h #include linux/mtd/map.h #include linux/mtd/partitions.h @@ -89,6 +90,7 @@ static int __init uclinux_mtd_init(void) mtd-priv = mapp; uclinux_ram_mtdinfo = mtd; + ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, 0); mtd_device_register(mtd, uclinux_romfs, NUM_PARTITIONS); return(0); ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev -- Dipl.-Ing. Erwin Authried Softwareentwicklung und Systemdesign ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Re: [uClinux-dev] framebuffer/console question
Hi Angelo, On Mon, Sep 17, 2012 at 2:29 PM, angelo angel...@gmail.com wrote: i have a working coldfire board, running uClinux. I connected a 128x64 monochrome lcd on gpio, and written a framebuffer driver. On gpio, so it's not memory mapped? From userspace i can now write on /dev/fb0 and see some images properly. Good. My question now is about console. Just for playing, i am trying to see the console output on the LCD. Even if very small, this should be possible, as i enabled the console framebuffer driver and some fonts. OK. Once i booted linux, i try an echo test /dev/console, something seems to happen on the screen, some pixels are cleared, but i don't see nothing similar to font chars. Strange. I read fb and fbcon docs, but i couldn't find any document that explain if console fb driver (fbcon) can be used with some fb drivers only (like vesfb), or with any fb driver. So my question is: is it possible or i should add/create some additional driver ? The console should work, assumed you provided the proper drawing operations in your struct fb_ops. E.g. for simple packed monochrome: .fb_fillrect= cfb_fillrect, .fb_copyarea= cfb_copyarea, .fb_imageblit = cfb_imageblit, Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say programmer or something like that. -- Linus Torvalds ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev