-
Notifications
You must be signed in to change notification settings - Fork 6
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
Can I do this in rpi 4 with 1gb or Not? Or only in rpi4 with 4gb and/or 8gb #1
Comments
Yes, this RPMSG sample should work on 1GB RAM version of Raspi4B.
This porting does not include any device driver other than that for PL011 UARTs. Therefore, you will need to implement a GPIO driver to manipulate buttons and LEDs on Raspi4B. |
@TImada I prefer Rpi4 because I prefer remoteproc of the your project. I stay trying RPMsg in Linux/RTOS after boot. I prefer use remoteproc |
This is my config.txt in rpi4 1gb
My issue now is: bcmgenet: PHY startup failed+Retrieving file: pxelinux.cfg/00000000 ethernet@7d580000 Waiting for PHY auto negotiation to complete I couldn't install ubuntu core or debian on this rpi4 1gb. Just installed the latest official raspbian version please help me |
This seems a log during IP address requesting from a DHCP client for PXEBOOT. Wrong OS image for netboot ? |
@TImada This is my option to put u-boot/Linux in my Rpi4 But I have problem in the mentioned tutorial:
If you can help resolve this issue of this tutorial, I would appreciate it. |
There is another strange error here in u-boot which is as follows: I get to the part: Hit any key to stop autoboot: 2 where I try to stop u-boot to type the envimoments and arguments (as pictured below), but it doesn't stop, I don't know why. |
I've never tried a Busybox-based OS image for my FreeRTOS porting to Raspi4B. Any useful comment from me cannot be expected unfortunately.
Check the followings below:
|
@TImada my device is raspberry pi 4 1gb(Being 1gb means I have little memory for ubuntu 20.04 core and/or debian) |
You will need to cross-compile a linux side RPMSG sample on your PC if you still use the Busybox-based OS image which does not have build tools such as gcc, make or cmake. [1] https://github.com/TImada/raspi4_freertos_rpmsg/blob/master/docs/linux_build.md |
@TImada Could you answer two specific questions:
|
This depends on what you want to do on your Raspi4B. For my use case not requiring GUI at all, 1GB RAM is quite enough.
Use [1] https://jensd.be/1126/linux/cross-compiling-for-arm-or-aarch64-on-debian-or-ubuntu |
I managed to climb Rpi4 with u-boot 2021, using buildroot for rpi4_64 and two more commands in the u-boot cli. I'm going to RPMsg now and I have a question on this line below (see photo, I already got an error in the test for /mnt folder) sudo ./u-boot.bin /path/to/sd_boot_partition/kernel8.img What is the function of this command above in the RPMsg project of rpi4_64? What is the correct way to run it? |
That should be |
@TImada Why I need transform u-boot.bin in kernel8.img |
@TImada Up until this point in the tutorial I haven't seen anything on the screen. Notes: 1) I'm using fatload, because ext4load it didn't work. 1.1) ls mmc 0:2/tmp didn't work either.
|
@TImada issue in cmake .. command: |
You are wrong. The UART sample uses two different UARTs. (as described in https://github.com/TImada/raspi4_freertos#uart-configuration )
Why don't you check the error log? |
Before answering the above question, I should tell you that I'm having problems with the new device tree that the raspi4_rpmsg project requires: There are several things to say and demand your attention (please): On this site above you have the answer of Mr. marc_s: setenv bootargs 8250.nr_uarts=1 console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait rw fatload mmc 0:1 ${kernel_addr_r} Image Why didn't I put the dtb on the site above? In the file below are the 2 dts. Yours and mine. I need your help to make a merge https://github.com/neuberfran/dts When I generated the file using dtc it gave the screen error issue99 below My intention is to put the merged dts file in the dts folder of the buildroot and it will generate a new dtb. Then I can follow the steps of stackoverflow, normally Note: As per screenshot issue100, I was able to evolve in the command ls mmc 0:2 tmp and I can use ext4load |
Unfortunately, I do not have knowledge on how to modify the original *.dts files for this aim. What I have done on the dts file is as follows: (Remove
(Add the
(Add the
|
https://forums.raspberrypi.com/viewtopic.php?t=315662 Really, there was a crash here in the tutorial on the issue of device tree deployment (dtb file) on rpi4 through u-boot As per the links above (my rpi4 is revision 1.2 or higher) there was a change in the dtb file call in u-boot. Your tutorial is suitable for rpi4 revision 1.1 |
In my understanding, you will need to modify the original *.dts files based on what I have mentioned above, then to build a boot partition in an official manner. If the error occurs due to the EMMC2 specification change [1] and you can get the
[1] https://forums.raspberrypi.com/viewtopic.php?t=315662#p1888661 |
Steps 1 and 4 are the ones that make it unfeasible (I've already tried that here). Since there are some #includes in bcm2711-rpi-4-b.dts from buildroot to rpi4. It's not messing with config.txt or the 2 commands I already do in u-boot that will solve (I think) Friend, I've been working on this project for two weeks. I tried seadog-gaia (from my friend, link below) and tried yocto on rpi4, but that stopped early on as Noobs for rpi4 didn't work. What I suggest, for you to help me in the device tree part is the following: Pull the buildroot, as shown in the video below and apply the following commands (super easy): https://www.youtube.com/watch?v=9vsu67uMcko&t=827s
I'm having trouble changing bcm2711-rpi-4-b.dts inside the buildroot folder. Not only because there are several (sudo find. -name bcm2711-rpi-4-b.dts), but after making the changes, How to compile ? |
Let me check what you have done in the step 1 and 4, before moving to building a modified boot partition.
|
|
Unfortunately my rpi4 died: https://forums.raspberrypi.com/viewtopic.php?t=342649 While the other is not enough, I want to see how to access the Uart of the gpio14/15 without having to connect the 5v of the cp2102 |
Which CP2102 board did you use? |
You said "Why don't you do that by yourself?" _I still don't have enough knowledge for that my friend. It would be really nice if you did that. |
I did not have enough knowledge on FreeRTOS and Raspi4B at the start point of this porting too.
Unfortunately, I cannot spare time to help your work as I have many other things to do. |
My business work. Do not disturb me any more. :-) |
Closed due to inactive status. |
Yesterday I went to redo the project to learn OpenAMP with FreeRTOS and got two errors (as shown in the photos below): |
Using Try the following:
|
@TImada |
See https://github.com/TImada/raspi4_freertos_rpmsg/blob/master/docs/freertos_build.md#1-create-a-dedicated-directory to set it. |
@TImada |
I have updated libmetal/open-amp submodules. Try the entire build process again from https://github.com/TImada/raspi4_freertos_rpmsg/blob/master/docs/freertos_build.md#3-clone-freertos-rpmsg-sample |
@TImada Everything works ok. But.... I already have Yocto Kirskstone [4] running on my rpi4 (& ONLY Yocto in imx7d-pico) and I can run rpmsg_echo but I have already placed the executable (rpmsg_echo) directly there. I want to build it together[1] with Yocto and use meta-openamp[2] from this repository: In Video [1] At minute 7 and 31 seconds, the author mentions some things I would like to ask him before using:
Observation-01 - local.conf (Yocto Kirsktone build)
|
v10.3.0 is used. I don't know what is different between v10.3.0 and v10.2.1, but v10.2.1 would work if it has compatible APIs with APIs provided by v10.3.0.
libmetal/open-amp version (git tag name) used for this repository is v2020.04.0.
I cannot have any good answer on this as I'm not a yocto guy. |
I do not have any motivation to conduct both 1. and 2. as that's your business, not mine. |
@TImada Hi,I'm trying this again today (with the latest versions of U-boot and kernel), in fact, I just resolved a device-tree port error in bcm2711-rpi-4-b.dtb: https://stackoverflow.com/questions/78744626/issue-in-rpi4-8gb-when-i-try-change-bcm2711-rpi-4-b-dtb-in-debian-12-64-bits The problem now is(Resetting CPU ... resetting ...) that Uboot restarts itself (as shown in the photo below and like type this:raspberrypi/firmware#1157), making it impossible for me to go to cd ./raspi4/raspi4_freertos_rpmsg/samples/linux/rpmsg_echo/build (where everything is already ready) and command:
My boot.scr (old cmdline.txt file that I haven't used here) is:
|
Your boot.scr seems wrong. Follow https://github.com/TImada/raspi4_freertos#launching-freertos and replace uart.elf by rpmsg_ping.elf. |
I can't see anything wrong with my boot.scr. I'm making changes to U-boot 2024.04
boot.scr
|
@TImada How to create rpmsg_ping.bin (not *.ELF) ? https://stackoverflow.com/questions/75475302/synchronous-abort-handler-esr-0x96000004 |
You should have a diff between your boot.scr and what I have introduced in #1 (comment). You will see i) a different ELF load address and ii) missing Considering .bin does not make sense now as your faulty boot.scr can easily cause data inconsistency on RAM. |
@TImada
https://gist.github.com/neuberfran/421e1a1ec38f45226a4a3d37f1fc32ec |
Why don't you debug it by gdb to clarify what is wrong? I cannot imagine what have you done exactly due to less information on your raspi4. (I won't be able to reply at all until mid of August as I'll be off from several hours later.) [1] https://github.com/TImada/open-amp/blob/fa1856e5a670298123a521d141b42ce5573d4a85/apps/machine/raspi4/raspi4_a72_rproc.c#L112 |
@TImada I know you are very busy. I still have the same error above. I have one system with kernel 5.15. Works
I have other system with kernel 6.6. Not Works and it:
Not appear
On the working system I have /dev/ttyAMA0. On the non-working one, this does not appear. I am sure that changes were made to the Linux kernel (in this part of ttyAMA0, ttyAMA1) but I am not sure if this is the cause of my current issue ( I have absences (in the kernel 6.6 image with error) of interrupts shown by the command: cat /proc/interrupts
|
@TImada https://gist.github.com/tnishinaga/46a3380e1f47f5e892bbb74e55b3cf3e Even commenting the necessary lines, this command above presents an error below
The only one who accepts is this one: |
Report your debugging result on Linux including; (1) values of $ hexdump -C /proc/device-tree/armlocal_uio@ff800000/*
$ hexdump -C /proc/device-tree/gic_uio@40041000/*
$ hexdump -C /proc/device-tree/shm@20600000/*
$ hexdump -C /proc/device-tree/reserved-memory/rtos@20000000/*
$ ls /sys/bus/platform/devices/40041000.gic_uio/
$ ls /sys/bus/platform/devices/20600000.shm/
$ ls /sys/bus/platform/devices/ff800000.armlocal_uio/ |
@TImada How to Start rpmsg_echo from gdb/JTAG/openocd |
|
@TImada Actually, sudo -E gdb /path/to/rpmsg_echo on your Rasp4 Linux would be enough worked, but... As shown in the photo below, the ft232h is attached to the computer (USB) and not to the rpi4 USB. Therefore, I can only give the command below on the computer and not on the rpi4: Therefore, the commands: target extended-remote localhost:3333 and/Or target ext :3333 (from within the rpi4 gdb) do not work( Connection timed out.). Probably because openocd is running on the computer: When I manage to run both commands from within the computer I get kernel panic and the error: "0x03047d53" |
|
You don't need to use OpenOCD and a JTAG probe to debug |
Hi,
Can I do this in rpi 4 with 1gb or Not? Or only in rpi4 with 4gb and/or 8gb.
I'm trying to put ubuntu 22.04.1 on rpi4 1gb and I'm not getting it.
I've been playing with iot for 8 years now.
I've done RPMsg (no remoteproc, bootloader only) on imx7d_pico using Yocto(hardknott) and FreeRtos.
My project dream is to Blink a led using Push utton Switch on the a7 part and the led on the m4 part,
![image](https://user-images.githubusercontent.com/38701397/196469813-0d91c020-c64b-44b0-8cd4-ab4e6cf2a93e.png)
Or, in the case of rpi4 1gb, use pushbutton switch in Core 0/Linux and Led in Core 3/FreeRtos
The text was updated successfully, but these errors were encountered: