OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Hardware and Performance »
  • [Work In Progress] OPNsense Ported into ARM Devices
« previous next »
  • Print
Pages: 1 2 3 [4] 5 6 ... 24

Author Topic: [Work In Progress] OPNsense Ported into ARM Devices  (Read 270436 times)

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: [Working] OPNsense Ported into ARM Devices
« Reply #45 on: May 03, 2019, 09:07:38 am »
Quote from: chemlud on May 03, 2019, 08:54:33 am
Downloaded raspi 3 image and checked SHA256 on .img (!, not .xz), was OK.

Burned image with

Code: [Select]
dd if=OPNsense-##.#.##-[Type]-[Architecture].img of=/dev/daX bs=16k
but on boot I get the infamous rainbow screen and green LED blinking seven times, which means:

Code: [Select]
7 flashes: kernel.img not found
https://elinux.org/R-Pi_Troubleshooting#Green_LED_blinks_in_a_specific_pattern

...tbc...
Looks promising, want to experiment a little bit? Copy all these files into your microsd card, but do not overwrite existing files.

If still blinking, try installing rpi-firmware on your freebsd machine, and copy armstub8.bin into the same folder mentioned above.
« Last Edit: May 03, 2019, 09:13:38 am by nekoprog »
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: [Working] OPNsense Ported into ARM Devices
« Reply #46 on: May 03, 2019, 09:32:30 am »
Hmm, I'm not a GIT-guy (and my local nerd is still sleeping...), how to download all this stuff? 8-)

Have no BSD-machine here currently iirc, tried last fall last time, I guess... busy days... ;-)

Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: [Working] OPNsense Ported into ARM Devices
« Reply #47 on: May 03, 2019, 09:54:24 am »
Quote from: chemlud on May 03, 2019, 09:32:30 am
Hmm, I'm not a GIT-guy (and my local nerd is still sleeping...), how to download all this stuff? 8-)

Have no BSD-machine here currently iirc, tried last fall last time, I guess... busy days... ;-)
No worries. Try copying these files and boot. One fix at a time and remove older fix before trying other fix.
Fix 1
Fix 2 (copy both files)
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: [Working] OPNsense Ported into ARM Devices
« Reply #48 on: May 03, 2019, 10:08:22 am »
OK, fix1 gives me a rainbow screen without green blinking...

Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: [Working] OPNsense Ported into ARM Devices
« Reply #49 on: May 03, 2019, 10:09:30 am »
Quote from: chemlud on May 03, 2019, 10:08:22 am
OK, fix1 gives me a rainbow screen without green blinking...
But it doesn't boot into OPNsense?
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: [Working] OPNsense Ported into ARM Devices
« Reply #50 on: May 03, 2019, 10:13:21 am »
Rainbow screen is always "end of story" on raspi. Nothing going further...


Fix 1 removed, added the two kernel .img of fix 2 and it actually boots, but after

(secondary_start kernel) from [<00.....

next line is

---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]---
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: [Working] OPNsense Ported into ARM Devices
« Reply #51 on: May 03, 2019, 10:23:25 am »
Quote from: chemlud on May 03, 2019, 10:13:21 am
Rainbow screen is always "end of story" on raspi. Nothing going further...


Fix 1 removed, added the two kernel .img of fix 2 and it actually boots, but after

(secondary_start kernel) from [<00.....

next line is

---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]---
Thanks for the test. I'll take another look at it. Probably some minor kernel misconfiguration. as long as it boots, there will be a way to proceed.

Want to try number guessing game? Looks like there's a fix here https://raspberrypi.stackexchange.com/questions/40854/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block179-6

or maybe some stupid mistake by me. can you rename config_rpi3.txt to config.txt?
« Last Edit: May 03, 2019, 10:31:35 am by nekoprog »
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: [Working] OPNsense Ported into ARM Devices
« Reply #52 on: May 03, 2019, 10:46:20 am »
I tried the config rename, but then I get :

Code: [Select]
mmc1 is current device
scanning mmc 1:1...

Device =: unknown device

...and then it tries a PXE boot:

Code: [Select]
"Waiting for Ethernet connection...

missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-b8-27-....

...and after some unsuccessful tries I end up with a U-boot prompt.
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: [Working] OPNsense Ported into ARM Devices
« Reply #53 on: May 03, 2019, 10:55:31 am »
Quote from: chemlud on May 03, 2019, 10:46:20 am
I tried the config rename, but then I get :

Code: [Select]
mmc1 is current device
scanning mmc 1:1...

Device =: unknown device

...and then it tries a PXE boot:

Code: [Select]
"Waiting for Ethernet connection...

missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-b8-27-....

...and after some unsuccessful tries I end up with a U-boot prompt.
It digs deeper. Can you try booting it again with fix 1?
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: [Working] OPNsense Ported into ARM Devices
« Reply #54 on: May 03, 2019, 10:56:44 am »
Regarding the link to fix:

I can open (on a linux machine) only the first partition of the (two) partitions visible on the SD-card, the one called "MSDOSBOOT" and on this partition I see no cmdline.txt

Booting with SHIFT pressed ends at the same error message, I think this works only on NOOBS?
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: [Working] OPNsense Ported into ARM Devices
« Reply #55 on: May 03, 2019, 11:01:16 am »
Quote from: chemlud on May 03, 2019, 10:56:44 am
Regarding the link to fix:

I can open (on a linux machine) only the first partition of the (two) partitions visible on the SD-card, the one called "MSDOSBOOT" and on this partition I see no cmdline.txt

Booting with SHIFT pressed ends at the same error message, I think this works only on NOOBS?
cmdline.txt was not included in freebsd rpi-firmware package. i think it's optional, because rpi2 also didn't have it. i'll take another look at it later.
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: [Working] OPNsense Ported into ARM Devices
« Reply #56 on: May 03, 2019, 11:01:22 am »
Adding fix 1 (armstub8.bin) ends in rainbow screen. This is a deadend road. Tried again (with the two kernel images), same result
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: [Working] OPNsense Ported into ARM Devices
« Reply #57 on: May 03, 2019, 11:06:42 am »
Quote from: chemlud on May 03, 2019, 11:01:22 am
Adding fix 1 (armstub8.bin) ends in rainbow screen. This is a deadend road. Tried again (with the two kernel images), same result
Want to try this fix? https://lists.freebsd.org/pipermail/freebsd-arm/2016-November/015094.html

or make a copy of bcm2710* and rename it to bcm2837*.
« Last Edit: May 03, 2019, 11:22:27 am by nekoprog »
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: [Working] OPNsense Ported into ARM Devices
« Reply #58 on: May 03, 2019, 11:23:08 am »
I copied over a cmdline.txt from a functional raspbian stretch (booting on any raspi) with the following content:

Quote
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

and changed

Code: [Select]
root=/dev/mmcblk0p2
to

Code: [Select]
root=/dev/mmcblk0p6
...but this changed only the kernel panic message to

Code: [Select]
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6) ]---
...would love to play around the rest of the weekend, but have to earn some money unfortunately...

;-)

PS: The rootfstype is not EXT4 for the opnsense, what would be correct for cmdline.txt? Or simply remove this entry?
« Last Edit: May 03, 2019, 11:30:24 am by chemlud »
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: [Working] OPNsense Ported into ARM Devices
« Reply #59 on: May 03, 2019, 11:28:53 am »
...renaming the bcm2710.....dtb to bcm2837...dtb didn't change anything.

I think we try to boot from the wrong partition, does your image use the

/dev/mmcblk0p2

for root?
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

  • Print
Pages: 1 2 3 [4] 5 6 ... 24
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Hardware and Performance »
  • [Work In Progress] OPNsense Ported into ARM Devices
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2