Go to advanced search

by LdB
Tue Jun 26, 2018 4:25 pm
Forum: C/C++
Topic: Best Compilation Flags for RPi3 on Raspbian 32 bit?
Replies: 15
Views: 16104

Re: Best Compilation Flags for RPi3 on Raspbian 32 bit?

I truely doubt many GCC compiler providers seriously do very much with optimizing the native flags because probably the vast number of people working on GCC code base are cross compiling from a desktop version of linux, mac or windows. The native processor report would be AMD or Intel processor whic...
by LdB
Fri Jun 22, 2018 5:45 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Nice I will add it. Is there any better documentation on Xinu specifically now I have the screen 100% working I want to bind the console output to it? I probably won't get much more time to play as I am away from next week as I said. I have the initialization bound it dumps out to the debug TTY like...
by LdB
Thu Jun 21, 2018 3:33 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Thanks for that .. I don't get why they don't just leave it with all the function pointers zeroed and in PlatformInit which is called basically after you have processor up fill them in from a configuration file. Much more sensible that having a scripted code change. I know that is what I will be doi...
by LdB
Wed Jun 20, 2018 6:02 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

rlatinov any chance I could get a conf.h with everything on, so it saves me having to install linux :-)

Got everything working I think and just leaves me to deal with multicore which I suspect I will have to rework the switcher.
by LdB
Tue Jun 19, 2018 2:12 am
Forum: Bare metal, Assembly language
Topic: VC stops responding to property mailbox requests after 8 requests
Replies: 2
Views: 294

Re: VC stops responding to property mailbox requests after 8 requests

The VC mailbox queue is exactly 8 both ways .. Did you forget to read the mailbox status after you sent it to clear the queue coming back. The VC will stop processing requests if it can't put a response in it's queue back ... it simply starts ignoring messages. So after every writemailbox there need...
by LdB
Mon Jun 18, 2018 3:40 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

I got the screen up now as well but slow as .. need to go look at it. Cheers need to read up on using this thing. I haven't looked yet are all the core switching there is some weird messages going thru debugger stub? Oh the bug is in the enumeration of the fake hub (tm) code it enumerates the onboar...
by LdB
Mon Jun 18, 2018 3:33 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Yes it is a bug in the original code they translated .. I had a post on the forum complaining same thing.
Here:
https://lb.raspberrypi.org/forums/viewt ... p?t=178162

How do you get it display the tree and I will patch it?
by LdB
Mon Jun 18, 2018 3:24 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Yeah was slow attaching .. I noticed. The typing will be the context switch with interrupt I need to look at the interrupt routine, the switcher was so simple I thought they just turned them off. Pretty easy to fix let you know when it's done, should do the fiq at same time in case it gets used. So ...
by LdB
Mon Jun 18, 2018 2:44 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

SOLVED IT .. I end up almost replacing all the code before I noticed the dam thing. It wasn't the setup ... the code didn't change the ARM address to VC address for the DMA transfer. I am surprised it got away with it even on the old Pi1. With the MMU on that is a drop dead on the Pi2 or Pi3. So two...
by LdB
Mon Jun 18, 2018 9:32 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Okay I have been thru this to death and even setup xinu in 64bit on the Pi3 and the behaviour is absolutely consistent. What I do notice compared to my usb driver is there is no real setup except hitting the fifo registers and clearing interrupts on the xinu code it just sort of seems to assumes it ...
by LdB
Sun Jun 17, 2018 5:46 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

hehe I just realized I left my test activity LED flash code in Start.S .... you can remove it was just for debugging And don't forget to change the lines in platformvars for fpu operation .. I lied there were 4 file changes :-) I forgot the secondary cores (1,2,3) have to start with FPU on as well ....
by LdB
Sun Jun 17, 2018 5:48 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Ah yes the old LAN9214 Houston we have a bug !!!! USB: [DEBUG] Device 0: dwc_channel_start_xfer(): Setting up transactions on channel 7: max_packet_size=64, endpoint_number=0, endpoint_direction=IN, low_speed=0, endpoint_type=Control, device_address=0, size=0, packet_count=1, packet_id=2, split_enab...
by LdB
Sun Jun 17, 2018 3:30 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

If the debugger stub started using software float maths for offset, table calcs and float display etc it would go re-entrant on the same maths routines you are using. I have no way of knowing if the current library is re-entrant safe. The hardware FPU is just a series of registers and result registe...
by LdB
Sat Jun 16, 2018 2:03 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Thanks for that rpdom. rlatinov: Issue 1: Okay you had me going with your for the Pi Screen you forgot to use PERIPHERALS_BASE instead of MMIO_BASE (0x20000000) the address on the mailbox code is hence the old Pi1 and no screen ... the struct also needs to be packed :-) I have changed MMIO_BASE to 0...
by LdB
Sat Jun 16, 2018 8:43 am
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 120
Views: 29832

Re: Circle - C++ bare metal environment (with USB)

Could someone tell why are we clearing only L1 d-cache and not L1 & L2 for the multicore case, any reason? Is it specific to Raspberry Pi ? I thought rst would answer you so I left it but he must not be around. From looking at that code sysinit() is only executed by core0 as it starts up it clears ...
by LdB
Sat Jun 16, 2018 7:53 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

getting close now but new one process_begin: CreateProcess(NULL, sh mkvers.sh arm-rpi3, ...) failed. make (e=2): The system cannot find the file specified. make: *** [../include/version.h] Error 2 I take it version.h is also scripted to be created? Update: Ignore that I worked out it must just have ...
by LdB
Fri Jun 15, 2018 3:19 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

I have GCC 6.3,7.1,7.2 and Linaro 6.1, 7.1 on my system that isn't the problem. If it was just a normal make I could rewrite the makefile but it does shell excutes to run what look like scripts, runs bison to build some conf.h file and all sorts of weird stuff. The only thing I have seen like this w...
by LdB
Thu Jun 14, 2018 3:53 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

No worries hopefully it shouldn't take me long to find it.

Update: I am in makefile hell .. wont build under cygwin. Might be faster to setup a spare machine on linux :-)
by LdB
Thu Jun 14, 2018 3:32 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

All I can suggest is search the whole code if the DWC file for memcpy and replace them there is likely to be a couple. It wont matter the code does the same thing it is just slower. That was just the outbound there should be the same thing for received to align it and it is the read you are having i...
by LdB
Thu Jun 14, 2018 1:13 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Well then we agree and you knew the answer .. so why didn't you tell him and save me crawling thru the code !!! Anyhow mystery solved and it will probably work if he fixes it, all I knew is it would be an alignment issue. Do you have a preferred one Xinu uses that you could post for him since he is ...
by LdB
Thu Jun 14, 2018 1:04 pm
Forum: Bare metal, Assembly language
Topic: AARCH64 MMU and ldaxr/stlrb semphore
Replies: 3
Views: 484

Re: AARCH64 MMU and ldaxr/stlrb semphore

ARM cpu has 4 x L1 cache and 1 x L2 cache which is shared by all 4 of them, VC has L2 cache which is separate from ARM cache. Do not confuse them. What I am asking is can I turn the cache on in the MMU table over the area of the VC4 memory it owns so you can theoretically write/read faster to the f...
by LdB
Thu Jun 14, 2018 12:46 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

I don't know xinu at all but I have written a USB driver and I know all the alignment issues inside and out. You are getting the wrong end of stick yes they are aware of the problem but let me walk you thru it Let me mark a very interesting line of code with <<<< SEE THIS /* Need to use alternate bu...
by LdB
Thu Jun 14, 2018 7:38 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

Found 1 for you in that code Look at the definition of struct usb_descriptor_header it's only 2 bytes big /** Fields that begin every standard USB descriptor. */ struct usb_descriptor_header { uint8_t bLength; uint8_t bDescriptorType; } __packed; Now look at the point I have marked with "<<< SEE THI...
by LdB
Thu Jun 14, 2018 5:49 am
Forum: Bare metal, Assembly language
Topic: AARCH64 MMU and ldaxr/stlrb semphore
Replies: 3
Views: 484

AARCH64 MMU and ldaxr/stlrb semphore

This is really for lizzard I finished getting the AARCH64 with MMU and ldaxr/stlrb semaphore up on all 4 cores https://github.com/LdB-ECM/Raspberry-Pi/tree/master/10_virtualmemory Now I am going to have to do this otherwise I will get a snide comment. I do not suggest this is how you do multicore co...
by LdB
Thu Jun 14, 2018 3:26 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 41
Views: 2177

Re: Raspberry Pi 3B+ Bare Metal USB Driver

So we assume you have changed the IO address and done the drop from HYP because you are getting a fair way along. However you need to explain are compiling for ARM6 or ARM8 code specifically what I am asking is what are your cpu compiler flags, they could be -march=armv6zk -mtune=arm1176jzf-s or -ma...

Go to advanced search