Go to advanced search

by Cycl0ne
Wed Jul 25, 2012 1:26 am
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 38
Views: 34780

Re: [Guide] Beginning Bare Metal on Raspi

hehe did it the other way round.. check ouit the git ;)

now a bin is there ;)
by Cycl0ne
Tue Jul 24, 2012 4:04 pm
Forum: Bare metal, Assembly language
Topic: Some advanced C Questions
Replies: 18
Views: 5910

Re: Some advanced C Questions

You don't need clrex, ldrex and strex will do. Surround them with membars (dmb) to ensure a consistent memory view. off the top of my head, an atomic inc using ldex/strex - ; address of variable passed in r0. returns value (1 + *r0) atomic_inc: dmb ldrex r1, [r0] add r1, r1, #1 strex r2, r1, [r0] c...
by Cycl0ne
Tue Jul 24, 2012 4:00 pm
Forum: Bare metal, Assembly language
Topic: Bare metal motivations
Replies: 8
Views: 4714

Re: Bare metal motivations

My Pi arrived yesterday and one of the first things I did was to run dwelch's flasher.bin program to make the OK LED flash. My plan for the coming days is to set up a Linux VM to build ARM Asm/C and then try and get something running so I can plot simple graphics to the frame buffer. Hi Beakster, l...
by Cycl0ne
Tue Jul 24, 2012 3:57 pm
Forum: Bare metal, Assembly language
Topic: Some advanced C Questions
Replies: 18
Views: 5910

Re: Some advanced C Questions

If you do that, you need to make sure the included file doesn't get compiled by mistake, though. Another option is to wrap your function(s) in a #define, and then invoke that whenever you need to include the function(s) It's all 'orrible, though. There is another Problem, i dont want to bloat up th...
by Cycl0ne
Tue Jul 24, 2012 1:52 pm
Forum: Bare metal, Assembly language
Topic: Bare metal motivations
Replies: 8
Views: 4714

Re: Bare metal motivations

Hmm, you know my repo Simon, im coding an AmigaOS Clone on Raspberry Pi ;-) Or at least im refactoring my 10 Years PowerOS code to ARM, coding a lot more due to PowerPC/x86 dependencies. If everything goes well, the shell will be up in 1-2 Weeks with all shell commands, FAT, LEAN and the RAM Filesys...
by Cycl0ne
Tue Jul 24, 2012 1:44 pm
Forum: Bare metal, Assembly language
Topic: Some advanced C Questions
Replies: 18
Views: 5910

Re: Some advanced C Questions

at the moment i will live with 800 lines of code with 15 functions. i want to get to an alpha stage. i coded 120new functions the last 5 days and light is at the end of tunnel. Heres a dump of missing functions at the moment im sitting on;-) src/kickstart/lib.dos/_functab.c:68:12: error: 'dos_LockRe...
by Cycl0ne
Tue Jul 24, 2012 1:39 pm
Forum: Bare metal, Assembly language
Topic: Integer division
Replies: 4
Views: 6453

Re: Integer division

its a builtin gcc function. you need libgcc.a or code them yourself. the arm cpu doesnt have % and / in the core as commands, so they have to be emulated Heres my ripped code ;) What you need then is a __DIV0 Function, void __DIV0() {} to catch the Division through 0 .macro ARM_DIV_BODY dividend, di...
by Cycl0ne
Mon Jul 23, 2012 1:15 pm
Forum: Bare metal, Assembly language
Topic: Some advanced C Questions
Replies: 18
Views: 5910

Re: Some advanced C Questions

Hah !! I found it :)

The magic switch for Strip is he following: -s is too much ...
--strip-unneeded
by Cycl0ne
Mon Jul 23, 2012 1:12 pm
Forum: Bare metal, Assembly language
Topic: Some advanced C Questions
Replies: 18
Views: 5910

Re: Some advanced C Questions

2. strip -s? Anyway, the strip command seem to be the one you need. When i do a strip -s -> the whole relocation table is stripped, giving me the following error: COFF File!!! Header Read Section Header read: BSS Section = 2 Cannot relocate an executable without symbols This is my Test.c Program: i...
by Cycl0ne
Mon Jul 23, 2012 11:27 am
Forum: Bare metal, Assembly language
Topic: Some advanced C Questions
Replies: 18
Views: 5910

Re: Some advanced C Questions

Hmm,

ok thanks, sounds all too complicated. its just happens that i stripped alot of same code to only one function, making the whole code smaller. Then im going to keep all functions in one .c file, looks a bit untidy, but at the moment i have to live with it.
by Cycl0ne
Mon Jul 23, 2012 8:01 am
Forum: Bare metal, Assembly language
Topic: Some advanced C Questions
Replies: 18
Views: 5910

Some advanced C Questions

Ok, this has perhaps nothing to do with Bare metal, but I have two questions, I would like to ask: 1) at the moment im refactoring my code and i have 6 functions, which share one function in common, exp.: static void bar(INT32 x) { } void foo1() { bar(1); } void foo2() { bar(2); } now my question, i...
by Cycl0ne
Thu Jul 19, 2012 8:14 am
Forum: Bare metal, Assembly language
Topic: Bare Metal image capture
Replies: 6
Views: 3976

Re: Bare Metal image capture

Dont think so, the ARASAN(?) MMC Controller needs atleast 1sec for initialisation.
by Cycl0ne
Wed Jul 18, 2012 11:02 pm
Forum: Bare metal, Assembly language
Topic: 8 bit colour palette information
Replies: 22
Views: 10011

Re: 8 bit colour palette information

Little Endian? ;-)

Dexos, how did you activate the hdmi output?
by Cycl0ne
Wed Jul 18, 2012 8:54 pm
Forum: Bare metal, Assembly language
Topic: Floating point in bare metal code
Replies: 11
Views: 7052

Re: Floating point in bare metal code

Exactly :) BUT .. i would suggest: - this is a Co Processor. add a flag into your task structure "bool fpu". The task has to get the resource FPU, set it to true, and only if you see a task with true, take the 32 registers (16 double/32 single) with you. and if you only have one task with true, neve...
by Cycl0ne
Wed Jul 18, 2012 2:30 pm
Forum: Bare metal, Assembly language
Topic: Bare Metal image capture
Replies: 6
Views: 3976

Re: Bare Metal image capture

HI,

can you give more information? From where you want to take the capture? You are on baremetal = no graphics activated. so you activate the graphics card -> you get a framebuffer -> you can draw on it -> you can take a capture of it.
by Cycl0ne
Tue Jul 17, 2012 6:25 pm
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 38
Views: 34780

Re: [Guide] Beginning Bare Metal on Raspi

Cycl0ne, no problem on that. Im one of your "Watchers" on github ^^
by Cycl0ne
Tue Jul 17, 2012 3:19 pm
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 38
Views: 34780

Re: [Guide] Beginning Bare Metal on Raspi

Can you give me write access to the repo on github? i will change and add things, that might be interessting. :)
by Cycl0ne
Mon Jul 16, 2012 5:26 pm
Forum: Bare metal, Assembly language
Topic: [BareMetal] USB
Replies: 31
Views: 12858

Re: [BareMetal] USB

Look a MBR :) I should definitely fix my vsnprintf...... 0 | fa b8 0 10 8e d0 bc 0 b0 b8 0 0 8e d8 8e c0 | z....P.......X.@ 10 | fb be 0 7c bf 0 6 b9 0 2 f3 a4 ea 21 6 0 | {..|......s.j!.. 20 | 0 be be 7 38 4 75 b 83 c6 10 81 fe fe 7 75 | ....8.u..F..~~.u 30 | f3 eb 16 b4 2 b0 1 bb 0 7c b2 80 8a 74 ...
by Cycl0ne
Mon Jul 16, 2012 12:42 am
Forum: Bare metal, Assembly language
Topic: Adventures in bare metal
Replies: 15
Views: 9999

Re: Adventures in bare metal

look into the USB thread. http://www.raspberrypi.org/phpBB3/viewtopic.php?f=72&t=10485 USB is "relatively" hard. Got an USB Stack working with Ethernet and Mass Storage and Mice, but no Keyboard :-/ Send a PM with your email and I send you the "usb stack" to have a look at. i havent put this into my...
by Cycl0ne
Mon Jul 16, 2012 12:09 am
Forum: Bare metal, Assembly language
Topic: [BareMetal] USB
Replies: 31
Views: 12858

Re: [BareMetal] USB

Next thing, im talking SDHCI ;-) (COLDSTART)InitResident sdhci.device (22c94) malloc host: 40e44e8 version: 2 SDHCI_Reset Adding MMC to List bcm2835_SDHCI: 0 sdhci_init sdhci_WRITE32DSB sdhci_setpower print Infos: Device: Manufacturer ID: 1b OEM: 534d Name: 00000 Tran Speed: 25000000 Rd Block Len: 5...
by Cycl0ne
Sun Jul 15, 2012 10:40 pm
Forum: Bare metal, Assembly language
Topic: Adventures in bare metal
Replies: 15
Views: 9999

Re: Adventures in bare metal

Have a look here: http://elinux.org/RPi_VideoCore_APIs you can disassemble the lib and look for yourself Function -> what it places into the VCHIQ Service. Then you see whats all possible with the videcore. and to be honest.. i really like this way BCM does this. and first i thought: binary_blob and...
by Cycl0ne
Sun Jul 15, 2012 8:55 pm
Forum: Bare metal, Assembly language
Topic: Adventures in bare metal
Replies: 15
Views: 9999

Re: Adventures in bare metal

it will come better.. at the moment they are looking forward to release the complete mailbox messages to public. with them you can do everything .. from 2d, 3d, sound, video,....
by Cycl0ne
Sun Jul 15, 2012 3:29 pm
Forum: Bare metal, Assembly language
Topic: [Guide] ATAG Scanner
Replies: 4
Views: 3944

Re: [Guide] ATAG Scanner

Hmm, whats in r0 and r1 then? i trash r2 too much to get the scanner working earlier in my code.
by Cycl0ne
Sun Jul 15, 2012 3:27 pm
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 38
Views: 34780

Re: [Guide] Beginning Bare Metal on Raspi

Thats really nice, but i forgot one file i noticed :) types.h typedef void VOID; typedef void * APTR; typedef signed char INT8; typedef signed short INT16; typedef signed int INT32; typedef signed long long int INT64; typedef unsigned char UINT8; typedef unsigned short UINT16; typedef unsigned int U...
by Cycl0ne
Sun Jul 15, 2012 8:41 am
Forum: Bare metal, Assembly language
Topic: [BareMetal] USB
Replies: 31
Views: 12858

Re: [BareMetal] USB

Thanks!

Go to advanced search