Comments (8)
Hi @CPerezz,
that's strange. I just re-tested it on my Pi4. I loaded the newest versions of start4.elf
, fixup4
and the dtb
.
It works for me, and it doesn't make a difference if the start is named start.elf
or start4.elf
.
- Do you have any other files on SD card?
- Are you ejecting the SD card properly after writing to it from the host? This can often cause issues because the contents are not flushed onto the SD but reside in the OS cache when you don't eject/flush properly.
from rust-raspberrypi-os-tutorials.
Hi @andre-richter , thanks for answering.
No other files are there:
> ls -la /run/media/boot/$USER
Permissions Size User Date Modified Name
.rw-r--r-- 47k kr0 7 Nov 21:22 bcm2711-rpi-4-b.dtb
.rw-r--r-- 56 kr0 8 Nov 0:26 config.txt
.rw-r--r-- 5.4k kr0 7 Nov 21:22 fixup4.dat
.rw-r--r-- 8.2k kr0 8 Nov 0:20 kernel8.img
.rw-r--r-- 2.2M kr0 7 Nov 21:22 start.elf
Also. After writing/copying files to the SD I just do sudo umount /run/media/boot
and eject the USB adapter that has the SD card in it.
Will try to re-do completely from scratch example 6 and 7 later today to see what happens. But at this point. I tried everything. So if I can provide any other info that might help the debugging. Just tell me. Since it's weird, and also difficult to check since qemu
doesn't support rpi4 on the -M option.
from rust-raspberrypi-os-tutorials.
kk after doing everything from scratch again:
Example 6
I probably did something wrong since now I'm capable of booting the RPI4B and the Enter
triggers the execution as expected breaking the infinite loop. Although the prints are indented and so the output looks like:
Output 1
Output 2
Output 3
Output 4
But it's fine. I played a bit with the println! macro to try to see why this happens but haven't been able to catch it yet.
Example 7
The kernel boots correctly if I load it in the SD and use screen
as in example 6.
But when I run BSP=4 make chainboot
i keep getting the same errors:
Minipush 1.0
[MP] ⏳ Waiting for /dev/ttyUSB0
[MP] ✅ Connected
[MP] ⚡ Protocol Error: Remove and insert the USB serial again
[MP] ⏳ Waiting for /dev/ttyUSB0
[MP] ✅ Connected
[MP] ⚡ Protocol Error: Remove and insert the USB serial again
[MP] ⏳ Waiting for /dev/ttyUSB0
[MP] ✅ Connected
[MP] ⚡ Protocol Error: Remove and insert the USB serial again
^C
[MP] Bye 👋
^C
make: *** [Makefile:104: chainboot] Error
from rust-raspberrypi-os-tutorials.
Hi @CPerezz,
I was able to reproduce the odd line breaks in tutorial 6. A while ago, I changed all the kernel sources to conclude a line only with \n
, and not print an explicit carriage return. The terminal part of minipush
accounted for it, but I never realized that it breaks screen
.
I carved out the terminal part of minipush for tutorial 6, so connection to the RPi now happens through an in-house tool as well. Please check out if the changes introduced in e147309 work for you.
Regarding tutorial 7, hard to say why this still fails. Even more so because tutorial 6 seems to work...
from rust-raspberrypi-os-tutorials.
@andre-richter thanks again for doing these tutorials. Maybe this is related to my issue #81 ?
from rust-raspberrypi-os-tutorials.
can you check if something changes when you use this kernel8.img as the chainloader on your Pi4 SD card? changed when you checkout master now?
163e201 added the changes @abdes reported in #81.
from rust-raspberrypi-os-tutorials.
Closing this for now since no feedback received.
We can reopen anytime if needed.
from rust-raspberrypi-os-tutorials.
Hi @andre-richter I've been extremely busy. That's why I haven't been able to test your changes. I'll do ASAP. Sorry for the delay.
from rust-raspberrypi-os-tutorials.
Related Issues (20)
- invalid file operation error HOT 3
- error[E0463]: can't find crate for `core` HOT 2
- Complete Chinese Translation HOT 3
- I want to know about other microcontrollers, you can refer to this example HOT 3
- Pure rust chainboot HOT 1
- Cannot start to work with this repo
- error: linker `cc` not found [Makefile:123: target/aarch64-unknown-none-softfloat/release/kernel] Error 101 HOT 1
- chapter 6 can not get correct output, stuck at: [ML] Requesting binary HOT 1
- everything seems to work fine but I cant input anything HOT 3
- Miniterminal not working on Raspberry pi 4 HOT 1
- ICR management question
- Error regarding Github CI/CD HOT 3
- Depracated link in The tl;dr Version subsection of README.md file HOT 2
- Invalid links in 11_exceptions_part1_groundwork/README.md HOT 2
- Consider generating these documents into a website
- Plans for even more embedded devices
- Please Change README HOT 2
- Why use Makefile handle build process? HOT 1
- Currently porting to RISC-V
- What determines the value of GPIO_PUP_PDN_CONTR_REG ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-raspberrypi-os-tutorials.