Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello experts,
I would like to know the difference between the terms FLASHING and PORTING...Generally, used as same...I don`t get it...Are they really sort of same or there exists real big differences..
ex-porting u-boot onto some board !!
n flashing u-boot onto some board!!
Porting is the processes of moving software from one platform to another; making the necessary changes to the code and recompiling for the target machine.
Flashing is the process of writing firmware onto a device.
when i cross compile a linux kernel and rootfs for my target board or any other device then it is actually PORTING...
n
when I put firmware software (like u-boot or bare-metal programs or BIOS) into the memory of the device then it is flashing...
ex-#flashing# the bIOS of pc,
Porting isn't just cross-compiling; it's the process of making the software available on the platform for the first time. So part of the porting process is the creation of the cross-compiler itself.
So when the people in Embedded Domain, says that I ported (bla bla bla..anything) to some device/SBC etc... are they wrong??
because they are not the first to port it to the hardware, even if they build the toolchain themselves!!
ALL has been already done na!
People misuse terminology all the time. If they do it often enough, the meaning changes. The word 'hacking' is a good example; the media have turned it from the original meaning, 'recreational programming', to 'criminal security violation'.
It sounds like the folks you're referring to are misusing 'port' to mean 'cross compile'.
Guess, I am Drunk, too much confused!
srry for the inconvenience to you!!
but sir,
but as what I understand
1.Cross Compile means that compiling the source code for the target system on the HOST is one task
2.making the image run/execute on the target is second task..
so,
after cross compiling on target, _____ process is done to make the image run on target system..
I mean what should I say, when I cross compile a program image on HOST then execute on the target system!
Can I say that I have ported this onto my embedded device?
Porting: the process needed to make the source code of a program compatible with platform Y when it's compatible only with platform X. Think about console versions of arcade videogames: every version for a different console is a port of the original arcade version to the selected console. Given that the hardware platforms onto which the same software is to be executed vary, it is necessary to make some (heavy or not) adjustments to its source code to correctly exploit the underlying platform.
Cross-compiling: the process which make it possible to produce binaries for platform/architecture X while on a machine with a different platform/architecture. Think about compiling Windows programs while on Linux (VLC Windows binaries are cross compiled on Linux). In this context, the target is the platform/architecture you want binaries for while host is your running system architecture/platform.
Flashing: the process of writing data (tipically some kind of image file) on a flash memory device.
Quote:
Originally Posted by beyond
after cross compiling on target, _____ process is done to make the image run on target system..
I mean what should I say, when I cross compile a program image on HOST then execute on the target system!
Can I say that I have ported this onto my embedded device?
The only kinda meaningful word to put in the blank would be flashing, but it's not the image in itself which is run on the target system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.