Linux on XMOS!

Off topic discussions that do not fit into any of the above can go here. Please keep it clean and respectful.
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Linux on XMOS!

Post by Bianco »

I was bored this afternoon so i decided to port Linux to the XMOS arch.
I found a way to squeeze it in.
Results:

Image
Image


User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller »

uClinux, presumably? Quite an achievement!

Leon
User avatar
that_awesome_guy
Member
Posts: 10
Joined: Mon Dec 14, 2009 7:06 pm

Post by that_awesome_guy »

Hey! Looks impressive and that really took you an afternoon? I just took a look (when I say look, I mean ~2hrs) at the uClinux code and it doesn't look particularly trivial to port (i was thinking in the order of man week(s))...

Couple of questions:

1) Are you going to be posting the patch against the uClinux tree for this so that other people can give it a go? (or just upload a zip of your source)
2) Did you create a custom driver for the display? If so what was your implementation method? Simple driver to external i/o or did you use a driver that outputs to a separate thread that handles buffering etc?
3) How are you typing in commands?
4) What did you do about the timers & interrupts that are required?
5) Do you have a realtime clock on there? I noticed you have a somewhat plausible time in 'uptime'
6) What did you do about bootstrapping?

I hope I don't sound too sceptical - I am just incredibly intrigued as to how you did it so quickly!
User avatar
TonyD
XCore Addict
Posts: 234
Joined: Thu Dec 10, 2009 11:11 pm
Location: Newcastle, UK

Post by TonyD »

Awesome.

I hope you find time to post it as a project.

edit:

I get it now :D

¡Inocente!
Last edited by TonyD on Wed Dec 30, 2009 9:57 pm, edited 1 time in total.
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Post by Bianco »

*grin*

I have to disappoint you guys!
This was just a string output test for my new LCD driver!

(There is a reason this was posted in off topic...)

;-)
User avatar
errordeveloper
Active Member
Posts: 50
Joined: Wed Dec 16, 2009 6:04 pm
Location: London

Post by errordeveloper »

Ok, so that was a joke?

well .. could be nice to have it actually ..
can we run linux on one core somehow?

i doubt, but is there an ancester architecture that xcore is some how based on?
may be linux was already ported to that ..:)
User avatar
Berni
Respected Member
Posts: 363
Joined: Thu Dec 10, 2009 10:17 pm

Post by Berni »

Well its sort of based on transputers and porting linux to this would be a huge problem as there is way too little RAM.
Heater
Respected Member
Posts: 296
Joined: Thu Dec 10, 2009 10:33 pm

Post by Heater »

I think the way to do it is to write a MIPs emulator for the xcore. Assuming it can be fit into 64K.
Then use the MIPs emulator to run uClinux from external RAM.
Perhaps there is an even an architecture simpler than the MIPS that could be used.
User avatar
errordeveloper
Active Member
Posts: 50
Joined: Wed Dec 16, 2009 6:04 pm
Location: London

Post by errordeveloper »

well ..i am not too sure, may be we can add external ram? may be even like battery-backed ram
could be fun :)

making a board with a decent aount of ram and flash could be the right thing to port linux to xcore!
there is AVR32 port ..
nothing is imposible i'd say ;')
User avatar
jason
XCore Expert
Posts: 577
Joined: Tue Sep 08, 2009 5:15 pm

Post by jason »

lol I feel a group project coming on.