-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Booting OP-TEE in RPi3 #1367
Comments
Hi @etraudonun, Could you please put back into PC your SD (should be run by root user) amd run these commands and copy here theirs output:
What actual output do you see when you are trying to boot RPi3 with inserted SD? |
Hello, $ fdisk /dev/sdc/ Command (m for help): p Device Boot Start End Sectors Size Id Type $ mount /dev/sdc1 /media/boot $ mount /dev/sdc2 /media/rootfs When I boot the RPi3, it doesn't show any output and the ACT LED doesn't blink, which means the RPi3 can't actually boot from the card. |
Hi @etraudonun,
because your boot partition is empty (based on your Best regards, |
Thanks! It seems the double quotes were messing up the command, so it should be something like:
So at this point the RPi3 reads the card and displays the following information:
After this point it jumps to a screen with the Raspberry Pi's logo with a blinking cursor and seems to get stuck as I cannot input any commands such as the "ps aux | grep tee-supplicant" to check if the tee-supplicant is running or not. Thank you very much for your patience |
Hi @etraudonun, Then rebuild u-boot.env
and copy (with replacing old uboot.env) Then mount your SD ROOT FS partition (/dev/sdc2), and change in
After all these steps you will receive output on your display BTW, I'll create a PR with changes to support output to both UART and display BR, |
Hello @igoropaniuk, I read part of OP-TEE's documentation and looked at bits of code and several questions came to my mind. Although some are related with booting OP-TEE in RPi3, others are not, so let me know whether I should use the mailing list instead. In order to ease testing and deployment, you recommend booting via NFS and TFTP. However, I ran into two problems. At the beginning of section 5 (where you describe how to boot through NFS), you have the following information:
The problem here is that I cannot find my RPi3's ip, as ifconfig returns this information:
I had to do The second issue is directly related with the first as I cannot halt U-Boot through the keyboard when the output is forwarded to HDMI. I believe in this case the issue could be solved by using the UART instead with Another issue not directly related with these two is the root filesystem. In section 5.7 you describe how to setup an Ubuntu based filesystem, which I tried to use with the current setup, i.e., through SD card handling and not NFS. The problem however is that although Ubuntu boots into the login screen, I can't seem to login. I used the linaro/linaro combination but after typing linaro and pressing enter, the command prompt advances to the next line and no password is asked. Even after typing linaro a second time (as password) and pressing enter nothing happens, and after a while my input disappears and the login request resumes again. Am I doing something wrong? Because I don't have a JTAG debug device, I would also like to know if the J-LINK EDU device would be a good option, since you mention you use J-LINK BASE devices, which according to Segger's website provides the same functionalities as the BASE, at a lower cost, and for non-commercial purposes only, which happens to be the case. Again, thank you in advance for your help, |
Hi @etraudonun ,
Linux kernel automatically brings up and configures your network interfaces, when you use For details check https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt
Actually, I have the same issue. I suggest to check http://elinux.org/RPi_U-Boot, there is a section called "Oleksandr Tymoshenko's branch" where you can find information about building U-Boot fork with working USB support on RPi3. I haven't tried it yet, so if are going to check it - please notice me about your test results.
I think this one is a bit overpriced (IMHO), I'm using a cheap CP2102 USB to UART (~ 1$) https://www.aliexpress.com/item/CP2102-module-USB-to-TTL-serial-UART-STC-download-cable-PL2303-Super-Brush-line-upgrade-for/32390863227.html?spm=2114.13010608.0.0.21GWwW. It works fine, believe me :)
you are right
Actually, these two binaries are not related to each other.
Unfortunately I didn't write this section of README, and I've never tried to use Linaro Ubuntu rootfs images on RPi3 setup. If you still encoutering this issue, I can check it and try to use it on my RPi3
As far as I know, @jbech-linaro has used J-LINK from Segger for RPi3. Joakim, do you have any particular suggestions about J-LINK jtags? Best regards, |
@etraudonun , I am trying to run Ubuntu as you did. Can you help me with some issue I am facing? You can refer to my issue with the link below. I did not want to hijack your thread. :) |
Add support of kernel output both to connected monitor and UART Add "usb start" at pre-boot stage to be able to use a keyboard in U-Boot Fixes: OP-TEE/optee_os#1367 OP-TEE#131 Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
Add support of kernel output both to connected monitor and UART Add "usb start" at pre-boot stage to be able to use a keyboard in U-Boot Fixes: OP-TEE/optee_os#1367 OP-TEE#131 Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
Hello,
I'm new to OP-TEE and wanted to learn more about it by running it on a Raspberry Pi 3.
However, I'm having trouble setting it up.
Here's the list of commands/actions I just followed based on your build support page (https://github.com/OP-TEE/build):
Installed the necessary dependencies;
Installed repo;
Got OP-TEE's code through repo;
Got the toolchains;
Ran the "make all run" command;
Flashed an SD card with the following commands:
$$ fdisk /dev/sdc
> p
> d
> n
> p
> 1
>
> +32M
> n
> p
> 2
>
>
> t
> 1
> e
> a
> 1
> p
> w
$$ mkfs.vfat -F16 -n BOOT /dev/sdc1"
$$ mkdir -p /media/boot"
$$ mount /dev/sdc1 /media/boot"
$$ cd /media"
$$ gunzip -cd ~/optee/gen_rootfs/filesystem.cpio.gz | sudo cpio -idmv "boot/*""
$$ umount boot"
$$ mkfs.ext4 -L rootfs /dev/sdc2"
$$ mkdir -p /media/rootfs"
$$ mount /dev/sdc2 /media/rootfs"
$$ cd rootfs"
$$ gunzip -cd ~/optee/gen_rootfs/filesystem.cpio.gz | sudo cpio -idmv"
$$ rm -rf /media/rootfs/boot/*"
$$ cd .. && umount rootfs"
Afterwards, I plugged the card in the Raspberry Pi but when I booted it, it couldn't read the card.
Could you please help me in understanding what I'm missing?
Thank you very much for time
Best Regards,
Nuno
The text was updated successfully, but these errors were encountered: