Skip to content
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

Cannot access Linux host through ssh FreeRTOS+Linux #39

Open
e-nieto opened this issue Jul 25, 2023 · 4 comments · Fixed by #46
Open

Cannot access Linux host through ssh FreeRTOS+Linux #39

e-nieto opened this issue Jul 25, 2023 · 4 comments · Fixed by #46
Assignees

Comments

@e-nieto
Copy link

e-nieto commented Jul 25, 2023

Good evening team!

I've been trying to access the Linux guest OS through ssh according to the Linux+FreeRTOS guide (IP 192.168.42.15).

The system is able to boot according to FreeRTOS on UART:
FreeRtos_running

When trying to ping or ssh, host appears offline (100% packet drop, not even connection refused). However, nmap is able to detect the RPi4 as being online and being able to connect, but all ports are ignored:

Screenshot_ping_bao

I am on a fresh make from commit e6f1f6f

@josecm
Copy link
Member

josecm commented Jul 25, 2023

@e-nieto Now that I've checked the readme files and the steps printed out when running make, I realize that something is not clear: the demo requires you to set up your machine's eth interface IP statically to something in the same private network. For example, 192.168.42.2/24.

Have you tried this?

@josecm josecm self-assigned this Jul 25, 2023
@e-nieto
Copy link
Author

e-nieto commented Jul 25, 2023

No I didn't, but makes sense. I've been able to connect to Raspbian with an adhoc in the past, so it didn't occur to me to hook it up to the router. I'll try tomorrow and report back :)

@e-nieto
Copy link
Author

e-nieto commented Jul 26, 2023

I was able to autoassign a static IP to the interface (just as you suggested, I don't know why I tried to complicate myself with DHCP server + router + what have you) and it pings! I was able to log into root.

Nevertheless, is there a way to change the static IP before booting into the machine (through config.txt for example)? It would be great if someone is stuck or wants to integrate it to it's local network before trying to connect to it :)

@josecm
Copy link
Member

josecm commented Oct 21, 2023

I'm guessing @yanjiew1 wrongly marked this issue on their PR since this is related to the Linux+FreeRTOS demo, not the Linux+Zephyr.

@e-nieto sorry for not taking a look at this sooner. Were you able to change the static IP? I believe this would be possible by chaing the ip parameter in the kernel command line defined in the device tree's chosen/bootargs property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants