-
Notifications
You must be signed in to change notification settings - Fork 206
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
[ARM] Port OPNsense to the Netgate SG3100 #162
Comments
|
when i add a simple "/bin/csh" here it drops me into a shell, and everything seems to work so far. |
|
very strange spot to "hang".. did you configure auto-login on the console? |
|
Next strange thing ... this only occurs over serial output. Over SSH everything works as expected, seems to be a very device specific problem |
|
It's likely /etc/ttys or /etc/login.conf related. |
|
@DarkSunOne Can your serial detect input? I tried with usb-serial, but cannot send input to console. |
|
So, is there anyone who is able to help me create a flashable image? Currently i dd the arm image to a usb stick, and start it directly from this stickl (u-boot>> usb start ; boot) I recieved a recovery image from netgate, but i have no idea, who to build a opnsense image like this :-( It an .img file, this image file contains a 0.fat file, and a 1.img file. I can also provide this image to one of you if somone is interested or can help :-) |
|
I can't speak for the image, but at least there's one of your issues: there's no ttyvX devices, maybe it's all USB-based, list your /dev/tty* to see what's there. :) |
If you can create a tree for each of the item listed on
If you reverse the step, you can get the |
|
Oh, okay ... well, didn't looked so close to the opnsense image yet ^^ Thanks for the explanation, so basically i just need to mount 1.img from the recovery image, |
|
Okay, i just made a successful flash, i replaced the built in pfsense image with my opnsense image. It really boots up fine, but i recieve a lot of UFS and vfs errors: And the opnsense shell is still not loaded (so no input is possible) |
|
|
ttyu0 and ttyu1 are there... can you check that /etc/ttys on the original image match ours? There's no "login:" prompt so it never finds the primary serial (likely ttyu0) maybe also due to some quirk device hint that needs to be set on the hardware. I really don't know. For details see i.e. https://forum.opnsense.org/index.php?topic=6998.msg31097#msg31097 |
|
Second thought.. have you tried to set the thing to serial on the GUI? |
|
Reference: https://github.com/opnsense/tools/blob/master/config/20.1/extras.conf#L29-L37 arm was HDMI so not serial yet, nano has dual console, serial has serial console likewise |
You might want to start debug from here and look what really happens after system_console_unmute(). Or maybe here since you already shown OPNsense banner. I hope you can find something there. |
Can we merge arm and nano hook? |
will read the links later ... When i remove "banner" here everything works as expected, at least it seams so. Edit: okay, well i see, the "program" is running in a while, so nothing is executed after that |
|
Well, use “set -x” in /usr/local/etc/rc to confirm. Banner is a PHP script but echo-debug should lead you to the blocking call.
… On 8. Nov 2019, at 13:30, René Losert ***@***.***> wrote:
Okay ... i fixed it but i dont like it :-D
When i remove "banner" here everything works as expected, at least it seams so.
Why is the banner called here, and not the "normal whole" opnsense-shell?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
Oh sorry, use set -x in opnsense-shell then. It was changed to launch the banner I see.
… On 8. Nov 2019, at 13:30, René Losert ***@***.***> wrote:
Okay ... i fixed it but i dont like it :-D
When i remove "banner" here everything works as expected, at least it seams so.
Why is the banner called here, and not the "normal whole" opnsense-shell?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
I still try to understand all the rc stuff from freebsd ... when /usr/local/etc/rc is executed on boot, Why is nothing executed after successfully finishing Shouldn't there be a login prompt after that? |
|
Well, as I said init is done and rc exited zero. There’s no issue except no login prompt appears which is related to tty not spawning due to /etc/ttys misalignment. Try to set serial as primary console and see if that is enough.... 😉
… On 8. Nov 2019, at 15:05, René Losert ***@***.***> wrote:
I still try to understand all the rc stuff from freebsd ...
when /usr/local/etc/rc is executed on boot, /usr/local/sbin/opnsense-shell banner is executed, this script just ends with exit code 0.
So everything is fine at this point, but theres nothing whats getting triggerd after that, i think we have to search in this direction...
Why is nothing executed after successfully finishing /usr/local/etc/rc?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
It's not about freebsd, but it's opnsense feature. It should not prompt you shell after successfull login, but you'll be prompted a cli dashboard to manage opnsense via cli console. There will be a menu to enter a shell, which you have to enter number 8 if I'm not mistaken. It's same with pfsense. For this purpose, I think you should try to start debug from here to find out why cli menu is not present after banner. Make sure to comment out this line. You could try change this to |
|
@nekoprog yes, if i change this line to As @fichtner already said, this should be /dev/tty* related, but i have no idea how to identify the problem at the moment. @fichtner , other question, i have to implement the whole switch configuration in the gui, do you have tips for me where i should start? |
|
If you have the time to work on it a plugins.git issue would be good. We’re trying to get the device code to be fully plugin-ready at the moment so that is a good target to work on. Also, most won’t need the switch support so it’s better left out if the core itself.
Take a look at the new VXLAN code in core.git master which is how you can get started.
Cheers,
Franco
… On 8. Nov 2019, at 17:40, René Losert ***@***.***> wrote:
@nekoprog yes, if i change this line to /usr/local/sbin/opnsense-shell everything works as expected.
The interesting thing we need to troubleshoot is, why the login prompt isnt showing up.
As @fichtner already said, this should be /dev/tty* related, but i have no idea how to identify the problem at the moment.
@fichtner , other question, i have to implement the whole switch configuration in the gui, do you have tips for me where i should start?
These are completely new interfaces which i (or we) have to bring up in the gui.
On the FreeBSD site everything is set up and working, so its really only the OPNsense (+gui) -stuff
Should i create a separate issue for that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
First i want to fix the open issues i am facing at the moment. First, and most annoying is still that there's no login prompt. I now know, that the pfsense image is definitely using /dev/ttyu0 |
|
@DarkSunOne it might be a good opportunity to ask the manufacturer what is needed to make that happen |
|
So i should ask netgate, why opnsense doesn't show me a login prompt on there branded hardware? :-D |
|
Why not, assuming FreeBSD has the same issue they know how to fix it. |






Hello all,
i want to get opnsense on my Netgate SG3100 appliance.
(i learned a lot during this project ^^)
After hours of debugging, trying and compiling, i got an image, which boots with all the marvell driver loaded <3
But now i'm facing the problem, that OPNsense just gets unresponsive after successful boot :-(

Any ideas?
All the best,
René
The text was updated successfully, but these errors were encountered: