gertk
Posts: 52
Joined: Mon Aug 29, 2011 9:08 am

Re: Baking Pi

Tue Oct 23, 2012 8:13 pm

Donwloaded Debian Wheezy image and now after unplugging and replugging the HDMI I finally got a picture... Now going for the patches to get this running without unplugging...

gdonald
Posts: 5
Joined: Sun Dec 16, 2012 8:01 am

Re: Baking Pi

Mon Dec 17, 2012 8:15 am

DexOS wrote:Did you put this:

kernel_old=1

In your config.txt file ?.
Yeah, and now my RPi doesn't boot anymore. How to fix?

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: Baking Pi

Mon Dec 17, 2012 10:15 pm

gdonald wrote:
DexOS wrote:Did you put this:

kernel_old=1

In your config.txt file ?.
Yeah, and now my RPi doesn't boot anymore. How to fix?
Remove it then :shock:
Batteries not included, Some assembly required.

gdonald
Posts: 5
Joined: Sun Dec 16, 2012 8:01 am

Re: Baking Pi

Mon Dec 17, 2012 10:18 pm

It doesn't boot. Can't edit the file. Don't have a card reader. Screwed.

jeffhaddow
Posts: 118
Joined: Thu Jun 14, 2012 1:50 pm

Re: Baking Pi

Mon Dec 17, 2012 10:21 pm

DexOS wrote:
gdonald wrote:
DexOS wrote:Did you put this:

kernel_old=1

In your config.txt file ?.
Yeah, and now my RPi doesn't boot anymore. How to fix?
Remove it then :shock:
The config.text file can be edited in a microspft environment in case you're wondering how to change the SD card

Jeff Haddow

gdonald
Posts: 5
Joined: Sun Dec 16, 2012 8:01 am

Re: Baking Pi

Mon Dec 17, 2012 10:30 pm

jeffhaddow wrote: The config.text file can be edited in a microspft environment in case you're wondering how to change the SD card
How? I don't have a card reader. My RPi is the only thing I have that can mount my SD card. Are you saying I can get to my config.txt from Windows? Is so, how?

jeffhaddow
Posts: 118
Joined: Thu Jun 14, 2012 1:50 pm

Re: Baking Pi

Mon Dec 17, 2012 10:38 pm

@gdonald

I can only suggest you take the sd card to a library or an internet cafe and use the computers there.

Yes from a Microsoft PC you can edit the config.txt file in the text editor programme.

Jef Haddow

gdonald
Posts: 5
Joined: Sun Dec 16, 2012 8:01 am

Re: Baking Pi

Mon Dec 17, 2012 10:50 pm

jeffhaddow wrote:@gdonald
Yes from a Microsoft PC you can edit the config.txt file in the text editor programme.
Right, but the operating systems I have available also have lots of text editors, a text editor is the least of my problems. If I had a card reader I could edit the file from any of them. Thanks for the help.. I guess.

Guess I'll trot my happy self down to Radio Shack this evening and acquire a card reader. :roll:

blackberrypi
Posts: 1
Joined: Sat Dec 22, 2012 12:07 am

Re: Baking Pi- Installing Yagarto on mac.

Sat Dec 22, 2012 12:14 am

Hello martk20, I was having the same problem with getting the Yagarto toolchain to work for mac. What was the fix for it? Im still confused. When I type "arm-none-eabi-gcc" it still does not work for me.

cosmobot
Posts: 2
Joined: Sun Dec 23, 2012 1:38 pm

Re: Baking Pi

Sun Dec 23, 2012 1:54 pm

I assume this has grown into the place to post questions relating to Baking Pi; my problem is as simple as getting the OK-LED to turn on, as per the OK01- and OK02- lessons. The coding is pretty basic, complilation is successful, I dump the kernel.img to the otherwise empty SD-card, plug said card into my model B, connect to power and huzzah! the power-LED goes on and nothing else happens.

Have I missed some crucial bit of information? Looking at my Pi I notice that the LED in question reads "ACT" (and the next ones in row read POW, FDX, LNK and 100. Is the address to make the ACT-LED go on different?

Also, if it is possible to get the Pi-manual that includes all this information (what adresses stuff has and so on), I'd appreciate a pointer. I'm anxious to put what I learned this semester to some use!

Thanks in advance.

Hardware specifics:
- SD-card is a 32GB SDHC

User avatar
Chadderz
Posts: 64
Joined: Thu Aug 30, 2012 12:50 pm
Location: Cambridge, UK

Re: Baking Pi

Sun Dec 23, 2012 3:39 pm

The OK led has been relabled ACT on the new Pis being manufactured. It should affect the wiring though, it's purely a cosmetic change.

Have you tried compiling and running the example solutions? That's always a good check to make sure you haven't made a mistake.
Also, do you mean a litterally empty SD card? It needs to have the bootloader on it to, which can be retrieved here:
https://github.com/raspberrypi/firmware ... aster/boot
(bootcode.bin and start.elf).

The manual is here:
http://www.cl.cam.ac.uk/freshers/raspbe ... herals.pdf
However be aware the addresses are different as mentioned in the beginning of the document.

cosmobot
Posts: 2
Joined: Sun Dec 23, 2012 1:38 pm

Re: Baking Pi

Sun Dec 23, 2012 8:52 pm

Chadderz wrote:The OK led has been relabled ACT on the new Pis being manufactured. It should affect the wiring though, it's purely a cosmetic change.

Have you tried compiling and running the example solutions? That's always a good check to make sure you haven't made a mistake.
Also, do you mean a litterally empty SD card? It needs to have the bootloader on it to, which can be retrieved here:
https://github.com/raspberrypi/firmware ... aster/boot
(bootcode.bin and start.elf).

The manual is here:
http://www.cl.cam.ac.uk/freshers/raspbe ... herals.pdf
However be aware the addresses are different as mentioned in the beginning of the document.
Thanks so much! The SD-card was literally empty, once I uploaded those files on it it behaves as expected. Merry Christmas!

Raspberry_Pi_Man
Posts: 20
Joined: Fri Dec 28, 2012 4:43 pm

Re: Baking Pi

Fri Dec 28, 2012 5:00 pm

Hi There

I have 2 R-Pi's and use them constantly, and am trying to complete the Baking Pi Uni Of Cambridge course, but have some issues...

I always get this response when I do the make command:

Code: Select all

paul-johnstons-imac:~ lucasjamesjohnston$ cd Desktop
paul-johnstons-imac:Desktop lucasjamesjohnston$ cd BakingPi
paul-johnstons-imac:BakingPi lucasjamesjohnston$ ls
actual os	template
paul-johnstons-imac:BakingPi lucasjamesjohnston$ cd template
paul-johnstons-imac:template lucasjamesjohnston$ ls
LICENSE		build		kernel.ld	main.s		makefile
paul-johnstons-imac:template lucasjamesjohnston$ make
arm-none-eabi-ld --no-undefined  -Map kernel.map -o build/output.elf -T kernel.ld
make: arm-none-eabi-ld: Command not found
make: *** [build/output.elf] Error 127
paul-johnstons-imac:template lucasjamesjohnston$ 
I am running a this on an Mac, and have installed the yagarto toolchain. I think the problem is my install, so I tried reinstalling it again:

(drag yagarto to home folder)
(open yagarto install)
(get folder called yagarto-4.7.2)
I already installed bash profile

Code: Select all

paul-johnstons-imac:~ lucasjamesjohnston$ ls -al
total 88
drwxr-xr-x+  28 lucasjamesjohnston  staff    952 28 Dec 16:51 .
drwxr-xr-x   13 root                admin    442 24 Dec 13:42 ..
-rw-------    1 lucasjamesjohnston  staff      3  8 Sep 21:40 .CFUserTextEncoding
[email protected]   1 lucasjamesjohnston  staff  21508 28 Dec 16:51 .DS_Store
drwx------  205 lucasjamesjohnston  staff   6970 28 Dec 16:50 .Trash
-rw-------    1 lucasjamesjohnston  staff   2752 28 Dec 16:49 .bash_history
[email protected]   1 lucasjamesjohnston  staff     91 28 Dec 16:28 .bash_profile
drwx------    3 lucasjamesjohnston  staff    102 25 Nov 11:36 .cache
drwx------    3 lucasjamesjohnston  staff    102 25 Nov 11:56 .config
drwx------    3 lucasjamesjohnston  staff    102  9 Sep 17:38 .cups
drwxr-xr-x    5 lucasjamesjohnston  staff    170 25 Dec 19:02 .dvdcss
[email protected]   1 lucasjamesjohnston  staff     17 25 Nov 11:50 .dvmlexqn
drwxr-xr-x    3 lucasjamesjohnston  staff    102 25 Nov 11:36 .local
[email protected]   1 lucasjamesjohnston  staff     30 25 Nov 11:50 .qxkxtmdrc
-rw-r--r--    1 lucasjamesjohnston  staff      0 20 Nov 17:00 .registration.xml.bak
drwxr-xr-x    4 lucasjamesjohnston  staff    136  4 Oct 17:14 Applications
drwx------+   8 lucasjamesjohnston  staff    272 28 Dec 16:13 Desktop
drwx------+  31 lucasjamesjohnston  staff   1054 16 Dec 14:14 Documents
drwx------+ 117 lucasjamesjohnston  staff   3978 27 Dec 16:21 Downloads
[email protected]  53 lucasjamesjohnston  staff   1802 27 Dec 15:35 Library
drwx------+  13 lucasjamesjohnston  staff    442 25 Dec 19:04 Movies
drwx------+  15 lucasjamesjohnston  staff    510  1 Dec 12:02 Music
drwx------+   8 lucasjamesjohnston  staff    272  8 Dec 16:52 Pictures
drwxr-xr-x+   6 lucasjamesjohnston  staff    204  4 Oct 17:09 Public
drwxr-xr-x    5 lucasjamesjohnston  staff    170  7 Dec 08:46 VirtualBox VMs
lrwxr-xr-x    1 lucasjamesjohnston  staff     13 27 Dec 15:55 bash_profile -> .bash_profile
drwxr-xr-x   23 lucasjamesjohnston  staff    782 28 Dec 16:51 yagarto-4.7.2
[email protected]   3 lucasjamesjohnston  staff    102 29 Feb  2008 yagarto-4.7.2.app
paul-johnstons-imac:~ lucasjamesjohnston$ ln -s .bash_profile bash_profile
ln: bash_profile: File exists
paul-johnstons-imac:~ lucasjamesjohnston$ 
(put:
export PATH="$PATH:$HOME/yagarto-4.7.2/bin"
export PATH="$PATH:$HOME/yagarto-4.7.2/tools"
in bash.profile)

Code: Select all

paul-johnstons-imac:~ lucasjamesjohnston$ cd
paul-johnstons-imac:~ lucasjamesjohnston$ arm-none-eabi-gcc --version
-bash: arm-none-eabi-gcc: command not found
paul-johnstons-imac:~ lucasjamesjohnston$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin9.0
paul-johnstons-imac:~ lucasjamesjohnston$ 
Can anybody please help?

Thanks in advance

User avatar
Chadderz
Posts: 64
Joined: Thu Aug 30, 2012 12:50 pm
Location: Cambridge, UK

Re: Baking Pi

Fri Dec 28, 2012 7:35 pm

As the text briefly mentions, the file main.s should be in a folder called `source'. This can also be seen from the example solutions.

zaxxon-x
Posts: 9
Joined: Sun Dec 16, 2012 11:20 am

Re: Baking Pi

Sat Dec 29, 2012 10:58 am

@Raspberry_Pi_Man

copy the result of these two commands:

Code: Select all

echo $PATH

Code: Select all

ls -l $HOME/yagarto-4.7.2/bin

Raspberry_Pi_Man
Posts: 20
Joined: Fri Dec 28, 2012 4:43 pm

Re: Baking Pi

Sat Feb 23, 2013 3:57 pm

@Chadderz Thanks - I did that, but it still has the same error!
@zaxxon-x I will just try that now, thanks!

Raspberry_Pi_Man
Posts: 20
Joined: Fri Dec 28, 2012 4:43 pm

Re: Baking Pi

Sat Feb 23, 2013 4:02 pm

@zaxxon-x
I now get this error:

Code: Select all

aul-johnstons-imac:~ lucasjamesjohnston$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/lucasjamesjohnston/yagarto-4:/Users/lucasjamesjohnston/yagarto-4.7.2/tools
paul-johnstons-imac:~ lucasjamesjohnston$ ls -l $HOME/yagarto-4.7.2/bin
total 51512
-rwxr-xr-x  1 lucasjamesjohnston  staff   928584 22 Dec 13:30 arm-none-eabi-addr2line
-rwxr-xr-x  1 lucasjamesjohnston  staff   963280 22 Dec 13:30 arm-none-eabi-ar
-rwxr-xr-x  1 lucasjamesjohnston  staff  1649528 22 Dec 13:30 arm-none-eabi-as
-rwxr-xr-x  1 lucasjamesjohnston  staff   566240 22 Dec 13:30 arm-none-eabi-c++
-rwxr-xr-x  1 lucasjamesjohnston  staff   928480 22 Dec 13:30 arm-none-eabi-c++filt
-rwxr-xr-x  1 lucasjamesjohnston  staff   562144 22 Dec 13:30 arm-none-eabi-cpp
-rwxr-xr-x  1 lucasjamesjohnston  staff    40200 22 Dec 13:30 arm-none-eabi-elfedit
-rwxr-xr-x  1 lucasjamesjohnston  staff   566240 22 Dec 13:30 arm-none-eabi-g++
-rwxr-xr-x  1 lucasjamesjohnston  staff   562144 22 Dec 13:30 arm-none-eabi-gcc
-rwxr-xr-x  1 lucasjamesjohnston  staff   562144 22 Dec 13:30 arm-none-eabi-gcc-4.7.2
-rwxr-xr-x  1 lucasjamesjohnston  staff    27720 22 Dec 13:30 arm-none-eabi-gcc-ar
-rwxr-xr-x  1 lucasjamesjohnston  staff    27720 22 Dec 13:30 arm-none-eabi-gcc-nm
-rwxr-xr-x  1 lucasjamesjohnston  staff    27720 22 Dec 13:30 arm-none-eabi-gcc-ranlib
-rwxr-xr-x  1 lucasjamesjohnston  staff   224632 22 Dec 13:30 arm-none-eabi-gcov
-rwxr-xr-x  1 lucasjamesjohnston  staff  5842240 22 Dec 13:30 arm-none-eabi-gdb
-rwxr-xr-x  1 lucasjamesjohnston  staff  1012352 22 Dec 13:30 arm-none-eabi-gprof
-rwxr-xr-x  1 lucasjamesjohnston  staff  1312248 22 Dec 13:30 arm-none-eabi-ld
-rwxr-xr-x  1 lucasjamesjohnston  staff  1312248 22 Dec 13:30 arm-none-eabi-ld.bfd
-rwxr-xr-x  1 lucasjamesjohnston  staff   940864 22 Dec 13:30 arm-none-eabi-nm
-rwxr-xr-x  1 lucasjamesjohnston  staff  1164312 22 Dec 13:30 arm-none-eabi-objcopy
-rwxr-xr-x  1 lucasjamesjohnston  staff  1412184 22 Dec 13:30 arm-none-eabi-objdump
-rwxr-xr-x  1 lucasjamesjohnston  staff   963304 22 Dec 13:30 arm-none-eabi-ranlib
-rwxr-xr-x  1 lucasjamesjohnston  staff   464040 22 Dec 13:30 arm-none-eabi-readelf
-rwxr-xr-x  1 lucasjamesjohnston  staff  1230344 22 Dec 13:30 arm-none-eabi-run
-rwxr-xr-x  1 lucasjamesjohnston  staff   932888 22 Dec 13:30 arm-none-eabi-size
-rwxr-xr-x  1 lucasjamesjohnston  staff   928640 22 Dec 13:30 arm-none-eabi-strings
-rwxr-xr-x  1 lucasjamesjohnston  staff  1164312 22 Dec 13:30 arm-none-eabi-strip
paul-johnstons-imac:~ lucasjamesjohnston$ cd Desktop\BakingPi\template
-bash: cd: DesktopBakingPitemplate: No such file or directory
paul-johnstons-imac:~ lucasjamesjohnston$ cd Desktop/BakingPi/template
paul-johnstons-imac:template lucasjamesjohnston$ ls
LICENSE		build		kernel.ld	makefile	source
paul-johnstons-imac:template lucasjamesjohnston$ make
arm-none-eabi-as -I source/ source/main.s -o build/main.o
make: arm-none-eabi-as: Command not found
make: *** [build/main.o] Error 127
Help!

tufty
Posts: 1456
Joined: Sun Sep 11, 2011 2:32 pm

Re: Baking Pi

Sat Feb 23, 2013 8:16 pm

You need ${HOME}/yagarto-4.7.2/bin in your path.

try the following:

Code: Select all

export PATH=${PATH}:~/yagarto-4.7.2/bin
make

Raspberry_Pi_Man
Posts: 20
Joined: Fri Dec 28, 2012 4:43 pm

Re: Baking Pi

Mon Feb 25, 2013 4:25 pm

@tufty Thanks a ton! It finally works!

Code: Select all

rm-none-eabi-as -I source/ source/main.s -o build/main.o
arm-none-eabi-ld --no-undefined build/main.o -Map kernel.map -o build/output.elf -T kernel.ld
arm-none-eabi-objcopy build/output.elf -O binary kernel.img 
arm-none-eabi-objdump -d build/output.elf > kernel.list

Return to “Bare metal, Assembly language”