[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] driver missing after boot up




Wendy

Thanks very much for the insight. I did eventually find this required change to common.mk and from the start was making the CONFIG_TUN change but of course your solution with common.mk is a lot cleaner than mine.

A follow on question might be, can we modify the build process such where any modification, aka like the CONFIG_TUN , will automatically generate the required changes to the common.mk or user specific file?

I guess more research is needed on this....

Thanks again.....Chris

Wendy Liang wrote:
Hi Chris,

If you want a built-in driver, you should configured the driver as a built-in driver. e.g. CONFIG_TUN=y instead of CONFIG_TUN=m.

You have to add a device node to the root file system image if your root file system is read only (by default, petalinux uses read only file system) by changing the petalinux-dist/vendors/PetaLogix/common/common.mak.

E.g. if you want to add a `tun` in `/dev/net`, you can try to add the following code in `ifndef CONFIG_SYSTEM_ROOTFS_JFFS2` section in common.mak file.

ifdef CONFIG_TUN
  mkdir -p $(ROMFSDIR)/dev/net
touch $(ROMFSDIR)/dev/net/@<device name>,<device type>,<major num>,<minor num>
endif

Regards,
Wendy

On Thu, Apr 23, 2009 at 4:20 AM, Chris Robson <clr1004@xxxxxxxxxxx <mailto:clr1004@xxxxxxxxxxx>> wrote:

    Driver question...

    I'm trying get a tun interface enabled after bootup for a Petalinux
    build. The driver is built, aka tun.c is built resulting in tun.o.
    However after loading up image.ub on the target system the only
    .ko file
    I can find is:

    /lib/modules/2.6.20-uc0/kernel/drivers/char/hw_random/rng-core.ko

    Is there a place I should be looking to further enable the module
    driver
    at build time? What is strange, to me at least, is the eth0 E1000
    interface works but it also as no .ko file.

    Thanks....chris


    ------------------------------------------------------------------------
    Rediscover Hotmail®: Get e-mail storage that grows with you. Check
    it out.
    <http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009>


___________________________
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/