Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SG-1000 alternative use

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    16 Posts 3 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      I did:

      root@generic:~ # uname -a
      FreeBSD generic 12.4-STABLE FreeBSD 12.4-STABLE r372994 GENERIC  arm
      root@generic:~ # ifconfig
      cpsw0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
              options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
              ether 68:9e:19:8c:14:86
              inet6 fe80::6a9e:19ff:fe8c:1486%cpsw0 prefixlen 64 scopeid 0x1
              inet 172.21.16.128 netmask 0xffffff00 broadcast 172.21.16.255
              media: Ethernet autoselect (1000baseT <full-duplex,master>)
              status: active
              nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
      cpsw1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
              options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
              ether 68:9e:19:8c:14:88
              inet6 fe80::6a9e:19ff:fe8c:1488%cpsw1 prefixlen 64 scopeid 0x2
              media: Ethernet autoselect (none)
              status: no carrier
              nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
      lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
              options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
              inet6 ::1 prefixlen 128
              inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
              inet 127.0.0.1 netmask 0xff000000
              groups: lo
              nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
      
      S 1 Reply Last reply Reply Quote 1
      • S
        sgw @stephenw10
        last edited by

        @stephenw10 said in SG-1000 alternative use:

        FreeBSD 12.4

        will try asap. I assume it's enough to write the img to USB media and then "run usbrecovery" ? thanks!

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          It probably will run from USB fine. I tested it from a uSD card internally.

          You don't need to run anything from uboot. The envs in the SG-1000 will try to boot from both USB and SD card before eMMC.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            You'll probably need to write that to an SD card, open the case and put the card in, and put a jumper on the SD boot pins so it will boot from SD.

            That or you can boot from USB and manually write that image to the mmc, but using SD is probably a better move.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              I actually found it won't boot from the SD card directly, using the jumper. The uboot version in the image doesn't seem to be compatible. I forget exactly what changes we did there.

              Without the jumper it runs uboot from eMMC then loads ubldr.bin from the SD card and boots that.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Ah, yeah that might help. Probably a difference in how I made my FreeBSD image since my MMC is dead so I couldn't rely on its u-boot.

                When I made the SD card image I use there was a way to inject a specific u-boot into it with dd and I used the u-boot I copied out of the existing 1000 image.

                I can't remember which page had the instructions for that but it's under https://wiki.freebsd.org/arm/ somewhere.

                Personally I'm more comfortable knowing it is 100% on SD so it's a consistent environment.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                S 1 Reply Last reply Reply Quote 0
                • S
                  sgw @jimp
                  last edited by

                  oh, that seems complicated ;-)
                  Tried to write the img to a SD card, inserted it ... had to choose a boot device ... not really successful so far.

                  As I understand you, the image won't boot this way. Reading the docs I learn that the jumper isn't there per default. So I wonder if I need one ... and I wonder if I have to insert that uboot somehow.

                  That is a bit too much for me right now, I have to wait for a free time slot to attack this from start. Thanks anyway for your help.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    I would expect it to boot that if a uboot image is present and readable on the eMMC.

                    It looks like this:

                    U-Boot SPL 2016.03 (Jul 18 2019 - 08:00:56)
                    Trying to boot from MMC
                    Card doesn't support part_switch
                    MMC partition switch failed
                    *** Warning - MMC partition switch failed, using default environment
                    
                    reading u-boot.img
                    reading u-boot.img
                    
                    
                    U-Boot 2016.03 (Jul 18 2019 - 08:00:56 -0400)
                    
                           Watchdog enabled
                    I2C:   ready
                    DRAM:  512 MiB
                    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
                    reading u-boot.env
                    
                    ** Unable to read "u-boot.env" from mmc0:1 **
                    Using default environment
                    
                    Net:   <ethaddr> not set. Validating first E-fuse MAC
                    cpsw, usb_ether
                    starting USB...
                    USB0:   Port not available.
                    ** Bad device usb 0 **
                    Hit any key to stop autoboot:  0
                    Booting from: mmc 0 ubldr.bin
                    reading ubldr.bin
                    386136 bytes read in 32 ms (11.5 MiB/s)
                    ## Starting application at 0x88000000 ...
                    Consoles: U-Boot console
                    Compatible U-Boot API signature found @0x9ef3bb58
                    
                    FreeBSD/armv7 U-Boot loader, Revision 1.2
                    
                    DRAM: 512MB
                    Number of U-Boot devices: 3
                    U-Boot env: loaderdev='mmc 0'
                    Found U-Boot device: disk
                      Checking unit=0 slice=<auto> partition=<auto>... good.
                    Booting from disk0s2a:
                    Loading /boot/defaults/loader.conf
                    Loading /boot/defaults/loader.conf
                    Loading /boot/device.hints
                    Loading /boot/loader.conf
                    Loading /boot/loader.conf.local
                    Loading kernel...
                    /boot/kernel/kernel text=0x1b4 text=0x735378 text=0x185aec data=0xa52b0 data=0x0+0x1f0000 syms=[0x4+0xa6ff0+0x4+0x109fc4]
                    Loading configured modules...
                    /boot/kernel/umodem.ko text=0x14c0 text=0xed0 data=0x22c+0x4 syms=[0x4+0xe10+0x4+0xa4f]
                    loading required module 'ucom'
                    /boot/kernel/ucom.ko text=0x1714 text=0x2cbc data=0x3c4+0x838 syms=[0x4+0x13e0+0x4+0xbac]
                    /boot/entropy size=0x1000
                    /etc/hostid size=0x25
                    
                    Hit [Enter] to boot immediately, or any other key for command prompt.
                    Booting [/boot/kernel/kernel]...
                    /boot/dtb/ufw.dtb size=0x12b06
                    Loaded DTB from file 'ufw.dtb'.
                    Kernel entry at 0x88400200...
                    Kernel args: (null)
                    ---<<BOOT>>---
                    Copyright (c) 1992-2021 The FreeBSD Project.
                    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
                            The Regents of the University of California. All rights reserved.
                    FreeBSD is a registered trademark of The FreeBSD Foundation.
                    FreeBSD 12.4-STABLE r372994 GENERIC arm
                    FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sgw @stephenw10
                      last edited by sgw

                      @stephenw10 forgive me following up this old thread. I actually didn't try anything related since back then.

                      Now with my failed beta-upgrade etc I want to set up some minimal appliance just to get me online again quickly for rescue research etc ;-)

                      I am currently running a firmware recovery to one of these SG-1000 boxes. The file used brings pfSense Plus 21.02p1 ... I am not sure if I could get anything later by filing a ticket, but anyway: even the latest release for that platform is unsupported (and unsafe?) for a long time now.

                      The recovery stick boots and writes stuff to the internal SD (?) mmcsd1. Is that correct? Because it takes a while, shuts down, tells me to remove the recovery stick and cycle the power. After that no booting ...

                      EDIT: ah, remove that extra SD. Now: mmcsd0

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        You can get a 22.05 recovery image but that was the last version that built for it. You should still be able to upgrade to that too.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.