tag:blogger.com,1999:blog-2134528751480048218.post3623719919788537100..comments2023-06-27T21:52:54.340+02:00Comments on Sentry's Tech Blog: Faster compiling on an emulated Raspberry Pi on LinuxFlorianhttp://www.blogger.com/profile/18425430691307450923noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-2134528751480048218.post-79640444314657600582022-12-24T09:58:39.188+01:002022-12-24T09:58:39.188+01:00This comment has been removed by the author.Next technologyhttps://www.blogger.com/profile/12728755788864145048noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-89170907977909679962017-11-17T01:08:43.200+01:002017-11-17T01:08:43.200+01:00Indeed - but thought I'd go round passing this...Indeed - but thought I'd go round passing this on after I persuaded qemu to fix it.<br /><br />At some time I'd like to understand a little more about KVM, and how it can speed up emulating ARM chips, probably need to ask Qemu devs.stuaxohttps://www.blogger.com/profile/08755227063937859112noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-8956448716505097222016-11-08T21:47:53.761+01:002016-11-08T21:47:53.761+01:00I'm busy with life and can't test that or ...I'm busy with life and can't test that or write an updated article. But thanks for the update, much appreciated :)Florianhttps://www.blogger.com/profile/18425430691307450923noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-5592748321360534402016-11-07T23:33:21.200+01:002016-11-07T23:33:21.200+01:00If you use qemu 2.8, they have a bugfix so you don...If you use qemu 2.8, they have a bugfix so you don't need to comment the line in /etc/ld.so.preload any more.stuaxohttps://www.blogger.com/profile/08755227063937859112noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-18317325002266458342015-11-13T16:52:27.029+01:002015-11-13T16:52:27.029+01:00Maybe Marcus was explaining the CHROOTed QEMU syst...Maybe Marcus was explaining the CHROOTed QEMU system translate every piece of ARM to the corrispondent of x86 or whatever the host machine is.<br />So it slowdown the effective comparison between architectural chroot and the HOST CPU power when using cross-toolchain.<br />If you install distcc on the architectural chroot _AND_ the toolchain for cross-compiling in the HOST system you will speed up of a magnitude faster!!! Only linking must be done in the architectural chroot environment...gp61https://www.blogger.com/profile/07545292602701308779noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-54081834399834651112015-09-24T09:45:43.842+02:002015-09-24T09:45:43.842+02:00What do you mean? The architectural chroot is no e...What do you mean? The architectural chroot is no emulation, it compiles with yout own computers clock speed, multiple cores and all the RAM. Can you elaborate more?Florianhttps://www.blogger.com/profile/18425430691307450923noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-8943373767472043752015-09-23T20:15:30.270+02:002015-09-23T20:15:30.270+02:00Why didnt you use a buildroot, toolchain? cross-co...Why didnt you use a buildroot, toolchain? cross-compiling is absurdly fast compared to this, you can actually compile using your own computer clock speed, instead of emulatingMarcus Dinizhttps://www.blogger.com/profile/06318243422927700852noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-50278988062521400942014-11-13T15:13:29.714+01:002014-11-13T15:13:29.714+01:00I have no idea, but I think it should and you can ...I have no idea, but I think it should and you can probably find something about it already on the net. All I did here was gather information already available in a way that I found useful, so go ahead ;)Florianhttps://www.blogger.com/profile/18425430691307450923noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-86910285843139805902014-11-13T15:06:05.365+01:002014-11-13T15:06:05.365+01:00Cool stuff, tnx for sharing.
Will this run in a vi...Cool stuff, tnx for sharing.<br />Will this run in a virtualbox environment, too?<br />C64emulatorhttps://www.blogger.com/profile/15842796913227069415noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-21518067965022004642014-05-09T17:32:33.637+02:002014-05-09T17:32:33.637+02:00Also, if you need to build something that needs a ...Also, if you need to build something that needs a lot of space to build and find you are running out of room, I typically do a bind mount of a working directory as well.<br />sudo mount -o bind /home/me/src/WebKit /mnt/temp/home/rPi/src/WebKitAnonymoushttps://www.blogger.com/profile/03366539108221116151noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-22051362911685870902014-02-18T15:17:09.429+01:002014-02-18T15:17:09.429+01:00You just copy the files like you would do it in an...You just copy the files like you would do it in any other situation. But you have to copy it from outside the chroot environment into the folder of the chroot.Florianhttps://www.blogger.com/profile/18425430691307450923noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-52138489846683216112014-02-18T13:30:30.250+01:002014-02-18T13:30:30.250+01:00How to copy any data from base system to chroot ra...How to copy any data from base system to chroot raspberry system?Anonymoushttps://www.blogger.com/profile/08250734693253881780noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-10531340681145115422014-01-10T23:09:48.178+01:002014-01-10T23:09:48.178+01:00Thx, I will try that next time.Thx, I will try that next time.Florianhttps://www.blogger.com/profile/18425430691307450923noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-26458999160327069982014-01-10T20:56:47.720+01:002014-01-10T20:56:47.720+01:00Works fine on ubuntu 12.04.
ThanksWorks fine on ubuntu 12.04.<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/14397121662686567784noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-32080131925531362102014-01-10T01:17:55.033+01:002014-01-10T01:17:55.033+01:00Florian, to fix your broken internet access inside...Florian, to fix your broken internet access inside the chroot environment, copy /etc/resolv.conf to /mnt/temp/etc/resolv.confB.https://www.blogger.com/profile/02306705966729086408noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-69839080574860025462014-01-02T16:50:53.306+01:002014-01-02T16:50:53.306+01:00Good article. easy to follow. But, as a newby to q...Good article. easy to follow. But, as a newby to qemu and on booting qemu-system-arm.....etc, I keep getting "scsi: 0.0.1.0" re-occurring and incrementing ie. scsi: 0.0.2.0. At the end of each attempt I get "sym0: scsi bus has reset". Is there a way to stop this from happening. Cheers!denomxhttps://www.blogger.com/profile/10975233530284011965noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-26201125076970339582013-11-07T00:06:25.024+01:002013-11-07T00:06:25.024+01:00From: http://xecdesign.com/qemu-emulating-raspberr...From: http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/<br /><br />You need to edit /etc/ld.so.preload in the image and comment out the one and only line with a #.Anonymoushttps://www.blogger.com/profile/01767633827204118099noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-48693360758009965522013-06-09T01:54:21.969+02:002013-06-09T01:54:21.969+02:00Hi all,
If anyone is interested, I have put toget...Hi all,<br /><br />If anyone is interested, I have put together a script which chroot's and un-chroot's an image:<br /><br />https://github.com/jeffery/raspbian-tools/blob/master/raspbian-chroot.sh<br /><br />This works on opensuse 12.3 but looking for feedback on how it runs on other distros.jefferyhttps://www.blogger.com/profile/09955588352310004037noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-61361048032666753442013-03-11T10:56:29.668+01:002013-03-11T10:56:29.668+01:00Hi TheQuestor,
thanks for the feedback! Now let...Hi TheQuestor,<br />thanks for the feedback! Now let's see if we can solve your problem ;)<br /><br />Are you executing those commands from the architectural chroot? If yes, there is the problem. I haven't exactly figured out how so resolve this, but some things won't work in this environment.<br />Whenever I wanted to install something using apt-get or even just download something with wget, I had to use QEMU.<br /><br />I've described some of those issues in my other article (http://sentryytech.blogspot.de/2013/02/compiling-retroshare-for-raspberry-pi.html), please see if this helps you. If not, I will investigate.Florianhttps://www.blogger.com/profile/18425430691307450923noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-59030174898802236122013-03-11T06:20:18.196+01:002013-03-11T06:20:18.196+01:00Thank you very much for this article. It works up ...Thank you very much for this article. It works up to the point where I want to do anything with it :(<br />I wrote a little bash script that does each of your steps and I run it as root [not sudo] the problem is when I try to do an apt-get or whatever it core dumps.<br />root@jool:/# uname -a<br />Linux jool 2.6.32 #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 armv7l GNU/Linux<br />root@jool:/# cd /devel<br />root@jool:/devel# ls<br />root@jool:/devel# apt-get install git-core<br />qemu: uncaught target signal 4 (Illegal instruction) - core dumped<br />Illegal instruction (core dumped)<br /><br />Am I missing something? do I need to make a working rasbian from my unit, then dd it to an image and use that?TheQuestorhttps://www.blogger.com/profile/07075672963825274631noreply@blogger.comtag:blogger.com,1999:blog-2134528751480048218.post-37781985480378122262013-03-03T05:20:07.021+01:002013-03-03T05:20:07.021+01:00Thank you for this article. Very well done and hel...Thank you for this article. Very well done and helpful.Tim Pitmanhttps://www.blogger.com/profile/14498430922608501197noreply@blogger.com