Insmod: command not found in MAC OS terminal

Discussion in 'macOS' started by maniahmed, Oct 29, 2010.

  1. maniahmed macrumors newbie

    Joined:
    Oct 29, 2010
    #1
    I want to build a redboot kernel in a wireless router, the command required from my newly acquired knowledge is insmod and modprobe.

    However from the mac 10.5.8 terminal it says that the command is not found. I have installed gcc , sdk compiler support and enabled the super user as well.

    Help Required.

    Thanks
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    Insmod is a linux command, OSX is built on Unix, specifically its using the bash shell
     
  3. Winni macrumors 68030

    Winni

    Joined:
    Oct 15, 2008
    Location:
    Germany.
    #3
    Yes, insmod and modprobe are used in Linux land to dynamically load kernel modules (which in Windows-speak would be 'drivers'), but to be more precise, OS X is based upon FreeBSD, which in turn is based upon BSD Unix.

    Calling an OS a "Unix" system is basically a trademark and not a technological issue. Linux, FreeBSD, OS X and even the Windows Servers can run any POSIX-compliant software, but that doesn't mean that they bought the license to call themselves "Unix", so they are usually called "Unix-like" operating systems.
     
  4. Winni macrumors 68030

    Winni

    Joined:
    Oct 15, 2008
    Location:
    Germany.
    #4
    Am I getting this right - you want to build a kernel for the wireless router, which runs Linux, on your Mac OS X system? There's a 99.9999% chance that this will not work - unless you're using the RIGHT cross-platform compiler and development environment. And I doubt that your router has sufficient system resources to host a development environment.

    It might be easier for you install a Linux VM on your Mac using either VirtualBox, Q, VMWare Fusion or Parallels Desktop -- and if you go down this alley, make sure that you use one of the supported hosting platforms and make sure that it is setup exactly as the workstations of the developers of the Linux for the router. I'm pretty sure that they have a How-To for setting up a developer workstation; every good dev team has this.
     

Share This Page