-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How could I boot my pi? #43
Comments
You need to copy |
is it means that I should prepare a sd card with a os, not an empty sd card |
Installing Raspbian as stated in the Prerequisites is the prefered way as you can test your USB to TTL connection as well. Formatting with the right layout should work too if you don't want to install Raspbian. It usually looks like this:
|
I have a problem with lesson 1 too. I'm testing on a Raspberry 3 model B with the adafruit serial cable as advised in the Prerequisites. I confirmed the setup is working with a Raspbian install. I built (with Docker on a mac) and copied the kernel7.img and src/config.txt files at the root of the boot partition (after emptying it) and then booted the Raspberry with it. I can not see the "Hello world!" message but it does echo the characters I'm sending. I tried changing what is echoed and even removing the echo to make sure the code I see is running with no success. What's funny is that the echo is working even if I boot the raspberry with no SD card at all, so my guess is that echoing is something done by default within the firmware, which is confusing as it gives the impression that the compiled kernel is partially working. I don't know how to debug the boot process of a Raspberry Pi. It would be interesting to give some clues about how to debug problems during boot in case the compiled kernel does not work. BTW, I'd like to thank @s-matyukevich for this initiative, it is truly awesome! |
Sure thing @rs, you are welcome. |
Thank you for you reply. I emptied the partition because I like to understand all variables. Seems like those files are playing an important role. Would be interesting to mention them in the lesson and give a brief description of their respective role. I don’t know if future lessons are explaining how to generate these, if not, would that make sense? |
Sure, it makes sense. I will add this information to the tutorial. |
I agree. It would make sense to have two installation processes. One using a pre-existing |
Yep. One can download required firmware file from official repo of raspberryRaspberry pi. Use bleeding edge bootcode.bin start.elf and fixup.dat etc. |
Thanks for your enthusiastic reply! |
I also added the explanation how to run the RPi OS using an empty CD card 6d548b7 |
In the lesson01 src directory the build.sh is not running. i got error while running this. is something like this, |
@chethanomkar You need to install Docker. @s-matyukevich:
(Original kudos to @bztsrc) |
Thanks @andre-richter That's really cool, I like |
@rs, did you ever resolve the issue about not seeing "Hello world"? I am also having the same issue where I don't see "Hello world", but I see my key input echoed back. I was able to interact with the raspberry pi using the USB-to-TTL serial cable prior to replacing the kernel7.img. Also, I just copied over the new kernel8.img and the config.txt, removed the kernel7.img, didn't change anything else. |
@carise check this #2 (comment) |
@s-matyukevich Thanks! That worked for me. For some reason, I thought I had to do the quick-plug+run screen only if I was trying to power the rpi with the serial cable. Oops. |
I only seem to be able to successfully run this command |
@omahane I think you got something wrong. |
I have a problem with lesson1. Can anyone help me to figure out why it doesn't work when I set the "kernel_old" option to 1? |
@hassene The kernel_old option only works with older versions of the raspian OS firmware to start with, newer versions work differently and won't work completely with this tutorial. I do have a set of videos that walk through using this tutorial with more modern raspberry pi firmware and with raspberry pi 4 as well. https://www.youtube.com/watch?v=pd9AVmcRc6U&list=PLVxiWMqQvhg9FCteL7I0aohj1_YiUx1x8 |
@rockytriton Thanks! |
I've built the lesson01 project and got these files, but I don't know how to do next.
The text was updated successfully, but these errors were encountered: