From nobody Sat Oct 15 05:27:33 2022 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MqBbd17BXz4gCQN for ; Sat, 15 Oct 2022 05:27:41 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MqBbc0288z43JH for ; Sat, 15 Oct 2022 05:27:40 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-yb1-xb2c.google.com with SMTP id e62so7825017yba.6 for ; Fri, 14 Oct 2022 22:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wcZtnhojg3fFmRzOb9NEy48l0L2dRY/p669CeyI6weo=; b=XAgYzLkxFnGRXnFJaJw7/ua+ppLNTBG88ZmFsQReU4Yz80cm4Z7y2y4QhDOpGtOUE5 9QtIDYXeIaJLDpsPFle9u86GB6c6Js7M55LcAoEvTr7Sdm7sS2YRwVDFcYAIjweL++WP lSywfITZ2QWCE6Pkk//c6QWAMB2fBZqNeC0faDxCWI7kZF9OnpYpkqDozR984Rnlt/oQ ry2AclzynjrGY5XpH9rroLf9+bPcF8b8N2LMZw5TcXflp6WbjaneIc7FKqKtL7Y6FZkf LQxshCfMynZ2S2sdcyIIz7+fgHDauNbDPgA++D1r86wxgaAl3lt54vxHDbKrRYuM254h SCgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wcZtnhojg3fFmRzOb9NEy48l0L2dRY/p669CeyI6weo=; b=VqyJkE/n8syuvsT0WbCfNJrtdcYU1lsbmUnGb454WQ+oPvAEzlf5ubBvN3qqQTcEcl MZ/2hE47DifomASpjLwftMt795QZkk32zcrXYaAJ0I1eS3Ta8LbzgWVMYQXsVz1/YYAX O6XP8Hh9xJdnpvdI/eh6VhWMzp/0ND4S/xi9aTYefH+JfWJHuFRrGC+skNnwHn3Ao7Ot SRyiL+T+vOwfSdDaflz6MlqdtvhQ2QJKv/ffBKKdYRgfZs0RHp+S3GTyp9QjT/5+TMSj 8rk8yJQ7/3OBoBZ+Nk35rfaGX0CN3+QFO2OFQ92KBkR3rpVlHuah+ad2p+2BFODdBHVp uTvQ== X-Gm-Message-State: ACrzQf1TBZPpFX6WhnukKjVF4dWSiAUaR8da6cyPwaYewaDJchPWtZYN MFqxfVowyGqiSK/Ig58ojqSXEhpsIg0AnKWRT5ga8tbWmdM= X-Google-Smtp-Source: AMsMyM6TklcEthjBaVymSvON0lDQSmu+RZrmHKS0mBMrOV/XRBNSNRnWTAfCtifF7VRjjXpbRK9qRamGbGSMV9ZKbDc= X-Received: by 2002:a5b:1c3:0:b0:6ac:c87f:3dc8 with SMTP id f3-20020a5b01c3000000b006acc87f3dc8mr912739ybp.547.1665811659017; Fri, 14 Oct 2022 22:27:39 -0700 (PDT) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 References: <1630032913.129053.1665400270350@localhost> <896114746.217581.1665409172569@localhost> In-Reply-To: From: Archimedes Gaviola Date: Sat, 15 Oct 2022 13:27:33 +0800 Message-ID: Subject: Re: UFS in a USB flash drive (ufs:/dev/da0s1a) To: Ronald Klop Cc: freebsd-fs@freebsd.org Content-Type: multipart/alternative; boundary="00000000000032d0fe05eb0c00cd" X-Rspamd-Queue-Id: 4MqBbc0288z43JH X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=XAgYzLkx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedes.gaviola@gmail.com designates 2607:f8b0:4864:20::b2c as permitted sender) smtp.mailfrom=archimedes.gaviola@gmail.com X-Spamd-Result: default: False [-2.92 / 15.00]; HTTP_TO_IP(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.989]; NEURAL_HAM_MEDIUM(-0.93)[-0.927]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b2c:from]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TAGGED_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000032d0fe05eb0c00cd Content-Type: text/plain; charset="UTF-8" On Tue, Oct 11, 2022 at 3:00 AM Ronald Klop wrote: > On 10/10/22 18:15, Archimedes Gaviola wrote: > > > > > > On Mon, Oct 10, 2022 at 9:39 PM Ronald Klop > wrote: > > > > *Van:* Archimedes Gaviola archimedes.gaviola@gmail.com>> > > *Datum:* maandag, 10 oktober 2022 14:09 > > *Aan:* Ronald Klop ronald-lists@klop.ws>> > > *CC:* freebsd-fs@freebsd.org > > *Onderwerp:* Re: UFS in a USB flash drive (ufs:/dev/da0s1a) > > > > On Mon, Oct 10, 2022 at 7:11 PM Ronald Klop < > ronald-lists@klop.ws > wrote: > > > > *Van:* Archimedes Gaviola > > > *Datum:* maandag, 10 oktober 2022 12:40 > > *Aan:* freebsd-fs@freebsd.org > > > *Onderwerp:* UFS in a USB flash drive (ufs:/dev/da0s1a) > > > > Hi, > > I have a scenario (see below) after which the FreeBSD > kernel boots-up in my embedded system, it is looking for the root > filesystem. Now, I want to build one from scratch based on the examples > below using a UFS filesystem in a USB flash drive -> ufs:/dev/da0s1a. Are > there any available step-by-step reference(s) that can help and guide me in > the building process? > > ... > > Trying to mount root from cd9660:/dev/map/rootfs.uzip > []... > > mountroot: waiting for device /dev/map/rootfs.uzip... > > Mounting from cd9660:/dev/map/rootfs.uzip failed with > error 19. > > > > Loader variables: > > > > Manual root filesystem specification: > > : [options] > > Mount using filesystem > > and with the specified (optional) option list. > > > > eg. ufs:/dev/da0s1a > > zfs:tank > > cd9660:/dev/cd0 ro > > (which is equivalent to: mount -t cd9660 -o > ro /dev/cd0 /) > > > > ? List valid disk boot devices > > . Yield 1 second (for background tasks) > > Abort manual input > > > > mountroot> > > ... > > Thanks and best regards, > > Archimedes > > > > > > > > Hi, > > > > From your mail I don't really understand what your level of > skills with FreeBSD is. I assume the scenario with cd9660 and error 19 is > not your biggest concern. You just want to install on a USB flash drive. > > > > Does this help: > https://docs.freebsd.org/en/books/handbook/bsdinstall/ < > https://docs.freebsd.org/en/books/handbook/bsdinstall/> ? > > > > Regards, > > Ronald. > > > > Hi Ronald, > > No, it's not about installing FreeBSD from scratch using a USB > flash drive as I already flashed and installed the FreeBSD kernel in the > SPI flash RAM using trivial FTP in the U-boot loader. What I want is > mounting the root filesystem that's been created in the USB flash drive > (this hardware has USB port) using the ufs:/dev/da0s1a method but before > that happens, I need to create that root filesystem (/) from scratch in the > USB flash drive so that it can be mounted right after the kernel is loaded. > > Not sure what level I am as a FreeBSD user but I can install and > setup FreeBSD system, networking, install packages and re-build or compile > a kernel. > > Thanks and best regards, > > Archimedes > > > > > > > > Hi, > > > > To create the root filesystem on USB you can use several methods. 2 > of them are like this: > > * the "bsdinstall" tool > > * or > > - fetch > https://download.freebsd.org/ftp/snapshots/arm64/13.1-STABLE/base.txz < > https://download.freebsd.org/ftp/snapshots/arm64/13.1-STABLE/base.txz> > (change the URL if you need a different architecture or FreeBSD version) > > - newfs /dev/da0s1a (NB: this device name might be different > depending on the devices already available in your system) > > - mount /dev/da0s1a /mnt > > - tar xf -C /mnt /base.txz > > - umount /mnt > > > > This is from the top of my head, so I might have forgotten something. > > > > Than plugin the USB on your embedded system and at the prompt type: > > mountroot> ufs:/dev/da0s1a > > > > If it does not work type a "?" question mark to see what filesystems > are available. > > > > If you want to persist the FS used as root filesystem it depends on > the system you are running. > > You can hardcode the root FS in the kernel you saved in the SPI RAM. > But depending on the system it is also possible to pass the rootfs in a > variable in loader.conf or some other place from which the kernel can read > variables. > > > > What kind of system are you running? > > > > Hope this helps. > > > > Regards, > > Ronald. > > > > > > Hi Ronald, > > > > Thanks for sharing the information, really appreciate it! I will try the > newfs (newfs /dev/da0s1a) with my USB drive and then afterwards mount it to > the host system. I can't fetch the base system since I'm cross-compiling a > 32-bit MIPS (mipsel) system in an older FreeBSD 11.4 x86_64 release. I just > downloaded the kernel source (/usrc/src). What I have at the moment is a > successful cross-build of a system using the build command below; > > > > cd /usr/src; make KERNCONF=RT305X TARGET=mips TARGET_ARCH=mipsel > kernel-toolchain buildkernel buildworld installkernel installworld > distribution DESTDIR=/tmp/rt3050 > > > > that instead of using the DESTDIR= /tmp/rt3050, I will try replacing it > with a mounted /dev/da0s1a. And then let me also try building without the > kernel. > Hi Ronald, Ah, yes, with DESTDIR you will have same effect. > Before you can newfs the USB drive you need to partition it using gpart. > Some example usages can be found here: > https://www.freebsd.org/cgi/man.cgi?gpart(8)#EXAMPLES > For flash drives it is often a good idea to align on 1M by adding '-a 1M' > to gpart. > And GPT is often more simple to use than MBR. As you use the kernel to > load the USB drive I'm pretty sure GPT is supported. > Thanks for providing further valuable information! These are the missing pieces of the root filesystem that I want. Maybe I missed something on GPT with gpart as it doesn't work but with MBR it did. With GPT, root@:~ # /sbin/gpart destroy -F da0 da0 destroyed root@:~ # gpart create -s GPT da0 da0 created root@:~ # /sbin/gpart add -t freebsd-ufs -a 1M -s 8G da0 da0p1 added root@:~ # /sbin/newfs /dev/da0p1 /dev/da0p1: 7168.0MB (14680064 sectors) block size 32768, fragment size 4096 using 12 cylinder groups of 626.09MB, 20035 blks, 80256 inodes. super-block backups (for fsck_ffs -b #) at: 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832 root@:~ # gpart show ... => 40 15523760 da0 GPT (7.4G) 40 2008 - free - (1.0M) 2048 14680064 1 freebsd-ufs (7.0G) 14682112 841688 - free - (411M) Upon kernel boot-up, only da0 is present in the list. ... mountroot> ? List of GEOM managed disk devices: da0 flash/spi0 mountroot> ufs:/dev/da0p1 Trying to mount root from ufs:/dev/da0p1 []... mountroot: waiting for device /dev/da0p1... Mounting from ufs:/dev/da0p1 failed with error 19. ... With MBR, root@:~ # /sbin/gpart create -s MBR da0 da0 created root@:~ # /sbin/gpart add -t freebsd -s 14G da0 da0s1 added root@:~ # /sbin/gpart set -a active -i 1 da0 active set on da0s1 root@:~ # /sbin/gpart bootcode -b /boot/boot0 da0 bootcode written to da0 root@:~ # /sbin/gpart create -s BSD -n 20 da0s1 da0s1 created root@:~ # /sbin/gpart add -t freebsd-ufs -s 8G da0s1 da0s1a added root@:~ # /sbin/gpart bootcode -b /boot/boot da0s1 bootcode written to da0s1 root@:~ # root@:~ # gpart show ... => 63 30031809 da0 MBR (14G) 63 29360128 1 freebsd [active] (14G) 29360191 671681 - free - (328M) => 0 29360128 da0s1 BSD (14G) 0 16777216 1 freebsd-ufs (8.0G) 16777216 12582912 - free - (6.0G) root@:~ # /sbin/newfs /dev/da0s1a /dev/da0s1a: 8192.0MB (16777216 sectors) block size 32768, fragment size 4096 using 14 cylinder groups of 626.09MB, 20035 blks, 80256 inodes. super-block backups (for fsck_ffs -b #) at: 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832, 15387072, 16669312 and upon kernel boot-up, da0s1a slice is detected, that's why it's mountable. ... mountroot> ? List of GEOM managed disk devices: da0s1a da0s1 da0 flash/spi0 mountroot> ufs:/dev/da0s1a Trying to mount root from ufs:/dev/da0s1a []... mountroot: unable to remount devfs under /dev (error 2) mountroot: unable to unlink /dev/dev (error 2) Warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init ... > > I had a system on 11.2 which used this option in the kernel config file. > > options ROOTDEVNAME=\"ufs:/dev/da0s1a\" > > Thanks to this kernel config option I added it as it's very useful, once called during kernel boot-up it automatically mounts the root filesystem in the USB flash drive. It's like a binder between the kernel and the root filesystem. > > > Happy hacking. > Let us know if it all works out. > Yes, thanks a lot! I've made it. Here's the flow of the booting process from U-Boot loader up to login. I never touch anything yet on adding the /etc/fstab. U-Boot 1.1.3 Rev 0.3 by WErt(WErt) 4PDA (May 19 2016 - 14:41:04) Board: Ralink APSoC DRAM: 32 MB ****************************** Software System Reset Occurred ****************************** Ralink SPI flash driver, SPI clock: 15MHz spi device id: c2 20 16 c2 20 (2016c220) find flash: MX25L3205D .. ============================================ Ralink U-Boot Version: 5.0.0.5 -------------------------------------------- ASIC 5350_MP (Port5<->None) DRAM_CONF_FROM: Boot-Strapping DRAM_TYPE: SDRAM DRAM_SIZE: 256 Mbits DRAM_WIDTH: 16 bits DRAM_TOTAL_WIDTH: 16 bits TOTAL_MEMORY_SIZE: 32 MBytes Flash component: SPI Flash Date:May 19 2016 Time:14:41:04 ============================================ icache: sets:256, ways:4, linesz:32, total:32768 dcache: sets:128, ways:4, linesz:32, total:16384 #### The CPU freq = 360 MHZ #### estimate memory size = 32 Mbytes Please choose the operation: 0: Load system code then write to Flash via Serial. 1: Load system code to SDRAM via TFTP. 2: Load system code then write to Flash via TFTP. 3: Boot system code via Flash (default). 4: Enter boot command line interface. 5: Load system code then write to Flash via USB Storage. 6: Load U-Boot code then write to Flash via USB Storage. 7: Load U-Boot code then write to Flash via Serial. 8: Load U-Boot code to SDRAM via TFTP. 9: Load U-Boot code then write to Flash via TFTP. 0 . 3: System Boot system code via Flash. ## Checking image at bc050000 ... . Image Name: FreeBSD Kernel UC Image8 Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 3675932 Bytes = 3.5 MB Load Address: 80001100 Entry Point: 80001100 ......................................................... Verifying Checksum ... OK OK No initrd ## Transferring control to Linux (at address 80001100) ... ## Giving linux memsize in MB, 32 Starting kernel ... U-Boot args (from 0 args): None Environment: memsize=32 initrd_start=0x00000000 initrd_size=0x0 flash_start=0x00000000 flash_size=0x400000 entry: mips_init() Cache info: picache_stride = 4096 picache_loopcount = 8 pdcache_stride = 4096 pdcache_loopcount = 4 cpu0: MIPS Technologies processor v76.150 MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) L1 i-cache: 4 ways of 256 sets, 32 bytes per line L1 d-cache: 4 ways of 128 sets, 32 bytes per line L2 cache: disabled Config1=0xbea3319e Config2=0x80000000 Config3=0x420 Physical memory chunk(s): 0x3b3000 - 0x1ffffff, 29675520 bytes (7245 pages) Maxmem is 0x2000000 Copyright (c) 1992-2020 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 11.4-RELEASE #20: Fri Oct 14 15:25:17 UTC 2022 root@:/usr/obj/mips.mipsel/usr/src/sys/RT5350_USB mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0x803acf50. real memory = 33554432 (32768K bytes) Physical memory chunk(s): 0x0043f000 - 0x01f44fff, 28336128 bytes (6918 pages) avail memory = 27901952 (26MB) ULE: setup cpu 0 random: entropy device external interface null: mem: nexus0: random: harvesting attach, 8 bytes (4 bits) from nexus0 clock0: on nexus0 Timecounter "MIPS32" frequency 180000000 Hz quality 800 Event timer "MIPS32" frequency 180000000 Hz quality 800 random: harvesting attach, 8 bytes (4 bits) from clock0 obio0 at mem 0x10000000-0x1fffffff on nexus0 rt305x_sysctl0: at mem 0x10000000-0x100000ff irq 0 on obio0 Chip ID: "RT5350 " SYSCTL_SYSCFG=0x103000 random: harvesting attach, 8 bytes (4 bits) from rt305x_sysctl0 rt305x_ic0: at mem 0x10000200-0x100002ff on obio0 random: harvesting attach, 8 bytes (4 bits) from rt305x_ic0 uart0: at mem 0x10000500-0x100005ff irq 5 on obio0 uart0: fast interrupt uart0: PPS capture mode: DCDinvalid random: harvesting attach, 8 bytes (4 bits) from uart0 spi0: at mem 0x10000b00-0x10000bff on obio0 spibus0: on spi0 mx25l0: at cs 0 mode 0 on spibus0 mx25l0: device type mx25ll32, size 4096K in 64 sectors of 64K, erase size 64K random: harvesting attach, 8 bytes (4 bits) from mx25l0 random: harvesting attach, 8 bytes (4 bits) from spibus0 random: harvesting attach, 8 bytes (4 bits) from spi0 uart1: at mem 0x10000c00-0x10000cff irq 12 on obio0 uart1: console (115200,n,8,1) uart1: fast interrupt uart1: PPS capture mode: DCDinvalid random: harvesting attach, 8 bytes (4 bits) from uart1 ehci0: at mem 0x101c0000-0x101c0fff irq 18 on obio0 usbus0: EHCI version 1.0 usbus0 on ehci0 ehci0: usbpf: Attached random: harvesting attach, 8 bytes (4 bits) from usbus0 random: harvesting attach, 8 bytes (4 bits) from ehci0 random: harvesting attach, 8 bytes (4 bits) from obio0 rt0: at mem 0x10100000-0x1010ffff irq 3 on nexus0 rt0: RT5350 Ethernet MAC (rev 0x00000000) rt0: use hardcoded 00:18:e7:d5:83:90 macaddr rt0: Ethernet address: 00:18:e7:d5:83:90 random: harvesting attach, 8 bytes (4 bits) from rt0 Device configuration finished. Timecounters tick every 10.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 512 GEOM: new disk flash/spi0 usbus0: 480Mbps High Speed USB v2.0 Trying to mount root from ufs:/dev/da0s1a []... Root mount waiting for: usbus0 ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 1 port with 1 removable, self powered random: harvesting attach, 8 bytes (4 bits) from uhub0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.2: at usbus0 umass0 on uhub0 umass0: on usbus0 umass0:0:0: Attached to scbus0 random: harvesting attach, 8 bytes (4 bits) from umass0 mountroot: waiting for device /dev/da0s1a... pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0 pass0: Removable Direct Access SPC-4 SCSI device pass0: Serial Number 4C530000070424102200 pass0: 40.000MB/s transfers GEOM: new disk da0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SPC-4 SCSI device da0: Serial Number 4C530000070424102200 da0: 40.000MB/s transfers da0: 14664MB (30031872 512 byte sectors) da0: quirks=0x2 da0: Delete methods: Warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init Setting hostuuid: 4e22d8d6-4bce-11ed-b0aa-0018e7d58390. Setting hostid: 0x351daf11. eval: cannot open /etc/fstab: No such file or directory fstab: /etc/fstab:0: No such file or directory Warning! No /etc/fstab: skipping disk checks. fstab: /etc/fstab:0: No such file or directory Mounting local filesystems:fstab: /etc/fstab:0: No such file or directory . ELF ldconfig path: /lib /usr/lib /usr/lib/compat random: unblocking device. /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy: . lo0: link state changed to UP Starting Network: lo0. lo0: flags=8049 metric 0 mtu 16384 options=680003 inet 127.0.0.1 netmask 0xff000000 groups: lo Starting devd. add host 127.0.0.1: gateway lo0 fib 0: route already in table fstab: /etc/fstab:0: No such file or directory fstab: /etc/fstab:0: No such file or directory Creating and/or trimming log files. Starting syslogd. Clearing /tmp (X related). Updating motd:. Mounting late filesystems:fstab: /etc/fstab:0: No such file or directory . fstab: /etc/fstab:0: No such file or directory Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. eval: cannot open /etc/fstab: No such file or directory Starting background file system checks in 60 seconds. Fri Oct 14 20:17 FreeBSD/mips (Amnesiac) (ttyu1) login: root Last login: Fri Oct 14 16:15:17 on ttyu1 Oct 14 20:49:08 login: ROOT LOGIN (root) ON ttyu1 FreeBSD 11.4-RELEASE (RT5350_USB) #20: Fri Oct 14 15:25:17 UTC 2022 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier Edit /etc/motd to change this login announcement. root@:~ # root@:~ # uname -a FreeBSD 11.4-RELEASE FreeBSD 11.4-RELEASE #20: Fri Oct 14 15:25:17 UTC 2022 root@:/usr/obj/mips.mipsel/usr/src/sys/RT5350_USB mips I tried adding an IP address to the rt0 network interface including default and it works as well. root@:~ # ifconfig rt0: flags=8802 metric 0 mtu 1500 options=b ether 00:18:e7:d5:83:90 hwaddr 00:18:e7:d5:83:90 media: Ethernet 100baseTX status: active lo0: flags=8049 metric 0 mtu 16384 options=680003 inet 127.0.0.1 netmask 0xff000000 groups: lo root@:~ # root@:~ # ifconfig rt0 inet 192.168.1.215 netmask 255.255.255.0 root@:~ # ifconfig rt0 rt0: flags=8843 metric 0 mtu 1500 options=b ether 00:18:e7:d5:83:90 hwaddr 00:18:e7:d5:83:90 inet 192.168.1.215 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet 100baseTX status: active root@:~ # root@:~ # route add -inet default 192.168.1.1 add net default: gateway 192.168.1.1 root@:~ # netstat -rn Routing tables Internet: Destination Gateway Flags Netif Expire default 192.168.1.1 UGS rt0 127.0.0.1 link#2 UH lo0 192.168.1.0/24 link#1 U rt0 192.168.1.215 link#1 UHS lo0 root@:~ # root@:~ # traceroute 216.58.200.238 <--------- google.com IP traceroute to 216.58.200.238 (216.58.200.238), 64 hops max, 40 byte packets 1 smartbrosettings.net (192.168.1.1) 1.727 ms 0.888 ms 0.786 ms 2 * * * 3 * * * 4 * * * 5 * * * 6 27.110.255.33 (27.110.255.33) 35.536 ms 26.458 ms 15.635 ms 7 210.213.130.15.static.pldt.net (210.213.130.15) 17.515 ms 210.213.130.13.static.pldt.net (210.213.130.13) 18.300 ms 210.213.130.15.static.pldt.net (210.213.130.15) 18.509 ms 8 210.213.130.7.static.pldt.net (210.213.130.7) 57.830 ms 60.194 ms 210.213.130.97.static.pldt.net (210.213.130.97) 51.395 ms 9 74.125.118.24 (74.125.118.24) 71.609 ms 72.14.195.168 (72.14.195.168) 60.027 ms 44.248 ms 10 * * * 11 66.249.94.222 (66.249.94.222) 61.563 ms 142.251.245.20 (142.251.245.20) 61.087 ms 65.270 ms 12 108.170.241.112 (108.170.241.112) 58.601 ms 42.972 ms 108.170.241.80 (108.170.241.80) 77.755 ms 13 209.85.250.133 (209.85.250.133) 63.080 ms hkg07s47-in-f14.1e100.net (216.58.200.238) 73.084 ms 86.918 ms root@:~ # root@:~ # ping -c 5 216.58.200.238 PING 216.58.200.238 (216.58.200.238): 56 data bytes 64 bytes from 216.58.200.238: icmp_seq=0 ttl=55 time=60.700 ms 64 bytes from 216.58.200.238: icmp_seq=1 ttl=55 time=62.175 ms 64 bytes from 216.58.200.238: icmp_seq=2 ttl=55 time=58.768 ms 64 bytes from 216.58.200.238: icmp_seq=3 ttl=55 time=57.592 ms 64 bytes from 216.58.200.238: icmp_seq=4 ttl=55 time=61.002 ms --- 216.58.200.238 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 57.592/60.047/62.175/1.645 ms root@:~ # Checking the default running processes. root@:~ # top -S last pid: 641; load averages: 0.31, 0.33, 0.37 up 0+00:39:46 20:55:54 27 processes: 2 running, 24 sleeping, 1 waiting CPU: 0.4% user, 0.0% nice, 0.9% system, 0.0% interrupt, 98.7% idle Mem: 10M Active, 7120K Inact, 8948K Wired, 3100K Buf, 1088K Free Swap: PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10 root 1 155 ki31 0K 8K RUN 38:00 98.89% idle 641 root 1 20 0 7912K 2624K RUN 0:00 0.82% top 11 root 9 -52 - 0K 72K WAIT 0:03 0.22% intr 4 root 1 -16 - 0K 8K - 0:01 0.03% rand_harvestq 0 root 7 -16 - 0K 56K swapin 0:00 0.03% kernel 9 root 3 -16 - 0K 24K psleep 0:00 0.00% pagedaemon 18 root 1 16 - 0K 8K syncer 0:00 0.00% syncer 15 root 1 -16 - 0K 8K - 0:00 0.00% bufspacedaemon 16 root 1 -16 - 0K 8K psleep 0:00 0.00% bufdaemon 17 root 1 -16 - 0K 8K vlruwt 0:00 0.00% vnlru 13 root 5 -68 - 0K 40K - 0:01 0.00% usb 615 root 1 20 0 7288K 2624K pause 0:01 0.00% csh 535 root 1 20 0 9756K 3020K select 0:00 0.00% sendmail 12 root 3 -8 - 0K 24K - 0:00 0.00% geom 2 root 2 -16 - 0K 16K - 0:00 0.00% cam 585 root 1 21 0 6896K 1676K wait 0:00 0.00% login 336 root 1 20 0 6268K 1220K select 0:00 0.00% syslogd 542 root 1 37 0 6304K 1152K nanslp 0:00 0.00% cron 1 root 1 22 0 5504K 492K wait 0:00 0.00% init 538 smmsp 1 20 0 9756K 1668K pause 0:00 0.00% sendmail 278 root 1 20 0 7084K 460K select 0:00 0.00% devd 5 root 1 -16 - 0K 8K - 0:00 0.00% soaiod1 8 root 1 -16 - 0K 8K - 0:00 0.00% soaiod4 6 root 1 -16 - 0K 8K - 0:00 0.00% soaiod2 7 root 1 -16 - 0K 8K - 0:00 0.00% soaiod3 14 root 1 155 ki31 0K 8K pgzero 0:00 0.00% pagezero 3 root 1 -16 - 0K 8K mx25jq 0:00 0.00% task: mx25l flash This device is the M1 router (a.k.a. 11V-5A or A5-V11) with Ralink RT5350F SoC 360Mhz CPU with built-in USB port, Wi-Fi and an Ethernet LAN card. It has a default Linux 2.6 OS with busybox accessible via telnet. It has been described here from OpenWRT https://openwrt.org/toh/unbranded/a5-v11. It's as little as a cigarette lighter having 6cm. x 2cm. board dimension. Again, thanks a lot Ronald! Best regards, Archimedes --00000000000032d0fe05eb0c00cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Oct 11, 2022 at 3:00 AM Ronal= d Klop <ronald-lists@klop.ws= > wrote:
On 1= 0/10/22 18:15, Archimedes Gaviola wrote:
>
>
> On Mon, Oct 10, 2022 at 9:39 PM Ronald Klop <ronald-lists@klop.ws <mailto:ronald-lists@klop.ws= >> wrote:
>
>=C2=A0 =C2=A0 =C2=A0*Van:* Archimedes Gaviola <archimedes.gaviola@gmail.com <mailto:archimedes.gaviola@gmail.com>>
>=C2=A0 =C2=A0 =C2=A0*Datum:* maandag, 10 oktober 2022 14:09
>=C2=A0 =C2=A0 =C2=A0*Aan:* Ronald Klop <ronald-lists@klop.ws <mailto:ronald-lists@klop.ws= >>
>=C2=A0 =C2=A0 =C2=A0*CC:* freebsd-fs@freebsd.org <mailto:freebsd-fs@freebsd.org>
>=C2=A0 =C2=A0 =C2=A0*Onderwerp:* Re: UFS in a USB flash drive (ufs:/dev= /da0s1a)
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0On Mon, Oct 10, 2022 at 7:11 PM Ronal= d Klop <ronald= -lists@klop.ws <mailto:ronald-lists@klop.ws>> wrote:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Van:* Archimedes Gavio= la <ar= chimedes.gaviola@gmail.com <mailto:archimedes.gaviola@gmail.com>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Datum:* maandag, 10 ok= tober 2022 12:40
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Aan:* freebsd-fs@freebsd.org <= mailto:freebsd-= fs@freebsd.org>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*Onderwerp:* UFS in a U= SB flash drive (ufs:/dev/da0s1a)
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Hi,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I have a = scenario (see below) after which the FreeBSD kernel boots-up in my embedded= system, it is looking for the root filesystem. Now, I want to build one fr= om scratch based on the examples below using a UFS filesystem in a USB flas= h drive -> ufs:/dev/da0s1a. Are there any available step-by-step referen= ce(s) that can help and guide me in the building process?
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Trying to= mount root from cd9660:/dev/map/rootfs.uzip []...
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mountroot= : waiting for device /dev/map/rootfs.uzip...
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Mounting = from cd9660:/dev/map/rootfs.uzip failed with error 19.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Loader va= riables:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Manual ro= ot filesystem specification:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &= lt;fstype>:<device> [options]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 Mount <device> using filesystem <fstype>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 and with the specified (optional) option list.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 eg. ufs:/dev/da0s1a
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 zfs:tank
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 cd9660:/dev/cd0 ro
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 (which is equivalent to: mount -t cd9660 -o ro = /dev/cd0 /)
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ?= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 List valid disk boot devi= ces
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Yield 1 second (for backg= round tasks)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &= lt;empty line> =C2=A0 =C2=A0Abort manual input
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mountroot= >
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Thanks an= d best regards,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Archimede= s
>
>
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Hi,
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 From your mail I don&#= 39;t really understand what your level of skills with FreeBSD is. I assume = the scenario with cd9660 and error 19 is not your biggest concern. You just= want to install on a USB flash drive.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Does this help: https://docs.freebsd.org/en/books/handbook/bsdinstall= / <https://docs.freebsd.org/en/books/ha= ndbook/bsdinstall/> ?
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Regards,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ronald.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Hi Ronald,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0No, it's not about installing Fre= eBSD from scratch using a USB flash drive as I already flashed and installe= d the FreeBSD kernel in the SPI flash RAM using trivial FTP in the U-boot l= oader. What I want is mounting the root filesystem that's been created = in the USB flash drive (this hardware has USB port) using the ufs:/dev/da0s= 1a method but before that happens, I need to create that root filesystem (/= ) from scratch in the USB flash drive so that it can be mounted right after= the kernel is loaded.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Not sure what level I am as a FreeBSD= user but I can install and setup FreeBSD system, networking, install packa= ges and re-build or compile a kernel.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Thanks and best regards,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Archimedes
>
>
>
>=C2=A0 =C2=A0 =C2=A0Hi,
>
>=C2=A0 =C2=A0 =C2=A0To create the root filesystem on USB you can use se= veral methods. 2 of them are like this:
>=C2=A0 =C2=A0 =C2=A0* the "bsdinstall" tool
>=C2=A0 =C2=A0 =C2=A0* or
>=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 - fetch https://download.freebsd.org/ftp/snapshots/arm64/13.1-= STABLE/base.txz <https:/= /download.freebsd.org/ftp/snapshots/arm64/13.1-STABLE/base.txz> (cha= nge the URL if you need a different architecture or FreeBSD version)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 - newfs /dev/da0s1a=C2=A0=C2=A0= =C2=A0 (NB: this device name might be different depending on the devices al= ready available in your system)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 - mount /dev/da0s1a /mnt
>=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 - tar xf -C /mnt <path-to>= ;/base.txz
>=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 - umount /mnt
>
>=C2=A0 =C2=A0 =C2=A0This is from the top of my head, so I might have fo= rgotten something.
>
>=C2=A0 =C2=A0 =C2=A0Than plugin the USB on your embedded system and at = the prompt type:
>=C2=A0 =C2=A0 =C2=A0mountroot> ufs:/dev/da0s1a
>
>=C2=A0 =C2=A0 =C2=A0If it does not work type a "?" question m= ark to see what filesystems are available.
>
>=C2=A0 =C2=A0 =C2=A0If you want to persist the FS used as root filesyst= em it depends on the system you are running.
>=C2=A0 =C2=A0 =C2=A0You can hardcode the root FS in the kernel you save= d in the SPI RAM. But depending on the system it is also possible to pass t= he rootfs in a variable in loader.conf or some other place from which the k= ernel can read variables.
>
>=C2=A0 =C2=A0 =C2=A0What kind of system are you running?
>
>=C2=A0 =C2=A0 =C2=A0Hope this helps.
>
>=C2=A0 =C2=A0 =C2=A0Regards,
>=C2=A0 =C2=A0 =C2=A0Ronald.
>
>
> Hi Ronald,
>
> Thanks for sharing the information, really appreciate it! I will try t= he newfs (newfs /dev/da0s1a) with my USB drive and then afterwards mount it= to the host system. I can't fetch the base system since I'm cross-= compiling a 32-bit MIPS (mipsel) system in an older FreeBSD 11.4 x86_64 rel= ease. I just downloaded the kernel source (/usrc/src). What I have at the m= oment is a successful cross-build of a system using the build command below= ;
>
> cd /usr/src; make KERNCONF=3DRT305X TARGET=3Dmips TARGET_ARCH=3Dmipsel= kernel-toolchain buildkernel buildworld installkernel installworld distrib= ution DESTDIR=3D/tmp/rt3050
>
> that instead of using the DESTDIR=3D /tmp/rt3050, I will try replacing= it with a mounted /dev/da0s1a. And then let me also try building without t= he kernel.

Hi Ronald,

Ah, yes, with DESTDIR you will have same effect.
Before you can newfs the USB drive you need to partition it using gpart. Some example usages can be found here: https://= www.freebsd.org/cgi/man.cgi?gpart(8)#EXAMPLES
For flash drives it is often a good idea to align on 1M by adding '-a 1= M' to gpart.
And GPT is often more simple to use than MBR. As you use the kernel to load= the USB drive I'm pretty sure GPT is supported.
<= br>
Thanks for providing further valuable information! These are = the missing pieces of the root filesystem that I want. Maybe I missed somet= hing on GPT with gpart as it doesn't work but with MBR it did.

With GPT,

root@:~ # /sbin/gpart destroy -F da0
d= a0 destroyed
root@:~ # gpart create -s GPT da0
da0 created
root@:~= # /sbin/gpart add -t freebsd-ufs -a 1M -s 8G da0
da0p1 added
root@:~= # /sbin/newfs /dev/da0p1
/dev/da0p1: 7168.0MB (14680064 sectors) block = size 32768, fragment size 4096
=C2=A0 =C2=A0 =C2=A0 =C2=A0 using 12 cyli= nder groups of 626.09MB, 20035 blks, 80256 inodes.
super-block backups (= for fsck_ffs -b #) at:
=C2=A0192, 1282432, 2564672, 3846912, 5129152, 64= 11392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832

root= @:~ # gpart show
...
=3D> =C2=A0 =C2=A0 =C2=A040 =C2=A015523760 = =C2=A0da0 =C2=A0GPT =C2=A0(7.4G)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 40 =C2=A0 = =C2=A0 =C2=A02008 =C2=A0 =C2=A0 =C2=A0 - free - =C2=A0(1.0M)
=C2=A0 =C2= =A0 =C2=A0 2048 =C2=A014680064 =C2=A0 =C2=A01 =C2=A0freebsd-ufs =C2=A0(7.0G= )
=C2=A0 14682112 =C2=A0 =C2=A0841688 =C2=A0 =C2=A0 =C2=A0 - free - =C2= =A0(411M)

Upon kernel boot-up, only da0 is present in the list.
...
mountroot> ?

List of GEOM managed disk device= s:
=C2=A0 da0 flash/spi0

mountroot> ufs:/dev/da0p1
Trying t= o mount root from ufs:/dev/da0p1 []...
mountroot: waiting for device /de= v/da0p1...
Mounting from ufs:/dev/da0p1 failed with error 19.
= ...

With MBR,

root@:~ # /sbin/gpart create = -s MBR da0
da0 created
root@:~ # /sbin/gpart add -t freebsd -s 14G da= 0
da0s1 added
root@:~ # /sbin/gpart set -a active -i 1 da0
active = set on da0s1
root@:~ # /sbin/gpart bootcode -b /boot/boot0 da0
bootco= de written to da0
root@:~ # /sbin/gpart create -s BSD -n 20 da0s1
da0= s1 created
root@:~ # /sbin/gpart add -t freebsd-ufs -s 8G da0s1
da0s1= a added
root@:~ # /sbin/gpart bootcode -b /boot/boot da0s1
bootcode w= ritten to da0s1
root@:~ #
root@:~ # gpart show
...
=3D> =C2= =A0 =C2=A0 =C2=A063 =C2=A030031809 =C2=A0da0 =C2=A0MBR =C2=A0(14G)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 63 =C2=A029360128 =C2=A0 =C2=A01 =C2=A0freebsd =C2= =A0[active] =C2=A0(14G)
=C2=A0 29360191 =C2=A0 =C2=A0671681 =C2=A0 =C2= =A0 =C2=A0 - free - =C2=A0(328M)

=3D> =C2=A0 =C2=A0 =C2=A0 0 =C2= =A029360128 =C2=A0da0s1 =C2=A0BSD =C2=A0(14G)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A00 =C2=A016777216 =C2=A0 =C2=A0 =C2=A01 =C2=A0freebsd-ufs =C2=A0(8= .0G)
=C2=A0 16777216 =C2=A012582912 =C2=A0 =C2=A0 =C2=A0 =C2=A0 - free -= =C2=A0(6.0G)

root@:~ # /sbin/newfs /dev/da0s1a
/dev/da0s1a: 8192= .0MB (16777216 sectors) block size 32768, fragment size 4096
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 using 14 cylinder groups of 626.09MB, 20035 blks, 80256 i= nodes.
super-block backups (for fsck_ffs -b #) at:
=C2=A0192, 1282432= , 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352,= 12822592, 14104832, 15387072, 16669312

and up= on kernel boot-up,=20 da0s1a slice is detected, that's why it's mountable.
...<= br>
mountroot> ?

List of GEOM managed disk devices:
=C2= =A0 da0s1a da0s1 da0 flash/spi0

mountroot> ufs:/dev/da0s1a
Try= ing to mount root from ufs:/dev/da0s1a []...
mountroot: unable to remoun= t devfs under /dev (error 2)
mountroot: unable to unlink /dev/dev (error= 2)
Warning: no time-of-day clock registered, system time will not be se= t accurately
start_init: trying /sbin/init
...

I had a system on 11.2 which used this option in the kernel config file.
options=C2=A0 =C2=A0 =C2=A0 =C2=A0 ROOTDEVNAME=3D\"ufs:/dev/da0s1a\&qu= ot;


Thanks to this kernel config option I = added it as it's very useful, once called during kernel boot-up it auto= matically mounts the root filesystem in the USB flash drive. It's like = a binder between the kernel and the root filesystem.
=C2=A0
Happy hacking.
Let us know if it all works out.

Yes, thanks= a lot! I've made it. Here's the flow of the booting process from U= -Boot loader up to login. I never touch anything yet on adding the /etc/fst= ab.

U-Boot 1.1.3 Rev 0.3 by WErt(WErt) 4PDA (May 19 2016 - 14:41:04)

B= oard: Ralink APSoC DRAM: 32 MB
******************************
Softwar= e System Reset Occurred
******************************
Ralink SPI fla= sh driver, SPI clock: 15MHz
spi device id: c2 20 16 c2 20 (2016c220)
= find flash: MX25L3205D
..
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D
Ralink U-Boot Version: 5.0.0.5
----------------------= ----------------------
ASIC 5350_MP (Port5<->None)
DRAM_CONF_FR= OM: Boot-Strapping
DRAM_TYPE: SDRAM
DRAM_SIZE: 256 Mbits
DRAM_WIDT= H: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 32 MBytes
= Flash component: SPI Flash
Date:May 19 2016 =C2=A0Time:14:41:04
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
icache: sets:256,= ways:4, linesz:32, total:32768
dcache: sets:128, ways:4, linesz:32, tot= al:16384

=C2=A0#### The CPU freq =3D 360 MHZ ####
=C2=A0estimate = memory size =3D 32 Mbytes

Please choose the operation:
=C2=A0 =C2= =A00: Load system code then write to Flash via Serial.
=C2=A0 =C2=A01: L= oad system code to SDRAM via TFTP.
=C2=A0 =C2=A02: Load system code then= write to Flash via TFTP.
=C2=A0 =C2=A03: Boot system code via Flash (de= fault).
=C2=A0 =C2=A04: Enter boot command line interface.
=C2=A0 =C2= =A05: Load system code then write to Flash via USB Storage.
=C2=A0 =C2= =A06: Load U-Boot code then write to Flash via USB Storage.
=C2=A0 =C2= =A07: Load U-Boot code then write to Flash via Serial.
=C2=A0 =C2=A08: L= oad U-Boot code to SDRAM via TFTP.
=C2=A0 =C2=A09: Load U-Boot code then= write to Flash via TFTP. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 0 .


3: System Boot system code via Flash.
## Check= ing image at bc050000 ...
. =C2=A0 Image Name: =C2=A0 FreeBSD Kernel UC = Image8
=C2=A0 =C2=A0Image Type: =C2=A0 MIPS Linux Kernel Image (uncompre= ssed)
=C2=A0 =C2=A0Data Size: =C2=A0 =C2=A03675932 Bytes =3D =C2=A03.5 M= B
=C2=A0 =C2=A0Load Address: 80001100
=C2=A0 =C2=A0Entry Point: =C2= =A080001100
......................................................... = =C2=A0 Verifying Checksum ... OK
OK
No initrd
## Transferring cont= rol to Linux (at address 80001100) ...
## Giving linux memsize in MB, 32=

Starting kernel ...

U-Boot args (from 0 args):
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 None
Environment:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 memsi= ze=3D32
=C2=A0 =C2=A0 =C2=A0 =C2=A0 initrd_start=3D0x00000000
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 initrd_size=3D0x0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 flash= _start=3D0x00000000
=C2=A0 =C2=A0 =C2=A0 =C2=A0 flash_size=3D0x400000entry: mips_init()
Cache info:
=C2=A0 picache_stride =C2=A0 =C2=A0= =3D 4096
=C2=A0 picache_loopcount =3D 8
=C2=A0 pdcache_stride =C2=A0 = =C2=A0=3D 4096
=C2=A0 pdcache_loopcount =3D 4
cpu0: MIPS Technologies= processor v76.150
=C2=A0 MMU: Standard TLB, 32 entries (4K 16K 64K 256K= 1M 16M 64M 256M pg sizes)
=C2=A0 L1 i-cache: 4 ways of 256 sets, 32 byt= es per line
=C2=A0 L1 d-cache: 4 ways of 128 sets, 32 bytes per line
= =C2=A0 L2 cache: disabled
=C2=A0 Config1=3D0xbea3319e<PerfCount,Watch= Regs,MIPS16,EJTAG>
=C2=A0 Config2=3D0x80000000
=C2=A0 Config3=3D0x= 420
Physical memory chunk(s):
0x3b3000 - 0x1ffffff, 29675520 bytes (7= 245 pages)
Maxmem is 0x2000000
Copyright (c) 1992-2020 The FreeBSD Pr= oject.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 199= 3, 1994
=C2=A0 =C2=A0 =C2=A0 =C2=A0 The Regents of the University of Cal= ifornia. All rights reserved.
FreeBSD is a registered trademark of The F= reeBSD Foundation.
FreeBSD 11.4-RELEASE #20: Fri Oct 14 15:25:17 UTC 202= 2
=C2=A0 =C2=A0 root@:/usr/obj/mips.mipsel/usr/src/sys/RT5350_USB mipsgcc version 4.2.1 20070831 patched [FreeBSD]
Preloaded elf kernel &quo= t;kernel" at 0x803acf50.
real memory =C2=A0=3D 33554432 (32768K byt= es)
Physical memory chunk(s):
0x0043f000 - 0x01f44fff, 28336128 bytes= (6918 pages)
avail memory =3D 27901952 (26MB)
ULE: setup cpu 0
ra= ndom: entropy device external interface
null: <full device, null devi= ce, zero device>
mem: <memory>
nexus0: <MIPS32 root nexus= >
random: harvesting attach, 8 bytes (4 bits) from nexus0
clock0: = <Generic MIPS32 ticker> on nexus0
Timecounter "MIPS32" f= requency 180000000 Hz quality 800
Event timer "MIPS32" frequen= cy 180000000 Hz quality 800
random: harvesting attach, 8 bytes (4 bits) = from clock0
obio0 at mem 0x10000000-0x1fffffff on nexus0
rt305x_sysct= l0: <RT305X System Control driver> at mem 0x10000000-0x100000ff irq 0= on obio0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Chip ID: "RT5350 =C2=A0"=
=C2=A0 =C2=A0 SYSCTL_SYSCFG=3D0x103000
random: harvesting attach, 8 = bytes (4 bits) from rt305x_sysctl0
rt305x_ic0: <RT305X Interrupt Cont= roller driver> at mem 0x10000200-0x100002ff on obio0
random: harvesti= ng attach, 8 bytes (4 bits) from rt305x_ic0
uart0: <rt305x_uart> a= t mem 0x10000500-0x100005ff irq 5 on obio0
uart0: fast interrupt
uart= 0: PPS capture mode: DCDinvalid
random: harvesting attach, 8 bytes (4 bi= ts) from uart0
spi0: <RT305X SPI> at mem 0x10000b00-0x10000bff on = obio0
spibus0: <SPI bus> on spi0
mx25l0: <M25Pxx Flash Famil= y> at cs 0 mode 0 on spibus0
mx25l0: device type mx25ll32, size 4096K= in 64 sectors of 64K, erase size 64K
random: harvesting attach, 8 bytes= (4 bits) from mx25l0
random: harvesting attach, 8 bytes (4 bits) from s= pibus0
random: harvesting attach, 8 bytes (4 bits) from spi0
uart1: &= lt;rt305x_uart> at mem 0x10000c00-0x10000cff irq 12 on obio0
uart1: c= onsole (115200,n,8,1)
uart1: fast interrupt
uart1: PPS capture mode: = DCDinvalid
random: harvesting attach, 8 bytes (4 bits) from uart1
ehc= i0: <Ralink integrated USB 2.0 controller> at mem 0x101c0000-0x101c0f= ff irq 18 on obio0
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci0:= usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus0=
random: harvesting attach, 8 bytes (4 bits) from ehci0
random: harve= sting attach, 8 bytes (4 bits) from obio0
rt0: <Ralink RT5350 onChip = Ethernet driver> at mem 0x10100000-0x1010ffff irq 3 on nexus0
rt0: RT= 5350 Ethernet MAC (rev 0x00000000)
rt0: use hardcoded 00:18:e7:d5:83:90 = macaddr
rt0: Ethernet address: 00:18:e7:d5:83:90
random: harvesting a= ttach, 8 bytes (4 bits) from rt0
Device configuration finished.
Timec= ounters tick every 10.000 msec
tcp_init: net.inet.tcp.tcbhashsize auto t= uned to 512
GEOM: new disk flash/spi0
usbus0: 480Mbps High Speed USB = v2.0
Trying to mount root from ufs:/dev/da0s1a []...
Root mount waiti= ng for: usbus0
ugen0.1: <Ralink EHCI root HUB> at usbus0
uhub0:= <Ralink EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0uhub0: 1 port with 1 removable, self powered
random: harvesting attach= , 8 bytes (4 bits) from uhub0
Root mount waiting for: usbus0
Root mou= nt waiting for: usbus0
ugen0.2: <SanDisk Ultra Fit> at usbus0
u= mass0 on uhub0
umass0: <SanDisk Ultra Fit, class 0/0, rev 2.10/1.00, = addr 2> on usbus0
umass0:0:0: Attached to scbus0
random: harvestin= g attach, 8 bytes (4 bits) from umass0
mountroot: waiting for device /de= v/da0s1a...
pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0
pass0: &l= t;SanDisk Ultra Fit 1.00> Removable Direct Access SPC-4 SCSI device
p= ass0: Serial Number 4C530000070424102200
pass0: 40.000MB/s transfers
= GEOM: new disk da0
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0:= <SanDisk Ultra Fit 1.00> Removable Direct Access SPC-4 SCSI deviceda0: Serial Number 4C530000070424102200
da0: 40.000MB/s transfers
d= a0: 14664MB (30031872 512 byte sectors)
da0: quirks=3D0x2<NO_6_BYTE&g= t;
da0: Delete methods: <NONE(*),ZERO>
Warning: no time-of-day = clock registered, system time will not be set accurately
start_init: try= ing /sbin/init
Setting hostuuid: 4e22d8d6-4bce-11ed-b0aa-0018e7d58390.Setting hostid: 0x351daf11.
eval: cannot open /etc/fstab: No such file= or directory
fstab: /etc/fstab:0: No such file or directory
Warning!= No /etc/fstab: skipping disk checks.
fstab: /etc/fstab:0: No such file = or directory
Mounting local filesystems:fstab: /etc/fstab:0: No such fil= e or directory
.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
= random: unblocking device.
/etc/rc: WARNING: $hostname is not set -- see= rc.conf(5).
Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_N= G,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
l= o0: link state changed to UP
Starting Network: lo0.
lo0: flags=3D8049= <UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSU= M_IPV6>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 127.0.0.1 netmask 0xff000000=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: lo
Starting devd.
add host 127.0.0.1: gateway lo0 fib 0: route already = in table
fstab: /etc/fstab:0: No such file or directory
fstab: /etc/f= stab:0: No such file or directory
Creating and/or trimming log files.Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Moun= ting late filesystems:fstab: /etc/fstab:0: No such file or directory
.fstab: /etc/fstab:0: No such file or directory
Starting sendmail_submi= t.
Starting sendmail_msp_queue.
Starting cron.
eval: cannot open /= etc/fstab: No such file or directory
Starting background file system che= cks in 60 seconds.

Fri Oct 14 20:17
FreeBSD/mips (Amnesiac) (ttyu= 1)

login: root
Last login: Fri Oct 14 16:15:17 on ttyu1
Oct 14= 20:49:08 =C2=A0login: ROOT LOGIN (root) ON ttyu1
FreeBSD 11.4-RELEASE (= RT5350_USB) #20: Fri Oct 14 15:25:17 UTC 2022

Welcome to FreeBSD!
Release Notes, Errata: h= ttps://www.FreeBSD.org/releases/
Security Advisories: =C2=A0 https://www.FreeBSD.org/security/

FreeBSD Handbook: =C2=A0 =C2=A0 =C2=A0
https://www.FreeBSD.org/handbook/
FreeBSD FAQ: =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 https:= //www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mail= man/listinfo/freebsd-questions/
FreeBSD Forums: =C2=A0 =C2=A0 =C2=A0= =C2=A0https://forums.FreeBSD.org/<= /a>

Documents installed with the system are in the /usr/local/share/= doc/freebsd/
directory, or can be installed later with: =C2=A0pkg instal= l en-freebsd-doc
For other languages, replace "en" with a lang= uage code like de or fr.

Show the version of FreeBSD installed: =C2= =A0freebsd-version ; uname -a
Please include that output and any error m= essages when posting questions.
Introduction to manual pages: =C2=A0man = man
FreeBSD directory layout: =C2=A0 =C2=A0 =C2=A0man hier

Edit /= etc/motd to change this login announcement.
root@:~ #
root@:~ # uname= -a
FreeBSD =C2=A011.4-RELEASE FreeBSD 11.4-RELEASE #20: Fri Oct 14 15:2= 5:17 UTC 2022 =C2=A0 =C2=A0 root@:/usr/obj/mips.mipsel/usr/src/sys/RT5350_U= SB =C2=A0mips


root@:~ # ifconfig
rt0: flags=3D8802<BROADCA= ST,SIMPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 o= ptions=3Db<RXCSUM,TXCSUM,VLAN_MTU>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 eth= er 00:18:e7:d5:83:90
=C2=A0 =C2=A0 =C2=A0 =C2=A0 hwaddr 00:18:e7:d5:83:9= 0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: Ethernet 100baseTX <full-duplex&= gt;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 status: active
lo0: flags=3D8049<U= P,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
=C2=A0 =C2=A0 =C2=A0= =C2=A0 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6= >
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 127.0.0.1 netmask 0xff000000
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: lo
root@:~ #
root@:~ # ifconfig r= t0 inet 192.168.1.215 netmask 255.255.255.0
root@:~ # ifconfig rt0
rt= 0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu = 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3Db<RXCSUM,TXCSUM,VLAN_MTU&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 00:18:e7:d5:83:90
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 hwaddr 00:18:e7:d5:83:90
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet = 192.168.1.215 netmask 0xffffff00 broadcast 192.168.1.255
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 media: Ethernet 100baseTX <full-duplex>
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 status: active
root@:~ #
root@:~ # route add -inet = default 192.168.1.1
add net default: gateway 192.168.1.1
root@:~ # ne= tstat -rn
Routing tables

Internet:
Destination =C2=A0 =C2=A0 = =C2=A0 =C2=A0Gateway =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Flags =C2=A0 = =C2=A0 Netif Expire
default =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0192= .168.1.1 =C2=A0 =C2=A0 =C2=A0 =C2=A0UGS =C2=A0 =C2=A0 =C2=A0 =C2=A0 rt0
= 127.0.0.1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0link#2 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 UH =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0lo0
192.168.1.0/24 =C2=A0 =C2=A0 link#1 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 U =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rt0
192= .168.1.215 =C2=A0 =C2=A0 =C2=A0link#1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 UHS =C2=A0 =C2=A0 =C2=A0 =C2=A0 lo0
root@:~ #
root@:~ # tracer= oute 216.58.200.238 <--------- google.com<= /a> IP
traceroute to 216.58.200.238 (216.58.200.238), 64 hops max, 40 by= te packets
=C2=A01 =C2=A0
smartbr= osettings.net (192.168.1.1) =C2=A01.727 ms =C2=A00.888 ms =C2=A00.786 m= s
=C2=A02 =C2=A0* * *
=C2=A03 =C2=A0* * *
=C2=A04 =C2=A0* * *
= =C2=A05 =C2=A0* * *
=C2=A06 =C2=A027.110.255.33 (27.110.255.33) =C2=A035= .536 ms =C2=A026.458 ms =C2=A015.635 ms
=C2=A07 =C2=A0210.213.130.15.static.pldt.net (210.213= .130.15) =C2=A017.515 ms
=C2=A0 =C2=A0 210.213.130.13.static.pldt.net (210.213.130.13) =C2=A0= 18.300 ms
=C2=A0 =C2=A0 210.213.130.15.static.pldt.net (210.213.130.15) =C2=A018.509 ms
= =C2=A08 =C2=A0210.213.130.= 7.static.pldt.net (210.213.130.7) =C2=A057.830 ms =C2=A060.194 ms
= =C2=A0 =C2=A0 210.213.130= .97.static.pldt.net (210.213.130.97) =C2=A051.395 ms
=C2=A09 =C2=A07= 4.125.118.24 (74.125.118.24) =C2=A071.609 ms
=C2=A0 =C2=A0 72.14.195.168= (72.14.195.168) =C2=A060.027 ms =C2=A044.248 ms
10 =C2=A0* * *
11 = =C2=A066.249.94.222 (66.249.94.222) =C2=A061.563 ms
=C2=A0 =C2=A0 142.25= 1.245.20 (142.251.245.20) =C2=A061.087 ms =C2=A065.270 ms
12 =C2=A0108.1= 70.241.112 (108.170.241.112) =C2=A058.601 ms =C2=A042.972 ms
=C2=A0 =C2= =A0 108.170.241.80 (108.170.241.80) =C2=A077.755 ms
13 =C2=A0209.85.250.= 133 (209.85.250.133) =C2=A063.080 ms
=C2=A0 =C2=A0 hkg07s47-in-f14.1e100.net (216.58.200.238) =C2= =A073.084 ms =C2=A086.918 ms
root@:~ #
root@:~ # ping -c 5 216.58.200= .238
PING 216.58.200.238 (216.58.200.238): 56 data bytes
64 bytes fro= m 216.58.200.238: icmp_seq=3D0 ttl=3D= 55 time=3D60.700 ms
64 bytes from 216.= 58.200.238: icmp_seq=3D1 ttl=3D55 time=3D62.175 ms
64 bytes from 216.58.200.238: icmp_seq=3D2 ttl=3D55 ti= me=3D58.768 ms
64 bytes from 216.58.20= 0.238: icmp_seq=3D3 ttl=3D55 time=3D57.592 ms
64 bytes from 216.58.200.238: icmp_seq=3D4 ttl=3D55 time= =3D61.002 ms

--- 216.58.200.238 ping statistics ---
5 packets tra= nsmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/st= ddev =3D 57.592/60.047/62.175/1.645 ms
root@:~ #

Checking the default running = processes.

root@:~ # top -S
last pid: =C2=A0 641; =C2=A0load averages: =C2= =A00.31, =C2=A00.33, =C2=A00.37 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 up 0+00:39:46 =C2=A020:55:54
27 processes: =C2=A02 running= , 24 sleeping, 1 waiting
CPU: =C2=A00.4% user, =C2=A00.0% nice, =C2=A00.= 9% system, =C2=A00.0% interrupt, 98.7% idle
Mem: 10M Active, 7120K Inact= , 8948K Wired, 3100K Buf, 1088K Free
Swap:

=C2=A0 PID USERNAME = =C2=A0 =C2=A0THR PRI NICE =C2=A0 SIZE =C2=A0 =C2=A0RES STATE =C2=A0 =C2=A0T= IME =C2=A0 =C2=A0WCPU COMMAND
=C2=A0 =C2=A010 root =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A01 155 ki31 =C2=A0 =C2=A0 0K =C2=A0 =C2=A0 8K RUN =C2=A0 =C2=A0= 38:00 =C2=A098.89% idle
=C2=A0 641 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A01 =C2=A020 =C2=A0 =C2=A00 =C2=A07912K =C2=A02624K RUN =C2=A0 =C2=A0 =C2= =A00:00 =C2=A0 0.82% top
=C2=A0 =C2=A011 root =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A09 -52 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2=A072K WAIT =C2= =A0 =C2=A0 0:03 =C2=A0 0.22% intr
=C2=A0 =C2=A0 4 root =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A01 -16 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2=A0 8K - = =C2=A0 =C2=A0 =C2=A0 =C2=A00:01 =C2=A0 0.03% rand_harvestq
=C2=A0 =C2=A0= 0 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A07 -16 =C2=A0 =C2=A0- =C2=A0 =C2= =A0 0K =C2=A0 =C2=A056K swapin =C2=A0 0:00 =C2=A0 0.03% kernel
=C2=A0 = =C2=A0 9 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A03 -16 =C2=A0 =C2=A0- =C2=A0= =C2=A0 0K =C2=A0 =C2=A024K psleep =C2=A0 0:00 =C2=A0 0.00% pagedaemon
= =C2=A0 =C2=A018 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A016 =C2=A0 = =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2=A0 8K syncer =C2=A0 0:00 =C2=A0 0.00% s= yncer
=C2=A0 =C2=A015 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 -16 =C2= =A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2=A0 8K - =C2=A0 =C2=A0 =C2=A0 =C2=A0= 0:00 =C2=A0 0.00% bufspacedaemon
=C2=A0 =C2=A016 root =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A01 -16 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2=A0 8K psl= eep =C2=A0 0:00 =C2=A0 0.00% bufdaemon
=C2=A0 =C2=A017 root =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A01 -16 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2=A0= 8K vlruwt =C2=A0 0:00 =C2=A0 0.00% vnlru
=C2=A0 =C2=A013 root =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A05 -68 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2= =A040K - =C2=A0 =C2=A0 =C2=A0 =C2=A00:01 =C2=A0 0.00% usb
=C2=A0 615 roo= t =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A020 =C2=A0 =C2=A00 =C2=A07288K = =C2=A02624K pause =C2=A0 =C2=A00:01 =C2=A0 0.00% csh
=C2=A0 535 root =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A020 =C2=A0 =C2=A00 =C2=A09756K =C2=A0= 3020K select =C2=A0 0:00 =C2=A0 0.00% sendmail
=C2=A0 =C2=A012 root =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A03 =C2=A0-8 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K = =C2=A0 =C2=A024K - =C2=A0 =C2=A0 =C2=A0 =C2=A00:00 =C2=A0 0.00% geom
=C2= =A0 =C2=A0 2 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02 -16 =C2=A0 =C2=A0- = =C2=A0 =C2=A0 0K =C2=A0 =C2=A016K - =C2=A0 =C2=A0 =C2=A0 =C2=A00:00 =C2=A0 = 0.00% cam
=C2=A0 585 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A021 = =C2=A0 =C2=A00 =C2=A06896K =C2=A01676K wait =C2=A0 =C2=A0 0:00 =C2=A0 0.00%= login
=C2=A0 336 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A020 =C2= =A0 =C2=A00 =C2=A06268K =C2=A01220K select =C2=A0 0:00 =C2=A0 0.00% syslogd=
=C2=A0 542 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A037 =C2=A0 =C2= =A00 =C2=A06304K =C2=A01152K nanslp =C2=A0 0:00 =C2=A0 0.00% cron
=C2=A0= =C2=A0 1 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A022 =C2=A0 =C2=A00 = =C2=A05504K =C2=A0 492K wait =C2=A0 =C2=A0 0:00 =C2=A0 0.00% init
=C2=A0= 538 smmsp =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 =C2=A020 =C2=A0 =C2=A00 =C2=A09756= K =C2=A01668K pause =C2=A0 =C2=A00:00 =C2=A0 0.00% sendmail
=C2=A0 278 r= oot =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 =C2=A020 =C2=A0 =C2=A00 =C2=A07084K= =C2=A0 460K select =C2=A0 0:00 =C2=A0 0.00% devd
=C2=A0 =C2=A0 5 root = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 -16 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2= =A0 =C2=A0 8K - =C2=A0 =C2=A0 =C2=A0 =C2=A00:00 =C2=A0 0.00% soaiod1
=C2= =A0 =C2=A0 8 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 -16 =C2=A0 =C2=A0- = =C2=A0 =C2=A0 0K =C2=A0 =C2=A0 8K - =C2=A0 =C2=A0 =C2=A0 =C2=A00:00 =C2=A0 = 0.00% soaiod4
=C2=A0 =C2=A0 6 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 -= 16 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2=A0 8K - =C2=A0 =C2=A0 =C2=A0 = =C2=A00:00 =C2=A0 0.00% soaiod2
=C2=A0 =C2=A0 7 root =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A01 -16 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0 =C2=A0 8K - = =C2=A0 =C2=A0 =C2=A0 =C2=A00:00 =C2=A0 0.00% soaiod3
=C2=A0 =C2=A014 roo= t =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 155 ki31 =C2=A0 =C2=A0 0K =C2=A0 =C2= =A0 8K pgzero =C2=A0 0:00 =C2=A0 0.00% pagezero
=C2=A0 =C2=A0 3 root =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 -16 =C2=A0 =C2=A0- =C2=A0 =C2=A0 0K =C2=A0= =C2=A0 8K mx25jq =C2=A0 0:00 =C2=A0 0.00% task: mx25l flash

This device is the M= 1 router (a.k.a. 11V-5A or A5-V11) with Ralink RT5350F SoC 360Mhz CPU with = built-in USB port, Wi-Fi and an Ethernet LAN card. It has a default Linux 2= .6 OS with busybox accessible via telnet. It has been described here from O= penWRT https://openwrt= .org/toh/unbranded/a5-v11. It's as little as a cigarette lighter ha= ving 6cm. x 2cm. board dimension.

Again, thanks a lot Ronald!

Best regards,
Archimedes




--00000000000032d0fe05eb0c00cd--