Go to advanced search

by Cycl0ne
Mon Aug 13, 2012 3:16 pm
Forum: Bare metal, Assembly language
Topic: EMMC - can't get READ_RDY
Replies: 22
Views: 7284

Re: EMMC - can't get READ_RDY

DexOS wrote:Once you get your code fully working, a writeup of basic steps would be help full, no need for code, just basic steps.
Thanks.
Dont listen to Dexos, CODE is always welcomed ;) Even more if you have IRQ activated.
by Cycl0ne
Mon Aug 13, 2012 6:40 am
Forum: Bare metal, Assembly language
Topic: EMMC - can't get READ_RDY
Replies: 22
Views: 7284

Re: EMMC - can't get READ_RDY

Thanks for the pointers to source code. I prefer not to read linux source unless I'm really really desperate. And it turns out there is more to the RiscOS SD driver than just that bit of assembly - in cddl/RiscOS/Sources/HWSupport/SD/SDIODriver there's another 5681 lines of C source and headers. I ...
by Cycl0ne
Sun Aug 12, 2012 6:35 pm
Forum: Bare metal, Assembly language
Topic: DMB/WMB/ISB
Replies: 12
Views: 6244

Re: DMB/WMB/ISB

did you notice that the c example seems to be wrong?
by Cycl0ne
Sat Aug 11, 2012 10:28 pm
Forum: Bare metal, Assembly language
Topic: EMMC - can't get READ_RDY
Replies: 22
Views: 7284

Re: EMMC - can't get READ_RDY

PI's RiscOS port. -> Its completely in Assembler, you find it through google: riscos -> and there si a raspberry pi branch. I finished my MMC driver and what i noticed, it is veryyyyyyyy buggy and you have to delay some commands. i also had this error when fetching data from the device. i increased ...
by Cycl0ne
Sat Aug 11, 2012 6:27 am
Forum: Bare metal, Assembly language
Topic: Bare Metal VideoCore
Replies: 27
Views: 11615

Re: Bare Metal VideoCore

From me too. GZ Hermanhermitage
by Cycl0ne
Thu Aug 09, 2012 1:38 pm
Forum: Bare metal, Assembly language
Topic: print char to screen
Replies: 10
Views: 2754

Re: print char to screen

second part: /* Character ¸ (0xb8): ht=8, width=8 +--------+ | | | | |***** | | ** | |***** | | ** | | ** | | ** | +--------+ */ 0x0000, 0x0000, 0xf800, 0x1800, 0xf800, 0x1800, 0x1800, 0x1800, /* Character ¹ (0xb9): ht=8, width=8 +--------+ | ** ** | | ** ** | |**** ** | | ** | |**** ** | | ** ** | ...
by Cycl0ne
Thu Aug 09, 2012 1:38 pm
Forum: Bare metal, Assembly language
Topic: print char to screen
Replies: 10
Views: 2754

Re: print char to screen

Here a Rom Font 8x8 to play with. /* ROM 8x8 Font bios mode 10 */ static unsigned short rom8x8_bits[] = { /* Character (0x00): ht=8, width=8 +--------+ | | | | | | | | | | | | | | | | +--------+ */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, /* Character (0x01): ht=8, width=8 +--...
by Cycl0ne
Thu Aug 09, 2012 12:48 pm
Forum: Bare metal, Assembly language
Topic: print char to screen
Replies: 10
Views: 2754

Re: print char to screen

Code says more than 1000words ;) Here the mailbox "things": #define BCM2708_PERI_BASE 0x20000000 #define GPUCORE_MAILBOX (BCM2708_PERI_BASE + 0xB880) #define GPUCORE_MAILBOX_READ_REGISTER 0x00 #define GPUCORE_MAILBOX_WRITE_REGISTER 0x20 #define GPUCORE_MAILBOX_STATUS_REGISTER 0x18 #define GPUCORE_MA...
by Cycl0ne
Thu Aug 09, 2012 10:46 am
Forum: Bare metal, Assembly language
Topic: DMB/WMB/ISB
Replies: 12
Views: 6244

Re: DMB/WMB/ISB

Hmm, you dont need to link them, it would be fine to explain why your DSB differs from others. I know it easier to say: hey RTFM. But i think one positive aspect we should have here in this community of baremetal builders to share know how by saying: dont read all this stuff, just do it this way and...
by Cycl0ne
Thu Aug 09, 2012 9:07 am
Forum: Bare metal, Assembly language
Topic: Programming in Basic on Bare Metal Tutorial 3
Replies: 33
Views: 7131

Re: Programming in Basic on Bare Metal Tutorial 3

2) use the bootloader from dwelch -> gets you faster to your goal.
Open up a terminal,
power on raspberry
send with terminal your prg to raspberry
have fun
by Cycl0ne
Thu Aug 09, 2012 9:05 am
Forum: Bare metal, Assembly language
Topic: print char to screen
Replies: 10
Views: 2754

Re: print char to screen

as tufty said, you need some basic graphic routines. i can post some here in about 2-3 weeks when im finished. still fiddling with some layered graphics.
by Cycl0ne
Wed Aug 08, 2012 10:01 pm
Forum: Bare metal, Assembly language
Topic: DMB/WMB/ISB
Replies: 12
Views: 6244

Re: DMB/WMB/ISB

its nice that you posted this, but most of us arent too deep into this to know what they are doing or to understand the words written in the arm manual. personaly i dont like the arm manuals, they are written, as if the only three letters in the speech of arm is A.R.M. A simplified version saying: y...
by Cycl0ne
Wed Aug 08, 2012 1:50 pm
Forum: Bare metal, Assembly language
Topic: DMB/WMB/ISB
Replies: 12
Views: 6244

DMB/WMB/ISB

Ok, as i am not the only one confused, i started a new thread and post all implementations i know of into here: From Tufty: /* pass in a spare register */ .macro DMB reg mov \reg, #0 mcr p15,0,\reg,c7,c10,5 /* Data memory barrier on ARMv6 */ .endm /* Data synchronisation barrier */ /* pass in a spar...
by Cycl0ne
Tue Aug 07, 2012 10:16 pm
Forum: Bare metal, Assembly language
Topic: FB doublebuffering
Replies: 27
Views: 4939

Re: FB doublebuffering

yup that whats confuses me too.

afaik this is why you have a DSB() and a WSB() (?) where the first clears the pipes that all commands are written and the second clears cache so that you can read correct values from memory. but in linux source both are the same?!?:-P
by Cycl0ne
Tue Aug 07, 2012 8:55 pm
Forum: Bare metal, Assembly language
Topic: FB doublebuffering
Replies: 27
Views: 4939

Re: FB doublebuffering

im still also not 100% sure about, since i also have seen three different approaches on that (3 different code parts), one from dexos, one from dwelch and one from tufy. as far as i know, you should put it there, where you communicate with other devices. So: - USB Registers - MMC Registers - READ/WR...
by Cycl0ne
Mon Aug 06, 2012 10:12 pm
Forum: Bare metal, Assembly language
Topic: FB doublebuffering
Replies: 27
Views: 4939

Re: FB doublebuffering

I may cut out framebuffer coding on the PI and use the PI as a supper arduino dev board, as i am sick and tired of them changing stuff. They should make sure to keep backward compatibility, its no fun re-coding once a month. I have re-coded 3 times so far. why you recoded? the old mailbox still wor...
by Cycl0ne
Mon Aug 06, 2012 9:34 pm
Forum: Bare metal, Assembly language
Topic: Bare metal OS, DMA reset problem (solved)
Replies: 8
Views: 4583

Re: Bare metal OS, DMA reset problem (solved)

cool - thanks - I'm assembling hardware atm, but will give it closer look when I start to code... GPIO / SPI / I2C are my top piorities - I think I should be able to do this in C without any OS modules, but dedicated ones would not hurt.... yes, im not sure about what your program will look like, b...
by Cycl0ne
Mon Aug 06, 2012 8:52 pm
Forum: Bare metal, Assembly language
Topic: Bare metal OS, DMA reset problem (solved)
Replies: 8
Views: 4583

Re: Bare metal OS, DMA reset problem (solved)

I would be interested to give it a whirl when its finished - I'm looking at various bare metal solutions for my balancing robot as it needs a control system that operates as near to real time as possible to stop it falling over! I am used to PHP / C(++) so hope it will be stupid proof as low level ...
by Cycl0ne
Mon Aug 06, 2012 8:46 pm
Forum: Bare metal, Assembly language
Topic: FB doublebuffering
Replies: 27
Views: 4939

Re: FB doublebuffering

I got it working by sending a message to the mailbox using a message to channel 8 (the one I described above ) , but dex was talking about a different way by writing inside the framebuffer struct and I'm intetested about it . My method works , but doesn't seem like the most efficient I think it's p...
by Cycl0ne
Mon Aug 06, 2012 8:43 pm
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 36
Views: 27970

Re: [Guide] Beginning Bare Metal on Raspi

DexOS wrote:You should let the compiler do what it wants to do, its the master not you, it knows best :roll: .
Hey Sheldon, if you do sarcasm, you shouldnt forget your "Bazinga" :D
by Cycl0ne
Mon Aug 06, 2012 10:33 am
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 36
Views: 27970

Re: [Guide] Beginning Bare Metal on Raspi

The compiler's doing what it should. Initialising BSS to 0 is one of the first things you should be doing on boot. Yes, I know. I'm not saying the compiler is wrong, just that when explicitly initializing it in the code, I don't expect it to end up in BSS in the first place... I accomplish this by ...
by Cycl0ne
Mon Aug 06, 2012 7:36 am
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 36
Views: 27970

Re: [Guide] Beginning Bare Metal on Raspi

Problem is only: Ethernet works, Mass Storage works, Mouse might work, Keyboard hangs ;-) So someone has to look into it. From my quick look through the code it seems that the driver doesn't do split transactions so it won't work across a hub, at least that is assuming that you are running the usb ...
by Cycl0ne
Sun Aug 05, 2012 6:38 am
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 36
Views: 27970

Re: [Guide] Beginning Bare Metal on Raspi

Here is a stripped down linux usb raspberry pi port: https://github.com/gonzoua/u-boot-pi/tree/rpi to be exactly here: https://github.com/gonzoua/u-boot-pi/tree/rpi/drivers/usb/host all files containing "dwc_*" Problem is only: Ethernet works, Mass Storage works, Mouse might work, Keyboard hangs ;-)...
by Cycl0ne
Sat Aug 04, 2012 9:56 pm
Forum: Bare metal, Assembly language
Topic: [Guide] Beginning Bare Metal on Raspi
Replies: 36
Views: 27970

Re: [Guide] Beginning Bare Metal on Raspi

This USB you have in your source, does it support OTG USB from Raspberry Pi?
by Cycl0ne
Sat Aug 04, 2012 9:49 pm
Forum: Bare metal, Assembly language
Topic: dual boot understanding
Replies: 20
Views: 10402

Re: dual boot understanding

And so on. You should be able to use any of the "standard" U-boot commands to load and boot arbitrary kernels, in short. But how do you issue the commands to boot the secondary operating system? Does that requires a serial console cable hooked up to a second computer? (your quote doesn't mention su...

Go to advanced search