Compiling for Omega2+ on Red Hat Linux?



  • @Chris-Stratton said in Compiling for Omega2+ on Red Hat Linux?:

    Hopefully the defaults would work.

    Especially if the real goal is just to build enough to get a working toolchain rather than a complete bootable and functional system.

    You should be OK with the defaults
    Also, building the toolchain works and is usable - just make sure you select it in make menuconfig :-)



  • I find myself nervous about selecting the right hardware options in make menuconfig.

    Has anyone got a .config file for openwrt which you already know works with an Omega2+, which you'd be willing to share?



  • The issue is not the configuration file but the source code; if you have a suitable source tree, the source you got it from should (or resource that pointed you towards it) should be telling you how to proceed. Typically there would already be an appropriate board target. Then unless you are trying to change something you should be able to just use what that sets.

    Note that there is not at present any complete, working, published source that specifically targets this board.



  • @Chris-Stratton
    I have the OpenWRT 15.05 source tree. But when I run make menuconfig, and look at the options for Firmware, I'm presented with choices for everything from ar3k-firmware to wl18xx-firmware, none of which are selected, none of which I know whether to select or not. There's an even larger plethora of hardware bits to select from in the kernel modules. For instance, even if I don't plan on using it, I'm fairly confident that a stock Omega2+ has the kmod-ledtrig-morse kernel module installed, but it's not highlit by default in menuconfig; more seriously, not one of the kernel modules for network devices or wireless drivers is already chosen.

    My worry is that if I don't pick exactly the right bits of hardware here, then when I try to use my home-compiled OS on my Omega2+, I'll have left out an important piece that will prevent me from even connecting to the Omega2+ again, effectively bricking the thing.

    I'm hoping that if someone already has a .config that works, then I can safely use that as a guide to which modules for hardware support I need, and I can build from there. Failing that, maybe a simple list of which bits of hardware are on the Omega2+ (as opposed to the Omega) that need such software to be compiled would be enough to keep me from reproducing my earlier mistake of trying to compile for entirely the wrong board. Failing /that/... maybe I could try compiling a monolithic kernel that just includes support for everything, but that's hardly optimal.

    Rephrased: My current problem is a lack of info on what chips and such are on the Omega2+ that need kernel/OS software compiled for them.



  • You seem to have overlooked the comment about there not being any complete full source tree tuned to this board available, from onion or anyone else.

    Probably the closest would be to get mediatek's tree for the linkit smart, though you may have to deal with some issues with the different flash chip chosen (or it might work anyway)

    It is indeed likely that early self build attempts will not function, thus you will need to have a mechanism to get a new image in without a working one - likely either a USB drive to U-Boot, TFTP over wired ethernet to U-Boot, or less likely directly programming the SPI flash chip with someone else or using JTAG to load in the code and then U-Boot to write it.



  • @Chris-Stratton

    you will need to have a mechanism to get a new image in without a working one - likely either a USB drive to U-Boot, TFTP over wired ethernet to U-Boot, or less likely directly programming the SPI flash chip with someone else or using JTAG to load in the code and then U-Boot to write it.

    I am completely unfamiliar with those techniques. Do you have any references on any of them handy?



  • @Daniel-Boese

    USB should be covered in onion docs, TFTP may be there or in openwrt docs.

    The other two should only be attempted if you are already quite familiar with them in concept.



  • As far as I know you can find a sdk
    with omega2 and omega2+ configuration files on onions git hub

    When configuring with "make menuconfig"
    you will see sub options for omega2 and omega2+ if you select the mt7688 as target. Thats what I used for my images.

    I never tested them cause atm I don't need them but as soon as I need custom kernel mods I will give them a try.

    I remember that on Omega2 stock os your not able to install custom kernel mods.
    At least it didn't work when I tried to install my "HelloWorld" kernel mod
    I have accomplished to successfully comile :D.

    When building the image with the build options from the onion sources I mentioned above will I then be able to install custom kernels?



  • @Adrian-Rix said in Compiling for Omega2+ on Red Hat Linux?:

    As far as I know you can find a sdk
    with omega2 and omega2+ configuration files on onions git hub

    When configuring with "make menuconfig"
    you will see sub options for omega2 and omega2+ if you select the mt7688 as target. Thats what I used for my images.

    I never tested them cause atm I don't need them but as soon as I need custom kernel mods I will give them a try.

    Had you tested them you would have discovered that basic functionality like wifi is missing.



  • Okay good to know that thanks for the Information.
    Going to play around and learn about this custom image stuff with my second om2
    I guess.


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.