GithubHelp home page GithubHelp logo

Comments (8)

andre-richter avatar andre-richter commented on May 26, 2024

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.

CPerezz avatar CPerezz commented on May 26, 2024

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.

CPerezz avatar CPerezz commented on May 26, 2024

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.

andre-richter avatar andre-richter commented on May 26, 2024

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.

abdes avatar abdes commented on May 26, 2024

@andre-richter thanks again for doing these tutorials. Maybe this is related to my issue #81 ?

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on May 26, 2024

@CPerezz,

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.

andre-richter avatar andre-richter commented on May 26, 2024

Closing this for now since no feedback received.

We can reopen anytime if needed.

from rust-raspberrypi-os-tutorials.

CPerezz avatar CPerezz commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.