Go to advanced search

by mister_wavey
Fri Sep 14, 2012 5:38 pm
Forum: Other projects
Topic: Using more than one Pi on one Screen
Replies: 10
Views: 2516

Re: Using more than one Pi on one Screen

If the pi was better at vnc, you could do vnc mirroring: connect a PC to the projector, and on the PC open 4 vnc sessions, one to each of the remote pis. You could maybe arrange the vnc windows to each fill a quarter of your PC's screen and enlarge the one you want to focus on. My experience with vn...
by mister_wavey
Fri Sep 14, 2012 3:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using the GPIO Serial port ttyAMA0
Replies: 10
Views: 61853

Re: Using the GPIO Serial port ttyAMA0

see the 2nd section of this blog: http://www.trainelectronics.com/RaspberryPi/ - he is sending data down his rs232 cable (which I also built successfully) in the same way I think you want to. I didn't see anything about baud rates though.. (I hope this isnt a duplication of the links you gave earlie...
by mister_wavey
Thu Sep 13, 2012 3:46 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

does the windows yagarto installer provide gnu make? type make -v to see what you're running - also check it is first in your path in case there's another make installed on your machine which expects a different setup. Show us a directory listing too, in case there's something you're missing.
by mister_wavey
Thu Sep 13, 2012 12:30 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

start with echo $PATH again and paste the output of make -d
by mister_wavey
Wed Sep 12, 2012 7:39 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

oh, just read 'this is before I inserted the new kernel'. What size does it show now?
by mister_wavey
Wed Sep 12, 2012 7:36 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

only kernel.img is loaded by default unless you edit the config.txt to name another kernel file. But your problem is the size of the kernel.img - look at the size of the kernel in my ok02 build directory: [email protected]:~/downloads/ok02$ ls -l total 32 drwxr-xr-x 2 stuart stuart 4096 Sep 12 16:30 bu...
by mister_wavey
Wed Sep 12, 2012 3:35 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

So your toolchain works now? Great. I just recompiled the model answer for lesson 2 and booted the pi with it. The screen does show the normal coloured pattern, but the OK LED flashes about twice a second in a loop forever. If you're not seeing this, it could be that you aren't copying the kernel.im...
by mister_wavey
Wed Sep 12, 2012 2:38 pm
Forum: Bare metal, Assembly language
Topic: calling Baking Pi functions from asm program
Replies: 4
Views: 1637

Re: calling Baking Pi functions from asm program

aha. Thanks for the info!
by mister_wavey
Wed Sep 12, 2012 2:03 pm
Forum: Bare metal, Assembly language
Topic: calling Baking Pi functions from asm program
Replies: 4
Views: 1637

calling Baking Pi functions from asm program

Hi, I've been having fun playing with GPIO via python and wiringPi, and I thought I'd try and do the same from assembler, but I can't seem to execute any of the Baking Pi GPIO functions which work just fine when running as an OS. I have my own main.s, and the standard gpio.s from the tutorials. I ca...
by mister_wavey
Tue Sep 11, 2012 3:09 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi screen01
Replies: 49
Views: 11007

Re: Baking Pi screen01

for those trying to get the model answer to work, I had to replace .align 12 with .align 4 in frameBuffer.s

put sunglasses on first. You have been warned.
by mister_wavey
Mon Sep 10, 2012 11:06 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

yet with that PATH and that directory layout, you can't type arm-none-eabi-as from your home directory? weirdness. I'm bailing for the night. Happy to help more tomorrow. If you solve it, do please summarise :)
by mister_wavey
Mon Sep 10, 2012 10:36 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

looks fine to me. Most odd. what happens if you type the name of the file directly? ie yagarto/yagarto-4.7.1/bin/arm-none-eabi-as from your home directory? also, type file yagarto/yagarto-4.7.1/bin/arm-none-eabi-as from your home directory. That should tell us what the OS thinks the file type is. ca...
by mister_wavey
Mon Sep 10, 2012 10:10 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

your conclusions appear to be correct. What is inside your yagarto installation? Does the PATH match the directory structure in there?

ls -l ~/yagarto
by mister_wavey
Mon Sep 10, 2012 9:24 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

what does

Code: Select all

which make
show? does

Code: Select all

make clean && make
fix anything?

Plus, are you using the correct makefile template for the lesson? The initial lessons don't use the csud one, but I can see you're not on an early lesson from the source files involved...
by mister_wavey
Mon Sep 10, 2012 9:11 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

ok, installation looks good. path looks good. try typing

Code: Select all

arm-none-eabi-as 
or run the makefile again.
by mister_wavey
Mon Sep 10, 2012 9:04 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

you definitely installed them in your home directory? prove it with

Code: Select all

ls -ld ~/yagarto
and if you get no such file or directory, you installed them somewhere else, and your PATH needs to match that.
by mister_wavey
Mon Sep 10, 2012 8:28 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

That still looks wrong.. The first yagarto entry is cut off...
by mister_wavey
Mon Sep 10, 2012 8:16 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

Your yagarto path entries are missing /User/username/ at the start.
by mister_wavey
Mon Sep 10, 2012 8:07 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

Type

Code: Select all

echo $PATH
and share the results here
by mister_wavey
Sun Sep 09, 2012 6:05 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

aha crystal clear explanation, thx again.
by mister_wavey
Sun Sep 09, 2012 5:38 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

yay! thanks SO much!

can you explain a little more about what changed and why the code was affected?
by mister_wavey
Sun Sep 09, 2012 2:12 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

Can someone please confirm their Lesson 5 or the model answer for Lesson 5 works on their pi? (as in the previous post) I also tried building on the pi itself, and got the same behaviour (solid LED - the makefile on the pi works perfectly when you remove the yagarto prefix). To me that probably rul...
by mister_wavey
Sun Sep 09, 2012 12:57 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

Hi. I could compile Lesson 1: OK01 in ubuntu 12.04. Now I am trying to compile the same lesson directly in the raspi. However, when I try I get arm-none-eabi-as -I source/ source/main.s -o build/main.o /home/pi/arm-2008q3/bin/arm-none-eabi-as: 1: /home/pi/arm-2008q3/bin/arm-none-eabi-as: Syntax err...
by mister_wavey
Sun Sep 09, 2012 12:15 pm
Forum: Bare metal, Assembly language
Topic: Baking Pi
Replies: 168
Views: 30119

Re: Baking Pi

Did you put this: kernel_old=1 In your config.txt file ?. no, config.txt doesn't have that line. I haven't had cause to touch my config.txt. I can replace the kernel.img with stock and it boots fine. I can run Lessons 1 to 4 fine. But if I make clean and make on the model answer for Lesson 5 I stil...

Go to advanced search