I provided slightly incorrect information. The disk doesn’t appear only when rescueboot
'ed, however it works just fine when booted normally:
root@turris:/tmp/sda1/@/boot# dmesg|grep -i sda
[29.735168] BTRFS: device label omnia devid 1 transid 75 /dev/sda1
[51.019389] BTRFS info (device sda1): disk space caching is enabled
Here is what is NOT working. I tried to change environment with
setenv bootargs 'earlyprintk console=ttyS0,115200 rootfstype=btrfs rootwait root=/dev/sda1 rootflags=subvol=@,commit=5 rw'
setenv bootcmd 'i2c dev 1; i2c read 0x2a 0x9 1 0x00FFFFF0; setexpr.b rescue *0x00FFFFF0; if test $rescue -ge 1; then echo BOOT RESCUE; run rescueboot; else echo BOOT eMMC FS; run scsiboot; fi'
setenv scsiboot 'setenv bootargs "$bootargs cfg80211.freg=$regdomain"; scsi scan; btrload scsi 0:1 0x01000000 boot/zImage @; btrload scsi 0:1 0x02000000 boot/dtb @; bootz 0x01000000 - 0x02000000'
saveenv
boot
but that lead me to the following messages in the console via UART:
U-Boot 2015.10-rc2 (Aug 18 2016 - 20:43:35 +0200), Build: jenkins-omnia-master-23
SoC: MV88F6820-A0
Watchdog enabled
I2C: ready
SPI: ready
DRAM: 2 GiB (ECC not enabled)
Enabling Armada 385 watchdog.
Disabling MCU startup watchdog.
Regdomain set to **
MMC: mv_sdh: 0
SF: Detected S25FL164K with page size 256 Bytes, erase size 64 KiB, total 8 MiB
PCI:
00:01.0 - 168c:002e - Network controller
PCI:
01:00.0 - 11ab:6820 - Memory controller
01:01.0 - 168c:003c - Network controller
PCI:
02:00.0 - 11ab:6820 - Memory controller
02:01.0 - 1b21:0612 - Mass storage controller
Model: Marvell Armada 385 GP
Board: Turris Omnia SN: 0000000B00001146
Regdomain set to **
SCSI: MVEBU SATA INIT
SATA link 0 timeout.
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
Net: neta2
Hit any key to stop autoboot: 0
Setting bus to 1
BOOT eMMC FS
scanning bus for devices...
Found 0 device(s).
** Bad device scsi 0 **
** Bad device scsi 0 **
Kernel image @ 0x1000000 [ 0x000000 - 0x689b30 ]
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
So I reverted the changes for now (I think, these commands must be added to the wiki here: https://doc.turris.cz/doc/en/howto/omnia_booting_from_external_storage):
setenv bootargs 'earlyprintk console=ttyS0,115200 rootfstype=btrfs rootdelay=2 root=b301 rootflags=subvol=@,commit=5 rw'
setenv bootcmd 'i2c dev 1; i2c read 0x2a 0x9 1 0x00FFFFF0; setexpr.b rescue *0x00FFFFF0; if test $rescue -ge 1; then echo BOOT RESCUE; run rescueboot; else echo BOOT eMMC FS; run mmcboot; fi'
editenv scsiboot
-> delete the string and hit enter
savenev
Actually, scsi scan
in u-boot
says:
scanning bus for devices...
Found 0 device(s).
is it possible to fix it somewhow with the converter I have or it wouldn’t work with Omnia’s u-boot?