2008-02-24 22:38:43     How to make uClinux quickly?

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-02-24 22:38:43     How to make uClinux quickly?

joyce jiang (CHINA)

Message: 51569   

 

Hi,I always need to copy my app bin code to uClinux/romfs/bin and then make the uClinux , I use the command make image,but this takes a lot of time ,is there any method to make uClinux quickly? thanks very much!

QuoteReplyEditDelete

 

 

2008-02-25 05:33:58     Re: How to make uClinux quickly?

Yi Li (CHINA)

Message: 51593    I think you can look at vendors/AnalogDevices/<Board>/Makefile, and try to disable things (unnecessary file systems) you don't need when configuring kernel.

 

On my system, "make image" usually takes about 1.5 minutes.

QuoteReplyEditDelete

 

 

2008-02-25 13:06:19     Re: How to make uClinux quickly?

Mike Frysinger (UNITED STATES)

Message: 51603    just rcp the binary over ethernet once you've booted

 

`make image` is the shortcut way to only generate all the files in image/

 

if that's too slow, then you should disable features in your kernel configuration that you do not actually need

QuoteReplyEditDelete

 

 

2008-02-25 22:04:01     Re: How to make uClinux quickly?

joyce jiang (CHINA)

Message: 51635    I will try to disable some things I don't need,The platform I used is BF533 EZ-KIT,and I didn't have ethernet board yet.Thanks very much.

QuoteReplyEditDelete

 

 

2008-02-26 18:06:26     Re: How to make uClinux quickly?

Robin Getz (UNITED STATES)

Message: 51682    Joyce:

 

Time to buy a faster host machine. A recent (few weeks ago) Dell PC compiles the entire dist in less than 2 min....

 

rgetz@snoopy:~/blackfin/trunk/uClinux-dist$ make distclean; time make AnalogDevices/BF537-STAMP_default 1>/dev/null 2>/dev/null

[...snip...]

Kernel: arch/blackfin/boot/vmImage is ready

real    1m49.355s

user    6m42.410s

sys     1m25.990s

 

(I send std out/err to null, since the time it takes to print everything out is a large portion of the time).

 

-Robin

QuoteReplyEditDelete

 

 

2008-02-26 18:42:17     Re: How to make uClinux quickly?

Graham Davies (UNITED STATES)

Message: 51684    How did you get a 'real' time less that 'user' plus 'sys'?  Are you sure it took two minutes and not nearly seven?

 

Graham.

QuoteReplyEditDelete

 

 

2008-02-26 19:04:50     Re: How to make uClinux quickly?

Mike Frysinger (UNITED STATES)

Message: 51686    multiple processors

QuoteReplyEditDelete

 

 

2008-02-27 09:54:28     Re: How to make uClinux quickly?

Robin Getz (UNITED STATES)

Message: 51740    Graham:

 

Check the "time" man page:

 

http://linux.die.net/man/1/time

 

As Mike indicated - on the machine that I recently got - has two quad core processors (8 in total, running at 1.60GHz, ), and 4 SATA Harddrives + HW RAID), loaded with 4 Gig of memory - and was still cheaper than my first PC that I got in 1991 (which ran at 20MHz).

 

-Robin

QuoteReplyEditDelete

 

 

2008-02-27 10:39:58     Re: How to make uClinux quickly?

Graham Davies (UNITED STATES)

Message: 51742    OK, thanks.  So, your advice to Joyce is to buy a machine with 8 processors, quad hard drives running hardware RAID and 4 GiB of memory.  Then she (and the rest of us) will be able to "... make uClinux quickly".  Seems reasonable to me.  I'll talk to my boss this afternoon.

 

Graham.

QuoteReplyEditDelete

 

 

2008-02-27 11:04:14     Re: How to make uClinux quickly?

Robin Getz (UNITED STATES)

Message: 51743    Graham:

 

Questions like "how do I make linux quickly" - were answered - either purchase a faster PC, or compile less (by turning off what you don't need). There isn't much else to do or suggest.

 

If you are doing this as part of your job, and time is money - buying a new PC is cheaper than waiting for compiles over the course of a project. The machine I got was less than $2k, and I share it with someone - since it is not loaded that much (afterall, it only takes 2 minutes to compile things). This is how I convinced my boss to purchase it. However - I think I compile alot more kernels that the average person doing things, so your ROI might differ.

 

If you are doing this as part of school, or as a hobby, and time is something that is free - then invest in your favorite beverage, and take small sips while you wait for things to compile - there isn't much you can do otherwise.

 

I'm not sure there is any other answer. I remember waiting 15-20 minutes for just the kernel to compile when I started with Linux - let alone the entire userspace and distribution.

 

-Robin

QuoteReplyEditDelete

 

 

2008-02-29 04:03:11     Re: How to make uClinux quickly?

joyce jiang (CHINA)

Message: 51873   

 

It  souds great that make the entre uClinux only takes two minutes,I will talk to my boss this things although he may not buy the compute.

 

Actually ,I wonder if there are have another command(not "make image") to make uClinux quickly,because I only need to update my app bin ,not the uClinux kernel.

QuoteReplyEditDelete

 

 

2008-02-29 07:03:52     Re: How to make uClinux quickly?

Javier Herrero (SPAIN)

Message: 51895    Try 'make user_only'. It only will make user space applications, and if only your user space application is out of date, it will only compile your application. The you can copy the application to your board using tftp or whatever, or run 'make image'.

 

Regards,

 

Javier

QuoteReplyEditDelete

 

 

2008-02-29 09:46:08     Re: How to make uClinux quickly?

Graham Davies (UNITED STATES)

Message: 51901    When I have modified only files in my application, I just type 'make'.  If I have modified header files, I first go to the directory containing the application and type 'make clean'.  I have a boring, slow single processor, single disk drive, 512 MiB machine and this build completes in 45 seconds real time.  Most of this, of course, is looking for stuff that doesn't need to be built, but it's still quite acceptable.  My configuration is quite lean, so YMMV.

 

Graham.

QuoteReplyEditDelete

 

 

2008-02-29 12:12:15     Re: How to make uClinux quickly?

Mike Frysinger (UNITED STATES)

Message: 51909    what you're asking about sounds like conflicting goals

 

if you just want to recompile your application, then do:

make user/whatever-your-app-is-named/_only

 

but that will not repack your code into the romfs/ directory and into the bootable image ... but if that's what you want, you should be loading the file dynamically in the first place: via rcp or lsz

QuoteReplyEditDelete

 

 

2008-02-29 21:23:34     Re: How to make uClinux quickly?

joyce jiang (CHINA)

Message: 51937   

 

I first need to update my application,this of course need to rebuild my application,but this isn't cost much time ,only serval seconds.but this is not enough,I need to get a uClinux image (include the update application) ,then download the image to my BF533 EZKIT to exec the update application.

 

To get the uClinux image ,I copy the builded application to the romfs/bin,then use "make image",make image cost about two minute,I wonder if thers is some way to cutdown the time.

QuoteReplyEditDelete

 

 

2008-02-29 21:45:03     Re: How to make uClinux quickly?

Mike Frysinger (UNITED STATES)

Message: 51941    the answer is still the same:

- transmit the application via rcp (ethernet) or lrz (serial modem) ... read the documentation for how to use these

- remove the things you dont need

- get a faster pc

QuoteReplyEditDelete

 

 

2008-03-01 00:47:39     Re: How to make uClinux quickly?

joyce jiang (CHINA)

Message: 51945    Yes,I see,Thanks a lot!

Attachments

    Outcomes