Go to advanced search

by Electron752
Wed Apr 06, 2016 11:03 am
Forum: Bare metal, Assembly language
Topic: ffmpeg benchmark(armhf vs aarch64/64bit vs 32bit)
Replies: 4
Views: 2997

ffmpeg benchmark(armhf vs aarch64/64bit vs 32bit)

I ran both 32bit ffmpeg and 64bit ffmpeg from debian(armhf and aarch64) on a HD movie file to convert it to ntsc DVD quality. The 64bit version is running on top of my port of the linux kernel to arm64. In both cases the data(source and target) was on a very fast USB flash drive(USB 3.0 capable 128G...
by Electron752
Wed Apr 06, 2016 3:04 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

Just want to add that with my changes that I posted, I'm able to get X Windows to load and work just fine. So I think 64bit userland is all just going to work. I'm running the xfce4 desktop + lightdm. Of course, this is unaccelerated X windows without sound, but it seems to run reasonably fast. I mi...
by Electron752
Wed Apr 06, 2016 12:45 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

OK, I've collected my changes on github for everyone's benefit. The kernel source is here: https://github.com/Electron752/linux A complete compiled boot partition with the 64bit kernel and u-boot is here: https://github.com/Electron752/boot64-rpi3 I would be curious if anybody wants to try it out. I...
by Electron752
Mon Apr 04, 2016 10:47 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

I've only tested the spin table with the test app in my rpi-3-aarch64-demo repo. However, Eric Anholt got it working with the mainline kernel. It looks like that code is here: https://github.com/anholt/linux/commit/be4ac324fe5ab14816ab06a8fd956bb9897cd23a#diff-312c904c5fb48e9906d35bad1317b0ecR30 (t...
by Electron752
Mon Apr 04, 2016 9:15 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

In the ARM stub code I wrote, the CPU release address values are (IIRC) 0xe0, 0xe8, 0xf0. BTW, Eric Anholt mentioned to me on IRC that he'd just tested the spin table (with the mainline kernel I imagine) and found it worked fine. I have switched to your bootloader now that I have video working. Do ...
by Electron752
Mon Apr 04, 2016 8:09 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

Today, I was able to get video working in fb mode. It was rather easy once the previous fix was made. The mailbox support, and firmware support are included in the stock kernel. All I had to do was add the bcm2708_fb.c from the 32bit kernel and fix Kconfig and Makefile. I did disable video DMA for n...
by Electron752
Mon Apr 04, 2016 6:14 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

Since I can ssh into the RPI 3 now and am now less dependent on the serial port, I reran bytecpu with all the overclocking and clockfixing removed from config.txt. Here are the new results. RPI 3(64 bit) ===========OVERALL============ INTEGER INDEX: 17.584480 FLOATING-POINT INDEX: 7.295657 (90 MHz D...
by Electron752
Mon Apr 04, 2016 5:26 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

I confirmed that the previous patch is all that is needed to make DMA,USB, and networking work. Here is a very small patch for what I think is a rather severe issue with the dwc2 driver which is not 64 bit specific. It looks like the bug was a simple typo, but it means that USB send/receive to unali...
by Electron752
Mon Apr 04, 2016 3:24 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

So I now have DMA+Networking working. I'm able to ping the RPI 3(64bit) and even run apt!!!! I'm in the process of backing out a large number of changes, but it appears that all is needed is to add the correct address mappings from the 32bit version. The 64bit version currently was not doing any map...
by Electron752
Sun Apr 03, 2016 9:35 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

marcus_c: The "Disable DMA" isn't meant to be a long term solution. It's just a quick fix until someone figures out what needs to be done to get DMA to work correctly. Neddy on the gentoo forum told me, that the framebuffer is working again with that "DMA off" patch. https://forums.gentoo.org/viewto...
by Electron752
Sat Apr 02, 2016 5:21 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

Cool, I was also able to copy a large amount of data from a USB connected flash drive. Although performance is very poor and after awhile the RPI 3 gets bogged down. So part of my theory is that the RPI isn't hung, it's just extremely slow when performing USB I/O. At this point, I can see a whole bu...
by Electron752
Sat Apr 02, 2016 2:57 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

OK, I've made some progress! I can get the 64bit kernel to successfully enumerate the USB bus now. I isolated the problem to be that the DMA support is broken for the DWC2 driver. If DMA is disabled, then the USB bus can correctly be enumerated. The trick is to force DMA to be disabled. --- a/driver...
by Electron752
Sat Apr 02, 2016 12:42 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

It tries ti reset and enable the port but it receives a STALL ... :? I was looking at the error code from the device descriptor read, and I think the OTG module is receiving garbage. Possibly sending garbage. The stall just means that the device received an unknown request. The get device descripto...
by Electron752
Sat Apr 02, 2016 11:56 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

When I see a new processor, I like to run the old bytecpu benchmark that was famous back in 1995. I ran it in both 32bit mode and 64bit mode, and I'm seeing about a 2x speed improvement. It's possible something goofy might be going on such as something being wrong with the system clocks, but this is...
by Electron752
Sat Apr 02, 2016 10:13 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

OK, this is really a long shot but it looks like something needs to activate the GPIO6 pin on the SOC to bring the LAN part of the USB HUB/Lan module out of reset. I don't know if anything is doing that since this is a stock kernel base. I'll try and see if I can fix this and recompile the kernel. T...
by Electron752
Sat Apr 02, 2016 9:18 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

Cool, I'll try it in a few minutes. Do you have any suggestions on how to attach a USB bus analyzer to the board? My analyzer expects to be in between the host and the peripheral. With it it would be very, very easy to find USB related issues. Also, u-boot has working USB and lan. Since the u-boot s...
by Electron752
Sat Apr 02, 2016 8:52 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

Because i want to run gentoo on it. That is a valid linux distro too. The point of my observations is, that it is not working. It 64 Pi3 tries it, but it is not working. That is why i am digging through the documentation and i want to post them here, because i think we could get it working together...
by Electron752
Sat Apr 02, 2016 8:18 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

With the gentoo community i got a native gcc on the pi3 running. Silly question, but why build a 64 bit userland when it already available pre-compiled from the stretch/sid Debian linux distribution. I was able to build a complete arm64 bit userland from a Debian PC by using a combination of deboot...
by Electron752
Thu Mar 31, 2016 7:26 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

BTW, I'm not trying to argue. Just understand... I've been getting the firmware from https://github.com/raspberrypi/firmware/tree/master/boot. I'm not sure which is the latest and greatest branch. Is it master or next? When I tried next a few days ago, nothing would boot not even stock Raspbian. Alt...
by Electron752
Thu Mar 31, 2016 6:53 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

Electron752, do you have the latest FW? If so, I suggest you mention your UART stability issue in https://github.com/raspberrypi/firmware/issues/553 "Raspberry Pi 3 model B Serial console does not use correct baudrate". Are you running an upstream or RPi Foundation version of the kernel? Either way...
by Electron752
Thu Mar 31, 2016 6:11 pm
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

Switching over to swarren's 64bit u-boot, I'm able to get u-boot to work through the serial cable in addition to the display. Here is my complete config.txt force_turbo=0 core_freq=250 enable_uart=1 arm_control=0x200 kernel_old=1 disable_commandline_tags=1 kernel=u-boot.bin Things will work without ...
by Electron752
Thu Mar 31, 2016 12:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry 3B and Serial Port
Replies: 11
Views: 9447

Re: Raspberry 3B and Serial Port

Short Story: You use exactly the same pins as you did on previous version of the RPI, just modify your applications and scripts to use /dev/ttyS0 instead of /dev/ttyAMA0. Every should just work at that point. :) Long Story: Some of the clocks in the RPI 3 are variable but not all independent. The ne...
by Electron752
Thu Mar 31, 2016 5:19 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART settings for miniUART on RPI 3 running Raspbian
Replies: 3
Views: 1136

Re: UART settings for miniUART on RPI 3 running Raspbian

I agree!!! One thing I don't understand is why the designers didn't use USB attached wifi and bluetooth components. All they would have had to do was use a usb hub chip on the board with more ports. The wifi and bluetooth could still be soldered onto the board even through it uses usb. Advantages of...
by Electron752
Thu Mar 31, 2016 12:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART settings for miniUART on RPI 3 running Raspbian
Replies: 3
Views: 1136

UART settings for miniUART on RPI 3 running Raspbian

I need to use the UART from the GPIO header on my RPI 3 running stock Raspbian. I'm using a FTDI USB to TTL serial cable to connect the GPIO pins to the USB port on my PC running Debian. I'm able to send characters, but everything is garbage. On the RPI 3 I type: echo hello >/dev/ttyS0 On the PC I r...
by Electron752
Wed Mar 30, 2016 12:37 am
Forum: Bare metal, Assembly language
Topic: Entering aarch64 execution state
Replies: 171
Views: 77709

Re: Entering aarch64 execution state

OK, I must be missing something very obvious. I still can't get it to work. This is my complete config.txt. dtoverlay=pi3-miniuart-bt force_turbo=1 enable_uart=1 kernel=u-boot.bin kernel_old=1 arm_control=0x200 disable_commandline_tags=1 Again, I'm not seeing anything at all on the serial port. Ques...

Go to advanced search