Skip to main content
1 of 6
user2799508
  • 1.7k
  • 9
  • 29
  • 46

Disabling TCP/IP during boot process in linux

I am trying to install Linux on an FPGA board. The linux flavour is petalinux for xilinx fpga chips.

The current xilinx SoC has is having Cortex A9 processor and an programmable hardware logic i.e fpga. I captured the boot message on the terminal:

.....................U-boot time.......................partition....................................................... [Fri Dec 27 15:18:53.108 2013] Copying Linux from SD to RAM... [Fri Dec 27 15:18:53.129 2013] Device: SDHCI [Fri Dec 27 15:18:53.129 2013] Manufacturer ID: 2 [Fri Dec 27 15:18:53.129 2013] OEM: 544d [Fri Dec 27 15:18:53.129 2013] Name: SA04G [Fri Dec 27 15:18:53.129 2013] Tran Speed: 25000000 [Fri Dec 27 15:18:53.129 2013] Rd Block Len: 512 [Fri Dec 27 15:18:53.129 2013] SD version 1.10 [Fri Dec 27 15:18:53.129 2013] High Capacity: Yes [Fri Dec 27 15:18:53.129 2013] Capacity: 3951034368 [Fri Dec 27 15:18:53.129 2013] Bus Width: 1-bit [Fri Dec 27 15:18:53.129 2013] reading zImage [Fri Dec 27 15:18:59.367 2013] [Fri Dec 27 15:18:59.367 2013] 2304852 bytes read [Fri Dec 27 15:18:59.381 2013] reading devicetree.dtb [Fri Dec 27 15:18:59.475 2013] [Fri Dec 27 15:18:59.475 2013] 2709 bytes read [Fri Dec 27 15:18:59.491 2013] reading ramdisk8M.image.gz [Fri Dec 27 15:19:06.121 2013] [Fri Dec 27 15:19:06.121 2013] 2501584 bytes read [Fri Dec 27 15:19:06.144 2013] Trying to set up GEM link... [Fri Dec 27 15:19:06.144 2013] Resetting PHY... [Fri Dec 27 15:19:06.144 2013] [Fri Dec 27 15:19:06.144 2013] PHY reset complete. [Fri Dec 27 15:19:06.144 2013] Waiting for PHY to complete auto-negotiation... [Fri Dec 27 15:19:18.176 2013] ***Error: Auto-negotiation stalled... [Fri Dec 27 15:19:18.176 2013] ping failed; host 10.10.70.101 is not alive 

My line of interest are;

[Fri Dec 27 15:19:06.144 2013] PHY reset complete. [Fri Dec 27 15:19:06.144 2013] Waiting for PHY to complete auto-negotiation... [Fri Dec 27 15:19:18.176 2013] ***Error: Auto-negotiation stalled... [Fri Dec 27 15:19:18.176 2013] ping failed; host 10.10.70.101 is not alive 

I guess these lines are for TCP/IP. As can be seen about 12 seconds are wasted in here. The thing is I need a fast boot system, and would not be needing TCP/IP at all in the end application.

The linux that I installed so far was using a prebuilt image provided by xilinx. But now to get rid of the TCP/IP part (since I dont need, and if I dont have it in OS, this 12 seconds could be saved- this is my understanding), I am planning to build my own linux kernal.

So what I did is that I downloaded the source code of the petalinux. I know I will have to cross compile it from my host system.

But I want to know how do I exclude this TCP/IP part from the O.S source, so that when the OS boot it will never execute those time consuming TCP/IP routines?

I am also not sure if in prebuilt image can we have any option to disable TCP/IP part?

My aim is to get rid of these lines when during boot process:

[Fri Dec 27 15:19:06.144 2013] PHY reset complete. [Fri Dec 27 15:19:06.144 2013] Waiting for PHY to complete auto-negotiation... [Fri Dec 27 15:19:18.176 2013] ***Error: Auto-negotiation stalled... [Fri Dec 27 15:19:18.176 2013] ping failed; host 10.10.70.101 is not alive 
user2799508
  • 1.7k
  • 9
  • 29
  • 46