Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

GUI-less kernel building

Altera_Forum
Honored Contributor II
1,185 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
268 Views

This should do the trick: 

 

nios2-elf-objcopy -O binary vmlinux vmlinux.bin
0 Kudos
Altera_Forum
Honored Contributor II
268 Views

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

 

 

Ryan 

Quantapoint
0 Kudos
Reply