Go to advanced search

by ShadyProgrammer
Wed Mar 15, 2017 5:06 pm
Forum: Compute Module
Topic: How to use UART 1 on Raspberry Pi CM3 ?
Replies: 10
Views: 10678

Re: How to use UART 1 on Raspberry Pi CM3 ?

@jamesh and @nixy82 Adding core_freq=250 to /boot/config.txt file solved the problem. I don't know why and would like to find out if possible why it solved the problem. Also If possible I'd like to know how come the modification to uart_1 device tree file above worked okay without ruining functional...
by ShadyProgrammer
Wed Mar 15, 2017 2:33 pm
Forum: Compute Module
Topic: How to use UART 1 on Raspberry Pi CM3 ?
Replies: 10
Views: 10678

Re: How to use UART 1 on Raspberry Pi 3 ?

I've currently changed "brcm,pins" of "fragment1" on this file: https://github.com/raspberrypi/linux/blob/rpi-4.1.y/arch/arm/boot/dts/overlays/uart1-overlay.dts to 32 and 33 instead of 14 and 15 in the hopes to get UART 1 working this way. I compiled it and moved to /boot/overlays/. Then I added it ...
by ShadyProgrammer
Wed Mar 15, 2017 2:29 pm
Forum: Compute Module
Topic: How to use UART 1 on Raspberry Pi CM3 ?
Replies: 10
Views: 10678

Re: How to use UART 1 on Raspberry Pi 3 ?

...I'm not trying to disable the default serial port, what I want to do is to enable the extra serial port You can't use both at the same time as they are both mapped to the same physical pins 8 & 10. Apologies but I just noticed that I didn't add "Compute module" to the title. I'm working on Compu...
by ShadyProgrammer
Wed Mar 15, 2017 12:25 pm
Forum: Compute Module
Topic: How to use UART 1 on Raspberry Pi CM3 ?
Replies: 10
Views: 10678

Re: How to use UART 1 on Raspberry Pi 3 ?

I'm not trying to disable the default serial port, what I want to do is to enable the extra serial port
by ShadyProgrammer
Wed Mar 15, 2017 11:07 am
Forum: Compute Module
Topic: How to use UART 1 on Raspberry Pi CM3 ?
Replies: 10
Views: 10678

How to use UART 1 on Raspberry Pi CM3 ?

I'm using gpio pins 32(TX) and 33(RX) and want to establish serial communications with a peripheral board. From what I've read so far the above pins should have a secondary function for serial communications. I've added dtoverlay=uart1 to the end of /boot/config.txt file in the hopes that everything...
by ShadyProgrammer
Tue Mar 14, 2017 10:26 am
Forum: Bare metal, Assembly language
Topic: How to use SD/SDIO interface ?
Replies: 6
Views: 4303

Re: How to use SD/SDIO interface ?

Thanks for helping out much appreciated.

In the end I found that all I had to do was to add:

Code: Select all

dtoverlay=sdio,poll_once=no
At the end of /boot/config.txt file and all is working well now and I can see the card in /dev as mmcblk1 ;)
by ShadyProgrammer
Mon Mar 13, 2017 3:59 pm
Forum: Bare metal, Assembly language
Topic: How to use SD/SDIO interface ?
Replies: 6
Views: 4303

Re: How to use SD/SDIO interface ?

You talk about mounting it on /dev/ so I assume you are trying to get it up under linux not baremetal. It's confusing because the article you linked is baremetal there is no mounting any drive in that its a raw access and interpret and FAT only. Mount implies some sort of O/S where you associate a ...
by ShadyProgrammer
Fri Mar 10, 2017 4:54 pm
Forum: Bare metal, Assembly language
Topic: How to use SD/SDIO interface ?
Replies: 6
Views: 4303

Re: How to use SD/SDIO interface ?

It's a custom made board, all of the pins on the module (except VCC and GND) are connected to GPIOs
by ShadyProgrammer
Fri Mar 10, 2017 4:05 pm
Forum: Bare metal, Assembly language
Topic: How to use SD/SDIO interface ?
Replies: 6
Views: 4303

How to use SD/SDIO interface ?

I have an external sd card module on my raspberry pi 3 board and would like to be able to somehow see the card in /dev/ but no idea how to do it. I have found this post here http://blogsmayan.blogspot.co.uk/p/inte ... -card.html but it's outdated.

Any help would be much appreciated :)
by ShadyProgrammer
Thu Mar 02, 2017 11:50 am
Forum: Advanced users
Topic: Where to get kernel headers for kernel 4.9.y
Replies: 4
Views: 2346

Where to get kernel headers for kernel 4.9.y

When using kernel 4.4.y I can use apt-get to install raspberrypi-kernel-headers package and it installs to /lib/modules/$(uname -r)/build. After installation, that folder has lots of subfolders, config files and makefile as well. All good. Now when I use kernel 4.9.y I can't get the headers using ap...
by ShadyProgrammer
Tue Feb 21, 2017 12:48 pm
Forum: Bare metal, Assembly language
Topic: Building raspberry pi kernel properly
Replies: 13
Views: 2015

Re: Building raspberry pi kernel properly

ShiftPlusOne wrote:Oh, it's probably this...

Code: Select all

ARCH=arm make help
Ahh yes that helps, thank you :)

So just to confirm, building: zImage, modules and dtbs is all I need to create the entire kernel correctly ?
by ShadyProgrammer
Tue Feb 21, 2017 12:28 pm
Forum: Bare metal, Assembly language
Topic: Building raspberry pi kernel properly
Replies: 13
Views: 2015

Re: Building raspberry pi kernel properly

ShiftPlusOne wrote:I am guessing you're not on the right branch. Use either rpi-4.4.y or rpi-4.9.y
I should have clarified that by main branch I meant rpi-4.4.y
by ShadyProgrammer
Tue Feb 21, 2017 12:20 pm
Forum: Bare metal, Assembly language
Topic: Building raspberry pi kernel properly
Replies: 13
Views: 2015

Re: Building raspberry pi kernel properly

why are you seeing them and I'm not ? :cry:

I checked out the kernel from main branch and next
by ShadyProgrammer
Tue Feb 21, 2017 12:11 pm
Forum: Bare metal, Assembly language
Topic: Building raspberry pi kernel properly
Replies: 13
Views: 2015

Re: Building raspberry pi kernel properly

I see them: Architecture specific targets (arm): * zImage - Compressed kernel image (arch/arm/boot/zImage) Image - Uncompressed kernel image (arch/arm/boot/Image) * xipImage - XIP kernel image, if configured (arch/arm/boot/xipImage) uImage - U-Boot wrapped zImage bootpImage - Combined zImage and in...
by ShadyProgrammer
Tue Feb 21, 2017 11:46 am
Forum: Bare metal, Assembly language
Topic: Building raspberry pi kernel properly
Replies: 13
Views: 2015

Re: Building raspberry pi kernel properly

ShiftPlusOne wrote:try

Code: Select all

make help
Ohh dear how have I not thought about it :oops:

However now that I look through the help menu I notice few targets missing:
- there is no zImage target
- there is no dtbs target

as well as that there is no:

- bcm*defconfig's

but I can compile the kernel without errors, why ?
by ShadyProgrammer
Tue Feb 21, 2017 11:22 am
Forum: Bare metal, Assembly language
Topic: Building raspberry pi kernel properly
Replies: 13
Views: 2015

Building raspberry pi kernel properly

I have downloaded raspberry pi kernel from github: https://github.com/raspberrypi/linux and added bits of custom code here and there. Then I went on to compile the kernel as outlined in the help section https://www.raspberrypi.org/documentation/linux/kernel/building.md . My question is: why does the...
by ShadyProgrammer
Mon Feb 13, 2017 9:47 am
Forum: Raspbian
Topic: How is Raspbian OS built ?
Replies: 6
Views: 1299

Re: How is Raspbian OS built ?

Thank you all very much gents you've been a great help, I'll get onto building it soon :)
by ShadyProgrammer
Fri Feb 10, 2017 12:51 pm
Forum: Raspbian
Topic: How is Raspbian OS built ?
Replies: 6
Views: 1299

Re: How is Raspbian OS built ?

I'm experimenting with compiling and buiilding embedded OS's from source. I found that a lot of them can be built using automation tools like yocto-project or buildroot . I can't however find any info on how to build raspbian. The official page https://www.raspbian.org/RaspbianBuilders doesn't say ...
by ShadyProgrammer
Fri Feb 10, 2017 12:50 pm
Forum: Raspbian
Topic: How is Raspbian OS built ?
Replies: 6
Views: 1299

Re: How is Raspbian OS built ?

r3d4 wrote:Did you find PiLFS allready ?
I have not, but, it seems very interesting now that I look at it! thanks a lot for sharing!
by ShadyProgrammer
Fri Feb 10, 2017 10:52 am
Forum: Raspbian
Topic: How is Raspbian OS built ?
Replies: 6
Views: 1299

How is Raspbian OS built ?

I'm experimenting with compiling and buiilding embedded OS's from source. I found that a lot of them can be built using automation tools like yocto-project or buildroot . I can't however find any info on how to build raspbian. The official page https://www.raspbian.org/RaspbianBuilders doesn't say m...
by ShadyProgrammer
Fri Jan 13, 2017 11:52 am
Forum: General discussion
Topic: Power supply for Raspberry Pi 3 cluster
Replies: 15
Views: 9737

Re: Power supply for Raspberry Pi 3 cluster

So I've read the entire article linked above and I'm just wondering if there's anyone here in the same situation that I am that managed to successfully power up raspberry pi 3 cluster without the use of the official raspberry pi power supplies ?
by ShadyProgrammer
Mon Jan 09, 2017 12:58 pm
Forum: General discussion
Topic: Power supply for Raspberry Pi 3 cluster
Replies: 15
Views: 9737

Re: Power supply for Raspberry Pi 3 cluster

Taking the suggestions above I tried the all black cable that has the same Voltage and temperature specs as the white original Raspberry Pi lead at the top. No luck with that one either, the problem remains. The temperature and max voltage spec of the cable is not important. What is important is th...
by ShadyProgrammer
Fri Dec 16, 2016 11:10 pm
Forum: General discussion
Topic: Power supply for Raspberry Pi 3 cluster
Replies: 15
Views: 9737

Re: Power supply for Raspberry Pi 3 cluster

http://oi64.tinypic.com/15dxahi.jpg So far I've been using that black/yellow cable that feels like a rope when you touch it. I didn't have any luck with it. I had that thunderbolt logo or that colored square, either one showing up in the top right corner. Taking the suggestions above I tried the al...
by ShadyProgrammer
Fri Dec 16, 2016 12:19 pm
Forum: General discussion
Topic: Power supply for Raspberry Pi 3 cluster
Replies: 15
Views: 9737

Re: Power supply for Raspberry Pi 3 cluster

RaTTuS wrote:use much better micro USB leads
What ?!
USB leads are not the problem, finding a power hub that will output Voltage and Current per port in the numbers specified above is.

Go to advanced search