Go to advanced search

by cleverca22
Sat Oct 24, 2015 11:53 am
Forum: Bare metal
Topic: Only Core 1 is running. Not able to get Core 0,2 and 3 run
Replies: 3
Views: 851

Re: Only Core 1 is running. Not able to get Core 0,2 and 3 r

i believe each bank of 32 GPIO also has a dedicated set and clear register, where writting a 1 to any bit will set or clear that pin, allowing you to turn an LED on or off with a single atomic write, rather then read+or+write and risk race conditions (2 cores read, both or'd, one write wins)
by cleverca22
Fri Oct 23, 2015 8:14 am
Forum: Troubleshooting
Topic: Headless heating control system hangs
Replies: 5
Views: 709

Re: Headless heating control system hangs

another option is to use "setterm -blank 0 -powerdown 0" in rc.local to disable the power saving features (they don't save power anyways)

then the screen will work when you plug in a tv, even if it has locked up fully
by cleverca22
Sat May 09, 2015 10:20 pm
Forum: General discussion
Topic: There are some errors to build a kernel module.
Replies: 16
Views: 1011

Re: There are some errors to build a kernel module.

the Module.symvers must be from the same version as the kernel.img you are running, and the same for the linux source itself
you should find the github revisions for that somewhere in /boot/
by cleverca22
Wed May 06, 2015 7:26 pm
Forum: Off topic discussion
Topic: Buck regulators and funny little pots
Replies: 8
Views: 719

Re: Buck regulators and funny little pots

doesnt the uno still have a usb input it can run from?
by cleverca22
Wed May 06, 2015 7:20 pm
Forum: Troubleshooting
Topic: Boot Files?
Replies: 3
Views: 255

Re: Boot Files?

the kernel.img version must match the .ko files for all of the modules, so if you get the wrong one, you loose all of the 'optional' drivers i think your simplest option is to get the 'latest' kernel.img you had deleted (must be the one from the day you updated), and the older start.elf/bootcode.bin...
by cleverca22
Wed May 06, 2015 1:41 am
Forum: Off topic discussion
Topic: Roadblocks to the future
Replies: 12
Views: 842

Re: Roadblocks to the future

what about the older USB plugs that you often find on scanners and printers?, that should have more current capacity, still a common cable people are likely to have, and its still locked to 5v so no pi-killer It's physically huge. Either it takes too much space on the PCB, or the PCB must be embigg...
by cleverca22
Wed May 06, 2015 1:13 am
Forum: Off topic discussion
Topic: Roadblocks to the future
Replies: 12
Views: 842

Re: Roadblocks to the future

what about the older USB plugs that you often find on scanners and printers?, that should have more current capacity, still a common cable people are likely to have, and its still locked to 5v so no pi-killer
by cleverca22
Thu Apr 16, 2015 6:30 am
Forum: Advanced users
Topic: Connecting Unity to Raspberry Pi
Replies: 10
Views: 5054

Re: Connecting Unity to Raspberry Pi

simplest solution i can see is to just open a tcp or udp socket between unity and the pi, then fire commands over that instead of a serial port
by cleverca22
Mon Mar 09, 2015 12:35 pm
Forum: Bare metal
Topic: Running bare metal code on only one core?
Replies: 6
Views: 1485

Re: Running bare metal code on only one core?

i think it would be much simpler to just use a custom kernel driver to run a chunk of baremetal code in linux's kernel space and maybe turn off preemption on that core so whatever program ran your custom ioctl on the custom device, will basically hijack an entire core until your job is done running ...
by cleverca22
Wed Feb 25, 2015 2:54 pm
Forum: Advanced users
Topic: RPI2 Issue with GPU threads
Replies: 6
Views: 1449

Re: RPI2 Issue with GPU threads

/dev/fb0 is also a dispmanx layer, the GPU hides all of the dispmanx api from you when using it
by cleverca22
Tue Feb 24, 2015 1:37 pm
Forum: General discussion
Topic: Ethernet connector concern
Replies: 12
Views: 1143

Re: Ethernet connector concern

thats the usb hub and ethernet controller, seperate from the magjack
by cleverca22
Tue Feb 10, 2015 10:50 pm
Forum: Advanced users
Topic: Pi2 qemu choot?
Replies: 5
Views: 5018

Re: Pi2 qemu choot?

rasbian on the pi2 is still compiled in armv6 mode, to keep backwards compat with the pi1, so the old mode should keep working

the kernel is the only part that has been fixed, and qemu-user skips the kernel
by cleverca22
Tue Feb 10, 2015 6:59 am
Forum: Advanced users
Topic: Pi2 qemu choot?
Replies: 5
Views: 5018

Re: Pi2 qemu choot?

and thats not how you chroot, thats a full emulation of the entire system

if you want a true chroot, you need something like https://github.com/cleverca22/crosspiroot (note, scripts may need updating)
by cleverca22
Sun Feb 08, 2015 3:41 am
Forum: Cases
Topic: Power button that does a clean shutdown?
Replies: 6
Views: 3720

Re: Power button that does a clean shutdown?

http://spritesmods.com/?art=rpi_arcade&page=5

complete battery based solution here, may need to modify it some to get it to fit your case, it also includes an app that monitors the gpio pin to run shutdown, and cut its own power
by cleverca22
Thu Feb 05, 2015 11:23 pm
Forum: Bare metal
Topic: BCM 2836 and the RPi 2 ?
Replies: 95
Views: 23504

Re: BCM 2836 and the RPi 2 ?

urm, as my interests mainly lie in 'bare-metal' programming (and my development work is done in a debian VM with a cross compiler and a serial link upload gizmo) this 'device tree' stuff isn't going to work for me so like the rest of us 'bare-metal' nerds I am going to have to use a #define for the...
by cleverca22
Thu Feb 05, 2015 7:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Connect Capactive Touch Screen to Raspberry Pi B Type (I2C)
Replies: 25
Views: 4970

Re: Connect Capactive Touch Screen to Raspberry Pi B Type (I

just stumbled upon the code i was using #include <linux/input.h> #include <linux/i2c/mpr121_touchkey.h> #include <linux/i2c.h> #include <mach/gpio.h> unsigned short keymap[] = { KEY_ENTER }; struct mpr121_platform_data touch_data = { .keymap = keymap, .keymap_size = ARRAY_SIZE(keymap) }; static stru...
by cleverca22
Wed Feb 04, 2015 6:38 pm
Forum: Off topic discussion
Topic: DRAM + NAND Chip
Replies: 4
Views: 674

Re: DRAM + NAND Chip

the compute module solves that by letting you turn the whole thing into a usb drive, so you can re-flash the onboard chip over usb

but getting that on a model a/b would require some more complex changes to the usb area
by cleverca22
Wed Feb 04, 2015 6:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Connect Capactive Touch Screen to Raspberry Pi B Type (I2C)
Replies: 25
Views: 4970

Re: Connect Capactive Touch Screen to Raspberry Pi B Type (I

Hi, after getting the connector for the touchscreen, unfortunately it does not work. The module edt_ft5x06 is loaded but does not seem to be used (with lsmod). And when I try i2cdetect -y 1, I see there is something on address 38, but the company who sold the touchscreen says that it has to be 70. ...
by cleverca22
Wed Feb 04, 2015 6:10 pm
Forum: Bare metal
Topic: Task switching
Replies: 2
Views: 763

Re: Task switching

if i remember the stuff i found when exploring the linux kernel correctly the task switching is implemented in a very simple way, all it does is change the stack pointer, so return goes to the 'wrong' place (into another thread that had previously given up the cpu) just create a schedule() function ...
by cleverca22
Tue Feb 03, 2015 11:16 pm
Forum: Bare metal
Topic: BCM2835 Serial Number
Replies: 5
Views: 1251

Re: BCM2835 Serial Number

though thats still not really reading it directly from a register, its just asking the GPU blob to fetch it for you
by cleverca22
Mon Jan 26, 2015 9:50 pm
Forum: Add-ons
Topic: Battery connected to GPIO
Replies: 2
Views: 415

Re: Battery connected to GPIO

i know the usb devices will refuse to work on 3.7 volts i'm not sure how well the cpu would run on 3.7 but there is another route that i have used on my pi, https://www.sparkfun.com/products/11231 this will boost the 3.7 up to 5v, so you can just power it from 5v normally and everything will work fine
by cleverca22
Fri Jan 23, 2015 9:31 pm
Forum: General discussion
Topic: Cross Platform GUI
Replies: 36
Views: 4606

Re: Cross Platform GUI

i have used QT in a recent project, and it can give the identical gui on the pi (didnt take 30+ hours, just apt-get install) normal linux, mac, windows, and android android was the most complex, since i had to build qt for android using the NDK when comparing qt to java, qt is a case of 'write once,...
by cleverca22
Fri Jan 23, 2015 9:18 pm
Forum: General discussion
Topic: Cross Platform GUI
Replies: 36
Views: 4606

Re: Cross Platform GUI

dont know about chromeos, but android has 2 options for doing those notifications the proper way is for the app to be totally dead, and then use gms (google messaging service) to send a msg down to the app/device the os will start the app up in the background and inform it, then the app can do anyth...
by cleverca22
Fri Jan 23, 2015 8:56 pm
Forum: General discussion
Topic: Cross Platform GUI
Replies: 36
Views: 4606

Re: Cross Platform GUI

my case needed to still run when the app was closed, to handle things like notifications, thats one thing a browser still cant do on android
by cleverca22
Fri Jan 23, 2015 8:55 pm
Forum: Other projects
Topic: HDMI to laser
Replies: 49
Views: 3053

Re: HDMI to laser

if you still need some specs on 10mbit etherner,have a look at http://www.fpga4fun.com/10BASE-T.html basicaly, the level on the line is changing at 20mhz, there is a clock mixed in with the data, how you transmit that would depend on a few things, and how you plan to recover the data at the other en...

Go to advanced search