Total newbie here and am having trouble with tutorial one
I am using a linux (mint) X64 machine.
I have made a new file called "pimach".
In this file are two files "arm-2008q3" and "template".
Within "template", I have created a new file "main.s" with the lesson one code and saved it.
I then open terminal, cd to "template" and type "make".
Not a lot happens and I don't get any .img file generated.
It generates
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
I suspect that I have got a/the file/s in the wrong places but as yet can't see my error.
Any suggestions.
baking pi tutorials
4 posts
- Posts: 10
- Joined: Fri Nov 02, 2012 4:27 pm
Solved.
A nights sleep did it.
I had been running the GNU toolchain in my home directory - a cd to /home/alan/Desktop/template (I had got rid of /pimach by then for simplicity) and then "make" worked.
Now to try it on the pi.
I am trying with a new sd card with just loader.bin, bootcode.bin, start.elf, config.txt, and my new kernel.img.
I may have to adjust config.txt as others have suggested but we shall see.
A nights sleep did it.
I had been running the GNU toolchain in my home directory - a cd to /home/alan/Desktop/template (I had got rid of /pimach by then for simplicity) and then "make" worked.
Now to try it on the pi.
I am trying with a new sd card with just loader.bin, bootcode.bin, start.elf, config.txt, and my new kernel.img.
I may have to adjust config.txt as others have suggested but we shall see.
- Posts: 10
- Joined: Fri Nov 02, 2012 4:27 pm
Just to confirm - it all works as it should but I did have to add the kernel_old=1 line to the config.txt file to get it to work.
I'll shut up now.
I'll shut up now.
- Posts: 10
- Joined: Fri Nov 02, 2012 4:27 pm
Instead of using kernel_old, I edited the kernel.ld file to load the code to 0x8000. I also had to edit frameBuffer.s to get Screen01 working.
So far, I'm up to Screen03.
If anyone is interested in a working example, my current version is on github at:
https://github.com/qrpc/Raspberry_Pi_OS
So far, I'm up to Screen03.
If anyone is interested in a working example, my current version is on github at:
https://github.com/qrpc/Raspberry_Pi_OS
- Posts: 1
- Joined: Thu Nov 01, 2012 1:27 pm
- Location: Pennsylvania, USA