Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

GUI-less kernel building

I'm trying to automate the building of my kernel via a custom script, which will do the following:

1. copy my local edited kernel source files into the remote kernel directory

2. build the kernel

3. create vmlinux.bin

4. bin2flash

5. flash the board

I've got all of this in a bash script, but I cannot find how to accomplish step 3 (creating vmlinux.bin from 'vmlinux'). This is handled via the Eclipse plug-in normally (while the output window shows only the output of 'Make'). I was hoping someone knew which script was running under the hood here, so I can emulate this behavior in my bash routine.

Thanks,

Ryan

Quantapoint

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This should do the trick:

    nios2-elf-objcopy -O binary vmlinux vmlinux.bin
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks atlenisse, that's exactly what I was looking for.

    Ryan

    Quantapoint