Re: [BLACKBOX] Seasoned Linux.

From: [at]} <Wojtek>
Date: Thu, 13 Jan 2011 16:33:01 -0500

----boundary-LibPST-iamunique-1179202287_-_-
Content-type: text/plain

On Thu, 13 Jan 2011, Norayr Chilingarian wrote:

> Wojtek, do you aware, how to get a virtual ucLinux/Blackfin environment?


What is "virtual environment"? If you mean coLinux, then it is virtual in
the same sense that VMware is virtual. Please read the description:
http://docs.blackfin.uclinux.org/doku.php?id=colinux

I am advising coLinux because I am using it myself and it works very well.
They say that "CoLinux is not an emulator or virtual machine". Well, I do
not care how we name it. It is running alongside Windows on my laptop.

You can download and install coLinux from the main KOOP website. Look at
the table. The last row says CoLinux. Click on Releases to get a release
file. Click on Wiki to get documentation.
http://blackfin.uclinux.org/gf/

> Is it possible to download an image for Qemu? Short search didn't help me.

I did not know about Qemu. A short advice: do not even try using your own
solutions such as Qemu or own favorite Linux distro. Get what "they" give
you and follow instructions to the letter. If you run into problems (sure
you will) then you can ask "them" and they will help you. They are getting
paid for helping me and you, so they will help. But if you decide to
follow your own way, then you are on your own. So Qemu is not advised.

I will send you a zipped archive of my own installation documents where I
documented every step of coLinux installation. I will also send you a
coLinux config file which works great for me. I will not send these to
the BlackBox list, unless someone wants to see these files.

> I always prefer virtual or native image, do not like to crosscompile.

This would require a native Blackfin compiler running on Blackfin. It is
not available.


> Do you crosscompile, and then upload resulting binaries to the device?
> Could you describe in a couple of words your workflow, may be? :)

I cross-compile under coLinux. In case it is a single C file then it is
compiled by a single-line command. In case it is a multi-file application,
then I run make. It produces a binary executable on coLinux disk. Then I
do one of two things.

(1) I copy to a Windows shared directory, which is mounted by
the board's ucLinux, and I execute normally via command line. Good for
testing.

(2) I copy to the romfs directory under coLinux, and then "make image".
This command packs the uCLinux kernel together with the romfs into one
blob. Then I reboot the board in order to get to the bootloader prompt.
The bootloader named u-Boot has a built-in tftp client. I use this to
tftp the blob to the board RAM, and then I burn it into the flash chip.
(The bootloader can do this, too.) Then I boot from flash.

The method #1 is great for testing. The method #2 is meant for
persistence.

I will e-mail you my step-by-step files. Anyone doing embedded development
will appreciate the level of bloody detail which is covered by these
files. (Things like initial flashing, tftp-ing, burning the flash chips,
etc, etc). These are very far away from the Windows workflow.

I want to comment that Oberon initially appeared on a Ceres machine, which
by today's standards is almost like a microcontroller. Perhaps it is time
to go back to the origins and do what N.Wirth himself was doing, namely
design a computer and then program it in Oberon.

W.


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1179202287_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIE9uIFRodSwgMTMgSmFuIDIwMTEsIE5vcmF5ciBD
aGlsaW5nYXJpYW4gd3JvdGU6XHBhcg0KXHBhcg0KPiBXb2p0ZWssIGRvIHlvdSBhd2FyZSwgaG93
IHRvIGdldCBhIHZpcnR1YWwgdWNMaW51eC9CbGFja2ZpbiBlbnZpcm9ubWVudD9ccGFyDQpccGFy
DQpXaGF0IGlzICJ2aXJ0dWFsIGVudmlyb25tZW50Ij8gSWYgeW91IG1lYW4gY29MaW51eCwgdGhl
biBpdCBpcyB2aXJ0dWFsIGluIFxwYXINCnRoZSBzYW1lIHNlbnNlIHRoYXQgVk13YXJlIGlzIHZp
cnR1YWwuIFBsZWFzZSByZWF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ggXHBhcg0K
YnkgdG9kYXkncyBzdGFuZGFyZHMgaXMgYWxtb3N0IGxpa2UgYSBtaWNyb2NvbnRyb2xsZXIuIFBl
cmhhcHMgaXQgaXMgdGltZSBccGFyDQp0byBnbyBiYWNrIHRvIHRoZSBvcmlnaW5zIGFuZCBkbyB3
aGF0IE4uV2lydGggaGltc2VsZiB3YXMgZG9pbmcsIG5hbWVseSBccGFyDQpkZXNpZ24gYSBjb21w
dXRlciBhbmQgdGhlbiBwcm9ncmFtIGl0IGluIE9iZXJvbi5ccGFyDQpccGFyDQpXLlxwYXINClxw
YXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBi
b2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQAAAAAA
----boundary-LibPST-iamunique-1179202287_-_---
Received on Thu Jan 13 2011 - 22:33:01 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:19 UTC