Hi,
I open a new topic even though there are a lot of topics which are already dealing with booting from mSATA in different ways. In my case it seems like just the very last step that will not work.
My initial reason to switch from eMMC to mSATA was this topic:
I done so and bought a serial cable and KINGSTON SKC600M (256GB) mSATA SSD.
I installed the SSD and followed the guide:
- uBoot update from
U-Boot SPL 2015.10-rc2 (Aug 18 2016 - 20:43:35)
toU-Boot SPL 2022.10-rc4-OpenWrt-r16653+119-44ce70f0e2 (Sep 15 2022 - 18:21:35 +0000)
viaturris-nor-update
worked without problem. - Next steps at “Preparation of SSD” went also good. I decided to use my last schnapps snapshot instead of the latest medkit.
- Next steps at “Updating U-Boot to boot from SSD” resulted after reboot always in booting from eMMC.
That’s what the console logging say’s:
Console Log
U-Boot SPL 2022.10-rc4-OpenWrt-r16653+119-44ce70f0e2 (Sep 15 2022 - 18:21:35 +0000)
High speed PHY - Version: 2.0
MiniPCIe/mSATA card detection... mSATA
WWAN slot configuration... PCIe+USB2.0
Detected Device ID 6820
board SerDes lanes topology details:
| Lane # | Speed | Type |
--------------------------------
| 0 | 6 | SATA0 |
| 1 | 5 | USB3 HOST0 |
| 2 | 5 | PCIe1 |
| 3 | 5 | USB3 HOST1 |
| 4 | 5 | PCIe2 |
| 5 | 0 | SGMII2 |
--------------------------------
High speed PHY - Ended Successfully
mv_ddr: 14.0.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
mv_ddr: completed successfully
Trying to boot from SPI
U-Boot 2022.10-rc4-OpenWrt-r16653+119-44ce70f0e2 (Sep 15 2022 - 18:21:35 +0000)
SoC: MV88F6820-A0 at 1600 MHz
DRAM: 2 GiB (800 MHz, 32-bit, 2T, ECC not enabled)
Core: 72 devices, 26 uclasses, devicetree: separate
WDT: Started watchdog@20300 with servicing (60s timeout)
MMC: mv_sdh: 0
Loading Environment from SPIFlash... SF: Detected s25fl164k with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Model: Turris Omnia
MCU type: STM32
MCU version: b5a8a24e007eb72be16aeb3fff6f03ec647023e4
RAM size: 2048 MiB
Serial Number: 0000000B00002116
Disabling MCU watchdog... disabled
Regdomain set to **
pcie1.0: Link up
pcie2.0: Link up
Net: eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000 [PRIME]
Hit any key to stop autoboot: 3 0
=> setenv boot_prefixes / /boot/ /@/boot/
=> setenv boot_targets scsi0 mmc0 nvme0 usb0 pxe dhcp
=> printenv boot_prefixes
boot_prefixes=/ /boot/ /@/boot/
=> printenv boot_targets
boot_targets=scsi0 mmc0 nvme0 usb0 pxe dhcp
=> run distro_bootcmd
scanning bus for devices...
Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
BTRFS: superblock end 69632 is larger than device size 0
Device 0: (0:0) Vendor: ATA Prod.: KINGSTON SKC600M Rev: S480
Type: Hard Disk
Capacity: 244198.3 MB = 238.4 GB (500118192 x 512)
Device 0: (0:0) Vendor: ATA Prod.: KINGSTON SKC600M Rev: S480
Type: Hard Disk
Capacity: 244198.3 MB = 238.4 GB (500118192 x 512)
... is now current device
BTRFS: superblock end 69632 is larger than device size 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
1199 bytes read in 32 ms (36.1 KiB/s)
## Executing script at 01800000
gpio: pin gpio@71_4 (gpio 20) value is 1
20883 bytes read in 36 ms (566.4 KiB/s)
4325992 bytes read in 285 ms (14.5 MiB/s)
Kernel image @ 0x1000000 [ 0x000000 - 0x420268 ]
## Flattened Device Tree blob at 02000000
Booting using the fdt blob at 0x2000000
Loading Device Tree to 0fff7000, end 0ffff192 ... OK
Starting kernel ...
Mount
BusyBox v1.33.2 (2022-10-20 23:59:29 UTC) built-in shell (ash)
-----------------------------------------------------
TurrisOS 6.4.4, Turris Omnia
-----------------------------------------------------
root@FW:/# mount
/dev/mmcblk0p1 on / type btrfs (rw,noatime,ssd,space_cache,commit=5,subvolid=281,subvol=/@)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1031744k,nr_inodes=188192,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
bpffs on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
I don’t have any idea what to do now or how I can fix this. There is one thing I see at the log that is this BTRFS: superblock end 69632 is larger than device size 0
, but I can’t get rid of this.
Even this information don’t get me anywhere:
Just to add, I tried many things like adding setenv boot_prefixes / /boot/ /@/boot/
, although you no longer have to do that.
- Create a symlink to the boot.scr file
This will eliminate need to alter `boot_prefixes
What do I miss?